Last active
April 9, 2016 08:01
-
-
Save ikegami-yukino/894a5f9a58886ed54a53dabcb1342039 to your computer and use it in GitHub Desktop.
JUMANとPythonモジュールのインストール `$ curl -L https://gist.githubusercontent.com/ikegami-yukino/894a5f9a58886ed54a53dabcb1342039/raw/5a19f88ccad82ca5c58bc48e584ab4294668f5d8/juman_install.sh | bash`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# from 形態素解析システムJUMANをpython3で使う | |
# https://abeerforyou.com/?p=715 | |
set -eu | |
pushd . > /dev/null | |
cd /tmp | |
curl -L -O 'http://nlp.ist.i.kyoto-u.ac.jp/DLcounter/lime.cgi?down=http://nlp.ist.i.kyoto-u.ac.jp/nl-resource/juman/juman-7.01.tar.bz2&name=juman-7.01.tar.bz2' | |
tar zxf juman-7.01.tar.bz2 | |
cd juman-7.01 | |
./configure | |
make | |
sudo make install | |
curl -L -O 'http://nlp.ist.i.kyoto-u.ac.jp/DLcounter/lime.cgi?down=http://nlp.ist.i.kyoto-u.ac.jp/nl-resource/knp/pyknp-0.1.zip&name=pyknp-0.1.zip' | |
unzip pyknp-0.1.zip | |
cd ku_nlp-pyknp-a32529dbce0d/ | |
2to3 -w ./ | |
curl -L -O http://abeerforyou.com/wordpress/wp-content/uploads/2015/07/pyknp4python3.patch_.zip | |
unzip pyknp4python3.patch_.zip | |
patch -p0 < pyknp4python3.patch | |
python3 setup.py install | |
popd . > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment