pythonでMecabを使用してテスト文章の解析を行いたいです。
プログラム実行時にエラーが発生し対処法がわかりません。
発生している問題・エラーメッセージ
Traceback (most recent call last):
File "/Users/-----/Library/Python/3.8/lib/python/site-packages/MeCab/init.py", line 133, in init
super(Tagger, self).init(args)
RuntimeError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "test.py", line 3, in <module>
t = MeCab.Tagger()
File "/Users/-----/Library/Python/3.8/lib/python/site-packages/MeCab/init.py", line 135, in init
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:
[ifs] no such file or directory: /usr/local/etc/mecabrc
該当のソースコード
python
import MeCab t = MeCab.Tagger()result = t.parse("私は学生です!")print(result)
0 コメント