public class VectorConcatenationManipulator extends Object implements Manipulator
| Constructor and Description |
|---|
VectorConcatenationManipulator(String concatenationName,
List<String> representationsToBeConcatenated,
List<Float> weights) |
| Modifier and Type | Method and Description |
|---|---|
static SparseVector |
concatenateVectors(Example example,
List<String> representationsToConcatenated,
List<Float> weights)
Returns a SparseVector corresponding to the concatenation of the vectors in
example identified with representationsToBeMerged
Each vector is scaled with respect to the corresponding scaling factor in weights |
static void |
concatenateVectors(Example example,
List<String> representationsToBeConcatenated,
List<Float> weights,
String combinationName)
Add a new representation identified with
combinationName |
void |
manipulate(Example example) |
public void manipulate(Example example)
manipulate in interface Manipulatorpublic static SparseVector concatenateVectors(Example example, List<String> representationsToConcatenated, List<Float> weights)
example identified with representationsToBeMerged
Each vector is scaled with respect to the corresponding scaling factor in weightsexample - the example whose vectors must be concatenatedrepresentationsToConcatenated - the identifiers of the vectors to be concatenatedweights - the scaling factors of the vectors to be concatenatedpublic static void concatenateVectors(Example example, List<String> representationsToBeConcatenated, List<Float> weights, String combinationName)
combinationName corresponding to the concatenation of the vectors in example identified with representationsToBeMerged
Each vector is scaled with respect to the corresponding scaling factor in weightsexample - the example whose vectors must be concatenatedrepresentationsToBeConcatenated - the identifiers of the vectors to be concatenatedweights - the scaling factors of the vectors to be concatenatedcombinationName - the name of the new representation to be addedCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.