Metadata-Version: 2.1
Name: mecab
Version: 0.996
Summary: MeCab binding for many OSs (Windows, macOS, and Linux)
Home-page: https://github.com/ikegami-yukino/mecab/tree/master/mecab/python
Author: Yukino Ikegami
Author-email: yknikgm@gmail.com
License: BSD, GPL or LGPL
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: BSD License
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Classifier: Operating System :: Microsoft :: Windows :: Windows 10
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Text Processing
Description-Content-Type: text/x-rst

Unofficial MeCab binding module for many OSs (Windows, macOS, and Linux)

Instlation
===========

$ pip install mecab

or

$ python -m pip install mecab

Usage
============

.. code:: python

  >>> import MeCab
  >>> t = MeCab.Tagger()
  >>> sentence = "太郎はこの本を女性に渡した。"
  >>> print(t.parse(sentence))
  太郎    名詞,固有名詞,人名,名,*,*,太郎,タロウ,タロー
  は      助詞,係助詞,*,*,*,*,は,ハ,ワ
  この    連体詞,*,*,*,*,*,この,コノ,コノ
  本      名詞,一般,*,*,*,*,本,ホン,ホン
  を      助詞,格助詞,一般,*,*,*,を,ヲ,ヲ
  女性    名詞,一般,*,*,*,*,女性,ジョセイ,ジョセイ
  に      助詞,格助詞,一般,*,*,*,に,ニ,ニ
  渡し    動詞,自立,*,*,五段・サ行,連用形,渡す,ワタシ,ワタシ
  た      助動詞,*,*,*,特殊・タ,基本形,た,タ,タ
  。      記号,句点,*,*,*,*,。,。,。
  EOS
  >>> n = t.parseToNode(sentence)
  >>> while n:
  >>>     print(n.surface, "\t", n.feature)
  >>>     m = m.next
             BOS/EOS,*,*,*,*,*,*,*,*
  太郎     名詞,固有名詞,人名,名,*,*,太郎,タロウ,タロー
  は       助詞,係助詞,*,*,*,*,は,ハ,ワ
  この     連体詞,*,*,*,*,*,この,コノ,コノ
  本       名詞,一般,*,*,*,*,本,ホン,ホン
  を       助詞,格助詞,一般,*,*,*,を,ヲ,ヲ
  女性     名詞,一般,*,*,*,*,女性,ジョセイ,ジョセイ
  に       助詞,格助詞,一般,*,*,*,に,ニ,ニ
  渡し     動詞,自立,*,*,五段・サ行,連用形,渡す,ワタシ,ワタシ
  た       助動詞,*,*,*,特殊・タ,基本形,た,タ,タ
  。       記号,句点,*,*,*,*,。,。,。
           BOS/EOS,*,*,*,*,*,*,*,*

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).

Also, this Python binding is under any of the GPL, the LGPL, or the BSD License.

