dkpro / dkpro-similarity

Word and text similarity measures
https://dkpro.github.io/dkpro-similarity
Other
53 stars 22 forks source link

CosineSimilarity getSimilarity(String str1, String str2) not actually computing based on characters. #20

Closed nicolaierbs closed 9 years ago

nicolaierbs commented 9 years ago

Original issue 20 created by dkpro on 2013-10-18T13:13:17.000Z:

What steps will reproduce the problem?

  1. input two strings: "approximate" and "toapproximate"
  2. use the getSimilarity(String str1, String str2) function in CosineSimilarity to compute the similarity

What is the expected output? What do you see instead? > 0.9, but I got 0.0

What version of the product are you using? On what operating system? 2.0.0 in Windows

Please provide any additional information below.

nicolaierbs commented 9 years ago

Comment #1 originally posted by dkpro on 2013-10-18T13:35:35.000Z:

Changed the functionality accordingly and added test.