2017-01-08から1日間の記事一覧

言語処理100本ノック

38. ヒストグラム¶ 単語の出現頻度のヒストグラム(横軸に出現頻度,縦軸に出現頻度をとる単語の種類数を棒グラフで表したもの)を描け. %matplotlib inline import re from collections import Counter sentences = [] with open("D:\\nlp100\\neko.txt.me…