Package nltk :: Package stem :: Module api
[hide private]
[frames] | no frames]

Source Code for Module nltk.stem.api

 1  # Natural Language Toolkit: Stemmer Interface 
 2  # 
 3  # Copyright (C) 2001-2008 NLTK Project 
 4  # Author: Trevor Cohn <[email protected]> 
 5  #         Edward Loper <[email protected]> 
 6  #         Steven Bird <[email protected]> 
 7  # URL: <http://nltk.org> 
 8  # For license information, see LICENSE.TXT 
 9   
10 -class StemmerI(object):
11 """ 12 A processing interface for removing morphological affixes from 13 words. This process is known as X{stemming}. 14 15 """
16 - def stem(self, token):
17 """ 18 Strip affixes from the token and return the stem. 19 20 @param token: The token that should be stemmed. 21 @type token: C{str} 22 """ 23 raise NotImplementedError()
24