0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

WindowsのCaboChaでUniDicを使うメモ

0
Posted at

モデルファイルのコピー

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
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?