edu.cmu.minorthird.text
Class AbstractSpanFinder
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSpanFinder
public AbstractSpanFinder()
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