suzume
Japanese tokenization for Python applications. Suzume is not a full morphological analyzer like MeCab: it prioritizes useful search units while still providing part-of-speech tags, lemmas, and keyword extraction. The wheel requires no extra dictionary installation.
📖 Full API reference and guides
See the MeCab comparison for concrete examples of token boundaries, lemmatization, and trade-offs.
Installation
pip install suzume
PyPI publishes binary wheels for Linux x86_64
(manylinux2014/manylinux_2_17) and macOS arm64 (macOS 11 or newer).
Windows, macOS x86_64, Linux arm64, and other platforms or architectures are
not supported. Suzume does not publish or support a source distribution; an
installation succeeds only when a compatible wheel is available.
Quick Start
from suzume import Suzume
with Suzume() as sz:
tokens = sz.analyze("すもももももももものうち")
tags = sz.generate_tags("東京の公園に行きました")
Threads
Calls on one Suzume instance are serialized, so it can safely be shared
between Python threads. Create one instance per worker when native analysis
should run in parallel.
Installing the wheel also provides the suzume command:
suzume "東京へ行く"
suzume analyze --mode search --format json "東京の公園"
printf 'りんごを食べる\n' | suzume --format tags
Run suzume --help for analysis modes, normalization controls, output formats,
tag filters, and repeatable --dict options. Dictionary compilation,
validation, and test commands remain part of the separate native developer
tool, suzume-cli.
See the Python API for the complete interface, including user dictionaries and tag-generation options.
Also available
npm install @libraz/suzume # JavaScript / TypeScript WebAssembly package
The native C and C++ library is documented at suzume.libraz.net/docs/cpp.
License
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file suzume-0.9.8-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.
File metadata
- Download URL: suzume-0.9.8-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- Upload date:
- Size: 915.4 kB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba2caec5d2c2bcecde6d71ed149b736a7b9cd873fde764a69933f9ffe1f734cb
|
|
| MD5 |
76969db7d74cb921b7bc0fcd8208c026
|
|
| BLAKE2b-256 |
eab6972e16722aa345452ac45234fbb6e04e01b473dcffdd602a27dadcf1301c
|
Provenance
The following attestation bundles were made for suzume-0.9.8-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:
Publisher:
publish.yml on libraz/suzume
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
suzume-0.9.8-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl -
Subject digest:
ba2caec5d2c2bcecde6d71ed149b736a7b9cd873fde764a69933f9ffe1f734cb - Sigstore transparency entry: 2293351700
- Sigstore integration time:
-
Permalink:
libraz/suzume@3d68ef289a82d529f674f3b446f1ae6fa5750c16 -
Branch / Tag:
refs/tags/v0.9.8 - Owner: https://github.com/libraz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3d68ef289a82d529f674f3b446f1ae6fa5750c16 -
Trigger Event:
push
-
Statement type:
File details
Details for the file suzume-0.9.8-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: suzume-0.9.8-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 595.8 kB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff879f467fd8761ed4f2bfd1d0047bf7a341627ff5a1ea8d99331b99be592c7b
|
|
| MD5 |
e6b03bd4cf0eb95d08d8b7d319d3a5c5
|
|
| BLAKE2b-256 |
e4576b4718ab407305648e96923a582528e2adca07498e5f4490485b02704bc4
|
Provenance
The following attestation bundles were made for suzume-0.9.8-py3-none-macosx_11_0_arm64.whl:
Publisher:
publish.yml on libraz/suzume
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
suzume-0.9.8-py3-none-macosx_11_0_arm64.whl -
Subject digest:
ff879f467fd8761ed4f2bfd1d0047bf7a341627ff5a1ea8d99331b99be592c7b - Sigstore transparency entry: 2293351600
- Sigstore integration time:
-
Permalink:
libraz/suzume@3d68ef289a82d529f674f3b446f1ae6fa5750c16 -
Branch / Tag:
refs/tags/v0.9.8 - Owner: https://github.com/libraz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3d68ef289a82d529f674f3b446f1ae6fa5750c16 -
Trigger Event:
push
-
Statement type: