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.9-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (936.9 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

suzume-0.9.9-py3-none-macosx_11_0_arm64.whl (611.5 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for suzume-0.9.9-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 7e5f3d7eb4d7ea6cedcba03e5618ddb930289d5067cbc473cbb04dcedf53553d
MD5 6ba7b2f9781df45348685cd5fbc96aad
BLAKE2b-256 c65f58c77d0739be031e30fba6a0b3badbc38758f889000877aa3542579949f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for suzume-0.9.9-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.9-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for suzume-0.9.9-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 992126fc40c254e9e095ee2631a59d18735aa8d398caf7c99e1f2394264cb7b5
MD5 e16aa78c0256ebd7d44f5e52137e32cd
BLAKE2b-256 13064271680803535888bb081393dd3fbbb504779e23e9c8f66cddfdf5efcc8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for suzume-0.9.9-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

0.9.10

2 files

This release

0.9.9 This release

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