Skip to content

Instantly share code, notes, and snippets.

@ikegami-yukino
Last active April 9, 2016 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikegami-yukino/894a5f9a58886ed54a53dabcb1342039 to your computer and use it in GitHub Desktop.
Save ikegami-yukino/894a5f9a58886ed54a53dabcb1342039 to your computer and use it in GitHub Desktop.
#!/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