edu.cmu.minorthird.text
Class SpanDifference.Looper
java.lang.Object
edu.cmu.minorthird.text.SpanDifference.Looper
- All Implemented Interfaces:
- java.util.Iterator<Span>
- Enclosing class:
- SpanDifference
public static class SpanDifference.Looper
- extends java.lang.Object
- implements java.util.Iterator<Span>
A Span.Looper which also passes out two additional types
of information about each returned span s:
- if s is a FALSE_POS, FALSE_NEG, or TRUE_POS,
relative to the original spans.
- the true span and/or guess spans associated with s.
Constructor Summary |
SpanDifference.Looper(java.util.Collection<edu.cmu.minorthird.text.SpanDifference.DiffedSpan> c)
|
SpanDifference.Looper(java.util.Iterator<edu.cmu.minorthird.text.SpanDifference.DiffedSpan> i)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpanDifference.Looper
public SpanDifference.Looper(java.util.Collection<edu.cmu.minorthird.text.SpanDifference.DiffedSpan> c)
SpanDifference.Looper
public SpanDifference.Looper(java.util.Iterator<edu.cmu.minorthird.text.SpanDifference.DiffedSpan> i)
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator<Span>
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator<Span>
next
public Span next()
- Specified by:
next
in interface java.util.Iterator<Span>
getStatus
public int getStatus()
- Return status of the last span returned - does it indicate a false positive,
false negative, or true positive area?
getOriginalGuessSpan
public Span getOriginalGuessSpan()
- Guess span that support this difference.
estimatedSize
public int estimatedSize()