use of com.yahoo.searchlib.rankingexpression.evaluation.MapContext in project vespa by vespa-engine.
the class TensorConformanceTest method getInput.
private MapContext getInput(JsonNode inputs) {
MapContext context = new MapContext();
for (Iterator<String> i = inputs.fieldNames(); i.hasNext(); ) {
String name = i.next();
String value = inputs.get(name).asText();
Tensor tensor = getTensor(value);
context.put(name, new TensorValue(tensor));
}
return context;
}
Aggregations