<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ymuto109</author_name>
  <author_url>https://blog.hatena.ne.jp/ymuto109/</author_url>
  <blog_title>(主に)プログラミングのメモ</blog_title>
  <blog_url>https://yoshihikomuto.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>nltk.FreqDist クラスおよび nltk.ConditionalFreqDist クラスに含まれる plot() メソッドを利用した場合，軸（特に横軸）で日本語フォントが使えないという問題がある。 plot() メソッドでは内部的に matplotlib.pyplot を利用しており，日本語を出力するためには fontproperties を明示的に指定する必要がある。以上の事情を踏まえ，nltk 自体に手を入れる。対象とするファイル： /usr/local/lib/python2.7/dist-packages/nltk/probability.pyprobability.py 内…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyoshihikomuto.hatenablog.jp%2Fentry%2F2012%2F12%2F27%2F134202&quot; title=&quot;nltk.FreqDist および nltk.ConditionalFreqDist の plot() で日本語を出力させる方法 - (主に)プログラミングのメモ&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>http://cdn-ak.f.st-hatena.com/images/fotolife/y/ymuto109/20121227/20121227133926.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-12-27 13:42:02</published>
  <title>nltk.FreqDist および nltk.ConditionalFreqDist の plot() で日本語を出力させる方法</title>
  <type>rich</type>
  <url>https://yoshihikomuto.hatenablog.jp/entry/2012/12/27/134202</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
