public class Csv2Array extends Pipe
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| Constructor and Description |
|---|
Csv2Array() |
Csv2Array(CharSequenceLexer l) |
Csv2Array(String regex) |
| Modifier and Type | Method and Description |
|---|---|
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. |
getDataAlphabet, getInstanceId, getParent, getParentRoot, getTargetAlphabet, isDataAlphabetSet, isTargetProcessing, pipe, readResolve, resolveDataAlphabet, resolveTargetAlphabet, setDataAlphabet, setParent, setTargetAlphabet, setTargetProcessingpublic Csv2Array()
public Csv2Array(String regex)
public Csv2Array(CharSequenceLexer l)
Copyright © 2019 JULIE Lab, Germany. All rights reserved.