Class StemmerAnnotatorProvider
java.lang.Object
opennlp.tools.stemmer.StemmerAnnotatorProvider
- All Implemented Interfaces:
opennlp.tools.document.DocumentAnnotatorProvider, opennlp.tools.util.ext.Provider<opennlp.tools.document.DocumentAnnotator>
public final class StemmerAnnotatorProvider
extends Object
implements opennlp.tools.document.DocumentAnnotatorProvider
Provides a
StemmerAnnotator under the name "stemmer". It supports a spec without
location whose only option is "algorithm": "porter" or absent for the
PorterStemmer, otherwise the name of a SnowballStemmer.ALGORITHM. Values are
compared ignoring case, so "porter" always means the PorterStemmer and the
Snowball algorithm of that name is not reachable through this provider.- Since:
- 3.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe option that names the stemming algorithm.static final StringThe name of this provider.static final StringThe "algorithm" value for thePorterStemmer. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface opennlp.tools.util.ext.Provider
isAvailable, priority
-
Field Details
-
NAME
-
ALGORITHM_OPTION
-
PORTER
-
-
Constructor Details
-
StemmerAnnotatorProvider
public StemmerAnnotatorProvider()
-
-
Method Details
-
name
- Specified by:
namein interfaceopennlp.tools.util.ext.Provider<opennlp.tools.document.DocumentAnnotator>
-
supports
public boolean supports(opennlp.tools.util.ext.ProviderSpec spec) - Specified by:
supportsin interfaceopennlp.tools.util.ext.Provider<opennlp.tools.document.DocumentAnnotator>
-
create
public opennlp.tools.document.DocumentAnnotator create(opennlp.tools.util.ext.ProviderSpec spec) - Specified by:
createin interfaceopennlp.tools.util.ext.Provider<opennlp.tools.document.DocumentAnnotator>
-