<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sh111h</author_name>
  <author_url>https://blog.hatena.ne.jp/sh111h/</author_url>
  <blog_title>エイエイレトリック</blog_title>
  <blog_url>https://eieito.hatenablog.com/</blog_url>
  <categories>
    <anon>nlp</anon>
    <anon>ngram language model</anon>
  </categories>
  <description>4記事にわたり、複数の古典的ngram言語モデルについて試しに実装してきました。 torchtextのデータセットを使ってきたので、pytorchで簡単な言語モデルを作ってみます。 元となる論文があるわけではないですが、ネット上に多数実装が多数あるので、それらを参考にしました。 実装コードは gist を参照してください。一番下に埋め込んでます。 参考資料について軽くまとめます。 アーキテクチャ NgramModel( (embedding): Embedding(28782, 100) (linear1): Linear(in_features=200, out_features=128, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Feieito.hatenablog.com%2Fentry%2F2022%2F05%2F02%2F100000&quot; title=&quot;ngram言語モデルについてまとめる (neural language model) - エイエイレトリック&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/sh111h/20220501/20220501171239.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-05-02 10:00:00</published>
  <title>ngram言語モデルについてまとめる (neural language model)</title>
  <type>rich</type>
  <url>https://eieito.hatenablog.com/entry/2022/05/02/100000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
