semantic-text-similarity icon indicating copy to clipboard operation
semantic-text-similarity copied to clipboard

Problem with space

Open saravanansaminathan opened this issue 4 years ago • 1 comments

When I try to find the similarity between statement it shows less similarity for the same words with and without space Code: web_model.predict([('crm plus','crmplus')]) Output : 0.8329288

But for some other words like web_model.predict([('iphone plus','iphoneplus')]) --> output: 3.4955034(high similarity)

saravanansaminathan avatar Mar 04 '20 05:03 saravanansaminathan

I don't know much about implementation. But maybe this is because it does not measure similarity on the basis of characters or spaces but it focuses on how meaning full the sentence(phrase) is. The first pair might have a less similar meaning than the second pair.

Sheldon1999 avatar Aug 23 '20 10:08 Sheldon1999