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

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.2
File Size Uploaded Provenance Actions
rjieba-0.1.2.tar.gz 4.7 kB Without provenance Details for rjieba-0.1.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for rjieba 0.1.2
File Actions
rjieba-0.1.2-cp39-none-win_amd64.whl CPython 3.9 none Windows x86-64 Details for rjieba-0.1.2-cp39-none-win_amd64.whl
rjieba-0.1.2-cp39-cp39-manylinux1_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.5+ x86-64 Details for rjieba-0.1.2-cp39-cp39-manylinux1_x86_64.whl
rjieba-0.1.2-cp39-cp39-macosx_10_7_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.7+ x86-64 Details for rjieba-0.1.2-cp39-cp39-macosx_10_7_x86_64.whl
rjieba-0.1.2-cp38-none-win_amd64.whl CPython 3.8 none Windows x86-64 Details for rjieba-0.1.2-cp38-none-win_amd64.whl
rjieba-0.1.2-cp38-cp38-manylinux1_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.5+ x86-64 Details for rjieba-0.1.2-cp38-cp38-manylinux1_x86_64.whl
rjieba-0.1.2-cp38-cp38-macosx_10_7_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.7+ x86-64 Details for rjieba-0.1.2-cp38-cp38-macosx_10_7_x86_64.whl
rjieba-0.1.2-cp37-none-win_amd64.whl CPython 3.7 none Windows x86-64 Details for rjieba-0.1.2-cp37-none-win_amd64.whl
rjieba-0.1.2-cp37-cp37m-manylinux1_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 Details for rjieba-0.1.2-cp37-cp37m-manylinux1_x86_64.whl
rjieba-0.1.2-cp37-cp37m-macosx_10_7_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64 Details for rjieba-0.1.2-cp37-cp37m-macosx_10_7_x86_64.whl
rjieba-0.1.2-cp36-none-win_amd64.whl CPython 3.6 none Windows x86-64 Details for rjieba-0.1.2-cp36-none-win_amd64.whl
rjieba-0.1.2-cp36-cp36m-manylinux1_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 Details for rjieba-0.1.2-cp36-cp36m-manylinux1_x86_64.whl
rjieba-0.1.2-cp36-cp36m-macosx_10_7_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64 Details for rjieba-0.1.2-cp36-cp36m-macosx_10_7_x86_64.whl
rjieba-0.1.2-cp35-none-win_amd64.whl CPython 3.5 none Windows x86-64 Details for rjieba-0.1.2-cp35-none-win_amd64.whl
rjieba-0.1.2-cp35-cp35m-manylinux1_x86_64.whl CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64 Details for rjieba-0.1.2-cp35-cp35m-manylinux1_x86_64.whl
rjieba-0.1.2-cp35-cp35m-macosx_10_7_x86_64.whl CPython 3.5 CPython 3.5 pymalloc macOS 10.7+ x86-64 Details for rjieba-0.1.2-cp35-cp35m-macosx_10_7_x86_64.whl

Total release size: 46.6 MB

Release files / rjieba-0.1.2.tar.gz

Download URL rjieba-0.1.2.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1b6ff9fd203c8beca7b70fab6aecded2c63b81d6cbe718a229aada1c3fda031f
BLAKE2b-256 checksum
How to use checksums
ebb69b756e94b83cdff40b06f3fddf44fe2cde71c6b1dc26c2c66332780198b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.6

Release files / rjieba-0.1.2-cp39-none-win_amd64.whl

Download URL rjieba-0.1.2-cp39-none-win_amd64.whl
Size 2.7 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
71a95df39cd5318ce6896d5bd789b28df1b22d6ce932165318022ba619345393
BLAKE2b-256 checksum
How to use checksums
ebfcf382fbd2ebfff5df8db5fc39c438cfa5b2d513e9761440410c173c06965b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0

Release files / rjieba-0.1.2-cp39-cp39-manylinux1_x86_64.whl

Download URL rjieba-0.1.2-cp39-cp39-manylinux1_x86_64.whl
Size 3.7 MB
Tags CPython 3.9 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
4f82a5a3253bebd38b31c6fc52f5930c20713361dd38e3830cd986fd5b500f24
BLAKE2b-256 checksum
How to use checksums
3a3130e258a5c371b2c1c0543eb8513b0a0be879d6a3ae391aebe0385858f93a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.6

Release files / rjieba-0.1.2-cp39-cp39-macosx_10_7_x86_64.whl

Download URL rjieba-0.1.2-cp39-cp39-macosx_10_7_x86_64.whl
Size 2.8 MB
Tags CPython 3.9 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
442af660702c345bf6a4500a8c33d91ab634137ae2831cc1e9bce223ed7865b5
BLAKE2b-256 checksum
How to use checksums
ad179e328d3400b268674ca6265853de9f885c4d0ce3512a78d4ce973af817eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0

Release files / rjieba-0.1.2-cp38-none-win_amd64.whl

Download URL rjieba-0.1.2-cp38-none-win_amd64.whl
Size 2.7 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
82d081d1c0ef0b5d289ef0537ac723a2f5ea4b35c8629512371aa2d594edee80
BLAKE2b-256 checksum
How to use checksums
317ca25e832a650aede49551cfa14bb57a9a12d5f7633d5b42b658f64be147ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.6

Release files / rjieba-0.1.2-cp38-cp38-manylinux1_x86_64.whl

Download URL rjieba-0.1.2-cp38-cp38-manylinux1_x86_64.whl
Size 3.7 MB
Tags CPython 3.8 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
c28a5ba4fbd155e856a95787da8e933e16ea2fac7e55fa6919e35285dac96da4
BLAKE2b-256 checksum
How to use checksums
0dcf0e0820ae8ba13177ef6e86714f11276adac5a006fb1c6765484d45f0ff8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.6

Release files / rjieba-0.1.2-cp38-cp38-macosx_10_7_x86_64.whl

Download URL rjieba-0.1.2-cp38-cp38-macosx_10_7_x86_64.whl
Size 2.8 MB
Tags CPython 3.8 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
514998ecd5a58c41e70f2baef1008b494f7e151edaf161da740e191a9e561e37
BLAKE2b-256 checksum
How to use checksums
acc5f3034088b19275f4c5b480b5ff0eac07ec39c0151a152f6ceeba5874f948
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.6

Release files / rjieba-0.1.2-cp37-none-win_amd64.whl

Download URL rjieba-0.1.2-cp37-none-win_amd64.whl
Size 2.7 MB
Tags CPython 3.7 Windows x86-64
SHA-256 checksum
How to use checksums
dc83dd826210797d686fe69bfc66959c02ef43f04df6ab2d866b390abb2191c6
BLAKE2b-256 checksum
How to use checksums
d0813b18f88590d124ede0bb7554958a03e626db38985b7294d591c52b169e10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.7.9

Release files / rjieba-0.1.2-cp37-cp37m-manylinux1_x86_64.whl

Download URL rjieba-0.1.2-cp37-cp37m-manylinux1_x86_64.whl
Size 3.7 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
806768072a90551885f85ead78d05267d434f29963be209a7a755bea871dd86e
BLAKE2b-256 checksum
How to use checksums
aa0955a9096c8046099b90ec2876fdfdb1861710121190513889663bb9125ff5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.6

Release files / rjieba-0.1.2-cp37-cp37m-macosx_10_7_x86_64.whl

Download URL rjieba-0.1.2-cp37-cp37m-macosx_10_7_x86_64.whl
Size 2.8 MB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
815b5481494c66a1549290cf6d9fee84493f67defe79196506b162fc289dc863
BLAKE2b-256 checksum
How to use checksums
a38f738038f3723fd7b88d0489ca78ca60549bd0ff940265d6d0430cf8bd62c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.7.9

Release files / rjieba-0.1.2-cp36-none-win_amd64.whl

Download URL rjieba-0.1.2-cp36-none-win_amd64.whl
Size 2.7 MB
Tags CPython 3.6 Windows x86-64
SHA-256 checksum
How to use checksums
ace08768111141e2ddf9a5fcfe7298c0434d547b6b94a5b4bf3bad53a0b249a0
BLAKE2b-256 checksum
How to use checksums
4109872ec1adaa8e7403bded63416bd2d56722bbc2d7f18866fba2184d198ad4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.6.8

Release files / rjieba-0.1.2-cp36-cp36m-manylinux1_x86_64.whl

Download URL rjieba-0.1.2-cp36-cp36m-manylinux1_x86_64.whl
Size 3.7 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
65cc6c0df7c921efa7484d01f748f5c8b2bf76625d4cf557e82b365426de2637
BLAKE2b-256 checksum
How to use checksums
c7a5d6bcc462ab810ef180a633fa8d7bc0f49bf9b74369e46a64f6038b5bc5df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.6

Release files / rjieba-0.1.2-cp36-cp36m-macosx_10_7_x86_64.whl

Download URL rjieba-0.1.2-cp36-cp36m-macosx_10_7_x86_64.whl
Size 2.8 MB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
aa3c2cab69e0e051383974ea4d8ca213959463ad9abafe49af6c7a7f18cc9683
BLAKE2b-256 checksum
How to use checksums
6d6dab326a569cac9b356279a461c4a83f0e62c4d0b7cf1d6eb616e8a4536dbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.6.12

Release files / rjieba-0.1.2-cp35-none-win_amd64.whl

Download URL rjieba-0.1.2-cp35-none-win_amd64.whl
Size 2.7 MB
Tags CPython 3.5 Windows x86-64
SHA-256 checksum
How to use checksums
4de38500aaf4a5ddf679cbe5826accebbbc5991dd5216b9dddf9293c6f412c0f
BLAKE2b-256 checksum
How to use checksums
a069a230f239177a71e27267bb39c64cd7179580494d6718cef928044addd4e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.6.1 requests/2.25.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.5.4

Release files / rjieba-0.1.2-cp35-cp35m-manylinux1_x86_64.whl

Download URL rjieba-0.1.2-cp35-cp35m-manylinux1_x86_64.whl
Size 3.7 MB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
7596393aa0d0b5f302731ab3a4fdc0c8a2e294e46da48a880655afcdc2d1f5e9
BLAKE2b-256 checksum
How to use checksums
8bf8ddae54006cfe984efb0c2175f7ff5a1b55e1d2a0b78d26fbf7581e92d4ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.6

Release files / rjieba-0.1.2-cp35-cp35m-macosx_10_7_x86_64.whl

Download URL rjieba-0.1.2-cp35-cp35m-macosx_10_7_x86_64.whl
Size 2.8 MB
Tags CPython 3.5 CPython 3.5 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
c638e8d3b97e48c7ed378f2d97caf51ccc091675041267cf48aee53dbce8a703
BLAKE2b-256 checksum
How to use checksums
79fcab0a64b77870fc16889c45a45bec8fdb5912fa2ff7c34949d32142339f60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.6.1 requests/2.25.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.5.10

Security for rjieba 0.1.2

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