3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

polyglotをインストールして自然言語処理環境を作る for Mac

Posted at

すんなりとはいかなかったのでインストール方法をメモしておきます。

pip3 install polyglot

brew install icu4c
brew link icu4c
echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile

pip3 install pyicu

pip3 install pycld2
pip3 install morfessor

icu4cを入れた後、icuのコマンドにパスが通っていないと、pyicuのインストールでエラーになるようです。

あとはpolyglotコマンドを実行してみてモジュールが無いというエラーが出たらそれをpip3 installすると動きました。

polyglotのサイト
http://polyglot.readthedocs.io/en/latest/index.html

3
4
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
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?