SOMJANG / Mecab-ko-for-Google-Colab

Use Mecab Library(NLP Library) in Google Colab
Apache License 2.0
69 stars 30 forks source link

NameError: name 'Tagger' is not defined #6

Closed SOMJANG-42MARU closed 2 years ago

SOMJANG-42MARU commented 2 years ago

2022년 4월 29일 금요일 블로그 방문자 유입에 Tagger 관련 키워드 확인하여 동작 테스트 후 발견

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.7/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/

SOMJANG-42MARU commented 2 years ago

이전에 Ubuntu 18.04 LTS 에 mecab-ko 설치 간 해결했던 방법 참고