<?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>以前の記事で、古典的ngram言語モデルについて、NLTKを利用し、英語データセットの結果をまとめました。 eieito.hatenablog.com 単語を分かち書きさえすれば日本語でも実行可能なので、日本語データセットでパープレキシティを算出していきます。 データ 学習データとテストデータの準備。 ngramデータさえあればplain textがなくとも実装できますが、評価のためには学習データと同じ性質のテストデータ（plain text）が必要です。 Wikitext-JA は Wikipediaデータがtrain/testに分割されているので今回利用します。 データも「秀逸な記事」と「…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Feieito.hatenablog.com%2Fentry%2F2022%2F06%2F14%2F093000&quot; title=&quot;NLTKのngram言語モデルを日本語データで使う - エイエイレトリック&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>2022-06-14 09:30:00</published>
  <title>NLTKのngram言語モデルを日本語データで使う</title>
  <type>rich</type>
  <url>https://eieito.hatenablog.com/entry/2022/06/14/093000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
