Skip to main content

jieba-rs Python binding

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rjieba-0.1.7.tar.gz (5.2 kB view details)

Uploaded Source

Built Distributions

rjieba-0.1.7-cp36-abi3-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.6+ Windows x86-64

rjieba-0.1.7-cp36-abi3-win32.whl (2.7 MB view details)

Uploaded CPython 3.6+ Windows x86

rjieba-0.1.7-cp36-abi3-manylinux_2_24_ppc64le.whl (3.9 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.24+ ppc64le

rjieba-0.1.7-cp36-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (4.1 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ s390x

rjieba-0.1.7-cp36-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (3.6 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ ARMv7l

rjieba-0.1.7-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ ARM64

rjieba-0.1.7-cp36-abi3-manylinux2014_armv7l.whl (3.6 MB view details)

Uploaded CPython 3.6+

rjieba-0.1.7-cp36-abi3-manylinux2014_aarch64.whl (3.7 MB view details)

Uploaded CPython 3.6+

rjieba-0.1.7-cp36-abi3-manylinux2010_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.12+ x86-64

rjieba-0.1.7-cp36-abi3-manylinux2010_i686.whl (3.7 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.12+ i686

rjieba-0.1.7-cp36-abi3-manylinux1_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.6+

rjieba-0.1.7-cp36-abi3-manylinux1_i686.whl (3.6 MB view details)

Uploaded CPython 3.6+

rjieba-0.1.7-cp36-abi3-macosx_10_9_universal2.whl (5.7 MB view details)

Uploaded CPython 3.6+ macOS 10.9+ universal2 (ARM64, x86-64)

rjieba-0.1.7-cp36-abi3-macosx_10_7_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.6+ macOS 10.7+ x86-64

File details

Details for the file rjieba-0.1.7.tar.gz.

File metadata

  • Download URL: rjieba-0.1.7.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for rjieba-0.1.7.tar.gz
Algorithm Hash digest
SHA256 704202bf4885b5fb0b01da9269edd11a8465b0fbe47ca39d8fba58d6ea1292ca
MD5 1175513ed0150f3c1736b818181f7a43
BLAKE2b-256 9c67429e08813bff643e5d5281a9972723cc714810eba4c9819ad1797af2572c

See more details on using hashes here.

File details

Details for the file rjieba-0.1.7-cp36-abi3-win_amd64.whl.

File metadata

  • Download URL: rjieba-0.1.7-cp36-abi3-win_amd64.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: CPython 3.6+, Windows x86-64
  • Uploaded using 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

File hashes

Hashes for rjieba-0.1.7-cp36-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5d68c64abb80e612699ca54d8f7ae0e4323d53dff9fd53b8d715aba983580c8b
MD5 c4ff1c72bd83e9544b7c3f796ae17b67
BLAKE2b-256 31e9bab403bddc220c3f0f010732b057b5dd631bd30f09837733b736e52f0bd4

See more details on using hashes here.

File details

Details for the file rjieba-0.1.7-cp36-abi3-win32.whl.

File metadata

  • Download URL: rjieba-0.1.7-cp36-abi3-win32.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: CPython 3.6+, Windows x86
  • Uploaded using 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

File hashes

Hashes for rjieba-0.1.7-cp36-abi3-win32.whl
Algorithm Hash digest
SHA256 466a273d968365e54aefae9da8caa4a83da11f7bf1e7f67fe5c974f43dc1cdd1
MD5 03e945897a98b189e35594415cc64f3c
BLAKE2b-256 065cc25355773598bf49dfb7f26772da8b97fa5cb9e7f31e1c5aa71487642690

See more details on using hashes here.

File details

Details for the file rjieba-0.1.7-cp36-abi3-manylinux_2_24_ppc64le.whl.

File metadata

  • Download URL: rjieba-0.1.7-cp36-abi3-manylinux_2_24_ppc64le.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: CPython 3.6+, manylinux: glibc 2.24+ ppc64le
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for rjieba-0.1.7-cp36-abi3-manylinux_2_24_ppc64le.whl
Algorithm Hash digest
SHA256 1ec29d77f27af650ca4f386ccc4cbda708f9299dbda9bd1c9d7810ca41a7da2b
MD5 9506cec87122d50571fae7adda16dff5
BLAKE2b-256 32d2fedca4f6121e79ddd8aa6418359bc6b955bc4810eef9de6c80172e489cc2

See more details on using hashes here.

File details

Details for the file rjieba-0.1.7-cp36-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for rjieba-0.1.7-cp36-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 1d95b760877bd8ada65aa43264b6c17464b59e9d653425f1e488a23e635c70c5
MD5 6b2f47f9845ca1ffe7e852169917ae6c
BLAKE2b-256 da440dc68b99ac3a320ca7142375516757f9ba52c5cf2dcef7620bb3172a48a2

See more details on using hashes here.

File details

Details for the file rjieba-0.1.7-cp36-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for rjieba-0.1.7-cp36-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 6d84364019f07bdabe79595e5aaa2d06f0fa9e89afa0eef062dea61af6740884
MD5 c1cf1607fe1ff270f8576e4300c1b068
BLAKE2b-256 e25d8cb8f99cb32dbc99183b133e4761befe611454ab81495eb68d81eef708c9

See more details on using hashes here.

File details

Details for the file rjieba-0.1.7-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for rjieba-0.1.7-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1ceca066027bdd82cd59c9c26956124876e2a28d956f38065e4499bf6b0f717b
MD5 c45ee0215cf39c202fb5033fa6e64a7e
BLAKE2b-256 07da7ffac73bfabc4dc813e5d0815ba089c22f79dae49a8aa3a9be0105c7f321

See more details on using hashes here.

File details

Details for the file rjieba-0.1.7-cp36-abi3-manylinux2014_armv7l.whl.

File metadata

  • Download URL: rjieba-0.1.7-cp36-abi3-manylinux2014_armv7l.whl
  • Upload date:
  • Size: 3.6 MB
  • Tags: CPython 3.6+
  • Uploaded using 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

File hashes

Hashes for rjieba-0.1.7-cp36-abi3-manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 30341ae9a0b451b0c02c81ba9ff2759b9df09466e2161fda8804a50c5e8e5170
MD5 ba4a4ab2d1ce12d513a88f1984a46cff
BLAKE2b-256 949c538196bcb21993adb222ffadc57c6247102663f435583ab423eaf8a628ad

See more details on using hashes here.

File details

Details for the file rjieba-0.1.7-cp36-abi3-manylinux2014_aarch64.whl.

File metadata

  • Download URL: rjieba-0.1.7-cp36-abi3-manylinux2014_aarch64.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: CPython 3.6+
  • Uploaded using 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

File hashes

Hashes for rjieba-0.1.7-cp36-abi3-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8959ef04f6148689e4fd511fdb45afa1f423e0ff683bfa3f81d58480413a1216
MD5 9e141a6050b3c1e5d43e6c7d9a2c66f3
BLAKE2b-256 f21edc9597ce72bb1eafa776a9007b0ca9d41fd3b76dcde9060d0b0240a01aff

See more details on using hashes here.

File details

Details for the file rjieba-0.1.7-cp36-abi3-manylinux2010_x86_64.whl.

File metadata

  • Download URL: rjieba-0.1.7-cp36-abi3-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: CPython 3.6+, manylinux: glibc 2.12+ x86-64
  • Uploaded using 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

File hashes

Hashes for rjieba-0.1.7-cp36-abi3-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 60788a9add96256a76a5500c7bf160dbf00f7764e29551974c76506920913634
MD5 92441a7cfcd189840f1f25f4c5d1677d
BLAKE2b-256 ac183a17cd7c1155d3e899e7f3d09f19a06de2d2a5141775f30f48844f3fedbd

See more details on using hashes here.

File details

Details for the file rjieba-0.1.7-cp36-abi3-manylinux2010_i686.whl.

File metadata

  • Download URL: rjieba-0.1.7-cp36-abi3-manylinux2010_i686.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: CPython 3.6+, manylinux: glibc 2.12+ i686
  • Uploaded using 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

File hashes

Hashes for rjieba-0.1.7-cp36-abi3-manylinux2010_i686.whl
Algorithm Hash digest
SHA256 41345ef51938030ff552ce5eb46b3b55731449a64e3ec2304130e9e4a45184ca
MD5 9567007c31c46c83ca8783bcc803e120
BLAKE2b-256 88887fc88b8b40727dcb407863dceaaee76478abb3b5cabb5b2748c1ecaa60a5

See more details on using hashes here.

File details

Details for the file rjieba-0.1.7-cp36-abi3-manylinux1_x86_64.whl.

File metadata

  • Download URL: rjieba-0.1.7-cp36-abi3-manylinux1_x86_64.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: CPython 3.6+
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for rjieba-0.1.7-cp36-abi3-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f1b022da2a6ac32ccccb923f6e4d4d27ae76efb5f8c5aee3e7317e864c271627
MD5 0080ba6939f831d3156227d45da306d4
BLAKE2b-256 b8a95253e29f7fc3b8bceee254b31676310f5ffcae88999ee419e5eb00dd64f6

See more details on using hashes here.

File details

Details for the file rjieba-0.1.7-cp36-abi3-manylinux1_i686.whl.

File metadata

  • Download URL: rjieba-0.1.7-cp36-abi3-manylinux1_i686.whl
  • Upload date:
  • Size: 3.6 MB
  • Tags: CPython 3.6+
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for rjieba-0.1.7-cp36-abi3-manylinux1_i686.whl
Algorithm Hash digest
SHA256 658cacec52ee114a25db4aa0693aaf34fdcaaeed0e70c7b267379983f745232c
MD5 c91d12c48e0fcae48ddf762c6b746077
BLAKE2b-256 5fc7a922ae8e4ab94283ed20afdf37a3f0b50ee84ea4b0982977380fd61fc942

See more details on using hashes here.

File details

Details for the file rjieba-0.1.7-cp36-abi3-macosx_10_9_universal2.whl.

File metadata

  • Download URL: rjieba-0.1.7-cp36-abi3-macosx_10_9_universal2.whl
  • Upload date:
  • Size: 5.7 MB
  • Tags: CPython 3.6+, macOS 10.9+ universal2 (ARM64, x86-64)
  • Uploaded using 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

File hashes

Hashes for rjieba-0.1.7-cp36-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f79e4d13eef82438209c8a6965b04209e2252147c82c88755a71f7f1701e7048
MD5 bb3118ab96925db3096bfe390e8c54d1
BLAKE2b-256 e03f278ab4d2d5c97becbf233a61b51f3f05bfc6d88050877321c9d4c5f7ec31

See more details on using hashes here.

File details

Details for the file rjieba-0.1.7-cp36-abi3-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: rjieba-0.1.7-cp36-abi3-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: CPython 3.6+, macOS 10.7+ x86-64
  • Uploaded using 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

File hashes

Hashes for rjieba-0.1.7-cp36-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 95d567372a17d9b0e586f2d0155a76db3ebeff315d9872b5009ffeada4126bbb
MD5 debe9067c4296ba9947f7f7387ae7a46
BLAKE2b-256 a13cb0a48438287c11b039cbbac8d021027fa8fe038faa11e91f6d3fed440121

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page