Skip to main content

Japanese morphological analysis engine.

Project description

Janome is a Japanese morphological analysis engine written in pure Python.

General documentation: http://mocobeta.github.io/janome/ (for Japanese)

Requirements

Python 3.4 or above is required.

For Python 2 users, please install janomePy2.

Install

[Note] This consumes about 3 to 4 GB memory for building.

(venv) $ python setup.py install
Finished processing dependencies for Janome==0.1.4

(venv) $ pip freeze
Janome==0.1.4

Run

(venv) $ python
>>> from janome.tokenizer import Tokenizer
>>> t = Tokenizer()
>>> for token in t.tokenize('すもももももももものうち'):
...     print(token)
...
すもも 名詞,一般,*,*,*,*,すもも,スモモ,スモモ
    助詞,係助詞,*,*,*,*,も,モ,モ
もも  名詞,一般,*,*,*,*,もも,モモ,モモ
    助詞,係助詞,*,*,*,*,も,モ,モ
もも  名詞,一般,*,*,*,*,もも,モモ,モモ
    助詞,連体化,*,*,*,*,の,ノ,ノ
うち  名詞,非自立,副詞可能,*,*,*,うち,ウチ,ウチ

License

Apache License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Janome-0.1.4.tar.gz (22.6 MB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page