public class PrepSRLAnnotator extends Annotator
Annotator that adds a TokenLabelView for Prepositional SRL. This consists of
role information for each preposition (e.g. Location, Instrument, etc) and (syntactic) argument
information (governor, object) to the syntactic heads of the governing and object phrases of the
preposition respectively.config, isInitialized, requiredViews, viewName| Constructor and Description |
|---|
PrepSRLAnnotator()
default: don't use lazy initialization
|
PrepSRLAnnotator(boolean lazilyInitialize)
Constructor parameter allows user to specify whether or not to lazily initialize.
|
PrepSRLAnnotator(boolean lazilyInitialize,
ResourceManager rm) |
| Modifier and Type | Method and Description |
|---|---|
protected 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 PrepSRLAnnotator()
public PrepSRLAnnotator(boolean lazilyInitialize)
lazilyInitialize - If set to 'true', models will not be loaded until first call
requiring Chunker annotation.public PrepSRLAnnotator(boolean lazilyInitialize,
ResourceManager rm)
public void initialize(ResourceManager rm)
Annotatorinitialize in class Annotatorrm - configuration parametersprotected void addView(TextAnnotation ta) throws AnnotatorException
AnnotatoraddView in class Annotatorta - the TextAnnotation to modify.AnnotatorExceptionCopyright © 2017. All rights reserved.