1
2
3
4
5
6
7
8
9
10 """
11 Interfaces used to remove morphological affixes from words, leaving
12 only the word stem. Stemming algorithms aim to remove those affixes
13 required for eg. grammatical role, tense, derivational morphology
14 leaving only the stem of the word. This is a difficult problem due to
15 irregular words (eg. common verbs in English), complicated
16 morphological rules, and part-of-speech and sense ambiguities
17 (eg. C{ceil-} is not the stem of C{ceiling}).
18
19 C{StemmerI} defines a standard interface for stemmers.
20 """
21
22 from api import *
23 from regexp import *
24 from porter import *
25 from lancaster import *
26 from wordnet import *
27 from rslp import *
28
29 __all__ = [
30
31 'StemmerI',
32
33
34 'RegexpStemmer', 'PorterStemmer', 'LancasterStemmer',
35 'WordnetStemmer', 'RSLPStemmer'
36 ]
37
38
39
40
41 from nltk.internals import Deprecated
42 -class StemI(StemmerI, Deprecated):
43 """Use nltk.StemmerI instead."""
44 -class Regexp(RegexpStemmer, Deprecated):
45 """Use nltk.RegexpStemmer instead."""
46 -class Porter(PorterStemmer, Deprecated):
47 """Use nltk.PorterStemmer instead."""
48 -class Lancaster(LancasterStemmer, Deprecated):
49 """Use nltk.LancasterStemmer instead."""
50 -class Wordnet(WordnetStemmer, Deprecated):
51 """Use nltk.WordnetStemmer instead."""
52