Import and Initial Setup
When using a language for the first time in a system/environment, you need to set the language setup which downloads the models corresponding to the language. However, this is required only when using the language for the first time. Subsequently, no setup is required. we have set the language as Bengali (bn). You can set it up for any language of your choice from the list of available languages. It is reiterated that the setup is only a one-time job. You can set up a language as follows:
Python3
# Setting up Hindi Language from inltk.inltk import setup setup( 'hi' ) setup( 'bn' ) # to run on google colab # !python -c """from inltk.inltk import # setup;setup('hi');setup('bn')""" |
iNLTK: Natural Language Toolkit for Indic Languages in Python
We all are aware of the popular NLP library NLTK (Natural Language Tool Kit), which is used to perform diverse NLP tasks and operations. NLTK, however, is limited to dealing with English Language only. In this article, we will explore and discuss iNLTK, which is Natural Language Tool Kit for Indic Languages. As the name suggests, iNLTK is a Python library that is used to perform NLP operations in Indian languages.
Contact Us