public class CuratorAnnotator extends Annotator
Curator.Client
's annotator. Multiple instances of
this class will be used as Annotator
s 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, isSentenceLevel
public CuratorAnnotator(CuratorClient curatorClient, String viewName, String[] requiredViews)
public void initialize(ResourceManager rm)
initialize
in class Annotator
rm
- configuration parameterspublic void addView(TextAnnotation ta) throws AnnotatorException
Annotator
addView
in class Annotator
ta
- the TextAnnotation to modify.AnnotatorException
Copyright © 2017. All rights reserved.