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, isSentenceLevel
public 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)
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.