fkuhn / opennlp-python

Python wrapper for Apache OpenNLP tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

opennlp-python

Overview

This package provides a Python wrapper for Apache OpenNLP

Installation

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 ../..

Running

To start the server:

python opennlp/opennlp.py --path apache-opennlp-1.5.3

Make sure the server is working:

python opennlp/client.py

About

Python wrapper for Apache OpenNLP tools


Languages

Language:Python 100.0%