Skip to content

Python wrapper for Apache OpenNLP tools

Notifications You must be signed in to change notification settings

RickyyyFu/opennlp-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opennlp-python

Overview

This package provides a Python wrapper for Apache OpenNLP

Installation

First, install git python and java if you haven't already.

sudo apt-get update
sudo apt-get install -y git python python-setuptools python-pip default-jre

Then, download opennlp-python and install requirements.

git clone https://github.com/curzona/opennlp-python.git
cd opennlp-python
sudo pip install -r requirements.txt

Next, 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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%