Closed ajayrfhp closed 6 years ago
Looks like true, especially in couple's conversation.
This sounds reasonable to me. Note that the classifier is not learned on top of just the cosine similarity but on top of [u, v, |u-v|, u*v], so while the cosine similarity is high for these contradictory sentences, it doesn't mean that the classifier will not be able to classify those two sentences as being contradictory.
I've run some tests comparing InferSent to an average of the sum of words in a sentence using w2v and would say InferSent is superior. Although it is also far slower than w2v.
"I do not like you", "I love you"
w2V: 0.908767
InferSent : 0.668501
The same code with the new infersent1.pkl file returns cosine similarity as 1.0. Can someone please confirm and let me know what should i do to correct it?
Wondering if there is bug in my code or this score is expected.