private static Map<Integer, Double> getSimilarityResult(List<Result> result) {
        Map<Integer, Double> resultList = new TreeMap<Integer, Double>();
        for (int i = 0; i < result.size(); i++) {
            System.out.printf("%d %d %f\n", i, result.get(i).getId(), result.get(i).getResult());
            resultList.put(result.get(i).getId(), result.get(i).getResult());
        }
        return resultList;
    }