Zhihu icon indicating copy to clipboard operation
Zhihu copied to clipboard

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

Open PuHaoran opened this issue 6 years ago • 1 comments

你好前辈,请问 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这个文件是如何得到的,代码在程序中有吗。这个文件里的内容是如何生成的呢?

PuHaoran avatar Sep 14 '18 10:09 PuHaoran

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

Magic-Bubble avatar Sep 14 '18 13:09 Magic-Bubble