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

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

public static class SpanFE.TokenSetResult
extends SpanFE.SetResult<Token>

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


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.TokenSetResult(java.lang.String[] name, SpanFE fe, java.util.SortedSet<Token> set)
           
 
Method Summary
 void emit()
          Terminates a feature extraction pipeline by actually emitting features.
 SpanFE.StringBagResult eq()
          Find all values of a token in this set.
 SpanFE.TokenSetResult hasProp(java.lang.String property)
          Filter out tokens that have some property set to a non-null value.
 SpanFE.TokenSetResult hasProp(java.lang.String property, java.lang.String targetValue)
          Filter out tokens that have a property set to some particular value.
 SpanFE.StringBagResult prop(java.lang.String property)
          Find the value of some given property.
 java.lang.String toString()
           
 SpanFE.TokenSetResult 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.TokenSetResult

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

trace

public SpanFE.TokenSetResult 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

eq

public SpanFE.StringBagResult eq()
Find all values of a token in this set.


prop

public SpanFE.StringBagResult prop(java.lang.String property)
Find the value of some given property.


hasProp

public SpanFE.TokenSetResult hasProp(java.lang.String property)
Filter out tokens that have some property set to a non-null value.


hasProp

public SpanFE.TokenSetResult hasProp(java.lang.String property,
                                     java.lang.String targetValue)
Filter out tokens that have a property set to some particular value. A targetValue of 'null' will filter out tokens with null values of the property.