only %100 match
This commit is contained in:
+4
-4
@@ -198,14 +198,14 @@ public class MultiThreadTreeLoader {
|
|||||||
String jaccardSimilarity = String.format("%1.2f", jaccardSimilarity1);
|
String jaccardSimilarity = String.format("%1.2f", jaccardSimilarity1);
|
||||||
|
|
||||||
String editDistance = String.valueOf(actions.size());
|
String editDistance = String.valueOf(actions.size());
|
||||||
jedis.select(1);
|
// jedis.select(1);
|
||||||
String result = chawatheSimilarity + "," + diceSimilarity + "," + jaccardSimilarity + "," + editDistance;
|
String result = resultMap.get("0") + "," +resultMap.get("1") + "," +chawatheSimilarity + "," + diceSimilarity + "," + jaccardSimilarity + "," + editDistance;
|
||||||
jedis.set(resultKey, result);
|
// jedis.set(resultKey, result);
|
||||||
|
|
||||||
if (((Double) chawatheSimilarity1).equals(1.0) || ((Double) diceSimilarity1).equals(1.0)
|
if (((Double) chawatheSimilarity1).equals(1.0) || ((Double) diceSimilarity1).equals(1.0)
|
||||||
|| ((Double) jaccardSimilarity1).equals(1.0) || actions.size() == 0){
|
|| ((Double) jaccardSimilarity1).equals(1.0) || actions.size() == 0){
|
||||||
String matchKey = "match_" + (String.valueOf(i)) + "_" + String.valueOf(j);
|
String matchKey = "match_" + (String.valueOf(i)) + "_" + String.valueOf(j);
|
||||||
jedis.select(2);
|
jedis.select(1);
|
||||||
jedis.set(matchKey, result);
|
jedis.set(matchKey, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user