Installation

Installing PyNLPIR is simple. PyNLPIR is designed to run on Python 2.7 or 3. Because of the included NLPIR library files, it only runs on Windows, GNU/Linux, or macOS.

Pip

Install PyNLPIR using pip:

$ pip install pynlpir
$ pynlpir update

This will download PyNLPIR from the Python Package Index and install it in your Python’s site-packages directory. pynlpir update will download the latest license from the NLPIR project.

Install from Source

If you’d rather install PyNLPIR manually:

  1. Download the most recent release from PyNLPIR’s PyPi page.
  2. Unpack the archive file.
  3. From inside the directory PyNLPIR-XX, run python setup.py install
  4. Run pynlpir update to download the latest license file.

This will install PyNLPIR in your Python’s site-packages directory.

Install the Development Version

PyNLPIR’s code is hosted at GitHub. To install the development version first make sure Git is installed. Then run:

$ git clone git://github.com/tsroten/pynlpir.git
$ pip install -e pynlpir
$ pynlpir update

This will link the PyNLPIR directory into your site-packages directory. pynlpir update will download the latest license from the NLPIR project.

Running the Tests

Running the tests is easy. After downloading and unpacking PyNLPIR’s source, run the following code from inside PyNLPIR’s source directory:

$ python setup.py test

If you want to run the tests using different versions of Python, install and run tox:

$ pip install tox
$ tox