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, isSentenceLevel
public 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)
Annotator
initialize
in class Annotator
rm
- configuration parameterspublic void addView(TextAnnotation record) throws AnnotatorException
Annotator
addView
in class Annotator
record
- the TextAnnotation to modify.AnnotatorException
public String getViewName()
Annotator
getViewName
in class Annotator
public String[] getRequiredViews()
AnnotatorService
to
check for pre-requisites before calling any single (external)
Annotator
.getRequiredViews
in class Annotator
ViewNames
required by
this ViewGeneratorpublic Set<String> getTagValues()
getTagValues
in class Annotator
Copyright © 2017. All rights reserved.