edu.cmu.minorthird.text.learn
Class SpanFE.TokenSetResult
java.lang.Object
edu.cmu.minorthird.text.learn.SpanFE.Result
edu.cmu.minorthird.text.learn.SpanFE.SetResult<Token>
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SpanFE.TokenSetResult
public SpanFE.TokenSetResult(java.lang.String[] name,
SpanFE fe,
java.util.SortedSet<Token> set)
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.