rjieba-py
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.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rjieba-0.1.10.tar.gz | 4.8 kB | Details |
Built distributions (wheels)
Total release size: 40.6 MB
Release files / rjieba-0.1.10.tar.gz
| Download URL | rjieba-0.1.10.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92f12d6d8cafc2559fde61f059b631d5c62fff7ebb293cddbb2c51fe7bd61480
|
|
BLAKE2b-256 checksum How to use checksums |
f865652eaa90b4061759e7c5dfa12d1f4ee3d53638585d48dde3e19d214bd2e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Release files / rjieba-0.1.10-cp36-abi3-win_amd64.whl
| Download URL | rjieba-0.1.10-cp36-abi3-win_amd64.whl |
|---|---|
| Size | 2.7 MB |
| Tags | CPython 3.6 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
cd4442075e8b9fdab79b5b3945c3a569f8556386a4f179586ce0bb464cf39120
|
|
BLAKE2b-256 checksum How to use checksums |
c47aaab67944292dd276e33c3a773b3a5a4cc8144b58db9a56a6cd956970f280
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Release files / rjieba-0.1.10-cp36-abi3-win32.whl
| Download URL | rjieba-0.1.10-cp36-abi3-win32.whl |
|---|---|
| Size | 2.7 MB |
| Tags | CPython 3.6 Windows x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
bff7cd8e4efae7c3d2e3ac1eba1efc95acbe6f2f32a67ff3a19bbf2c7e67912e
|
|
BLAKE2b-256 checksum How to use checksums |
b11dd01a5da7516a653acb53424ff44b7d5b1e98dcd3325b1e2c99d7252c0c63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Release files / rjieba-0.1.10-cp36-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
| Download URL | rjieba-0.1.10-cp36-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl |
|---|---|
| Size | 4.1 MB |
| Tags | CPython 3.6 Linux glibc 2.17+ IBM System/390x abi3 |
|
SHA-256 checksum How to use checksums |
4f6784db9cf52e19e582d9025bf9df74a373c50f700bd049bbde5d250e6614f6
|
|
BLAKE2b-256 checksum How to use checksums |
f2b48ba30c4d39c109c94c7e91463127734dbdcdd0909c24fce5de8474b47eeb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Release files / rjieba-0.1.10-cp36-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
| Download URL | rjieba-0.1.10-cp36-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl |
|---|---|
| Size | 3.9 MB |
| Tags | CPython 3.6 Linux glibc 2.17+ PowerPC 64-le abi3 |
|
SHA-256 checksum How to use checksums |
b47e32ccf3ba59217f76200b42c0e0836072a3b644ed86e986c58e2b1c09ab1e
|
|
BLAKE2b-256 checksum How to use checksums |
c3b4e907d8abd472bde9f169b5d0351a21a14cd854baeb328e7b6ff06dc0f0ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Release files / rjieba-0.1.10-cp36-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
| Download URL | rjieba-0.1.10-cp36-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | CPython 3.6 Linux glibc 2.17+ PowerPC 64-be abi3 |
|
SHA-256 checksum How to use checksums |
723e04b6427b23f534a4e383a9d4790e56eb30ce2273041cce91f6e49f4e006d
|
|
BLAKE2b-256 checksum How to use checksums |
8a38bd1c209dd097c1f81da0cf7a530d1d7cda5d21e1b4bc64a9493510b30b93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Release files / rjieba-0.1.10-cp36-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | rjieba-0.1.10-cp36-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 3.6 MB |
| Tags | CPython 3.6 Linux glibc 2.17+ ARMv7l abi3 |
|
SHA-256 checksum How to use checksums |
f39617d0e295e299144bb28fd5460ffb06b16554d9519219241ed5e1b101cfe3
|
|
BLAKE2b-256 checksum How to use checksums |
89529f03a119deed0cafc6be08f76c64edae9adafe337d1390433d9792847f5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Release files / rjieba-0.1.10-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | rjieba-0.1.10-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 3.8 MB |
| Tags | CPython 3.6 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
2ed189c39770fa7b4b26ab0171aae9d4d51dbb8f40687a84e5a8698574b9ba5d
|
|
BLAKE2b-256 checksum How to use checksums |
bebfcc6dbce38324bc774ba03d530f0f5913cd9c8bf49d53e39748de462bc121
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Release files / rjieba-0.1.10-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | rjieba-0.1.10-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 3.7 MB |
| Tags | CPython 3.6 Linux glibc 2.5+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
6bdab7f5e45395ffc047f4ed486b16211a201c74aa4b2fd54e4d2219e33c41a2
|
|
BLAKE2b-256 checksum How to use checksums |
c47d4fdafef062062db940d5ac1394699d935863f26547977525228021eb2ef9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Release files / rjieba-0.1.10-cp36-abi3-manylinux_2_5_i686.manylinux1_i686.whl
| Download URL | rjieba-0.1.10-cp36-abi3-manylinux_2_5_i686.manylinux1_i686.whl |
|---|---|
| Size | 3.6 MB |
| Tags | CPython 3.6 Linux glibc 2.5+ x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
8ea5ecaf81179717de42333bda19b38e0fe157111d0edaec8f207801999d5709
|
|
BLAKE2b-256 checksum How to use checksums |
11d5afec5f7c1438b2f5d6aae2839b1115f0f981f431a80ea582661ca4f8559d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Release files / rjieba-0.1.10-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | rjieba-0.1.10-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 5.7 MB |
| Tags | CPython 3.6 abi3 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
cb45c0172f42efd2980d92e966197bfc1fa2ee6601b387e2955bcf6fb0aac5df
|
|
BLAKE2b-256 checksum How to use checksums |
395093d5ca5f312bc959e8fff39c23dc2b208699c44aa6e89d769d6cb3fc92dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Release files / rjieba-0.1.10-cp36-abi3-macosx_10_7_x86_64.whl
| Download URL | rjieba-0.1.10-cp36-abi3-macosx_10_7_x86_64.whl |
|---|---|
| Size | 2.8 MB |
| Tags | CPython 3.6 abi3 macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
633970072eb8fa2994a6cff3306a6f46e5fceb4807a60f7b54efbd2a87df7a0f
|
|
BLAKE2b-256 checksum How to use checksums |
8e86600dc551c372c3acfbe339f44a70cd0041a9b585a70892d1a88f7fafb6d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|