Package com.gengoai.hermes.annotator
Class DefaultPhraseChunkAnnotator
- java.lang.Object
-
- com.gengoai.hermes.annotator.Annotator
-
- com.gengoai.hermes.annotator.SentenceLevelAnnotator
-
- com.gengoai.hermes.annotator.DefaultPhraseChunkAnnotator
-
- All Implemented Interfaces:
Serializable
public class DefaultPhraseChunkAnnotator extends SentenceLevelAnnotator
Default Phrase Chunk annotator that use an IOBTagger.- Author:
- David B. Bracewell
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultPhraseChunkAnnotator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
annotate(Annotation sentence)
Annotates a single sentence.protected Set<AnnotatableType>
furtherRequires()
The annotation types beyond sentence and token that are also required.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, 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
-
furtherRequires
protected Set<AnnotatableType> furtherRequires()
Description copied from class:SentenceLevelAnnotator
The annotation types beyond sentence and token that are also required. By default will return an empty Set.- Overrides:
furtherRequires
in classSentenceLevelAnnotator
- Returns:
- The annotations beyond sentence and token that are required for this annotator to perform annotation
-
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
-
-