...
|
...
|
@@ -115,7 +115,7 @@ public class SuggestConvertorService { |
|
|
Map<String, Double> matchResult = new HashMap<>();
|
|
|
for (Map.Entry<String, Set<String>> entry : yohoKeywords.entrySet()) {
|
|
|
double score = getMatchScore(entry.getValue(), contentTokenMap);
|
|
|
if (score > 0.0F) {
|
|
|
if (score > 0.0D) {
|
|
|
matchResult.put(entry.getKey(), score);
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -131,7 +131,6 @@ public class SuggestConvertorService { |
|
|
}
|
|
|
|
|
|
String conversionResult = String.join(",", sortedKeywords);
|
|
|
detailMap.put("conversionResult", conversionResult);
|
|
|
detailMap.put("content", content);
|
|
|
detailMap.put("contentTokenMap", contentTokenMap);
|
|
|
detailMap.put("matchResult", matchResult);
|
...
|
...
|
|