<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>misos</author_name>
  <author_url>https://blog.hatena.ne.jp/misos/</author_url>
  <blog_title>めも</blog_title>
  <blog_url>https://paper.hatenadiary.jp/</blog_url>
  <categories>
    <anon>自然言語処理</anon>
    <anon>python</anon>
    <anon>データ解析</anon>
    <anon>前処理</anon>
    <anon>機械学習</anon>
  </categories>
  <description>LDA用のデータの作成 単語の辞書を作成して出力 外部に保存したコーパスと辞書の読み込み LDAの実行 コード 出力例 gensimとjanomeを用いたLDAを行います。 必要なデータは一行ごとに文章が入ったtxtファイルです。 LDA用のデータの作成 data.txtには一行ごとに文章が保存されています。 この文章から名詞のみを取り出して、word_vectorに保存していきます。 import codecs as cd import gensim from janome.tokenizer import Tokenizer from gensim import corpora, mode…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpaper.hatenadiary.jp%2Fentry%2F2016%2F11%2F06%2F212149&quot; title=&quot;pythonでgensimを使ってトピックモデル(LDA)を行う - めも&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://images-fe.ssl-images-amazon.com/images/I/41nha4djbWL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-11-06 21:21:49</published>
  <title>pythonでgensimを使ってトピックモデル(LDA)を行う</title>
  <type>rich</type>
  <url>https://paper.hatenadiary.jp/entry/2016/11/06/212149</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
