edu.cmu.minorthird.text.learn
Class SampleFE.BagOfWordsFE

java.lang.Object
  extended by edu.cmu.minorthird.text.learn.SpanFE
      extended by edu.cmu.minorthird.text.learn.SampleFE.AnnotatedSpanFE
          extended by edu.cmu.minorthird.text.learn.SampleFE.BagOfWordsFE
All Implemented Interfaces:
MixupCompatible, SpanFeatureExtractor, java.io.Serializable
Enclosing class:
SampleFE

public static class SampleFE.BagOfWordsFE
extends SampleFE.AnnotatedSpanFE
implements java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.cmu.minorthird.text.learn.SpanFE
SpanFE.Filter, SpanFE.Function, SpanFE.Result, SpanFE.SetResult<T>, SpanFE.SpanResult, SpanFE.SpanSetResult, SpanFE.StringBagResult, SpanFE.TokenSetResult
 
Field Summary
 
Fields inherited from class edu.cmu.minorthird.text.learn.SpanFE
annotatorLoader, instance, requiredAnnotation, requiredAnnotationFileToLoad, STORE_AS_BINARY, STORE_AS_COUNTS, STORE_COMPACTLY
 
Constructor Summary
SampleFE.BagOfWordsFE()
           
 
Method Summary
 void extractFeatures(TextLabels labels, Span s)
          Implement this with a specific set of SpanFE 'pipelines'.
 
Methods inherited from class edu.cmu.minorthird.text.learn.SpanFE
emit, emit, emit, emit, extractFeatures, extractInstance, extractInstance, from, from, getAnnotationProvider, getRequiredAnnotation, requireMyAnnotation, setAnnotationProvider, setAnnotatorLoader, setFeatureStoragePolicy, setRequiredAnnotation, setRequiredAnnotation, trace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleFE.BagOfWordsFE

public SampleFE.BagOfWordsFE()
Method Detail

extractFeatures

public void extractFeatures(TextLabels labels,
                            Span s)
Description copied from class: SpanFE
Implement this with a specific set of SpanFE 'pipelines'. Each pipeline will typically start with 'start(span)' and end with 'emit()'.

Specified by:
extractFeatures in class SpanFE