形態素解析器をChaSen 2.4.2に設定できない #628
Replies: 2 comments
-
KH CoderのWindows版のパッケージに添付の茶筌も、「dic」フォルダの内容を編集して「makefile.bat」を実行すれば辞書を編集可能かと思います。 それはそれとして、(マニュアルに記載していますように)KH Coderは茶筌の設定ファイル(dic\grammer.chaおよびdic\chasenrc)を編集します。「Program Files (x86)」に茶筌をインストールすると、これらのファイルの編集権限がなくなるために、エラーになるものと思います。「ドキュメント」「ダウンロード」「デスクトップ」等の場所に茶筌をインストールして試してみられてはいかがでしょう。 |
Beta Was this translation helpful? Give feedback.
-
さっそくにご返信ありがとうございます。 ちなみに、depの下のChaSenをいじっていない理由は、KH Coderに同梱されている版と小生が使っている版とでは単語登録の方法が異なっているからです。小生の用いている版では、辞書を作成するmakeda.exeという専用のコマンドがあり、makeを走らせるというのより個人的には敷居が低いのです。 |
Beta Was this translation helpful? Give feedback.
-
■お使いのKH Coderのバージョン
3.Alpha.16 [Perl 5.14.2, Perl/Tk 804.03]
■KH Coderのインストール先フォルダ(解凍先フォルダ)
C:/Program Files (x86)/khcoder3
■どんなエラー・不具合・問題ですか?
KH Coderとは別に単独でインストールしたChaSen2.4.1を、形態素解析器として設定しようとすると、エラーが出てKH Coderが終了する
■どのように操作すればその問題を再現できますか?
(1)メニューから「プロジェクト」「設定」をクリックし、
(2)「chasen.exeのパス」に対して「参照」から「C:/Program Files (x86)/ChaSen」にあるchasen.exeを選択して「OK」をクリックする
(3)設定ダイアログに戻って「OK」をクリックすると、エラーメッセージを出してKH Coderが終了する。
■エラー・メッセージ
ファイルを開けませんでした。
KH Coderを終了します。
/<C:Program Files (x86)\khcoder3\kh_coder.exe>kh_sysconfig/win32/chasen.pm line 82
■コンソール・ウィンドウの表示内容(Macではターミナルの表示内容)
Exit (gui_errormsg.pm)
■お使いのOS
Windows 10
小生の知識ではちょっとお手上げです。
なお、dep以下のChaSenでは正常に動作しています。ただ、辞書をいじっている関係で、できたら独立にインストールした版のChaSenを使用したいのです。お助け頂ければ幸甚です。
Beta Was this translation helpful? Give feedback.
All reactions