Package cc.mallet.pipe
Class SvmLight2FeatureVectorAndLabel
- java.lang.Object
-
- cc.mallet.pipe.Pipe
-
- cc.mallet.pipe.SvmLight2FeatureVectorAndLabel
-
- All Implemented Interfaces:
AlphabetCarrying
,java.io.Serializable
public class SvmLight2FeatureVectorAndLabel extends Pipe
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.- Author:
- Gregory Druck
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SvmLight2FeatureVectorAndLabel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-