Package com.gengoai.hermes.annotator
Class DefaultPartOfSpeechAnnotator
- java.lang.Object
-
- com.gengoai.hermes.annotator.Annotator
-
- com.gengoai.hermes.annotator.SentenceLevelAnnotator
-
- com.gengoai.hermes.annotator.DefaultPartOfSpeechAnnotator
-
- All Implemented Interfaces:
Serializable
public class DefaultPartOfSpeechAnnotator extends SentenceLevelAnnotator
Default Part-of-Speech annotator that uses aPOSTagger
machine learning model.- Author:
- David B. Bracewell
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultPartOfSpeechAnnotator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
annotate(Annotation sentence)
Annotates a single sentence.String
getProvider(Language language)
Gets the provider information for this annotator..Set<AnnotatableType>
satisfies()
The set of annotation types that this annotator satisfies by this annotator-
Methods inherited from class com.gengoai.hermes.annotator.SentenceLevelAnnotator
annotateImpl, furtherRequires, requires
-
-
-
-
Method Detail
-
annotate
protected void annotate(Annotation sentence)
Description copied from class:SentenceLevelAnnotator
Annotates a single sentence.- Specified by:
annotate
in classSentenceLevelAnnotator
- Parameters:
sentence
- The sentence to annotate
-
getProvider
public String getProvider(Language language)
Description copied from class:Annotator
Gets the provider information for this annotator.. The provider information should relate to a version number, model used, or something else to identify the settings of the annotator.- Overrides:
getProvider
in classAnnotator
- Returns:
- the provider
-
satisfies
public Set<AnnotatableType> satisfies()
Description copied from class:Annotator
The set of annotation types that this annotator satisfies by this annotator
-
-