Skip to main content

A Cython wrapper for MeCab

Project description

fugashi

Fugashi is a Cython wrapper for MeCab. It doesn't attempt to cover all of the potential use cases of MeCab, instead dealing with only the most common ones.

  • Only UniDic is supported, you can't use IPADic. UniDic Neologd is fine.
  • Only UTF-8 is supported.
  • Only Python3 is supported.

Usage

from fugashi import Tagger

tagger = Tagger('-Owakati')
tagger.parse("麩菓子(ふがし)は、麩を主材料とした日本の菓子。")
# => '麩 菓子 ( ふ が し ) は 、 麩 を 主材 料 と し た 日本 の 菓子 。 \n'
for word in tagger.parseToNodeList("麩菓子(ふがし)は、麩を主材料とした日本の菓子。"):
    print(word, word.feature.lemma, word.pos, sep='\t')
    # "feature" is the Unidic feature data as a named tuple

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

fugashi-0.1.5.tar.gz (50.1 kB view details)

Uploaded Source

Built Distributions

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

fugashi-0.1.5-cp38-cp38-win_amd64.whl (481.9 kB view details)

Uploaded CPython 3.8Windows x86-64

fugashi-0.1.5-cp37-cp37m-win_amd64.whl (481.3 kB view details)

Uploaded CPython 3.7mWindows x86-64

fugashi-0.1.5-cp36-cp36m-win_amd64.whl (481.4 kB view details)

Uploaded CPython 3.6mWindows x86-64

File details

Details for the file fugashi-0.1.5.tar.gz.

File metadata

  • Download URL: fugashi-0.1.5.tar.gz
  • Upload date:
  • Size: 50.1 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.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for fugashi-0.1.5.tar.gz
Algorithm Hash digest
SHA256 b76df35fcb2653d3245f3460149f80f14fdbdf6389c1fea7c601331ab5f21ccc
MD5 4f41959504089bc6b99690593460c703
BLAKE2b-256 8c74a1f5d172056a6091a822f35c1f96f64a3a1e5e0214a359e6c5590601d599

See more details on using hashes here.

File details

Details for the file fugashi-0.1.5-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: fugashi-0.1.5-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 481.9 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.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for fugashi-0.1.5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7fca01f083128c9d62e2a0c9e7f78d3cd1395232f998040ccc298b26ea7b396b
MD5 f1cca7f0bed8e74708ed685a379ef87b
BLAKE2b-256 3d668cf850d08d76514030207afc1cce13fe6bf9dff962e8ebebc631a8f53613

See more details on using hashes here.

File details

Details for the file fugashi-0.1.5-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: fugashi-0.1.5-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 481.3 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.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for fugashi-0.1.5-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 863f5d79cbec5148973ee774cc4fba6e08b04599dc0d4733841872212fc5c38c
MD5 d2c09a9acc8897a29e8deb96f8d5f849
BLAKE2b-256 ca2913a21070e3ed15240f5aae2589b43fac23546ff74789a6ddbca8a51ecce1

See more details on using hashes here.

File details

Details for the file fugashi-0.1.5-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: fugashi-0.1.5-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 481.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.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for fugashi-0.1.5-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 f01a491afa4f86edc4c6a690528ad3a4d81ec720dec7f99083df19c9ae43b19a
MD5 4589a0ea5d28e30bdb954121a59113c6
BLAKE2b-256 90fcf611e7a8c9ef745600264d87cfd58bf64ed18268b0cf4be23241ee5778cf

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