edu.cmu.minorthird.text
Class AbstractSpanFinder

java.lang.Object
  extended by edu.cmu.minorthird.text.AbstractSpanFinder
All Implemented Interfaces:
SpanFinder
Direct Known Subclasses:
FilteredFinder

public abstract class AbstractSpanFinder
extends java.lang.Object
implements SpanFinder

Abstract implementation of a SpanFinder.

Author:
William Cohen

Constructor Summary
AbstractSpanFinder()
           
 
Method Summary
abstract  java.lang.String explainFindSpans(TextLabels labels, Span documentSpan)
          Explain how spans were found.
 java.util.Iterator<Span> findSpans(TextLabels labels, java.util.Iterator<Span> documentSpanIterator)
          Find subspans of each span produced by the documentSpanIterator.
abstract  java.util.Iterator<Span> findSpans(TextLabels labels, Span documentSpan)
          Find subspans of the given document span.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.cmu.minorthird.text.SpanFinder
getDetails
 

Constructor Detail

AbstractSpanFinder

public AbstractSpanFinder()
Method Detail

findSpans

public final java.util.Iterator<Span> findSpans(TextLabels labels,
                                                java.util.Iterator<Span> documentSpanIterator)
Find subspans of each span produced by the documentSpanIterator.

Specified by:
findSpans in interface SpanFinder

findSpans

public abstract java.util.Iterator<Span> findSpans(TextLabels labels,
                                                   Span documentSpan)
Find subspans of the given document span.

Specified by:
findSpans in interface SpanFinder

explainFindSpans

public abstract java.lang.String explainFindSpans(TextLabels labels,
                                                  Span documentSpan)
Explain how spans were found.

Specified by:
explainFindSpans in interface SpanFinder