edu.cmu.minorthird.text.learn
Class FilteredFinder

java.lang.Object
  extended by edu.cmu.minorthird.text.AbstractSpanFinder
      extended by 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

Constructor Summary
FilteredFinder(BinaryClassifier spanFilter, SpanFeatureExtractor fe, SpanFinder candidateFinder)
           
 
Method Summary
 java.lang.String explainFindSpans(TextLabels labels, Span documentSpan)
          Explain how spans were found.
 java.util.Iterator<Span> findSpans(TextLabels labels, Span documentSpan)
          Find subspans of the given document span.
 Details getDetails(Span s)
          Return 'details' about some span found by the previous call to findSpans(Span documentSpan).
 java.lang.String toString()
           
 
Methods inherited from class edu.cmu.minorthird.text.AbstractSpanFinder
findSpans
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilteredFinder

public FilteredFinder(BinaryClassifier spanFilter,
                      SpanFeatureExtractor fe,
                      SpanFinder candidateFinder)
Method Detail

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