edu.cmu.minorthird.text.learn
Class SpanFE.SetResult<T>

java.lang.Object
  extended by edu.cmu.minorthird.text.learn.SpanFE.Result
      extended by edu.cmu.minorthird.text.learn.SpanFE.SetResult<T>
Direct Known Subclasses:
SpanFE.SpanSetResult, SpanFE.StringBagResult, SpanFE.TokenSetResult
Enclosing class:
SpanFE

public abstract static class SpanFE.SetResult<T>
extends SpanFE.Result

An intermediate result of a SpanFE process where the object being operated on is a Set of something.


Field Summary
protected  java.util.SortedSet<T> set
           
 
Fields inherited from class edu.cmu.minorthird.text.learn.SpanFE.Result
fe, name
 
Constructor Summary
SpanFE.SetResult(java.lang.String[] name, SpanFE fe, java.util.SortedSet<T> set)
           
 
Method Summary
protected  java.util.SortedSet<T> applyFilter(SpanFE.Filter f)
          Filter the set using a user-defined filter.
 java.util.Set<T> asSet()
          Convert to a plain old set.
protected  java.util.SortedSet<T> mapFunction(SpanFE.Function f)
          Modify each element in the set using a user-defined function.
 
Methods inherited from class edu.cmu.minorthird.text.learn.SpanFE.Result
doTrace, emit, extend, extend, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

set

protected java.util.SortedSet<T> set
Constructor Detail

SpanFE.SetResult

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

asSet

public java.util.Set<T> asSet()
Convert to a plain old set.


applyFilter

protected java.util.SortedSet<T> applyFilter(SpanFE.Filter f)
Filter the set using a user-defined filter.


mapFunction

protected java.util.SortedSet<T> mapFunction(SpanFE.Function f)
Modify each element in the set using a user-defined function.