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 hashes)
Built Distributions
fugashi-0.1.5-cp38-cp38-win_amd64.whl
(481.9 kB
view hashes)
Close
Hashes for fugashi-0.1.5-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fca01f083128c9d62e2a0c9e7f78d3cd1395232f998040ccc298b26ea7b396b |
|
MD5 | f1cca7f0bed8e74708ed685a379ef87b |
|
BLAKE2b-256 | 3d668cf850d08d76514030207afc1cce13fe6bf9dff962e8ebebc631a8f53613 |
Close
Hashes for fugashi-0.1.5-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 863f5d79cbec5148973ee774cc4fba6e08b04599dc0d4733841872212fc5c38c |
|
MD5 | d2c09a9acc8897a29e8deb96f8d5f849 |
|
BLAKE2b-256 | ca2913a21070e3ed15240f5aae2589b43fac23546ff74789a6ddbca8a51ecce1 |
Close
Hashes for fugashi-0.1.5-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f01a491afa4f86edc4c6a690528ad3a4d81ec720dec7f99083df19c9ae43b19a |
|
MD5 | 4589a0ea5d28e30bdb954121a59113c6 |
|
BLAKE2b-256 | 90fcf611e7a8c9ef745600264d87cfd58bf64ed18268b0cf4be23241ee5778cf |