edu.cmu.minorthird.text
Class MixupFinder

java.lang.Object
  extended by edu.cmu.minorthird.text.MixupFinder
All Implemented Interfaces:
SpanFinder, java.io.Serializable

public class MixupFinder
extends java.lang.Object
implements SpanFinder, java.io.Serializable

Finds spans using a mixup expression evaluated in a fixed labeling.

Author:
William Cohen
See Also:
Serialized Form

Constructor Summary
MixupFinder(Mixup mixup)
           
 
Method Summary
 java.lang.String explainFindSpans(TextLabels labels, Span documentSpan)
          Explain how spans were found.
 java.util.Iterator<Span> findSpans(TextLabels labels, java.util.Iterator<Span> documentSpanLooper)
          Find subspans of each span produced by the documentSpanLooper.
 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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MixupFinder

public MixupFinder(Mixup mixup)
Method Detail

findSpans

public java.util.Iterator<Span> findSpans(TextLabels labels,
                                          java.util.Iterator<Span> documentSpanLooper)
Description copied from interface: SpanFinder
Find subspans of each span produced by the documentSpanLooper.

Specified by:
findSpans in interface SpanFinder

findSpans

public java.util.Iterator<Span> findSpans(TextLabels labels,
                                          Span documentSpan)
Description copied from interface: SpanFinder
Find subspans of the given document span.

Specified by:
findSpans in interface SpanFinder

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

explainFindSpans

public java.lang.String explainFindSpans(TextLabels labels,
                                         Span documentSpan)
Description copied from interface: SpanFinder
Explain how spans were found.

Specified by:
explainFindSpans in interface SpanFinder