aristotll / mecab-python3

python3 version of mecab-python. you can find original version here:https://code.google.com/p/mecab/downloads/detail?name=mecab-python-0.996.tar.gz&can=2&q=

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mecab-python3

This python wrapper for mecab works on both python3.x and python2.x.

Installtion and Usage

  1. Installation
pip install mecab-python3

Before installing mecabpython3, make sure you have installed mecab already.

example of installtion. Assume you are using Debian-based linux.

sudo apt-get install libmecab-dev
sudo apt-get install mecab mecab-ipadic-utf8
pip install mecab-python3
  1. How to use?

    see 'test.py' as a sample program.

  2. Simple example

import MeCab
mecab = MeCab.Tagger ("-Ochasen")
print(mecab.parse("pythonが大好きです"))

License

MeCab is copyrighted free software by Taku Kudo taku@chasen.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).

About

python3 version of mecab-python. you can find original version here:https://code.google.com/p/mecab/downloads/detail?name=mecab-python-0.996.tar.gz&can=2&q=

License:Other


Languages

Language:C++ 85.8%Language:Python 11.2%Language:HTML 3.1%