# Install Pacaya NLP with Jython
## Install Jython
`> wget http://search.maven.org/remotecontent?filepath=org/python/jython-installer/2.7.0/jython-installer-2.7.0.jar`
`> mv remotecontent\?filepath\=org%2Fpython%2Fjython-installer%2F2.7.0%2Fjython-installer-2.7.0.jar jython_installer-2.7.0.jar`
`> mkdir ~/local/jython`
`> java -jar jython_installer-2.7.0.jar`
- N.B. You might want to change some bin names for Jython
`> cd ~/local/jython/bin/`
`> mv pip jypip`
`> mv pip2 jypip2`
`> mv pip2.7 jypip2.7`
`> mv easy_install jy_easy_install`
`> mv easy_install-2.7 jy_easy_install-2.7`
## Install Pacaya NLP
`> git clone https://github.com/mgormley/pacaya-nlp.git`
`> cd pacaya-nlp/`
`> mvn compile assembly:single`
## Add env vars
`export CLASSPATH= 'mvn exec:exec -q -Dexec.executable="echo" -Dexec.args="%classpath"' (see setupenv.sh)`
`export JYTHONPATH=[$[[HOME]](etc.)]/pacaya-nlp/target/pacaya-nlp-3.1.4-SNAPSHOT-jar-with-dependencies.jar`
## Check if it works
`> jython`
`> from edu.jhu.pacaya.gm.train import CrfTrainer`
最終更新:2016年08月30日 00:13