podium.preproc.stemmer package

Submodules

podium.preproc.stemmer.croatian_stemmer module

Module contains simple stemmer for Croatian

class podium.preproc.stemmer.croatian_stemmer.CroatianStemmer

Bases: object

Simple stemmer for Croatian language

root_word(word)

Method returns root of a word.

Parameters

word (str) – word string

Returns

root – root of a word

Return type

str

transform(word)

Method transforms given word from a dict, given it ending with a specific suffix

Parameters

word (str) – word

Returns

transformed_word – transformed word according to transformation mappings

Return type

str

podium.preproc.stemmer.croatian_stemmer.get_croatian_stemmer_hook()

Method obtains croatian stemmer hook.

Module contents

Package contains modules for stemming.

class podium.preproc.stemmer.CroatianStemmer

Bases: object

Simple stemmer for Croatian language

root_word(word)

Method returns root of a word.

Parameters

word (str) – word string

Returns

root – root of a word

Return type

str

transform(word)

Method transforms given word from a dict, given it ending with a specific suffix

Parameters

word (str) – word

Returns

transformed_word – transformed word according to transformation mappings

Return type

str