LoginSignup
0
5

More than 5 years have passed since last update.

【環境構築編】pythonで日本語言語解析入門 多分コピペでだいたい動くよ((φ(-ω-)

Last updated at Posted at 2017-10-12

brew install pyenv

これで既存のpythonと干渉しなくなる

bash.rc
eval "$(pyenv init -)"

pythonと解析プログラムであるmecabインストール
anacondaは統計や数学系統のライブラリ詰め合わせ

commands
brew install pyenv
pyenv install 3.6.3
pyenv global 3.6.3
pyenv global anaconda3-5.0.0
brew install mecab
brew install mecab-ipadic
pip install mecab-python3
touch mecab_01.py

プログラム書くよ(`・ω・´)

mecab_01.py
import MeCab
mecab = MeCab.Tagger("-Ochasen")
print(mecab.parse("この銀河を統括する情報統合思念体によって造られた対有機生命体コンタクト用ヒューマノイド・インターフェース、それがわたし。"))

実行するよ((φ(-ω-)

commands
python mecab_01.py

終わり、簡単、楽しいヾ(呂╹◡╹✿)ノ”

image.png

0
5
1

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
5