Japanese morphological analysis engine written in pure Python
======= Janome =======
.. image:: https://github.com/mocobeta/janome/workflows/Checks/badge.svg :target: https://github.com/mocobeta/janome/actions?query=workflow%3AChecks
.. image:: https://coveralls.io/repos/github/mocobeta/janome/badge.svg?branch=master :target: https://coveralls.io/github/mocobeta/janome?branch=master
.. image:: https://img.shields.io/pypi/dm/Janome.svg :target: https://pypistats.org/packages/janome
.. image:: https://img.shields.io/conda/v/conda-forge/janome :target: https://anaconda.org/conda-forge/janome
Janome is a Japanese morphological analysis engine written in pure Python.
General documentation:
https://janome.mocobeta.dev/en/ (English)
https://janome.mocobeta.dev/ja/ (Japanese)
Requirements =============
Python 3.10+ is required.
Install ========
[Note] This consumes about 500 MB memory for building.
.. code:: bash
(venv) $ pip install janome
Run ====
.. code:: bash
(venv) $ python >>> from janome.tokenizer import Tokenizer >>> t = Tokenizer() >>> for token in t.tokenize('ใใใใใใใใใใฎใใก'): ... print(token) ... ใใใ ๅ่ฉ,ไธ่ฌ,,,,,ใใใ,ในใขใข,ในใขใข ใ ๅฉ่ฉ,ไฟๅฉ่ฉ,,,,,ใ,ใข,ใข ใใ ๅ่ฉ,ไธ่ฌ,,,,,ใใ,ใขใข,ใขใข ใ ๅฉ่ฉ,ไฟๅฉ่ฉ,,,,,ใ,ใข,ใข ใใ ๅ่ฉ,ไธ่ฌ,,,,,ใใ,ใขใข,ใขใข ใฎ ๅฉ่ฉ,้ฃไฝๅ,,,,,ใฎ,ใ,ใ ใใก ๅ่ฉ,้่ช็ซ,ๅฏ่ฉๅฏ่ฝ,,,*,ใใก,ใฆใ,ใฆใ
License ========
Licensed under Apache License 2.0 and uses the MeCab-IPADIC dictionary/statistical model.
See LICENSE.txt and NOTICE.txt for license details.
Acknowledgement ================
Special thanks to @ikawaha, @takuyaa, @nakagami and @janome_oekaki.
Copyright ==========
Copyright(C) 2015-2025, Tomoko Uchida. All rights reserved.