public class Array2FeatureVector extends Pipe
| Constructor and Description |
|---|
Array2FeatureVector() |
Array2FeatureVector(Alphabet dataDict,
Alphabet targetDict)
Construct a pipe based on the dimensions of the data and target.
|
Array2FeatureVector(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
Instance |
pipe(Instance carrier)
Convert the data in an
Instance from an array to a
FeatureVector leaving other fields unchanged. |
int |
size()
Current size of the Vocabulary
|
getDataAlphabet, getInstanceId, getParent, getParentRoot, getTargetAlphabet, isDataAlphabetSet, isTargetProcessing, pipe, readResolve, resolveDataAlphabet, resolveTargetAlphabet, setDataAlphabet, setParent, setTargetAlphabet, setTargetProcessingpublic Array2FeatureVector(int capacity)
public Array2FeatureVector()
public Instance pipe(Instance carrier) throws IllegalStateException
Instance from an array to a
FeatureVector leaving other fields unchanged.
Instance.getData() must return a numeric array, and it is
cast to double[]pipe in class Pipecarrier - Instance to be processed.IllegalStateException - If Instance.getTarget() is
not a Labelingpublic int size()
Copyright © 2019 JULIE Lab, Germany. All rights reserved.