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

Uploaded Python 3manylinux: glibc 2.17+ x86-64

suzume-0.9.8-py3-none-macosx_11_0_arm64.whl (595.8 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for suzume-0.9.8-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 ba2caec5d2c2bcecde6d71ed149b736a7b9cd873fde764a69933f9ffe1f734cb
MD5 76969db7d74cb921b7bc0fcd8208c026
BLAKE2b-256 eab6972e16722aa345452ac45234fbb6e04e01b473dcffdd602a27dadcf1301c

See more details on using hashes here.

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

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.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

Hashes for suzume-0.9.8-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff879f467fd8761ed4f2bfd1d0047bf7a341627ff5a1ea8d99331b99be592c7b
MD5 e6b03bd4cf0eb95d08d8b7d319d3a5c5
BLAKE2b-256 e4576b4718ab407305648e96923a582528e2adca07498e5f4490485b02704bc4

See more details on using hashes here.

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

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

0.9.9

2 files

This release

0.9.8 This release

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