|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.pipe.Pipe cc.mallet.pipe.Csv2FeatureVector
public class Csv2FeatureVector
Converts a string of the form feature_1:val_1 feature_2:val_2 ... feature_k:val_k into a (sparse) FeatureVector. Features with no ":" character are assumed to have value 1.0.
Constructor Summary | |
---|---|
Csv2FeatureVector()
|
|
Csv2FeatureVector(int capacity)
|
Method Summary | |
---|---|
Instance |
pipe(Instance carrier)
Convert the data in the given Instance from a CharSequence of sparse feature-value pairs to a FeatureVector |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Csv2FeatureVector(int capacity)
public Csv2FeatureVector()
Method Detail |
---|
public Instance pipe(Instance carrier)
pipe
in class Pipe
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |