Skip to main content

rjieba-py

CI PyPI

jieba-rs Python binding.

Installation

pip install rjieba

Usage

import rjieba


print(rjieba.cut('我们中出了一个叛徒'))
print(rjieba.tag('我们中出了一个叛徒'))

Performance

Running on MacBook Pro (15-inch, 2018) 2.2 GHz 6-Core Intel Core i7

In [1]: import jieba

In [2]: import cjieba

In [3]: import rjieba

In [4]: jieba.initialize()
Building prefix dict from the default dictionary ...
Loading model from cache /var/folders/8d/h3lyjgz14296j_lw7chgf5hc0000gp/T/jieba.cache
Loading model cost 0.695 seconds.
Prefix dict has been built successfully.

In [5]: cjieba.initialize()

In [6]: with open('../jieba-rs/examples/weicheng/src/weicheng.txt') as f:
   ...:     txt = f.read()
   ...:

In [7]: %timeit list(jieba.cut(txt))
1.1 s ± 10.6 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

In [8]: %timeit cjieba.cut(txt)
225 ms ± 3.95 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

In [9]: %timeit rjieba.cut(txt)
106 ms ± 2.01 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)

License

This work is released under the MIT license. A copy of the license is provided in the LICENSE file.

Metadata

Release files for rjieba 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rjieba 0.1.6
File Size Uploaded Provenance Actions
rjieba-0.1.6.tar.gz 5.4 kB Without provenance Details for rjieba-0.1.6.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for rjieba 0.1.6
File Actions
rjieba-0.1.6-cp36-abi3-win_amd64.whl CPython 3.6 abi3 Windows x86-64 Details for rjieba-0.1.6-cp36-abi3-win_amd64.whl
rjieba-0.1.6-cp36-abi3-win32.whl CPython 3.6 abi3 Windows x86-32 Details for rjieba-0.1.6-cp36-abi3-win32.whl
rjieba-0.1.6-cp36-abi3-manylinux2014_armv7l.whl CPython 3.6 abi3 Linux glibc 2.17+ ARMv7l Details for rjieba-0.1.6-cp36-abi3-manylinux2014_armv7l.whl
rjieba-0.1.6-cp36-abi3-manylinux2014_aarch64.whl CPython 3.6 abi3 Linux glibc 2.17+ ARM64 Details for rjieba-0.1.6-cp36-abi3-manylinux2014_aarch64.whl
rjieba-0.1.6-cp36-abi3-manylinux2010_x86_64.whl CPython 3.6 abi3 Linux glibc 2.12+ x86-64 Details for rjieba-0.1.6-cp36-abi3-manylinux2010_x86_64.whl
rjieba-0.1.6-cp36-abi3-manylinux2010_i686.whl CPython 3.6 abi3 Linux glibc 2.12+ x86-32 Details for rjieba-0.1.6-cp36-abi3-manylinux2010_i686.whl
rjieba-0.1.6-cp36-abi3-macosx_10_9_universal2.whl CPython 3.6 abi3 macOS 10.9+ universal2 (ARM64, x86-64) Details for rjieba-0.1.6-cp36-abi3-macosx_10_9_universal2.whl
rjieba-0.1.6-cp36-abi3-macosx_10_7_x86_64.whl CPython 3.6 abi3 macOS 10.7+ x86-64 Details for rjieba-0.1.6-cp36-abi3-macosx_10_7_x86_64.whl

Total release size: 28.8 MB

Release files / rjieba-0.1.6.tar.gz

Download URL rjieba-0.1.6.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1939f2d62b0f587a2816886165522cc4cba125bd43b5d8ed3f2eefbf7f907e93
BLAKE2b-256 checksum
How to use checksums
b4657b50ed66a7c15ee14ac45f1dffd6bf680ac65319a5f32c53f7c0bdeaf8f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

Release files / rjieba-0.1.6-cp36-abi3-win_amd64.whl

Download URL rjieba-0.1.6-cp36-abi3-win_amd64.whl
Size 2.7 MB
Tags CPython 3.6 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
b7f32fb668398952a8d18b61e9002146702f734862bbdde5b4956113c57d9b25
BLAKE2b-256 checksum
How to use checksums
c5da62865471875c509c186d29472c4b031a0b44d9b68a07b6bd8a4125c71475
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

Release files / rjieba-0.1.6-cp36-abi3-win32.whl

Download URL rjieba-0.1.6-cp36-abi3-win32.whl
Size 2.7 MB
Tags CPython 3.6 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
29f51b59679b1fb8dfdad37ff58e2f82eaaa5ce9e3897ec07cac87f369e74514
BLAKE2b-256 checksum
How to use checksums
291a37694ac3c57f6434a53d224a7246eeb205a9e91b3cba53b229aff7d2dd8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

Release files / rjieba-0.1.6-cp36-abi3-manylinux2014_armv7l.whl

Download URL rjieba-0.1.6-cp36-abi3-manylinux2014_armv7l.whl
Size 3.6 MB
Tags CPython 3.6 Linux glibc 2.17+ ARMv7l abi3
SHA-256 checksum
How to use checksums
77a6089b2de14cfc5a63b8b0f0b1159760604eea5816fc8b0eec65f05fcb665a
BLAKE2b-256 checksum
How to use checksums
424035594cf46660d075675d1a17638728220cb0bf08be310133a2521a0bf083
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

Release files / rjieba-0.1.6-cp36-abi3-manylinux2014_aarch64.whl

Download URL rjieba-0.1.6-cp36-abi3-manylinux2014_aarch64.whl
Size 3.7 MB
Tags CPython 3.6 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
909ce4b8d1c84f594129005cf1f2c132fe1a755847a307d70bb1af199635888a
BLAKE2b-256 checksum
How to use checksums
0b2dba7f584d3042d27e5a57363bc86366cbc84a028851ad9e4cd79b3ae042b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

Release files / rjieba-0.1.6-cp36-abi3-manylinux2010_x86_64.whl

Download URL rjieba-0.1.6-cp36-abi3-manylinux2010_x86_64.whl
Size 3.8 MB
Tags CPython 3.6 Linux glibc 2.12+ x86-64 abi3
SHA-256 checksum
How to use checksums
dbb86c7ce09e39272827029e86a3c5783d3b5d24f0c44eb7a32ab2a8347408b1
BLAKE2b-256 checksum
How to use checksums
5bea29d071537b9c6ba2ee3f1ac980830accf0647a42509fc709b795a6ca6ef9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

Release files / rjieba-0.1.6-cp36-abi3-manylinux2010_i686.whl

Download URL rjieba-0.1.6-cp36-abi3-manylinux2010_i686.whl
Size 3.7 MB
Tags CPython 3.6 Linux glibc 2.12+ x86-32 abi3
SHA-256 checksum
How to use checksums
f1a64b000e05befc739d4f9db736beceabe31aeeb4e5ed47328e07fb2be36d46
BLAKE2b-256 checksum
How to use checksums
ff5aeaf82ad34e506a9618d33559ac4ad8fff8859771a08e09426c40551e5519
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

Release files / rjieba-0.1.6-cp36-abi3-macosx_10_9_universal2.whl

Download URL rjieba-0.1.6-cp36-abi3-macosx_10_9_universal2.whl
Size 5.7 MB
Tags CPython 3.6 abi3 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
6c0bfa771b58693015584e20123c6216d808082f86630906883aca8dc4127074
BLAKE2b-256 checksum
How to use checksums
9628e4dea27db9d08b7330b436d33401c4d536c93a5048501e9168a2dc81da59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

Release files / rjieba-0.1.6-cp36-abi3-macosx_10_7_x86_64.whl

Download URL rjieba-0.1.6-cp36-abi3-macosx_10_7_x86_64.whl
Size 2.9 MB
Tags CPython 3.6 abi3 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
52fcedbfe2c78efba7a9c916f66ce992467f1dca4e7cba6729d1055fb38dd8be
BLAKE2b-256 checksum
How to use checksums
d9a4232dc2df069a2783789f3febab319feef43377444f535758daaa9b7548cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

Security for rjieba 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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