|
@@ -55,7 +55,9 @@ public final class SimilarityUtils {
|
|
|
|
|
|
public static float word2VecSimilarity(String str1, String str2) {
|
|
public static float word2VecSimilarity(String str1, String str2) {
|
|
List<String> words1 = Segment.getWords(str1);
|
|
List<String> words1 = Segment.getWords(str1);
|
|
|
|
+ log.info("words1: {}", words1);
|
|
List<String> words2 = Segment.getWords(str2);
|
|
List<String> words2 = Segment.getWords(str2);
|
|
|
|
+ log.info("words2: {}", words2);
|
|
return vec.sentenceSimilarity(words1, words2);
|
|
return vec.sentenceSimilarity(words1, words2);
|
|
}
|
|
}
|
|
|
|
|