class documentation
class NorwegianStemmer(_ScandinavianStemmer): (source)
Constructor: NorwegianStemmer(ignore_stopwords)
The Norwegian Snowball stemmer.
| Note | |
| A detailed description of the Norwegian stemming algorithm can be found under http://snowball.tartarus.org/algorithms/norwegian/stemmer.html |
| Method | stem |
Stem a Norwegian word and return the stemmed form. |
| Class Variable | __s |
Letters that may directly appear before a word final 's'. |
| Class Variable | __step1 |
Suffixes to be deleted in step 1 of the algorithm. |
| Class Variable | __step2 |
Suffixes to be deleted in step 2 of the algorithm. |
| Class Variable | __step3 |
Suffixes to be deleted in step 3 of the algorithm. |
| Class Variable | __vowels |
The Norwegian vowels. |
Inherited from _ScandinavianStemmer:
| Method | _r1 |
Return the region R1 that is used by the Scandinavian stemmers. |
Inherited from _LanguageSpecificStemmer (via _ScandinavianStemmer):
| Method | __init__ |
Undocumented |
| Method | __repr__ |
Print out the string representation of the respective class. |
| Instance Variable | stopwords |
Undocumented |
overrides
nltk.stem.api.StemmerI.stemStem a Norwegian word and return the stemmed form.
| Parameters | |
| word:str or unicode | The word that is stemmed. |
| Returns | |
| unicode | The stemmed form. |