__init__.py 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. # Natural Language Toolkit: Stemmers
  2. #
  3. # Copyright (C) 2001-2020 NLTK Project
  4. # Author: Trevor Cohn <tacohn@cs.mu.oz.au>
  5. # Edward Loper <edloper@gmail.com>
  6. # Steven Bird <stevenbird1@gmail.com>
  7. # URL: <http://nltk.org/>
  8. # For license information, see LICENSE.TXT
  9. """
  10. NLTK Stemmers
  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. ``ceil-`` is not the stem of ``ceiling``).
  18. StemmerI defines a standard interface for stemmers.
  19. """
  20. from nltk.stem.api import StemmerI
  21. from nltk.stem.regexp import RegexpStemmer
  22. from nltk.stem.lancaster import LancasterStemmer
  23. from nltk.stem.isri import ISRIStemmer
  24. from nltk.stem.porter import PorterStemmer
  25. from nltk.stem.snowball import SnowballStemmer
  26. from nltk.stem.wordnet import WordNetLemmatizer
  27. from nltk.stem.rslp import RSLPStemmer
  28. from nltk.stem.cistem import Cistem