Package com.basistech.rosette.dm.util
Class WholeDocumentLanguageDispatchAnnotator
java.lang.Object
com.basistech.rosette.dm.util.WholeDocumentLanguageDispatchAnnotator
- All Implemented Interfaces:
Annotator
An annotator that delegates to one of a collection of per-language annotators.
This picks the annotator based on the first detected language, and has no provision
to dispatch 'other' languages as if they are unknown. If the best detected
language is not in the map, this throws
RosetteUnsupportedLanguageException
.-
Method Summary
Modifier and TypeMethodDescriptionannotate
(AnnotatedText input) Annotates an existing text object with additional attributes.annotate
(CharSequence input) Annotates raw text with attributes.
-
Method Details
-
annotate
Description copied from interface:Annotator
Annotates raw text with attributes. For example, a base linguistics annotator may accept raw text and annotate it with token attributes. -
annotate
Description copied from interface:Annotator
Annotates an existing text object with additional attributes. For example, an entity annotator may take the output of a base linguistics annotator (which has token annotations) and add additional entities attributes.
-