tsroten / pynlpir

A Python wrapper around the NLPIR/ICTCLAS Chinese segmentation software.
MIT License
566 stars 135 forks source link

Add PyNLPIR command-line update script #46

Closed tsroten closed 8 years ago

tsroten commented 8 years ago

This pull request adds a command-line script to download and update the NLPIR license file. The license file has been removed from the repository. In order to download or update the license, run:

pynlpir update

You can specify a custom data directory like this:

pynlpir update -d ~/path/to/NLPIR/data/dir

A pynlpir.LicenseError is now raised if the license file is missing or expired.

This addresses #43.