{"image_url":null,"provider_name":"Hatena Blog","type":"rich","url":"https://kento1109.hatenablog.com/entry/2017/11/16/141153","provider_url":"https://hatena.blog","published":"2017-11-16 14:11:53","blog_title":"\u6a5f\u68b0\u5b66\u7fd2\u30fb\u81ea\u7136\u8a00\u8a9e\u51e6\u7406\u306e\u52c9\u5f37\u30e1\u30e2","blog_url":"https://kento1109.hatenablog.com/","title":"gensim\u3067LSI\uff08\u6f5c\u5728\u7684\u610f\u5473\u89e3\u6790\uff09","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkento1109.hatenablog.com%2Fentry%2F2017%2F11%2F16%2F141153\" title=\"gensim\u3067LSI\uff08\u6f5c\u5728\u7684\u610f\u5473\u89e3\u6790\uff09 - \u6a5f\u68b0\u5b66\u7fd2\u30fb\u81ea\u7136\u8a00\u8a9e\u51e6\u7406\u306e\u52c9\u5f37\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","height":"190","description":"\u30b3\u30fc\u30d1\u30b9\u3068\u8f9e\u66f8\u3092\u7528\u3044\u3066\u6f5c\u5728\u7684\u610f\u5473\u89e3\u6790\u3092\u884c\u3046\u3002 \uff0a\u6587\u66f8\u306e\u30d9\u30af\u30c8\u30eb\u5316\uff08\u6b21\u5143\u5727\u7e2e\uff09 \u6587\u66f8\u30bb\u30c3\u30c8\u304b\u3089\u8f9e\u66f8\u3092\u4f5c\u6210\u3059\u308b\u3002 \u4e0d\u7528\u8a9e\u3092\u53d6\u308a\u9664\u304f BoW\u8868\u73fe\u306b\u5909\u63db from gensim import corpora dic = corpora.Dictionary(documents) dic.filter_extremes(no_below=20, no_above=0.3) bow_corpus = [dic.doc2bow(d) for d in documents] \u30d9\u30af\u30c8\u30eb\u5316\u3057\u305f\u6587\u66f8\u3092TF-IDF\u8868\u73fe\u306b\u5909\u63db \uff08\u5fc5\u9808\u3067\u306f\u306a\u3044\u3002\uff09 from gensim import models tfidf_mode\u2026","author_url":"https://blog.hatena.ne.jp/kento1109/","width":"100%","author_name":"kento1109","categories":["gensim"]}