Skip to content
Snippets Groups Projects
Commit e53b090a authored by Franck Dary's avatar Franck Dary
Browse files

Added prefix in distanceModule values to avoid them being treated as generic numbers bu the Dict

parent 344bd63a
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,7 @@ void DistanceModuleImpl::addToContext(std::vector<std::vector<long>> & context,
long dist = std::abs(config.getRelativeDistance(from, to));
if (dist <= threshold)
contextElement.emplace_back(dict.getIndexOrInsert(fmt::format("{}", dist)));
contextElement.emplace_back(dict.getIndexOrInsert(fmt::format("distance({})", dist)));
else
contextElement.emplace_back(dict.getIndexOrInsert(Dict::unknownValueStr));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment