public class MentionAnnotator extends Annotator
config, isInitialized, requiredViews, viewName| Constructor and Description |
|---|
MentionAnnotator()
By default, the initializer set mode to "ACE_NONTYPE"
|
MentionAnnotator(boolean lazilyInitialize,
String mode) |
MentionAnnotator(String mode) |
| 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 MentionAnnotator()
public MentionAnnotator(String mode)
mode - Indicates the model expected to lead
"ACE_NONTYPE" -> model trained on ACE without EntityType
"ACE_TYPE" -> model trained on ACE with EntityType
"ERE_NONTYPE" -> model trained on ERE without EntityType
"ERE_TYPE" -> model trained on ERE with EntityTypepublic MentionAnnotator(boolean lazilyInitialize,
String mode)
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.