python wrapper for mecab: Morphological Analysis engine
This python wrapper for mecab works on both python3.x and python2.x.
Installation and Usage
pip install mecab-python3
You must have
swig installed before running
For instance, on Debian-based Linux,
sudo apt-get install mecab mecab-ipadic-utf8 libmecab-dev swig
How to use?
see 'test.py' as a sample program.
import MeCab mecab = MeCab.Tagger ("-Ochasen") print(mecab.parse("pythonが大好きです"))
MeCab is copyrighted free software by Taku Kudo firstname.lastname@example.org and Nippon Telegraph and Telephone Corporation, and is released under any of the GPL (see the file GPL), the LGPL (see the file LGPL), or the BSD License (see the file BSD).
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.