edu.cmu.minorthird.classify.transform
Class TFIDFTransformLearner

java.lang.Object
  extended by edu.cmu.minorthird.classify.transform.TFIDFTransformLearner
All Implemented Interfaces:
InstanceTransformLearner, java.io.Serializable

public class TFIDFTransformLearner
extends java.lang.Object
implements InstanceTransformLearner, java.io.Serializable

Replaces feature counts by a TFIDF version of counts.

Author:
William Cohen
See Also:
Serialized Form

Constructor Summary
TFIDFTransformLearner()
           
 
Method Summary
 InstanceTransform batchTrain(Dataset dataset)
          Examine data, build an instance transformer
 void setSchema(ExampleSchema schema)
          The schema's not used here...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TFIDFTransformLearner

public TFIDFTransformLearner()
Method Detail

setSchema

public void setSchema(ExampleSchema schema)
The schema's not used here...

Specified by:
setSchema in interface InstanceTransformLearner

batchTrain

public InstanceTransform batchTrain(Dataset dataset)
Description copied from interface: InstanceTransformLearner
Examine data, build an instance transformer

Specified by:
batchTrain in interface InstanceTransformLearner