public class DepAnnotator extends Annotator
config, isInitialized, requiredViews, viewName
Constructor and Description |
---|
DepAnnotator()
default: don't use lazy initialization
|
DepAnnotator(boolean lazilyInitialize)
Constructor parameter allows user to specify whether or not to lazily initialize.
|
DepAnnotator(boolean lazilyInitialize,
ResourceManager rm) |
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)
Derived classes use this to load memory- or time-consuming resources.
|
doInitialize, getRequiredViews, getTagValues, getView, getViewName, isInitialized, isSentenceLevel
public DepAnnotator()
public DepAnnotator(boolean lazilyInitialize)
lazilyInitialize
- If set to 'true', models will not be loaded until first call
requiring Chunker annotation.public DepAnnotator(boolean lazilyInitialize, ResourceManager rm)
public void initialize(ResourceManager rm)
Annotator
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.