Skip to main content

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

Project description

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

Instlation

$ pip install mecab

or

$ python -m pip install mecab

Usage

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mecab-0.996.tar.gz (63.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mecab-0.996-cp38-cp38-win_amd64.whl (509.5 kB view details)

Uploaded CPython 3.8Windows x86-64

mecab-0.996-cp38-cp38-win32.whl (738.8 kB view details)

Uploaded CPython 3.8Windows x86

mecab-0.996-cp37-cp37m-win_amd64.whl (509.4 kB view details)

Uploaded CPython 3.7mWindows x86-64

mecab-0.996-cp37-cp37m-win32.whl (738.6 kB view details)

Uploaded CPython 3.7mWindows x86

mecab-0.996-cp36-cp36m-win_amd64.whl (509.4 kB view details)

Uploaded CPython 3.6mWindows x86-64

mecab-0.996-cp36-cp36m-win32.whl (738.6 kB view details)

Uploaded CPython 3.6mWindows x86

mecab-0.996-cp27-cp27m-win_amd64.whl (499.7 kB view details)

Uploaded CPython 2.7mWindows x86-64

mecab-0.996-cp27-cp27m-win32.whl (729.2 kB view details)

Uploaded CPython 2.7mWindows x86

File details

Details for the file mecab-0.996.tar.gz.

File metadata

  • Download URL: mecab-0.996.tar.gz
  • Upload date:
  • Size: 63.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for mecab-0.996.tar.gz
Algorithm Hash digest
SHA256 ae166290fb0a4e322f6692a02716528fe34b7812f9c36d6fcd453e50ce4b3833
MD5 175e9d6a60950c5732f3e5b5598c7645
BLAKE2b-256 63b2a240ad681c8be36837be13d805ea8f31d94c3bf5949db5f68a2c46bb14f4

See more details on using hashes here.

File details

Details for the file mecab-0.996-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: mecab-0.996-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 509.5 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for mecab-0.996-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 90966b002eeeee74d7251c1bbb257437c1918803f918afc69df78a87d081ef07
MD5 62bbfb164d309505383a0866f769d38c
BLAKE2b-256 a0a18b01ea3c8a10a86fbb63d1429b9e1db6144c344e95904404b70f923facd2

See more details on using hashes here.

File details

Details for the file mecab-0.996-cp38-cp38-win32.whl.

File metadata

  • Download URL: mecab-0.996-cp38-cp38-win32.whl
  • Upload date:
  • Size: 738.8 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for mecab-0.996-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 450acd2135de3ae927cfca8e107da05db14fa4369f27fd551d5f0d57c6df7a0b
MD5 1b29d2277781c08318b5960074d0fd2d
BLAKE2b-256 2ae5bfaa234bd270baefd5918574bd34edbb2293e150f3cfe4b2ced0285dd6cd

See more details on using hashes here.

File details

Details for the file mecab-0.996-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: mecab-0.996-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 509.4 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for mecab-0.996-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 e7fd48a6e2a9dbfc22f3b5391ce0b08d9bb4400a7da90d536cce490a0094dd77
MD5 ad3bebfe204a6bcd82efe854ca60eba0
BLAKE2b-256 469202b78f00cf2154831f416e484c6e372b93a8c24edaf969e44093d1482673

See more details on using hashes here.

File details

Details for the file mecab-0.996-cp37-cp37m-win32.whl.

File metadata

  • Download URL: mecab-0.996-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 738.6 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for mecab-0.996-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 e07c90472592bcf961eda718d38267af50c1bb7cd724fe4ba0d85b47f72209f1
MD5 9cd4a69673a04bef418464fe145e9ad0
BLAKE2b-256 46048951252c8356b1674eda5b472df08c7cbfcb35f2fd44ee578510eb63c691

See more details on using hashes here.

File details

Details for the file mecab-0.996-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: mecab-0.996-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 509.4 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for mecab-0.996-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 856cc1c3463e72bda075c13ab392383c7a4f9d4e0b2e024842eb024ccc28b7ab
MD5 8e6d77f687b940c8fcec8c5665165888
BLAKE2b-256 11b1c340f77126af3aa80a220412ef00216ddc8535ad15b04bd2bf4299ab74ff

See more details on using hashes here.

File details

Details for the file mecab-0.996-cp36-cp36m-win32.whl.

File metadata

  • Download URL: mecab-0.996-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 738.6 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for mecab-0.996-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 f0332dfdc215497fa2e8edf87f5638f232f96fbc87edef6136175eaa7d586964
MD5 e86137e4821f17d4e51f800ecb8d76fe
BLAKE2b-256 c64f92b281aea90a3b9c11550cdb09278a9b3828ee71b0fe9f8da66245846e7f

See more details on using hashes here.

File details

Details for the file mecab-0.996-cp27-cp27m-win_amd64.whl.

File metadata

  • Download URL: mecab-0.996-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 499.7 kB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for mecab-0.996-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 366c5d9d57afdab92216e3c1569f22b992d3a063a67d5d4f42aced26011f6a4b
MD5 ff350f9432f640c5071e7b98045bdad9
BLAKE2b-256 568c0378d3492dacd1e610d71bbf20159d81c302c64589dfe05ad491137a4dc1

See more details on using hashes here.

File details

Details for the file mecab-0.996-cp27-cp27m-win32.whl.

File metadata

  • Download URL: mecab-0.996-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 729.2 kB
  • Tags: CPython 2.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for mecab-0.996-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 cd5763bf7e0bcd80ba844b981841ad159ec07d9ccf764a9b2c8ad57b31cecf7b
MD5 70a99ae8d06bd2be056ca53bda6a6d6c
BLAKE2b-256 447d880dba649c11cc8271bf457e4dc1495ded3172139454e9563af3452c7d53

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page