rjieba
jieba-rs Python binding
What it is and what it does
rjieba is a Python wrapper around jieba-rs, a Rust implementation of the jieba Chinese text segmentation algorithm. It provides two main functions: cut() for word tokenization and tag() for part-of-speech tagging of Chinese text. The package trades the pure-Python simplicity of the original jieba library for substantially faster performance by delegating the heavy lifting to compiled Rust code.
The library has no runtime dependencies and installs via precompiled wheels for most common platforms and Python versions. It's designed for developers working with Chinese natural language processing tasks who need reliable tokenization without the performance overhead of pure-Python alternatives.
Use it for:
- Tokenizing Chinese text for search indexing or information retrieval systems
- Preprocessing Chinese documents before machine learning or NLP model training
- Extracting part-of-speech tags for Chinese text analysis and linguistic research
- Building Chinese text processing pipelines where performance is a constraint
- Integrating Chinese language support into web applications or APIs
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python binding to the Rust-based jieba-rs Chinese text segmentation library, providing fast word tokenization and part-of-speech tagging for Chinese text.
Yes, if you need fast Chinese text segmentation. The package is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and offers significant performance gains over pure-Python alternatives. Install friction is moderate but manageable via prebuilt wheels. Verify that your platform and Python version are covered by available wheels before committing.
Install
rjieba on PyPI
pip
pip install rjiebauv
uv add rjiebapoetry
poetry add rjiebaInstalling rjieba
Before you install
Medium install friction due to compiled wheels; however, prebuilt binaries are available for common platforms (x86_64, ARM, ppc64le, s390x, i686) and Python versions, making installation straightforward on supported systems. Repository is actively maintained with recent commits.
License in practice
MIT license permits commercial and private use with minimal restrictions; you must include a copy of the license in distributions but face no copyleft obligations.
Quickstart
pip install rjieba
import rjieba
print(rjieba.cut('我们中出了一个叛徒'))
print(rjieba.tag('我们中出了一个叛徒'))
Verify before relying
- Whether Python version support extends beyond what prebuilt wheels cover (requires_python is unspecified)
- Dictionary customization or user-defined vocabulary support beyond default behavior
- Memory usage and performance characteristics on large-scale production workloads
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 111 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 334,661/month — #7,487 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: rjieba-0.2.1-cp314-cp314t-macosx_10_12_x86_64.whl; rjieba-0.2.1-cp314-cp314t-macosx_11_0_arm64.whl; rjieba-0.2.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; rjieba-0.2.1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; rjieba-0.2.1-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; rjieba-0.2.1-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl; rjieba-0.2.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; rjieba-0.2.1-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl; rjieba-0.2.1-cp314-cp314t-musllinux_1_2_aarch64.whl; rjieba-0.2.1-cp314-cp314t-musllinux_1_2_armv7l.whl; rjieba-0.2.1-cp314-cp314t-musllinux_1_2_i686.whl; rjieba-0.2.1-cp314-cp314t-musllinux_1_2_x86_64.whl; rjieba-0.2.1-cp314-cp314t-win32.whl; rjieba-0.2.1-cp314-cp314t-win_amd64.whl; rjieba-0.2.1-cp38-abi3-macosx_10_12_x86_64.whl; rjieba-0.2.1-cp38-abi3-macosx_11_0_arm64.whl; rjieba-0.2.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; rjieba-0.2.1-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; rjieba-0.2.1-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; rjieba-0.2.1-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Tags
More Linguistic packages
Detects and normalizes text encoding from…
permissive · top 100 on PyPI
tiktokentiktoken is a fast BPE tokenizer that converts…
permissive · top 1,000 on PyPI
chardetDetects character encoding and language in byte…
permissive · top 1,000 on PyPI
text-unidecodeConverts Unicode text to ASCII by…
copyleft · top 1,000 on PyPI
larkLark is a parsing library that builds abstract…
permissive · top 1,000 on PyPI
tree-sitterPython bindings to the tree-sitter parsing…
permissive · top 1,000 on PyPI
jieba3kPerforms Chinese word segmentation, breaking…
unclear · top 15,000 on PyPI
jiebaJieba segments Chinese text into words using…
permissive · top 5,000 on PyPI
spacy-pkusegChinese word segmentation for spaCy with…
permissive · top 15,000 on PyPI
rouge-chineseComputes ROUGE evaluation metrics for Chinese…
unclear · top 15,000 on PyPI
mecabPython binding for MeCab, a morphological…
copyleft · top 15,000 on PyPI
curated-tokenizersProvides BPE, Byte BPE, Unigram, and Wordpiece…
permissive · top 5,000 on PyPI
segtokSplits Indo-European text into sentences and…
permissive · top 15,000 on PyPI
textblobTextBlob provides a simple API for common…
permissive · top 5,000 on PyPI
JanomeJanome is a Japanese morphological analyzer…
permissive · top 15,000 on PyPI
pyviProvides Vietnamese language processing tools…
permissive · top 15,000 on PyPI