Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 518 Bytes

README.md

File metadata and controls

24 lines (14 loc) · 518 Bytes

python-cmigemo

python-cmigemo is a pure python binding for C/Migemo (http://www.kaoriya.net/software/cmigemo/).

Installation

$ pip install cmigemo

And of cource, you need C/Migemo.

$ apt-get install cmigemo

Usage

python-cmigemo can be used as an alternative to PyMigemo (http://www.atzm.org/etc/pymigemo/).

import cmigemo

migemo = cmigemo.Migemo("/usr/share/cmigemo/utf-8/migemo-dict")

print(migemo.query("hoge"))
# (ホゲ|補元|保元|帆桁|捕鯨|ほげ|hoge|hoge)