Package nltk :: Package stem :: Module snowball :: Class RomanianStemmer
[hide private]
[frames] | no frames]

type RomanianStemmer

source code

          object --+            
                   |            
        api.StemmerI --+        
                       |        
_LanguageSpecificStemmer --+    
                           |    
            _StandardStemmer --+
                               |
                              RomanianStemmer

The Romanian Snowball stemmer.


Note: A detailed description of the Romanian stemming algorithm can be found under http://snowball.tartarus.org/algorithms /romanian/stemmer.html.

Instance Methods [hide private]
unicode
stem(self, word)
Stem a Romanian word and return the stemmed form.
source code

Inherited from _StandardStemmer (private): _r1r2_standard, _rv_standard

Inherited from _LanguageSpecificStemmer: __init__, __repr__

Class Variables [hide private]
unicode __vowels = u'aeiouăâî'
The Romanian vowels.
tuple __step0_suffixes = (u'iilor', u'ului', u'elor', u'iile', u'ilo...
Suffixes to be deleted in step 0 of the algorithm.
tuple __step1_suffixes = (u'abilitate', u'abilitati', u'abilităţi', ...
Suffixes to be deleted in step 1 of the algorithm.
tuple __step2_suffixes = (u'abila', u'abile', u'abili', u'abilă', u'...
Suffixes to be deleted in step 2 of the algorithm.
tuple __step3_suffixes = (u'seserăţi', u'aserăţi', u'iserăţi', u'âse...
Suffixes to be deleted in step 3 of the algorithm.
Method Details [hide private]

stem(self, word)

source code 

Stem a Romanian word and return the stemmed form.

Parameters:
  • word (str, unicode) - The word that is stemmed.
Returns: unicode
The stemmed form.
Overrides: api.StemmerI.stem

Class Variable Details [hide private]

__step0_suffixes

Suffixes to be deleted in step 0 of the algorithm.
Type:
tuple
Value:
(u'iilor',
 u'ului',
 u'elor',
 u'iile',
 u'ilor',
 u'atei',
 u'aţie',
 u'aţia',
...

__step1_suffixes

Suffixes to be deleted in step 1 of the algorithm.
Type:
tuple
Value:
(u'abilitate',
 u'abilitati',
 u'abilităţi',
 u'ibilitate',
 u'abilităi',
 u'ivitate',
 u'ivitati',
 u'ivităţi',
...

__step2_suffixes

Suffixes to be deleted in step 2 of the algorithm.
Type:
tuple
Value:
(u'abila',
 u'abile',
 u'abili',
 u'abilă',
 u'ibila',
 u'ibile',
 u'ibili',
 u'ibilă',
...

__step3_suffixes

Suffixes to be deleted in step 3 of the algorithm.
Type:
tuple
Value:
(u'seserăţi',
 u'aserăţi',
 u'iserăţi',
 u'âserăţi',
 u'userăţi',
 u'seserăm',
 u'aserăm',
 u'iserăm',
...