Skip to main content

suzume

PyPI npm License Docs

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

Apache License 2.0

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

suzume-0.9.10-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (947.9 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

suzume-0.9.10-py3-none-macosx_11_0_arm64.whl (618.6 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file suzume-0.9.10-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for suzume-0.9.10-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 476c3e3892049bf3ebb0031117f030009b68a8e744ad4b994f3373833f3f0996
MD5 2103aec62155000d6f1b1da4df70ef38
BLAKE2b-256 2ce7e20fa504d7645fd77b9e2ab788569cc6b590c24ad01067809fd4d7abed1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for suzume-0.9.10-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: publish.yml on libraz/suzume

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file suzume-0.9.10-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for suzume-0.9.10-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72f6b602dc00c2a83782574b9822295d54ca88c025bf02fef28ff0f1b4ca8694
MD5 ae451667046b990c0ec5dcef0ebef79b
BLAKE2b-256 8a4af3dfe35aee265673577351c2e9dd6a06736b32e80625ace28f0d27525361

See more details on using hashes here.

Provenance

The following attestation bundles were made for suzume-0.9.10-py3-none-macosx_11_0_arm64.whl:

Publisher: publish.yml on libraz/suzume

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.9.10 This release

2 files

0.9.9

2 files

0.9.8

2 files

0.9.7

2 files

0.9.6

2 files

0.9.5

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page