cc.mallet.pipe
Class AugmentableFeatureVectorLogScale

java.lang.Object
  extended by cc.mallet.pipe.Pipe
      extended by cc.mallet.pipe.AugmentableFeatureVectorLogScale
All Implemented Interfaces:
AlphabetCarrying, java.io.Serializable

public class AugmentableFeatureVectorLogScale
extends Pipe

Given an AugmentableFeatureVector, set those values greater than or equal to 1 to log(value)+1. This is useful when multiple counts should not be treated as independent evidence.

See Also:
Serialized Form

Constructor Summary
AugmentableFeatureVectorLogScale()
           
 
Method Summary
 Instance pipe(Instance carrier)
          Really this should be 'protected', but isn't for historical reasons.
 
Methods inherited from class cc.mallet.pipe.Pipe
alphabetsMatch, getAlphabet, getAlphabets, getDataAlphabet, getInstanceId, getTargetAlphabet, instanceFrom, instancesFrom, instancesFrom, isDataAlphabetSet, isTargetProcessing, newIteratorFrom, preceedingPipeDataAlphabetNotification, preceedingPipeTargetAlphabetNotification, precondition, readResolve, setDataAlphabet, setOrCheckDataAlphabet, setOrCheckTargetAlphabet, setTargetAlphabet, setTargetProcessing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AugmentableFeatureVectorLogScale

public AugmentableFeatureVectorLogScale()
Method Detail

pipe

public Instance pipe(Instance carrier)
Description copied from class: Pipe
Really this should be 'protected', but isn't for historical reasons.

Overrides:
pipe in class Pipe