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

skip-gram #33

Open andrew-zzz opened 5 years ago

andrew-zzz commented 5 years ago

word_freqs = {w: (c+0.0)/total_count for w, c in int_word_counts.items()} c+0.0转float 不然都为0