<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shikaku_sh</author_name>
  <author_url>https://blog.hatena.ne.jp/shikaku_sh/</author_url>
  <blog_title>sh1’s diary</blog_title>
  <blog_url>https://shikaku-sh.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>C# で実装する 参考 あいうえお あいうえの 上記のような文字列の類似度を計算するやり方には「n-gram」や「Jaro–Winkler distance」など色々なやり方があるみたいです。一番簡単と思ったやり方は「n-gram」でした。少し古いですが livedoor の技術ブログに紹介記事があります。 実装が簡単なのもあって ruby のコードで github に公開されているリポジトリーがありました。 とりあえず、Usage に掲載されている以下例は、２つテキストの一致度 0.266... になるみたいです。github の ruby コードを動かしてみます。（3-gram の例になり…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshikaku-sh.hatenablog.com%2Fentry%2Fc-sharp-calc-text-metric-measuring-using-ngram&quot; title=&quot;C# 文字列の類似度を計算する N-gram - sh1’s diary&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://cdn-ak.f.st-hatena.com/images/fotolife/s/shikaku_sh/20210823/20210823173353.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-06-13 09:17:28</published>
  <title>C# 文字列の類似度を計算する N-gram</title>
  <type>rich</type>
  <url>https://shikaku-sh.hatenablog.com/entry/c-sharp-calc-text-metric-measuring-using-ngram</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
