lingscope.algorithms
Class NegexAnnotator
java.lang.Object
lingscope.algorithms.Annotator
lingscope.algorithms.NegexAnnotator
- Direct Known Subclasses:
- NegexCueAnnotator, NegexScopeAnnotator
public abstract class NegexAnnotator
- extends Annotator
Annotates negation using Negex
Field Summary |
protected GenNegEx |
negex
|
protected java.util.ArrayList<java.lang.String> |
rules
|
Constructor Summary |
NegexAnnotator(java.lang.String beginTag,
java.lang.String interTag,
java.lang.String otherTag)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
negex
protected GenNegEx negex
rules
protected java.util.ArrayList<java.lang.String> rules
NegexAnnotator
public NegexAnnotator(java.lang.String beginTag,
java.lang.String interTag,
java.lang.String otherTag)
serializeAnnotator
public void serializeAnnotator(java.lang.String trainingFile,
java.lang.String modelFile)
- Specified by:
serializeAnnotator
in class Annotator
loadAnnotator
public void loadAnnotator(java.lang.String modelFile)
- Specified by:
loadAnnotator
in class Annotator