Registry / ai-ml / mecab-ko-dic

mecab-ko-dic

JSON →
library1.0.0pypypi✓ verified 85d ago

A Python distribution of the mecab-ko-dic Korean dictionary for MeCab. Version 1.0.0 provides pre-packaged dictionary data and is primarily used as a dependency for Korean NLP tools like mecab-python3. No longer actively maintained.

pip install mecab-ko-dic
INSTALL
IMPORT
SIG · MECAB-KO-DIC
M
mecab-ko-dic
ai-mlpythonv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mecab_ko_dic
import mecab_ko_dic
The package provides a Python module containing the dictionary path.

Import the module to discover the dictionary directory, then pass it to MeCab's tagger with the -d option.

import mecab_ko_dic # Get the path to the dictionary dic_dir = mecab_ko_dic.__path__[0] print(f"Dictionary installed at: {dic_dir}") # Use with MeCab (requires mecab-python3) # import MeCab # mecab = MeCab.Tagger(f'-d {dic_dir}') # print(mecab.parse('안녕하세요'))
Debug
Known issues
deprecatedThis package is not actively maintained. The PyPI package may be outdated compared to upstream mecab-ko-dic releases. Consider using the upstream dictionary directly or alternative packages like mecab-ko-dic-utf-8.
fix
Install from upstream: https://github.com/taku910/mecab/tree/master/mecab-ko-dic
affects: >=1.0.0
gotchaThe module `mecab_ko_dic` is not a large library; it only provides the path to the dictionary data. Do not expect complex functionalities.
fix
Use it only to get the dictionary directory, then pass it to MeCab.
affects: all
gotchaThis package does not include the MeCab tokenizer itself. You must separately install mecab-python3 (or similar) and have MeCab installed system-wide.
fix
pip install mecab-python3; on Linux, also install mecab-ko via apt or source.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'mecab_ko_dic'
The package is not installed or installed incorrectly.
fix
Run 'pip install mecab-ko-dic' to install from PyPI.
Exception: [line 1] param.cpp(69) [ifs] no such file or directory: /usr/local/lib/mecab/dic/mecab-ko-dic/dicrc
MeCab cannot find the dictionary because the -d parameter is missing or wrong.
fix
Use the path from mecab_ko_dic.__path__[0] as the -d argument to MeCab.Tagger.
Upgrade
Version history
1.0.0latest on PyPI · released Feb 19, 2021
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
6
Resources
mecab-ko-dic — pip install mecab-ko-dic · libregistry