LoginSignup
0
1

More than 5 years have passed since last update.

MacOS10.14.4 Juman++とKNPをPythonで使う設定

Posted at

homebrewでインストールします

brew tap uetchy/nlp
brew install knp jumanpp

pipコマンドでPyKNPをインストールします

pip install git+https://github.com/ku-nlp/pyknp

pythonから使えます

from pyknp import Juman

jumanpp = Juman()
result = jumanpp.analysis(sen)
for mrph in result.mrph_list():
    print("見出し:%s, 読み:%s, 原形:%s, 品詞:%s, 品詞細分類:%s, 活用型:%s, 活用形:%s, 意味情報:%s, 代表表記:%s")

mojimoji

pip install git+https://github.com/studio-ousia/mojimoji
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1