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, isSentenceLevelpublic 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)
Annotatorinitialize in class Annotatorrm - configuration parameterspublic void addView(TextAnnotation ta) throws AnnotatorException
AnnotatoraddView in class Annotatorta - the TextAnnotation to modify.AnnotatorExceptionCopyright © 2017. All rights reserved.