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.
word_freqs = {w: (c+0.0)/total_count for w, c in int_word_counts.items()} c+0.0转float 不然都为0