Class Csv2Array

  • All Implemented Interfaces:

    public class Csv2Array
    extends Pipe
    Converts a string of comma separated values to an array. To be used prior to Array2FeatureVector. Note that this class assumes that each location of the line corresponds to a feature index (i.e. "dense" representation) eg: instance 1: 1,0,0,1,0,0,1 << feature alphabet size = 7 instance 2: 0,0,1,0,0,0,1 << feature alphabet size = 7
    Aron Culotta
    See Also:
    Serialized Form
    • Constructor Detail

      • Csv2Array

        public Csv2Array()
      • Csv2Array

        public Csv2Array​(java.lang.String regex)
    • Method Detail

      • pipe

        public Instance pipe​(Instance carrier)
        Convert the data in an Instance from a CharSequence of comma-separated-values to an array, where each index is the feature name.
        pipe in class Pipe