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

type PorterStemmer

source code

          object --+        
                   |        
        api.StemmerI --+    
                       |    
_LanguageSpecificStemmer --+
                           |
          object --+       |
                   |       |
        api.StemmerI --+   |
                       |   |
    porter.PorterStemmer --+
                           |
                          PorterStemmer


A word stemmer based on the original Porter stemming algorithm.

    Porter, M. "An algorithm for suffix stripping."
    Program 14.3 (1980): 130-137.

A few minor modifications have been made to Porter's basic
algorithm.  See the source code of the module 
L{nltk.stem.porter} for more information.

Instance Methods [hide private]
 
__init__(self, ignore_stopwords=False)
Create an instance of the Snowball stemmer.
source code

Inherited from _LanguageSpecificStemmer: __repr__

Inherited from porter.PorterStemmer: adjust_case, cons, cvc, doublec, ends, m, r, setto, stem, stem_word, step1ab, step1c, step2, step3, step4, step5, vowelinstem

Method Details [hide private]

__init__(self, ignore_stopwords=False)
(Constructor)

source code 

Create an instance of the Snowball stemmer.

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