public class POSAnnotator extends Annotator
config, isInitialized, requiredViews, viewName
Constructor and Description |
---|
POSAnnotator()
lazily initialize by default.
|
POSAnnotator(boolean lazilyInitialize)
Constructor allowing choice whether or not to lazily initialize.
|
Modifier and Type | Method and Description |
---|---|
void |
addView(TextAnnotation record)
annotates TextAnnotation with POS view and adds it to the TextAnnotation.
|
String |
getAnnotatorName() |
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 POSAnnotator can produce.
|
void |
initialize(ResourceManager rm)
called by superclass either on instantiation, or on first call to getView().
|
doInitialize, getView, getViewName, isInitialized, isSentenceLevel
public POSAnnotator()
public POSAnnotator(boolean lazilyInitialize)
lazilyInitialize
- if 'true', load models only on first call to
Annotator.getView(TextAnnotation)
public void initialize(ResourceManager rm)
initialize
in class Annotator
rm
- configuration parameterspublic void addView(TextAnnotation record) throws AnnotatorException
addView
in class Annotator
record
- TextAnnotation to annotateAnnotatorException
public String[] getRequiredViews()
AnnotatorService
to
check for pre-requisites before calling any single (external) Annotator
.getRequiredViews
in class Annotator
ViewNames
required by
this ViewGeneratorpublic String getAnnotatorName()
public Set<String> getTagValues()
getTagValues
in class Annotator
Copyright © 2017. All rights reserved.