Package nltk :: Package stem :: Module wordnet :: Class WordnetStemmer
[hide private]
[frames] | no frames]

Class WordnetStemmer

source code

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

A stemmer that uses Wordnet's built-in morphy function.

Instance Methods [hide private]
 
__init__(self)
Create a new wordnet stemmer.
source code
 
stem(self, word)
Strip affixes from the token and return the stem.
source code
 
__repr__(self)
repr(x)
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Create a new wordnet stemmer.

Overrides: object.__init__

stem(self, word)

source code 

Strip affixes from the token and return the stem.

Parameters:
  • token - The token that should be stemmed.
Overrides: api.StemmerI.stem
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)