public class CuratorAnnotator extends Annotator
Curator.Client's annotator. Multiple instances of
this class will be used as Annotators in CuratorAnnotatorService.
The Annotator.viewName and Annotator.requiredViews fields are defined in Curator's configuration
file (dist/configs/annotators.xml).config, isInitialized, requiredViews, viewName| Constructor and Description |
|---|
CuratorAnnotator(CuratorClient curatorClient,
String viewName,
String[] requiredViews) |
| Modifier and Type | Method and Description |
|---|---|
void |
addView(TextAnnotation ta)
create and add the view named by getViewName() to the TextAnnotation argument.
|
void |
initialize(ResourceManager rm)
noop
|
doInitialize, getRequiredViews, getTagValues, getView, getViewName, isInitialized, isSentenceLevelpublic CuratorAnnotator(CuratorClient curatorClient, String viewName, String[] requiredViews)
public void initialize(ResourceManager rm)
initialize in class Annotatorrm - configuration parameterspublic void addView(TextAnnotation ta) throws AnnotatorException
AnnotatoraddView in class Annotatorta - the TextAnnotation to modify.AnnotatorExceptionCopyright © 2017. All rights reserved.