public interface LinearizationFunction
Modifier and Type | Method and Description |
---|---|
int |
getEmbeddingSize() |
SimpleDataset |
getLinearizedDataset(Dataset dataset,
String representationName)
This method linearizes all the examples in the input
dataset
, generating a corresponding linearized dataset. |
Example |
getLinearizedExample(Example example,
String representationName)
This method linearizes an input example, providing a new example
containing only a representation with a specific name, provided as input.
|
Vector |
getLinearRepresentation(Example example)
Given an input
Example , this method generates a linear
Representation> , i.e. |
Vector getLinearRepresentation(Example example)
Example
, this method generates a linear
Representation>
, i.e. a Vector
.example
- The input example.Example getLinearizedExample(Example example, String representationName)
example
- The input example.vectorName
- The name of the linear representation inside the new exampleSimpleDataset getLinearizedDataset(Dataset dataset, String representationName)
dataset
, generating a corresponding linearized dataset. The produced examples
inherit the labels of the corresponding input examples.dataset
- The input datasetrepresentationName
- The name of the linear representation inside the new examplesint getEmbeddingSize()
Copyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.