--- id: mecab-python3 version: "1.0.12" license: BSD license_treatment: permissive maintenance: aging --- # mecab-python3 — Python wrapper for the MeCab morphological analyzer for Japanese License: permissive · Maintenance: aging · Downloads: 1.1M/mo ## What it is and what it does mecab-python3 is a Python wrapper around MeCab, a morphological analyzer for Japanese text processing. It provides tokenization (word segmentation) and grammatical tagging, breaking sentences into morphemes and annotating each with part-of-speech labels, base forms, and readings. The wrapper follows MeCab's native API closely rather than adopting Pythonic conventions, so it reads like a direct port of the underlying C++ library. The package ships as prebuilt wheels for macOS, Linux, and Windows, eliminating the need to compile MeCab yourself. However, it requires a separate dictionary installation to actually parse text. Windows users must also install the Microsoft Visual C++ Redistributable. The library has no Python runtime dependencies and supports Python 3.8 through 3.14. Use it for: - Tokenizing Japanese sentences into words and morphemes for downstream NLP tasks like sentiment analysis or named-entity recognition. - Extracting lemmas and part-of-speech tags from Japanese text for linguistic analysis or corpus processing. - Building a wakati-mode tokenizer for simple word segmentation without full grammatical annotation. - Processing Japanese user input in chatbots, search engines, or text classification systems. - Preparing Japanese text for machine learning models that require pre-tokenized input. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Python wrapper for MeCab, a morphological analyzer that tokenizes and tags Japanese text with part-of-speech information and lemmatization. Yes, if you need Japanese morphological analysis and can manage the dictionary setup. The library is mature, widely used (top 5000 on PyPI), has no known vulnerabilities, and permissive licensing. The aging maintenance status (262 days since last release) is a minor concern but not a blocker for stable use. Install friction is moderate due to dictionary requirement and platform-specific gotchas, but well-documented. ## Install pip install mecab-python3 uv add mecab-python3 poetry add mecab-python3 ## Installing mecab-python3 Before you install: Medium install friction: prebuilt wheels available for macOS, Linux, and Windows, but Windows requires Microsoft Visual C++ Redistributable and macOS Big Sur needs pip 20.3 or higher. No runtime dependencies, but a separate dictionary package is required to function. Last release 262 days ago; maintenance status is aging. License in practice: Distributed under permissive BSD license, with dual licensing available under GPLv2 or LGPLv2.1. No restrictions on commercial use or modification. Quickstart: pip install mecab-python3 import MeCab tagger = MeCab.Tagger() print(tagger.parse("pythonが大好きです")) Requires a MeCab dictionary to be installed separately; Windows requires Microsoft Visual C++ Redistributable; macOS Big Sur requires pip 20.3 or higher. Verify before relying: - Whether the aging maintenance status (262 days since last release) affects stability or security for ongoing use. - Which dictionary packages are compatible and actively maintained for use with this wrapper. - Performance characteristics and scalability limits for large-scale Japanese text processing. ## Package facts - License: BSD (permissive) - Python support: unspecified - Install friction: medium - Maintenance: aging - Downloads: 1.1M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags japanese text tokenization, morphological analysis japanese, mecab python wrapper, japanese nlp tokenizer, part-of-speech tagging japanese, japanese lemmatization, wakati japanese parsing, japanese-nlp, tokenization, morphological-analysis [View on SkillFed](https://skillfed.io/packages/mecab-python3) · [View on PyPI](https://pypi.org/project/mecab-python3/)