モデルファイルのコピー
Macの次のフォルダから関係ありそうなファイルをコピー
- /usr/local/lib/cabocha/model
Winの次のフォルダに置く
- C:\Program Files (x86)\CaboCha\model
ちゃんと同じバージョンのモデルファイルを使わないとエラーが出るっぽい。
cabocharcの変更
cabocharcは次の場所にある。
- C:\Program Files (x86)\CaboCha\etc\cabocharc
次のように書き換える。
posset = UNIDIC
parser-model = $(rcpath)\..\model\dep.unidic.model
chunker-model = $(rcpath)\..\model\chunk.unidic.model
ne-model = $(rcpath)\..\model\ne.unidic.model
が、エラーが出る。
>cabocha -f1
dep.cpp(90) [decode_posset(p) == posset()] model posset and dependency parser's posset are different: UNIDIC != IPA
chasenrcに書かれているcharsetとpossetが認識されていない?
コマンドラインオプションで指定すれば、とりあえず動く。
>cabocha -f1 -P UNIDIC