Package nltk :: Package stem :: Module snowball2 :: Class _LanguageSpecificStemmer
[hide private]
[frames] | no frames]

type _LanguageSpecificStemmer

source code

  object --+    
           |    
api.StemmerI --+
               |
              _LanguageSpecificStemmer
Known Subclasses:

This helper subclass offers the possibility to invoke a specific stemmer directly. This is useful if you already know the language to be stemmed at runtime.

Instance Methods [hide private]
 
__init__(self, ignore_stopwords=False)
Create an instance of the Snowball stemmer.
source code
 
__repr__(self)
Print out the string representation of the respective class.
source code

Inherited from api.StemmerI: stem

Method Details [hide private]

__init__(self, ignore_stopwords=False)
(Constructor)

source code 

Create an instance of the Snowball stemmer.

Parameters:
  • ignore_stopwords (bool) - If set to True, stopwords are not stemmed and returned unchanged. Set to False by default.
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

Print out the string representation of the respective class.

Overrides: object.__repr__