[Igo-php-devel] Igo.phpの使い方

Back to archive index

H.M arlone_mi310****@peace*****
2016年 10月 25日 (火) 15:49:01 JST


お世話になります。

美藤と申します。
初めて形態素解析を使ってみました。
実行したところ、
Warning: fopen(/var/www/html/ConvYahoo/ipadic/word2id): failed to open stream: No such file or directory in /var/www/html/ConvYahoo/lib/Igo/FileMappedInputStream.php on line 

とエラーが表示されます。
調べてみたところ下記関数にて発生しているようです。
WordDic.php
public function __construct($dataDir) {
    $this->trie = new Searcher($dataDir . "/word2id"); <-- これ??
    $this->data = FileMappedInputStream::_getString($dataDir . "/word.dat");
    $this->indices = FileMappedInputStream::_getIntArray($dataDir . "/word.ary.idx");

これは辞書の作り方を間違っているのでしょうか。
それとも他に何か必要なものがあるのでしょうか。

こちらにこの質問が適切なのか不明でしたが、メールしてみました。
可能であればご教授下さい。
宜しくお願いいたします。

                           2016/10/25
                             美藤
-------------- next part --------------
HTMLの添付ファイルを保管しました...
Download 



Igo-php-devel メーリングリストの案内
Back to archive index