Skip to content
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

Open
XQMing opened this issue Jul 19, 2019 · 5 comments
Open

相似度结果大于1 #2

XQMing opened this issue Jul 19, 2019 · 5 comments

Comments

@XQMing
Copy link

XQMing commented Jul 19, 2019

我用自己的语料重新训练了词向量与idf矩阵,但是运行出的相似度结果值都大于1,理论上cosine的值应该是小于等于1的,所以不太明白是哪个地方有问题

@WenTingTseng
Copy link

我也有同樣的問題,請問版主大大有想法嗎
感謝~

@Bingo-choco
Copy link

我的是训练idf矩阵用了好几个小时也没结果,连cos+idf的机会都得不到😂😂😂

@Jeff654
Copy link

Jeff654 commented Jul 17, 2020

代码有误,譬如余弦相似度,并不是计算的原始的版本;query1 和 query2 中各自的词向量累加更是没有根据

@Asphelzhn
Copy link

请问问题怎么解决,有修改版本的代码吗,感激

@Asphelzhn
Copy link

代码有误,譬如余弦相似度,并不是计算的原始的版本;query1 和 query2 中各自的词向量累加更是没有根据

请问有修改版本吗,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants