
NLP
frostime
这个作者很懒,什么都没留下…
展开
-
Gensim学习笔记-1.Corpora模块和向量空间表示
本系列的文章是我根据Gensim官方教程整理而成,并不完全是翻译将文本转为向量 现在假设我们现在有一个语料库documents,在这个语料库中总共有九个文档,每个文档都只包含一句话。documents = ["Human machine interface for lab abc computer applications", "A survey...原创 2018-07-22 16:56:19 · 2576 阅读 · 1 评论 -
Gensim学习笔记-2.主题与变换
变换接口from pprint import pprintimport warningswarnings.filterwarnings(action='ignore', category=UserWarning, module='gensim')from gensim import corporastopWordsList = set('for a of the and to in...原创 2018-07-22 16:59:39 · 327 阅读 · 0 评论