tinysegmenter


Nametinysegmenter JSON
Version 0.4 PyPI version JSON
download
home_pagehttp://tinysegmenter.tuxfamily.org/
SummaryVery compact Japanese tokenizer
upload_time2018-09-16 09:30:29
maintainer
docs_urlNone
authorJehan
requires_python
licenseNew BSD
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            TinySegmenter
=============

“TinySegmenter in Python” is a Python port_ by Masato Hagiwara of TinySegmenter_, which is an extremely compact Japanese tokenizer originally written in JavaScript by Mr. Taku Kudo.

The library has been finally packaged by Jehan. It resulted into this fork because Masako Hagiwara did not answer emails, and packaging patches
could therefore not be committed upstream. But this is a friendly fork, and Masako Hagiwara is welcome to take back maintainance over his
project.
For the time being, I (Jehan) took up the maintenance, so please refer to this new website_ as being official, and
direct any new patch_ there. I will follow up on patchs and bug reports, but probably won't maintain an active development. Anyone wishing to
improve the library is welcome to participate and will be gladly given committer rights.

It works on Python 2.6 or above (works on Python 3 too).

.. _port: http://lilyx.net/tinysegmenter-in-python/
.. _TinySegmenter: http://chasen.org/~taku/software/TinySegmenter/
.. _website: http://tinysegmenter.tuxfamily.org/

Authors
-------

See all authors and contributors in ``AUTHORS`` file.

Download and Installation
-------------------------

This library can be installed the common ways: with a setup.py, as a pip package...
See the ``INSTALL`` file in the package for more details.

If you simply want to download the source package, refer to the pypi repository: http://pypi.python.org/pypi/tinysegmenter

Development version can be downloaded anonymously at the Git repository::

    $ git clone git://git.tuxfamily.org/gitroot/tinysegmente/tinysegmenter.git

or browsed online at: http://git.tuxfamily.org/tinysegmente/tinysegmenter/

Usage
-----

Example code for direct usage::

    > import tinysegmenter
    > segmenter = tinysegmenter.TinySegmenter() 
    > print(' | '.join(segmenter.tokenize(u"私の名前は中野です")))
    私 | の | 名前 | は | 中野 | です 


TinySegmenter‘s interface is compatible with ``NLTK``’s ``TokenizerI`` class, although the distribution does not directly depend on NLTK.
Here is one way to use it as a tokenizer in NLTK (order of the multiple base classes matters)::

    import nltk.tokenize.api

    class myTinySegmenter(tinysegmenter.TinySegmenter, nltk.tokenize.api.TokenizerI):
        pass
    segmenter = myTinySegmenter()
    # This segmenter can be used any place which expects a NLTK's TokenizerI subclass.

For more about NLTK (*Natural Language Toolkit* module), see: http://nltk.org/api/nltk.tokenize.html#nltk.tokenize.api.TokenizerI

.. _patch:

Contact, Bugs and Contributing
------------------------------

All bug, patch, question, etc. can be sent to `tinysegmenter` at `zemarmot` dot `net`.

License
-------

This package is distributed under a New BSD License (see ``COPYING`` file).
            

Raw data

            {
    "_id": null,
    "home_page": "http://tinysegmenter.tuxfamily.org/",
    "name": "tinysegmenter",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Jehan",
    "author_email": "tinysegmenter@zemarmot.net",
    "download_url": "https://files.pythonhosted.org/packages/9c/70/488895cb11e160b548c9ba5847c171b65b86a8ca1e54d206d55b2976bf7b/tinysegmenter-0.4.tar.gz",
    "platform": "",
    "description": "TinySegmenter\n=============\n\n\u201cTinySegmenter in Python\u201d is a Python port_ by Masato Hagiwara of TinySegmenter_, which is an extremely compact Japanese tokenizer originally written in JavaScript by Mr. Taku Kudo.\n\nThe library has been finally packaged by Jehan. It resulted into this fork because Masako Hagiwara did not answer emails, and packaging patches\ncould therefore not be committed upstream. But this is a friendly fork, and Masako Hagiwara is welcome to take back maintainance over his\nproject.\nFor the time being, I (Jehan) took up the maintenance, so please refer to this new website_ as being official, and\ndirect any new patch_ there. I will follow up on patchs and bug reports, but probably won't maintain an active development. Anyone wishing to\nimprove the library is welcome to participate and will be gladly given committer rights.\n\nIt works on Python 2.6 or above (works on Python 3 too).\n\n.. _port: http://lilyx.net/tinysegmenter-in-python/\n.. _TinySegmenter: http://chasen.org/~taku/software/TinySegmenter/\n.. _website: http://tinysegmenter.tuxfamily.org/\n\nAuthors\n-------\n\nSee all authors and contributors in ``AUTHORS`` file.\n\nDownload and Installation\n-------------------------\n\nThis library can be installed the common ways: with a setup.py, as a pip package...\nSee the ``INSTALL`` file in the package for more details.\n\nIf you simply want to download the source package, refer to the pypi repository: http://pypi.python.org/pypi/tinysegmenter\n\nDevelopment version can be downloaded anonymously at the Git repository::\n\n    $ git clone git://git.tuxfamily.org/gitroot/tinysegmente/tinysegmenter.git\n\nor browsed online at: http://git.tuxfamily.org/tinysegmente/tinysegmenter/\n\nUsage\n-----\n\nExample code for direct usage::\n\n    > import tinysegmenter\n    > segmenter = tinysegmenter.TinySegmenter() \n    > print(' | '.join(segmenter.tokenize(u\"\u79c1\u306e\u540d\u524d\u306f\u4e2d\u91ce\u3067\u3059\")))\n    \u79c1 | \u306e | \u540d\u524d | \u306f | \u4e2d\u91ce | \u3067\u3059 \n\n\nTinySegmenter\u2018s interface is compatible with ``NLTK``\u2019s ``TokenizerI`` class, although the distribution does not directly depend on NLTK.\nHere is one way to use it as a tokenizer in NLTK (order of the multiple base classes matters)::\n\n    import nltk.tokenize.api\n\n    class myTinySegmenter(tinysegmenter.TinySegmenter, nltk.tokenize.api.TokenizerI):\n        pass\n    segmenter = myTinySegmenter()\n    # This segmenter can be used any place which expects a NLTK's TokenizerI subclass.\n\nFor more about NLTK (*Natural Language Toolkit* module), see: http://nltk.org/api/nltk.tokenize.html#nltk.tokenize.api.TokenizerI\n\n.. _patch:\n\nContact, Bugs and Contributing\n------------------------------\n\nAll bug, patch, question, etc. can be sent to `tinysegmenter` at `zemarmot` dot `net`.\n\nLicense\n-------\n\nThis package is distributed under a New BSD License (see ``COPYING`` file).",
    "bugtrack_url": null,
    "license": "New BSD",
    "summary": "Very compact Japanese tokenizer",
    "version": "0.4",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "c6e04dba1216b5a8971f62680f294a3a",
                "sha256": "64458bdba54ba7482c02c785f960cf3d6cf61594a4dab3d64c325439094fc1b7"
            },
            "downloads": -1,
            "filename": "tinysegmenter-0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "c6e04dba1216b5a8971f62680f294a3a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 16898,
            "upload_time": "2018-09-16T09:30:29",
            "upload_time_iso_8601": "2018-09-16T09:30:29.009880Z",
            "url": "https://files.pythonhosted.org/packages/9c/70/488895cb11e160b548c9ba5847c171b65b86a8ca1e54d206d55b2976bf7b/tinysegmenter-0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2018-09-16 09:30:29",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "tinysegmenter"
}
        
Elapsed time: 0.02391s