edu.cmu.minorthird.text.learn
Class NameMatcher
java.lang.Object
edu.cmu.minorthird.text.AbstractAnnotator
edu.cmu.minorthird.text.learn.NameMatcher
- All Implemented Interfaces:
- Annotator
public class NameMatcher
- extends AbstractAnnotator
A name matching scheme on top of a given extractor, fit for spanTypes
depicting personal names. This class applies a given annotator. Then, it uses
the output extractor's dictionary of predicted names and over-rides some of
the original predictions, using the NameMatcher scheme. This procedure
increases recall, at low cost of precision.
- Author:
- Richard Wang, edited by Einat Minkov
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameMatcher
public NameMatcher(java.lang.String spanType)
NameMatcher
public NameMatcher()
getSpanType
public java.lang.String getSpanType()
setSpanType
public void setSpanType(java.lang.String spanType)
doAnnotate
protected void doAnnotate(MonotonicTextLabels labels)
- Description copied from class:
AbstractAnnotator
- The implementation for this method annotates labels in-line.
- Specified by:
doAnnotate
in class AbstractAnnotator
explainAnnotation
public java.lang.String explainAnnotation(TextLabels labels,
Span span)
- Description copied from class:
AbstractAnnotator
- The implementation for this method should explain how annotation
would be added to some part of the text base.
- Specified by:
explainAnnotation
in interface Annotator
- Specified by:
explainAnnotation
in class AbstractAnnotator
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Throws:
java.io.IOException