{"id":45934,"library":"python-mecab-ko","title":"python-mecab-ko: Korean morphological analyzer (mecab-ko binding)","description":"A Python binding for mecab-ko, the Korean morphological analyzer based on MeCab. Provides part-of-speech tagging, lemmatization, and tokenization for Korean text. Version 1.3.7 requires Python >=3.7. Released irregularly.","status":"active","version":"1.3.7","language":"python","source_language":"en","source_url":"https://github.com/jonghwanhyeon/python-mecab-ko","tags":["korean","nlp","morphological-analysis","tokenization","pos-tagging"],"install":[{"cmd":"pip install python-mecab-ko","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"The package name has a dash, but the import uses 'mecab' (no dash).","wrong":"from python_mecab_ko import Mecab","symbol":"Mecab","correct":"from mecab import MeCab"}],"quickstart":{"code":"from mecab import MeCab\n\nmecab = MeCab()\ntext = \"안녕하세요. 저는 한국어입니다.\"\nparsed = mecab.pos(text)\nprint(parsed)\n# [('안녕하세요', 'MAG'), ('.', 'SF'), ('저', 'NP'), ('는', 'JX'), ('한국어', 'NNG'), ('입니다', 'VCP+EC'), ('.', 'SF')]","lang":"python","description":"Basic usage: parse Korean text into morphemes with POS tags."},"warnings":[{"fix":"Use 'from mecab import MeCab' instead.","message":"The package is named 'python-mecab-ko' but import is 'mecab'. Using 'python_mecab_ko' will raise ImportError.","severity":"broken","affected_versions":"all"},{"fix":"Use default constructor. To customize, set environment variable MECABRC before import.","message":"MeCab() constructor does not accept arguments in this binding. Some users try to pass mecabrc path, which is not supported.","severity":"gotcha","affected_versions":"all"},{"fix":"Install mecab-ko and mecab-ko-dic via your system package manager (e.g., apt, brew) or follow instructions at https://github.com/jonghwanhyeon/python-mecab-ko#installation.","message":"mecab-ko dictionary must be installed separately. The Python package only wraps the binary. Without the dictionary, you'll get runtime errors about missing resources.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'1.3.7':39 '3.7':42 'analysi':49 'analyz':7,22 'base':23 'bind':11,14 'irregular':44 'ko':4,10,18 'korean':5,20,36,45 'lemmat':32 'mecab':3,9,17,25 'mecab-ko':8,16 'morpholog':6,21,48 'morphological-analysi':47 'nlp':46 'part':28 'part-of-speech':27 'pos':52 'pos-tag':51 'provid':26 'python':2,13,41 'python-mecab-ko':1 'releas':43 'requir':40 'speech':30 'tag':31,53 'text':37 'token':34,50 'version':38","created_at":"2026-06-07T12:57:27.698131+00:00","updated_at":"2026-06-07T12:57:27.698131+00:00","problems":[{"fix":"Use 'from mecab import MeCab'.","cause":"Trying to import the package name with underscores instead of the correct module name 'mecab'.","error":"ImportError: No module named 'python_mecab_ko'"},{"fix":"Install mecab-ko and mecab-ko-dic (e.g., 'apt-get install mecab mecab-ko-dic'). Then set MECABRC to the dictionary path if necessary.","cause":"The mecab-ko dictionary is not installed or MECABRC environment variable is not set.","error":"RuntimeError: mecab: failed to create mecab instance!"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/jonghwanhyeon/python-mecab-ko","github":"https://github.com/jonghwanhyeon/python-mecab-ko","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}