The goal of the Indic NLP Library is to build Python based libraries for common text processing and Natural Language Processing in Indian languages.
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install indic-nlp-libraryIndic NLP Library
The goal of the Indic NLP Library is to build Python based libraries for common text processing and Natural Language Processing in Indian languages. Indian languages share a lot of similarity in terms of script, phonology, language syntax, etc. and this library is an attempt to provide a general solution to very commonly required toolsets for Indian language text.
The library provides the following functionalities:
- Text Normalization
- Script Information
- Word Tokenization and Detokenization
- Sentence Splitting
- Word Segmentation
- Syllabification
- Script Conversion
- Romanization
- Indicization
- Transliteration
- Translation
The data resources required by the Indic NLP Library are hosted in a different repository. These resources are required for some modules. You can download from the Indic NLP Resources project.
If you are interested in Indian language NLP resources, you should check the Indic NLP Catalog for pointers.
Pre-requisites
- Python 3.x
- (For Python 2.x version check the tag
PYTHON_2.7_FINAL_JAN_2019. Not actively supporting Python 2.x anymore, but will try to maintain as much compatibility as possible)
- (For Python 2.x version check the tag
- Indic NLP Resources
- Urduhack: Needed only if Urdu normalization is required. It has other dependencies like Tensorflow.
- Other dependencies are listed in setup.py
Configuration
-
Installation from pip:
pip install indic-nlp-library -
If you want to use the project from the github repo, add the project to the Python Path:
- Clone this repository
- Install dependencies:
pip install -r requirements.txt - Run:
export PYTHONPATH=$PYTHONPATH:<project base directory>
-
In either case, export the path to the Indic NLP Resources directory
Run:
export INDIC_RESOURCES_PATH=<path to Indic NLP resources>