SimScore scoring = null;
if (funcscore.equals("cosinesq")) {
scoring = new CosineSquareSimilarity();
}
if (funcscore.equals("jensenshannon")) {
scoring = new JensenShannonDivergence();
}
VectorSet source = vectorSets.get(vkeySource);
VectorSet target = vectorSets.get(vkeyTarget);
Recommendation rec = new Recommendation(source, target, scoring, context.getInt("maxlimits"));