###前提・実現したいこと
現在mecabを使って作業しようとしているのですがimport MeCab まではできるものの
m=MeCab.Tagger('-Ochasen')の部分でエラーが出てきてしまいます。
###発生している問題・エラーメッセージ
Runtime Error
エラーメッセージ ```RuntimeError Traceback (most recent call last) <ipython-input-13-1693f7811a2e> in <module>() 1 import collections ----> 2 m = MeCab.Tagger('-Ochasen') 3 4 noun_list = [] # 重複を含めた名詞のリスト 5 for i in df_comment['comment'].dropna(): /Users/jiang/anaconda/lib/python3.6/site-packages/MeCab.py in __init__(self, *args) 305 if _newclass:version = staticmethod(_MeCab.Tagger_version) 306 def __init__(self, *args): --> 307 this = _MeCab.new_Tagger(*args) 308 try: self.this.append(this) 309 except: self.this = this RuntimeError: ###該当のソースコード
import MeCab
import collections
m = MeCab.Tagger('-Ochasen')
noun_list = []
for i in df_comment['comment'].dropna():
for l in m.parse (i).splitlines():
noun_list.append(l.split('\t')[0])
noun_cnt = collections.Counter(noun_list)
noun_cnt=sorted(noun_cnt.items(), key=lambda x: x[1], reverse=True)
###試したこと 課題に対してアプローチしたことを記載してください mecabが使えるようにしたい ###補足情報(言語/FW/ツール等のバージョンなど) 昨日行った時はうまくいったのですが今日うまくいかなくなってしまいました。