morph Package

unsupervised_morph Module

class indicnlp.morph.unsupervised_morph.MorphAnalyzerI[source]

Bases: object

Interface for Morph Analyzer

morph_analyze()[source]
morph_analyze_document()[source]
class indicnlp.morph.unsupervised_morph.UnsupervisedMorphAnalyzer(lang, add_marker=False)[source]

Bases: indicnlp.morph.unsupervised_morph.MorphAnalyzerI

Unsupervised Morphological analyser built using Morfessor 2.0

morph_analyze[source]

Morphanalyzes a single word and returns a list of component morphemes

@param word: string input word

morph_analyze_document(tokens)[source]

Morphanalyzes a document, represented as a list of tokens Each word is morphanalyzed and result is a list of morphemes constituting the document

@param tokens: string sequence of words

@return list of segments in the document after morph analysis