chasen grammer.cha 辞書に品詞を追加する

固有名詞にbbtuneという品詞を入れてみる。

grammer.cha

(名詞
    (一般)
    (固有名詞
        (一般)
        (人名
            (一般)
            (姓)
            (名))
        (組織)
        (bbtune
            (一般))
        (地域
            (一般)
            (国)))

これで
Noun.bbtune.dicに単語を登録

(品詞 (名詞 固有名詞 bbtune 一般)) ((見出し語 (bbtune 2500)) (読み ビービーチューン) (発音 ビービーチューン) )

connect.chaに追加、今回は地域と全く同じで良いので地域一般と同じ行をbbtuneとして更新

awk '{print $0 ; if($0 ~/地域 一般/){gsub("地域","bbtune",$0);print $0;}}' connect.cha.back  > connect.cha

これで辞書を更新。

This entry was posted on 水曜日, 4月 13th, 2011 at 3:42 PM and is filed under blog. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Unityによるゲームを公開しております iOS/Android
https://itunes.apple.com/jp/app/lost-knight-3d-action/id900917032
https://play.google.com/store/apps/details?id=com.groundroad.runknight

各種開発支援・機能開発等小さいお仕事などもお請けしております。
unity開発支援, PHPシステム開発, javascript/html5 フロント開発, titanium mobileアプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。