5
4

More than 5 years have passed since last update.

日本語NLP@janome/spaCy/Python

Last updated at Posted at 2017-05-19

Installation

install-japanese-nlp-spacy.sh
virtualenv .env
source .env/bin/activate
pip install -U janome jupyter 
pip install -U Cython git+https://github.com/explosion/spaCy
pip freeze > .env/requirements.txt

pip spacyだとちょっと古く、日本語サポートspacy.jaが入っていなかったので、上記のようにpip install -U git+https://github.com/explosion/spaCyで最新版をダウンロードし、ビルドしましょう。Cloud9が約30分ビルドに励んでくれました。
Screenshot 2017-05-19 at 18.18.41.png

Run Jupyter Notebook on Cloud9 IDE

spaCyが無事インストールできたら、Jupyter Notebookを起動しましょう。
Cloud9なら:

start-jupyter-c9.sh
jupyter notebook --port $PORT --ip $IP --no-browser

Try Janome/spaCy

JupyterでNotebookを開きます。

Screenshot 2017-05-19 at 18.44.40.png

ソース:GitHubまたはnbviewer

NLTK?

NLTKも有力らしいですが、まだ試していません。

install-nlp-nltk-python.sh
pip install -U nltk requests

Links

5
4
2

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