pyeunjeon
pyeunjeon copied to clipboard
mecab-ko-dic 은 지원 안되나요?
mecab-ko-dic 을 이용해서, 사용자 사전 추가는 안 되나요?
ubuntu 환경에서 mecab-ko-dic 을 설치하여, mecab/dic/mecab-ko-dic 이하만 윈도우로 복사하여 두고, 해당 패쓰를 Mecab(dicpath=mypath) 로 실행해 보았으나, 아래와 같은 에러메시지가 발생하네요. 안되는 건가요? 무언가를 잘못한걸까요?
>>> from konlpy.tag import Mecab as kmecab
>>> m1 = Mecab(dicpath='d:/sh_channel/mecab__dic__mecab-ko-dic')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "d:\pythonenvs\textanal3664\lib\site-packages\eunjeon\_mecab.py", line 106, in __init__
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)
Exception: The MeCab dictionary does not exist at "d:/sh_channel/mecab__dic__mecab-ko-dic". Is the dictionary correctly installed?