mecabの辞書にwikipediaのタイトルリストを追加したときの備忘録 ずっと前にmecabを使ってみる。でmecabを動かしてみたんだけど、それから結構放置してしまっていたのでもう一度弄ってみる。 とりあえず、今入れている辞書の語集を増やすために、wikipediaの情報も追加してみた。 1. wikipediaのタイトルリストをダウンロードして解凍 最新のタイトルリストがここから取得できる $ wget http://dumps.wikimedia.org/jawiki/latest/jawiki-latest-all-titles-in-ns0.gz $ gunzip jawiki-latest-all-titles-in-ns0.gz 2. wikipediaのタイトルリストをCSVに変換 ダウンロードした辞書を、mecabに取り組む前にCSV形式に変換。ここはググると色々なや