edu.cmu.minorthird.text.learn
Class SpanFE.SpanSetResult

java.lang.Object
  extended by edu.cmu.minorthird.text.learn.SpanFE.Result
      extended by edu.cmu.minorthird.text.learn.SpanFE.SetResult<Span>
          extended by edu.cmu.minorthird.text.learn.SpanFE.SpanSetResult
Enclosing class:
SpanFE

public static class SpanFE.SpanSetResult
extends SpanFE.SetResult<Span>

An intermediate result of a SpanFE process where the object being operated on is a set of spans.


Field Summary
 
Fields inherited from class edu.cmu.minorthird.text.learn.SpanFE.SetResult
set
 
Fields inherited from class edu.cmu.minorthird.text.learn.SpanFE.Result
fe, name
 
Constructor Summary
SpanFE.SpanSetResult(java.lang.String[] name, SpanFE fe, java.util.SortedSet<Span> set)
           
 
Method Summary
 void emit()
          Terminates a feature extraction pipeline by actually emitting features.
 SpanFE.StringBagResult eq()
          Move a set of all string values of spans in the set
 SpanFE.SpanSetResult filter(SpanFE.Filter f)
          Filter out spans that don't match the filter.
 SpanFE.SpanSetResult first()
          Move to the first span in the set.
 SpanFE.SpanSetResult last()
          Move to the last span in the set.
 SpanFE.SpanSetResult map(SpanFE.Function f)
           
 SpanFE.TokenSetResult tokens()
          Find the set of all tokens contained by any span in the set.
 java.lang.String toString()
           
 SpanFE.SpanSetResult trace()
           
 
Methods inherited from class edu.cmu.minorthird.text.learn.SpanFE.SetResult
applyFilter, asSet, mapFunction
 
Methods inherited from class edu.cmu.minorthird.text.learn.SpanFE.Result
doTrace, extend, extend, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpanFE.SpanSetResult

public SpanFE.SpanSetResult(java.lang.String[] name,
                            SpanFE fe,
                            java.util.SortedSet<Span> set)
Method Detail

trace

public SpanFE.SpanSetResult trace()

emit

public void emit()
Description copied from class: SpanFE.Result
Terminates a feature extraction pipeline by actually emitting features.

Specified by:
emit in class SpanFE.Result

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

first

public SpanFE.SpanSetResult first()
Move to the first span in the set.


last

public SpanFE.SpanSetResult last()
Move to the last span in the set.


tokens

public SpanFE.TokenSetResult tokens()
Find the set of all tokens contained by any span in the set.


eq

public SpanFE.StringBagResult eq()
Move a set of all string values of spans in the set


filter

public SpanFE.SpanSetResult filter(SpanFE.Filter f)
Filter out spans that don't match the filter.


map

public SpanFE.SpanSetResult map(SpanFE.Function f)