edu.cmu.minorthird.text.learn
Class SpanFE.StringBagResult
java.lang.Object
edu.cmu.minorthird.text.learn.SpanFE.Result
edu.cmu.minorthird.text.learn.SpanFE.SetResult<java.lang.String>
edu.cmu.minorthird.text.learn.SpanFE.StringBagResult
- Enclosing class:
- SpanFE
public static class SpanFE.StringBagResult
- extends SpanFE.SetResult<java.lang.String>
An intermediate result of a SpanFE process where the object being operated
on is a set of strings.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SpanFE.StringBagResult
public SpanFE.StringBagResult(java.lang.String[] name,
SpanFE fe,
edu.cmu.minorthird.text.learn.Bag<java.lang.String> bag)
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
trace
public SpanFE.StringBagResult trace()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
asBag
public edu.cmu.minorthird.text.learn.Bag<java.lang.String> asBag()
lc
public SpanFE.StringBagResult lc()
toConst
public SpanFE.StringBagResult toConst(java.lang.String replacement)
tr
public SpanFE.StringBagResult tr(java.lang.String regex,
java.lang.String replacement)
charTypes
public SpanFE.StringBagResult charTypes()
charTypePattern
public SpanFE.StringBagResult charTypePattern()
punk
public SpanFE.StringBagResult punk()
stopwords
public SpanFE.StringBagResult stopwords(java.lang.String action)
usewords
public SpanFE.StringBagResult usewords(java.lang.String filename)
throws java.io.IOException
- Use ONLY words in Dictionary File.
- Throws:
java.io.IOException