<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zisakuzienyurusumaji</author_name>
  <author_url>https://blog.hatena.ne.jp/zisakuzienyurusumaji/</author_url>
  <blog_title>zisakuzienyurusumajiのブログ</blog_title>
  <blog_url>https://zisakuzienyurusumaji.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>#!/usr/bin/env python3 # -*- coding: utf-8 -*- &quot;&quot;&quot; bayes_markov_with_target_weights_tokenized.py 完成版： - 同じ文字でも統計特徴が異なれば別トークン扱いにする - ターゲット距離に指数減衰 → 遠距離も弱く影響する逆累乗減衰に変更 - 類似度に基づく動的ベイズ補正（beta を動的に決定） - NumPy 行列で可能な限り高速化 - 進捗は tqdm（未インストール時は簡易表示） &quot;&quot;&quot; import os import random import math from collections i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzisakuzienyurusumaji.hatenablog.com%2Fentry%2F2025%2F12%2F03%2F000828&quot; title=&quot;神文章を生成したコードをご紹介いたします - zisakuzienyurusumajiのブログ&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>2025-12-03 00:08:28</published>
  <title>神文章を生成したコードをご紹介いたします</title>
  <type>rich</type>
  <url>https://zisakuzienyurusumaji.hatenablog.com/entry/2025/12/03/000828</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
