public class ChunkerAnnotator extends Annotator
config, isInitialized, requiredViews, viewName| Constructor and Description |
|---|
ChunkerAnnotator()
default: don't use lazy initialization
|
ChunkerAnnotator(boolean lazilyInitialize)
Constructor parameter allows user to specify whether or not to lazily initialize.
|
ChunkerAnnotator(boolean lazilyInitialize,
ResourceManager rm) |
| Modifier and Type | Method and Description |
|---|---|
void |
addView(TextAnnotation record)
create and add the view named by getViewName() to the TextAnnotation argument.
|
String[] |
getRequiredViews()
Can be used internally by
AnnotatorService to
check for pre-requisites before calling any single (external)
Annotator. |
Set<String> |
getTagValues()
Return possible tag values that the ChunkerAnnotator can produce.
|
String |
getViewName()
return the name of the View created by this Annotator
|
void |
initialize(ResourceManager rm)
Derived classes use this to load memory- or time-consuming resources.
|
doInitialize, getView, isInitialized, isSentenceLevelpublic ChunkerAnnotator()
public ChunkerAnnotator(boolean lazilyInitialize)
lazilyInitialize - If set to 'true', models will not be loaded until first call
requiring Chunker annotation.public ChunkerAnnotator(boolean lazilyInitialize,
ResourceManager rm)
public void initialize(ResourceManager rm)
Annotatorinitialize in class Annotatorrm - configuration parameterspublic void addView(TextAnnotation record) throws AnnotatorException
AnnotatoraddView in class Annotatorrecord - the TextAnnotation to modify.AnnotatorExceptionpublic String getViewName()
AnnotatorgetViewName in class Annotatorpublic String[] getRequiredViews()
AnnotatorService to
check for pre-requisites before calling any single (external)
Annotator.getRequiredViews in class AnnotatorViewNames required by
this ViewGeneratorpublic Set<String> getTagValues()
getTagValues in class AnnotatorCopyright © 2017. All rights reserved.