|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umass.cs.mallet.base.pipe.Pipe
edu.umass.cs.mallet.base.pipe.Csv2FeatureVector
Converts a string of the form feature_1:val_1 feature_2:val_2 ... feature_k:val_k into a (sparse) FeatureVector.
| 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 edu.umass.cs.mallet.base.pipe.Pipe |
getDataAlphabet, getInstanceId, getParent, getParentRoot, getTargetAlphabet, isDataAlphabetSet, isTargetProcessing, pipe, readResolve, resolveDataAlphabet, resolveTargetAlphabet, setDataAlphabet, setParent, setTargetAlphabet, setTargetProcessing |
| 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)
throws java.lang.IllegalStateException
pipe in class Pipecarrier - Instance to be processed.
java.lang.IllegalStateException - If Instance.getTarget() is
not a Labeling
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||