<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>torasenriwohashiru</author_name>
  <author_url>https://blog.hatena.ne.jp/torasenriwohashiru/</author_url>
  <blog_title>TorasenLab@はてな</blog_title>
  <blog_url>https://torasenriwohashiru.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>テキスト</anon>
  </categories>
  <description>テキストマイニングなどを行うためには文書、文、単語などの文字列の正規化が重要です。 単語の大文字小文字の統一、半角全角の統一などをする必要があります。 文字列の正規化のために利用しているpythonコードを以下に書いておきます。 今後増える可能性もあります。 実行環境 Ubuntu 10.04 64ビット python 2.6.5 unicode型に変換する def unicode_ignore_invalid_char(text): if isinstance(text, str): return text.decode('utf-8', 'ignore') return text 変換不能…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftorasenriwohashiru.hatenadiary.org%2Fentry%2F20110806%2F1312558290&quot; title=&quot;pythonによる文字列の正規化 - TorasenLab@はてな&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://images-fe.ssl-images-amazon.com/images/I/51EoFqAGo1L._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-08-06 00:31:30</published>
  <title>pythonによる文字列の正規化</title>
  <type>rich</type>
  <url>https://torasenriwohashiru.hatenadiary.org/entry/20110806/1312558290</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
