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

java.lang.Object
  extended by edu.cmu.minorthird.text.learn.SpanFE.Result
      extended by edu.cmu.minorthird.text.learn.SpanFE.SetResult<java.lang.String>
          extended by 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.


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.StringBagResult(java.lang.String[] name, SpanFE fe, edu.cmu.minorthird.text.learn.Bag<java.lang.String> bag)
           
 
Method Summary
 edu.cmu.minorthird.text.learn.Bag<java.lang.String> asBag()
           
 SpanFE.StringBagResult charTypePattern()
           
 SpanFE.StringBagResult charTypes()
           
 void emit()
          Terminates a feature extraction pipeline by actually emitting features.
 SpanFE.StringBagResult lc()
           
 SpanFE.StringBagResult punk()
           
 SpanFE.StringBagResult stopwords(java.lang.String action)
           
 SpanFE.StringBagResult toConst(java.lang.String replacement)
           
 java.lang.String toString()
           
 SpanFE.StringBagResult tr(java.lang.String regex, java.lang.String replacement)
           
 SpanFE.StringBagResult trace()
           
 SpanFE.StringBagResult usewords(java.lang.String filename)
          Use ONLY words in Dictionary File.
 
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.StringBagResult

public SpanFE.StringBagResult(java.lang.String[] name,
                              SpanFE fe,
                              edu.cmu.minorthird.text.learn.Bag<java.lang.String> bag)
Method Detail

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