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

加载训练的word2vec嵌入向量问题 #2

Open
PuHaoran opened this issue Sep 14, 2018 · 1 comment
Open

加载训练的word2vec嵌入向量问题 #2

PuHaoran opened this issue Sep 14, 2018 · 1 comment

Comments

@PuHaoran
Copy link

你好前辈,请问
char_embed_file = '../ieee_zhihu_cup/char_embedding.txt'
word_embed_file = '../ieee_zhihu_cup/word_embedding.txt'
char_alphabet, char_embed_mat, unknown_char_idx, dummy_char_idx = parse_embed(char_embed_file)
word_alphabet, word_embed_mat, unknown_word_idx, dummy_word_idx = parse_embed(word_embed_file)
中char_embed_file这个文件是如何得到的,代码在程序中有吗。这个文件里的内容是如何生成的呢?

@Magic-Bubble
Copy link
Owner

这个是知乎比赛提供的原始数据,是他们预训练好的~

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