edu.cmu.minorthird.classify
Class SGMFeatureFactory

java.lang.Object
  extended by edu.cmu.minorthird.classify.FeatureFactory
      extended by edu.cmu.minorthird.classify.SGMFeatureFactory
All Implemented Interfaces:
java.io.Serializable

public class SGMFeatureFactory
extends FeatureFactory

For Stacked Graphical Learning. Creates Features, and maintains a mapping between Features and numeric ids. Also ensures that only a single feature instance exists with a particular name. Add the ExampleID when creating new SGMExample.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.cmu.minorthird.classify.FeatureFactory
FeatureFactory.CompactInstance
 
Constructor Summary
SGMFeatureFactory()
           
 
Method Summary
 SGMExample compressSGM(SGMExample example)
          Return a version of the example in which all features have been translated to canonical versions from the feature factory.
 
Methods inherited from class edu.cmu.minorthird.classify.FeatureFactory
compress, compress, compress, contains, getFeature, getFeature, getFeature, getFeature, getID, getMaxFeatureIndex, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SGMFeatureFactory

public SGMFeatureFactory()
Method Detail

compressSGM

public SGMExample compressSGM(SGMExample example)
Return a version of the example in which all features have been translated to canonical versions from the feature factory.