|
||||||||||
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.SvmLight2FeatureVectorAndLabel
public class SvmLight2FeatureVectorAndLabel
This Pipe converts a line in SVMLight format to a Mallet instance with FeatureVector data and Label target. The expected format is target feature:value feature:value ... targets and features can be indices, as in SVMLight, or Strings. Note that if targets and features are indices, their indices in the data and target Alphabets may be different, though the data will be equivalent.
Constructor Summary | |
---|---|
SvmLight2FeatureVectorAndLabel()
|
Method Summary | |
---|---|
Instance |
pipe(Instance carrier)
Really this should be 'protected', but isn't for historical reasons. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SvmLight2FeatureVectorAndLabel()
Method Detail |
---|
public Instance pipe(Instance carrier)
Pipe
pipe
in class Pipe
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |