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 Details

  • Constructor Details

    • StemmerAnnotatorProvider

      public StemmerAnnotatorProvider()
  • Method Details

    • name

      public String name()
      Specified by:
      name in interface opennlp.tools.util.ext.Provider<opennlp.tools.document.DocumentAnnotator>
    • supports

      public boolean supports(opennlp.tools.util.ext.ProviderSpec spec)
      Specified by:
      supports in interface opennlp.tools.util.ext.Provider<opennlp.tools.document.DocumentAnnotator>
    • create

      public opennlp.tools.document.DocumentAnnotator create(opennlp.tools.util.ext.ProviderSpec spec)
      Specified by:
      create in interface opennlp.tools.util.ext.Provider<opennlp.tools.document.DocumentAnnotator>