Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

mecab-ko-dic 은 지원 안되나요? #2

Open
daewonyoon opened this issue Dec 5, 2018 · 0 comments
Open

mecab-ko-dic 은 지원 안되나요? #2

daewonyoon opened this issue Dec 5, 2018 · 0 comments

Comments

@daewonyoon
Copy link

daewonyoon commented Dec 5, 2018

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?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant