NELSONZHAO / zhihu

This repo contains the source code in my personal column (https://zhuanlan.zhihu.com/zhaoyeyu), implemented using Python 3.6. Including Natural Language Processing and Computer Vision projects, such as text generation, machine translation, deep convolution GAN and other actual combat code.
https://zhuanlan.zhihu.com/zhaoyeyu
3.5k stars 2.14k forks source link

Word2Vec之Skip-Gram模型-中文文本版 #36

Open JackGengChen opened 5 years ago

JackGengChen commented 5 years ago

筛选低频词

words_count = Counter(words) words = [w for w in words if words_count[w] > 50] 请问这里的words显示报错,因为前面没有出现words这个变量,所以这个words是哪里来的?

注:问题出现在Word2Vec之Skip-Gram模型-中文文本版这个notebook上