*/
public double computeSimilarity(String query, String token1, String service, String token2) throws MatchingException {
Map pc1 = tokenizer.getTokenFrequencies(token1);
Map pc2 = tokenizer.getTokenFrequencies(token2);
CosineResultTriple TFs = getTFArrays(pc1, pc2);
double[] weightedPC1 = weigthAndNormalizeTerms(TFs.term1);
double[] weightedPC2 = weigthAndNormalizeTerms(TFs.term2);
double temp = computeSimilarity(weightedPC1,weightedPC2);
double result = -0.5 * temp / log2;
return result;