public class TensorConverter
extends Object
A class which knows how to convert an Object value to a tensor of a given type.
- Author:
- bratseth
-
Constructor Summary
Constructors
-
Method Summary
com.yahoo.tensor.Tensor
convertTo(com.yahoo.tensor.TensorType type,
String key,
Object value,
com.yahoo.language.Language language,
Map<String,String> contextValues,
com.yahoo.processing.request.Properties properties)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TensorConverter
public TensorConverter(Map<String,com.yahoo.language.process.Embedder> embedders)
-
Method Details
-
convertTo
public com.yahoo.tensor.Tensor convertTo(com.yahoo.tensor.TensorType type,
String key,
Object value,
com.yahoo.language.Language language,
Map<String,String> contextValues,
com.yahoo.processing.request.Properties properties)