<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>odz</author_name>
  <author_url>https://blog.hatena.ne.jp/odz/</author_url>
  <blog_title>odz buffer</blog_title>
  <blog_url>https://odz.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>Python</anon>
  </categories>
  <description>ref:裏表(Phinloda のもう裏だか表だか分からないページ) | メモ: パターンマッチのちょっとした問題 ref:裏表(Phinloda のもう裏だか表だか分からないページ) | メモ: パターンマッチのちょっとした問題 (2) あー、Computer Science 的にそういうのは AC 法(Aho-Corasick algorithm) で Trie 使ってやるのが正道な気がする。で、一度作った TRIE は保存しておけばよい。 Python なら AC 法を実装した pytst という拡張ライブラリがあるので、これを使えば簡単。Ruby への移植版もある。 import sy…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fodz.hatenablog.com%2Fentry%2F20070220%2F1172009557&quot; title=&quot;辞書に登録されている語をテキスト中から検索する - odz buffer&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>2007-02-20 07:12:37</published>
  <title>辞書に登録されている語をテキスト中から検索する</title>
  <type>rich</type>
  <url>https://odz.hatenablog.com/entry/20070220/1172009557</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
