万病辞書を形態素解析器Sudachiで利用する - Out-of-the-box
万病辞書MANBYO_201907
から、Sudachiのユーザ辞書形式に変換したファイル
manbyo20190704_sabc_dic.txt
: 万病辞書で信頼度LEVELがS,A,B,Cの病名のみmanbyo20190704_all_dic.txt
: 万病辞書のすべての病名
$ git clone --recursive https://github.com/yagays/manbyo-sudachi
$ pip install sudachipy
BASE_PATH
を自身の環境のsystem.dic
が置かれている場所に変更して、下記コマンドを実行。
BASE_PATH=/path/to/sudachidict/resources/
sudachipy ubuild -s $BASE_PATH/system.dic manbyo20190704_sabc_dic.txt -o user_manbyo_sabc.dic
sudachipy ubuild -s $BASE_PATH/system.dic manbyo20190704_all_dic.txt -o user_manbyo_all.dic