Package opennlp.tools.stemmer
package opennlp.tools.stemmer
-
ClassDescriptionA
Stemmerthat memoizes word-to-stem mappings in a bounded per-thread LRU cache.Shared plumbing forStemmerwrappers that route each call to a per-thread payload minted from aStemmerFactory, following theOwnerOrPerThreadStatepattern of the thread-safe*MEcomponents.AStemmer, implementing the Porter Stemming AlgorithmA thread-safe factory forPorterStemmerinstances.AStemmerthat is safe to share across threads by routing each call to a per-thread delegate minted from aStemmerFactory.Reduces a word to its root form.Adapts aStemmerto the document pipeline: stems the token layer and providesStemmerAnnotator.STEMS, one annotation per token on the token's span.Provides aStemmerAnnotatorunder the name "stemmer".A factory that captures a stemmer configuration and creates configuredStemmerinstances on demand.