Skip to main content

The goal of the Indic NLP Library is to build Python based libraries for common text processing and Natural Language Processing in Indian languages.

Project description

Indic 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)
  • 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>

Usage

You can use the Python API to access all the features of the library. Many of the most common operations are also accessible via a unified commandline API.

Getting Started

Check this IPython Notebook for examples to use the Python API.

  • You can find the Python 2.x Notebook here

Documentation

You can find detailed documentation HERE

This documents the Python API as well as the commandline reference.

Citing

If you use this library, please include the following citation:

@misc{kunchukuttan2020indicnlp,
author = "Anoop Kunchukuttan",
title = "{The IndicNLP Library}",
year = "2020",
howpublished={\url{https://github.com/anoopkunchukuttan/indic_nlp_library/blob/master/docs/indicnlp.pdf}}
}

You can find the document HERE

Website

http://anoopkunchukuttan.github.io/indic_nlp_library

Author

Anoop Kunchukuttan (anoop.kunchukuttan@gmail.com)

Companies, Organizations, Projects using IndicNLP Library

Revision Log

0.81 : 26 May 2021

- Bug fix in version number extraction

0.80 : 24 May 2021

- Improved sentence splitting
- Bug fixes
- Support for Urdu Normalizer

0.71 : 03 Sep 2020

- Improved documentation
- Bug fixes

0.7 : 02 Apr 2020:

- Unified commandline 
- Improved documentation
- Added setup.py

0.6 : 16 Dec 2019:

- New romanizer and indicizer
- Script Unifiers
- Improved script normalizers
- Added contrib directory for sample uses
- changed to MIT license 

0.5 : 03 Jun 2019:

- Improved word tokenizer to handle dates and numbers. 
- Added sentence splitter that can handle common prefixes/honorofics and uses some heuristics.
- Added detokenizer
- Added acronym transliterator that can convert English acronyms to Brahmi-derived scripts

0.4 : 28 Jan 2019: Ported to Python 3, and lots of feature additions since last release; primarily around script information, script similarity and syllabification.

0.3 : 21 Oct 2014: Supports morph-analysis between Indian languages

0.2 : 13 Jun 2014: Supports transliteration between Indian languages and tokenization of Indian languages

0.1 : 12 Mar 2014: Initial version. Supports text normalization.

LICENSE

Indic NLP Library is released under the MIT license

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

indic_nlp_library-0.92.tar.gz (32.2 kB view details)

Uploaded Source

Built Distribution

indic_nlp_library-0.92-py3-none-any.whl (40.3 kB view details)

Uploaded Python 3

File details

Details for the file indic_nlp_library-0.92.tar.gz.

File metadata

  • Download URL: indic_nlp_library-0.92.tar.gz
  • Upload date:
  • Size: 32.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for indic_nlp_library-0.92.tar.gz
Algorithm Hash digest
SHA256 5e83e54a1016873cbd7417e5376c12ca87411151760ad92809b2af8824982d73
MD5 ea0180baf32bb16c943c13da22ac38d6
BLAKE2b-256 80f6bcd6b5c49351d5261ee3873f78d66fd7aa11d410f5c12e4cc1a4ee85c8f9

See more details on using hashes here.

Provenance

File details

Details for the file indic_nlp_library-0.92-py3-none-any.whl.

File metadata

File hashes

Hashes for indic_nlp_library-0.92-py3-none-any.whl
Algorithm Hash digest
SHA256 6cbc38886184e94f71c9a59e7448a9cae086c7cb222ffd9aef6fd74ea0daf895
MD5 325cfec3e54f5830cf3428933a6f3e58
BLAKE2b-256 ec2161240bcf965cedfec993497b38c42f054b149b9669e6d6cddeb1dee09d51

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page