This package provides a Python wrapper for Apache OpenNLP
First, download opennlp-python and install requirements.
git clone https://github.com/curzona/opennlp-python.git
sudo pip install pexpect
Then, download Apache OpenNLP tools.
wget http://mirror.metrocast.net/apache//opennlp/opennlp-1.5.3/apache-opennlp-1.5.3-bin.tar.gz
tar -zxvf apache-opennlp-1.5.3-bin.tar.gz
cd apache-opennlp-1.5.3
Finally, download the pre-trained parser model from Apache OpenNLP.
mkdir models
wget http://opennlp.sourceforge.net/models-1.5/en-parser-chunking.bin
mv en-parser-chunking.bin models/
cd ../..
To start the server:
python opennlp/opennlp.py --path apache-opennlp-1.5.3
Make sure the server is working:
python opennlp/client.py