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

例子都跑不通 #6

Open
paomo30000 opened this issue May 22, 2018 · 3 comments
Open

例子都跑不通 #6

paomo30000 opened this issue May 22, 2018 · 3 comments

Comments

@paomo30000
Copy link

你的例子猫和狗的相似度是0.0
image

@jsksxs360
Copy link
Owner

这也许是编码的问题,可能你把这个项目的编码设置为 UTF-8 就可以运行了。
code

@paomo30000
Copy link
Author

vec.loadGoogleModel("/Google_word2vec_zhwiki1710_300d.bin");这只是加载了模型,请问语料库怎么加载呢?还是不需要加载?我的意思是运行这个程序有没有前提条件?

@jsksxs360
Copy link
Owner

加载好模型后就可以获取到模型中包含词语的词向量,从而计算相似度等操作。只是用户的部分词语可能没有被包含在使用通用语料训练出的默认模型中,所以可以用自己的语料训练模型,训练方法可以参见《训练 Google 版模型》

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

2 participants