Class Csv2FeatureVector

  • All Implemented Interfaces:

    public class Csv2FeatureVector
    extends Pipe
    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.
    Gary Huang
    See Also:
    Serialized Form
    • Constructor Detail

      • Csv2FeatureVector

        public Csv2FeatureVector​(int capacity)
      • Csv2FeatureVector

        public Csv2FeatureVector()
    • Method Detail

      • pipe

        public Instance pipe​(Instance carrier)
        Convert the data in the given Instance from a CharSequence of sparse feature-value pairs to a FeatureVector
        pipe in class Pipe