mindmeld.stemmers module

class mindmeld.stemmers.EnglishNLTKStemmer(language=None)[source]

Bases: mindmeld.stemmers.Stemmer

stem_word(word)[source]

Gets the stem of a word. For example, the stem of the word 'fishing' is 'fish'.

Parameters:word (str) -- The word to stem
Returns:A stemmed version of the word
Return type:stemmed word (str)
class mindmeld.stemmers.NoOpStemmer(language=None)[source]

Bases: mindmeld.stemmers.Stemmer

stem_word(word)[source]

Gets the stem of a word. For example, the stem of the word 'fishing' is 'fish'.

Parameters:word (str) -- The word to stem
Returns:A stemmed version of the word
Return type:stemmed word (str)
class mindmeld.stemmers.SnowballNLTKStemmer(language=None)[source]

Bases: mindmeld.stemmers.Stemmer

stem_word(word)[source]

Gets the stem of a word. For example, the stem of the word 'fishing' is 'fish'.

Parameters:word (str) -- The word to stem
Returns:A stemmed version of the word
Return type:stemmed word (str)
class mindmeld.stemmers.Stemmer(language=None)[source]

Bases: abc.ABC

stem_word(word)[source]

Gets the stem of a word. For example, the stem of the word 'fishing' is 'fish'.

Parameters:word (str) -- The word to stem
Returns:A stemmed version of the word
Return type:stemmed word (str)
mindmeld.stemmers.get_language_stemmer(language_code)[source]