edu.cmu.minorthird.text.learn
Class FilteredFinder
java.lang.Object
edu.cmu.minorthird.text.AbstractSpanFinder
edu.cmu.minorthird.text.learn.FilteredFinder
- All Implemented Interfaces:
- SpanFinder, java.io.Serializable
public class FilteredFinder
- extends AbstractSpanFinder
- implements java.io.Serializable
Finds spans by filtering a list of proposed candidates with a classifier.
- Author:
- William Cohen
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FilteredFinder
public FilteredFinder(BinaryClassifier spanFilter,
SpanFeatureExtractor fe,
SpanFinder candidateFinder)
findSpans
public java.util.Iterator<Span> findSpans(TextLabels labels,
Span documentSpan)
- Description copied from class:
AbstractSpanFinder
- Find subspans of the given document span.
- Specified by:
findSpans
in interface SpanFinder
- Specified by:
findSpans
in class AbstractSpanFinder
getDetails
public Details getDetails(Span s)
- Description copied from interface:
SpanFinder
- Return 'details' about some span found by the previous
call to findSpans(Span documentSpan).
- Specified by:
getDetails
in interface SpanFinder
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
explainFindSpans
public java.lang.String explainFindSpans(TextLabels labels,
Span documentSpan)
- Description copied from class:
AbstractSpanFinder
- Explain how spans were found.
- Specified by:
explainFindSpans
in interface SpanFinder
- Specified by:
explainFindSpans
in class AbstractSpanFinder