구글코랩Google colab Mecab 객체생성 에러
조회수 55회
구글 코랩에 mecab 설치는 정상적으로 되는데, 어제까지만 해도 아무 이상없이 mecab객체 생성이 잘 되다가 오늘 갑자기 안 됩니다. 아래와 같은 에러가 뜨는데, 어제만 해도 mecab객체 생성 시 아무 에러가 없었는데 갑자기 왜 에러가 뜨는지 모르겠습니다.
온갖 방법을 다 구글링 해서 시도해봐도 하나도 먹히는게 없네요.. 도움 주실 분 있으실까요? ㅠㅠ 아래가 에러내용 전문입니다.
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/konlpy/tag/_mecab.py in __init__(self, dicpath)
76 try:
---> 77 self.tagger = Tagger('-d %s' % dicpath)
78 self.tagset = utils.read_json('%s/data/tagset/mecab.json' % utils.installpath)
NameError: name 'Tagger' is not defined
During handling of the above exception, another exception occurred:
Exception Traceback (most recent call last)
1 frames
/usr/local/lib/python3.10/dist-packages/konlpy/tag/_mecab.py in __init__(self, dicpath)
80 raise Exception('The MeCab dictionary does not exist at "%s". Is the dictionary correctly installed?\nYou can also try entering the dictionary path when initializing the Mecab class: "Mecab(\'/some/dic/path\')"' % dicpath)
81 except NameError:
---> 82 raise Exception('Install MeCab in order to use it: http://konlpy.org/en/latest/install/')
83
84 def __setstate__(self, state):
Exception: Install MeCab in order to use it: http://konlpy.org/en/latest/install/
댓글 입력