-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
相似度结果大于1 #2
Comments
我也有同樣的問題,請問版主大大有想法嗎 |
我的是训练idf矩阵用了好几个小时也没结果,连cos+idf的机会都得不到😂😂😂 |
代码有误,譬如余弦相似度,并不是计算的原始的版本;query1 和 query2 中各自的词向量累加更是没有根据 |
请问问题怎么解决,有修改版本的代码吗,感激 |
请问有修改版本吗,感谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我用自己的语料重新训练了词向量与idf矩阵,但是运行出的相似度结果值都大于1,理论上cosine的值应该是小于等于1的,所以不太明白是哪个地方有问题
The text was updated successfully, but these errors were encountered: