indicnlp Package

common Module

exception indicnlp.common.IndicNlpException(msg)[source]

Bases: Exception

Exceptions thrown by Indic NLP Library components are instances of this class. ‘msg’ attribute contains exception details.

indicnlp.common.get_resources_path()[source]

Get the path to the Indic NLP Resources directory

indicnlp.common.init()[source]

Initialize the module. The following actions are performed:

  • Checks of INDIC_RESOURCES_PATH variable is set. If not, checks if it can beb initialized from
    INDIC_RESOURCES_PATH environment variable. If that fails, an exception is raised
indicnlp.common.set_resources_path(resources_path)[source]

Set the path to the Indic NLP Resources directory

langinfo Module

indicnlp.langinfo.get_offset(c, lang)[source]

Applicable to Brahmi derived Indic scripts

indicnlp.langinfo.in_coordinated_range(c_offset)[source]

Applicable to Brahmi derived Indic scripts

indicnlp.langinfo.is_approximant(c, lang)[source]

Is the character an approximant consonant

indicnlp.langinfo.is_approximant_offset(c_offset)[source]

Is the offset an approximant consonant

indicnlp.langinfo.is_aspirated(c, lang)[source]

Is the character a aspirated consonant

indicnlp.langinfo.is_aspirated_offset(c_offset)[source]

Is the offset a aspirated consonant

indicnlp.langinfo.is_aum(c, lang)[source]

Is the character a vowel sign (maatraa)

indicnlp.langinfo.is_aum_offset(c_offset)[source]

Is the offset a vowel sign (maatraa)

indicnlp.langinfo.is_consonant(c, lang)[source]

Is the character a consonant

indicnlp.langinfo.is_consonant_offset(c_offset)[source]

Is the offset a consonant

indicnlp.langinfo.is_danda_delim(lang)[source]

Returns True if danda/double danda is a possible delimiter for the language

indicnlp.langinfo.is_dental(c, lang)[source]

Is the character a dental

indicnlp.langinfo.is_dental_offset(c_offset)[source]

Is the offset a dental

indicnlp.langinfo.is_fricative(c, lang)[source]

Is the character a fricative consonant

indicnlp.langinfo.is_fricative_offset(c_offset)[source]

Is the offset a fricative consonant

indicnlp.langinfo.is_halanta(c, lang)[source]

Is the character the halanta character

indicnlp.langinfo.is_halanta_offset(c_offset)[source]

Is the offset the halanta offset

indicnlp.langinfo.is_indiclang_char(c, lang)[source]

Applicable to Brahmi derived Indic scripts

indicnlp.langinfo.is_labial(c, lang)[source]

Is the character a labial

indicnlp.langinfo.is_labial_offset(c_offset)[source]

Is the offset a labial

indicnlp.langinfo.is_nasal(c, lang)[source]

Is the character a nasal consonant

indicnlp.langinfo.is_nasal_offset(c_offset)[source]

Is the offset a nasal consonant

indicnlp.langinfo.is_nukta(c, lang)[source]

Is the character the halanta character

indicnlp.langinfo.is_nukta_offset(c_offset)[source]

Is the offset the halanta offset

indicnlp.langinfo.is_number(c, lang)[source]

Is the character a number

indicnlp.langinfo.is_number_offset(c_offset)[source]

Is the offset a number

indicnlp.langinfo.is_palatal(c, lang)[source]

Is the character a palatal

indicnlp.langinfo.is_palatal_offset(c_offset)[source]

Is the offset a palatal

indicnlp.langinfo.is_retroflex(c, lang)[source]

Is the character a retroflex

indicnlp.langinfo.is_retroflex_offset(c_offset)[source]

Is the offset a retroflex

indicnlp.langinfo.is_unaspirated(c, lang)[source]

Is the character a unaspirated consonant

indicnlp.langinfo.is_unaspirated_offset(c_offset)[source]

Is the offset a unaspirated consonant

indicnlp.langinfo.is_unvoiced(c, lang)[source]

Is the character a unvoiced consonant

indicnlp.langinfo.is_unvoiced_offset(c_offset)[source]

Is the offset a unvoiced consonant

indicnlp.langinfo.is_velar(c, lang)[source]

Is the character a velar

indicnlp.langinfo.is_velar_offset(c_offset)[source]

Is the offset a velar

indicnlp.langinfo.is_voiced(c, lang)[source]

Is the character a voiced consonant

indicnlp.langinfo.is_voiced_offset(c_offset)[source]

Is the offset a voiced consonant

indicnlp.langinfo.is_vowel(c, lang)[source]

Is the character a vowel

indicnlp.langinfo.is_vowel_offset(c_offset)[source]

Is the offset a vowel

indicnlp.langinfo.is_vowel_sign(c, lang)[source]

Is the character a vowel sign (maatraa)

indicnlp.langinfo.is_vowel_sign_offset(c_offset)[source]

Is the offset a vowel sign (maatraa)

indicnlp.langinfo.offset_to_char(c, lang)[source]

Applicable to Brahmi derived Indic scripts

loader Module

indicnlp.loader.load()[source]

Initializes the Indic NLP library. Clients should call this method before using the library.

Any module requiring initialization should have a init() method, to which a call must be made from this method

Indices and tables