cJumanのインストールをちょっと簡単にするcJuman-installer

2011-10-01 15:02:34 -07:00·
Aki Ariga
Aki Ariga
· 1 min read
post

cJumanという@kharakawa さんの作成された、形態素解析器Jumanをpythonから使うためのSWIGで作られたラッパーがあります。

python-cjuman: A Python (SWIG) bindings of JUMAN, A Japanese Morphological Analyzer

「入門自然言語処理」でも紹介されているのですが、インストールが少し面倒でした。

特にこの辺。

>|bash|
gcc -c cJuman_wrap.c -fPIC -I/usr/include/python2.4
gcc -shared *.o -o _cJuman.so
sudo install -m 644 _cJuman.so cJuman.py /usr/lib/python2.4/site-packages/
|

Aki Ariga
Authors
Staff Software Engineer
AI Product Engineer. Interested in Machine Learning, MLOps, and Data driven business. If you like my blog post, I’m glad if you can buy me a tea 😉

Related