テキストマイニングにおけるエラー

実現したいこと

ここに実現したいことを箇条書きで書いてください。

  • コードのエラーを解決したい

前提

ここに質問の内容を詳しく書いてください。
以下のエラーメッセージが発生しました。

発生している問題・エラーメッセージ


RuntimeError Traceback (most recent call last)
File ~\anaconda3\Lib\site-packages\MeCab_init_.py:133, in Tagger.init(self, rawargs)
132 try:
--> 133 super(Tagger, self).init(args)
134 except RuntimeError as ee:

RuntimeError:

The above exception was the direct cause of the following exception:

RuntimeError Traceback (most recent call last)
Cell In[4], line 7
1 ##############################
2 #
3 # テキスト解析(頻出単語の抽出)
4 #
5 ##############################
----> 7 m = MeCab.Tagger('-d /usr/local/lib/mecab/dic/mecab-ipadic-neologd
8 -u /usr/local/lib/mecab/dic/userdic/add.dic')
10 exwords=()
11 inPOSs=['名詞','英単語']

File ~\anaconda3\Lib\site-packages\MeCab_init_.py:135, in Tagger.init(self, rawargs)
133 super(Tagger, self).init(args)
134 except RuntimeError as ee:
--> 135 raise RuntimeError(error_info(rawargs)) from ee

RuntimeError:

Failed initializing MeCab. Please see the README for possible solutions:

https://github.com/SamuraiT/mecab-python3#common-issues

If you are still having trouble, please file an issue here, and include the
ERROR DETAILS below:

https://github.com/SamuraiT/mecab-python3/issues

issueを英語で書く必要はありません。

------------------- ERROR DETAILS ------------------------
arguments: -d /usr/local/lib/mecab/dic/mecab-ipadic-neologd -u /usr/local/lib/mecab/dic/userdic/add.dic
[ifs] no such file or directory: /usr/local/lib/mecab/dic/mecab-ipadic-neologd\dicrc

エラーメッセージ

### 該当のソースコード ```ここに言語名を入力 ソースコード ############################## # # テキスト解析(頻出単語の抽出) # ############################## m = MeCab.Tagger('-d /usr/local/lib/mecab/dic/mecab-ipadic-neologd \ -u /usr/local/lib/mecab/dic/userdic/add.dic') exwords=() inPOSs=['名詞','英単語'] 解析テキスト=F_text # データの前処理 前処理後テキスト = TM2.Webテキスト前処理3(解析テキスト,m,psw=False)[0] # テキスト分析 result = TM2.テキスト分析(前処理後テキスト,exwords,inPOSs,m) c = collections.Counter(result) print(c.most_common(100)) ### 試したこと ここに問題に対して試したことを記載してください。 ### 補足情報(FW/ツールのバージョンなど) ここにより詳細な情報を記載してください。

コメントを投稿

0 コメント