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

如果使用预训练SGNS词向量再使用自己的语料库做微调应该如何操作呢 #10

Open
PuddingCoder opened this issue Sep 29, 2018 · 1 comment

Comments

@PuddingCoder
Copy link

PuddingCoder commented Sep 29, 2018

您好,感谢贵组开源了ngram2vec,这对我的帮助很大,谢谢~

如果使用预训练SGNS词向量再根据自己的语料库fine-tune词向量,是使用预训练词向量初始化embedding,是否需要修改代码呢,是从word2vecf下手吗?

期待您的回复。

@zhezhaoa
Copy link
Owner

zhezhaoa commented Oct 7, 2018

Hi
在大多数情况下词向量由下游任务去fine-tune。
目前word2vec只能从随机初始化的向量上面训练,近期我重写了这个项目,可以用任意词向量初始化。
如果您想自己改的话,就改word2vecf文件中的word2vecf.c中的初始化函数InitNet

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