<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kento1109</author_name>
  <author_url>https://blog.hatena.ne.jp/kento1109/</author_url>
  <blog_title>機械学習・自然言語処理の勉強メモ</blog_title>
  <blog_url>https://kento1109.hatenablog.com/</blog_url>
  <categories>
    <anon>numpy</anon>
    <anon>scipy</anon>
  </categories>
  <description>はじめに 前にgensimによる単語の類似度について書きました。 kento1109.hatenablog.com この手の記事はググればいっぱい出てくるので、gensimでモデルを作って単語の類似度を計算するのは難しくないと思います。ただ、LSTMなどで学習した後の単語の分散表現の類似度を測定したい場合に、そのためだけにわざわざgensimのモデルを構築するのは面倒ですし、無駄かなと思います。ある単語と別の単語の類似度を測定するだけの場合、そのベクトル同士で測定すれば良いですが、gensimのmost_similar関数のような「ある単語のベクトルに近いベクトルの単語をN個取ってくる」機能を…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkento1109.hatenablog.com%2Fentry%2F2019%2F03%2F07%2F132333&quot; title=&quot;gensimに依存しない単語の類似度計算 - 機械学習・自然言語処理の勉強メモ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-03-07 13:23:33</published>
  <title>gensimに依存しない単語の類似度計算</title>
  <type>rich</type>
  <url>https://kento1109.hatenablog.com/entry/2019/03/07/132333</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
