词向量是自然语言处理中表示词语间隐含关系的一种形式,其中以word2vec为代表的词向量可以将高维度的稀疏数据降维到几百维。本文基于facebook的fasttext以及大量食谱语料库快速训练了一套食物向量food2vec,所以这篇短文写得像一篇速成的食谱 :D
引入文本处理库gensim,手工制造一些原始数据。
import gensimraw_documents = ["I'm taking the show on the road.", "My socks are a force multiplier.", "I am the barber who cuts…
import gensimraw_documents = ["I'm taking the show on the road.", "My socks are a force multiplier.", "I am the barber who cuts
《设计原本》读书笔记