rjieba


Namerjieba JSON
Version 0.1.11 PyPI version JSON
download
home_page
Summaryjieba-rs Python binding
upload_time2022-02-12 12:04:36
maintainer
docs_urlNone
authormessense <messense@icloud.com>
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # rjieba-py

![CI](https://github.com/messense/rjieba-py/workflows/CI/badge.svg)
[![PyPI](https://img.shields.io/pypi/v/rjieba.svg)](https://pypi.org/project/rjieba)

[jieba-rs](https://github.com/messense/jieba-rs) Python binding.

## Installation

```bash
pip install rjieba
```

## Usage

```python
import rjieba


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

## Performance

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

```python
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](./LICENSE) file.


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "rjieba",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "messense <messense@icloud.com>",
    "author_email": "messense <messense@icloud.com>",
    "download_url": "https://files.pythonhosted.org/packages/51/53/6bc9653460d3182383fdd972ee50c167acadc3aca440c9a4fb9ef9a201ad/rjieba-0.1.11.tar.gz",
    "platform": "",
    "description": "# rjieba-py\n\n![CI](https://github.com/messense/rjieba-py/workflows/CI/badge.svg)\n[![PyPI](https://img.shields.io/pypi/v/rjieba.svg)](https://pypi.org/project/rjieba)\n\n[jieba-rs](https://github.com/messense/jieba-rs) Python binding.\n\n## Installation\n\n```bash\npip install rjieba\n```\n\n## Usage\n\n```python\nimport rjieba\n\n\nprint(rjieba.cut('\u6211\u4eec\u4e2d\u51fa\u4e86\u4e00\u4e2a\u53db\u5f92'))\nprint(rjieba.tag('\u6211\u4eec\u4e2d\u51fa\u4e86\u4e00\u4e2a\u53db\u5f92'))\n```\n\n## Performance\n\nRunning on MacBook Pro (15-inch, 2018) 2.2 GHz 6-Core Intel Core i7\n\n```python\nIn [1]: import jieba\n\nIn [2]: import cjieba\n\nIn [3]: import rjieba\n\nIn [4]: jieba.initialize()\nBuilding prefix dict from the default dictionary ...\nLoading model from cache /var/folders/8d/h3lyjgz14296j_lw7chgf5hc0000gp/T/jieba.cache\nLoading model cost 0.695 seconds.\nPrefix dict has been built successfully.\n\nIn [5]: cjieba.initialize()\n\nIn [6]: with open('../jieba-rs/examples/weicheng/src/weicheng.txt') as f:\n   ...:     txt = f.read()\n   ...:\n\nIn [7]: %timeit list(jieba.cut(txt))\n1.1 s \u00b1 10.6 ms per loop (mean \u00b1 std. dev. of 7 runs, 1 loop each)\n\nIn [8]: %timeit cjieba.cut(txt)\n225 ms \u00b1 3.95 ms per loop (mean \u00b1 std. dev. of 7 runs, 1 loop each)\n\nIn [9]: %timeit rjieba.cut(txt)\n106 ms \u00b1 2.01 ms per loop (mean \u00b1 std. dev. of 7 runs, 10 loops each)\n```\n\n## License\n\nThis work is released under the MIT license. A copy of the license is provided in the [LICENSE](./LICENSE) file.\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "jieba-rs Python binding",
    "version": "0.1.11",
    "project_urls": {
        "Source Code": "https://github.com/messense/rjieba-py"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "448662d971b3bd07655ba2a0520825ffe0e0564e5a400a00f856a75498501148",
                "md5": "9e0402cdfc68a564d750de59bbd4184c",
                "sha256": "2c9e0b81e1d237b36e9c3657deeaed7d024a7ea50f935d056972e5603da5a071"
            },
            "downloads": -1,
            "filename": "rjieba-0.1.11-cp36-abi3-macosx_10_7_x86_64.whl",
            "has_sig": false,
            "md5_digest": "9e0402cdfc68a564d750de59bbd4184c",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": null,
            "size": 2863423,
            "upload_time": "2022-02-12T12:04:15",
            "upload_time_iso_8601": "2022-02-12T12:04:15.423411Z",
            "url": "https://files.pythonhosted.org/packages/44/86/62d971b3bd07655ba2a0520825ffe0e0564e5a400a00f856a75498501148/rjieba-0.1.11-cp36-abi3-macosx_10_7_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "41150059998a355b7282b94584b6d916575606051a22f0770d78745edd5f8563",
                "md5": "186e0cbcaeb668c4850686f8cf118d1c",
                "sha256": "b54a32a7147e5a79f57d285fdf42a227ba70357c7ea187c0b9c226358ea3fcdf"
            },
            "downloads": -1,
            "filename": "rjieba-0.1.11-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl",
            "has_sig": false,
            "md5_digest": "186e0cbcaeb668c4850686f8cf118d1c",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": null,
            "size": 5719263,
            "upload_time": "2022-02-12T12:04:17",
            "upload_time_iso_8601": "2022-02-12T12:04:17.191786Z",
            "url": "https://files.pythonhosted.org/packages/41/15/0059998a355b7282b94584b6d916575606051a22f0770d78745edd5f8563/rjieba-0.1.11-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2240466e5106a72fc674207411433dafd09ccecbf8ad11b0a8fab5e3114be006",
                "md5": "8dd2356911bd7d55eb246f22ff2f7190",
                "sha256": "f5c2e93c43c2c9306b89b2afd04c59a9827faf678a77e458cbde505dad969783"
            },
            "downloads": -1,
            "filename": "rjieba-0.1.11-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "has_sig": false,
            "md5_digest": "8dd2356911bd7d55eb246f22ff2f7190",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": null,
            "size": 3895193,
            "upload_time": "2022-02-12T12:04:18",
            "upload_time_iso_8601": "2022-02-12T12:04:18.532521Z",
            "url": "https://files.pythonhosted.org/packages/22/40/466e5106a72fc674207411433dafd09ccecbf8ad11b0a8fab5e3114be006/rjieba-0.1.11-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7fb7e9c8323da708f51473af4ade8e5094c9b567b9fa7898dd25771e7813bc1f",
                "md5": "3648e600e147823b918524150431241c",
                "sha256": "012c27e956f15521dc12d1951202872eef353caed346de65265925efac945aa6"
            },
            "downloads": -1,
            "filename": "rjieba-0.1.11-cp36-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
            "has_sig": false,
            "md5_digest": "3648e600e147823b918524150431241c",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": null,
            "size": 3678398,
            "upload_time": "2022-02-12T12:04:19",
            "upload_time_iso_8601": "2022-02-12T12:04:19.769592Z",
            "url": "https://files.pythonhosted.org/packages/7f/b7/e9c8323da708f51473af4ade8e5094c9b567b9fa7898dd25771e7813bc1f/rjieba-0.1.11-cp36-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6f62c2791f6d47c3856f60bd13fbbf162df90fe9f2c83c8a3ed095ea68fb4ab0",
                "md5": "8388c952f9ab0d0c12dc6f08964df272",
                "sha256": "f84373342a797ab60bac32c560a98670e8e897e8e3ff7dd96fd27a858640e5cf"
            },
            "downloads": -1,
            "filename": "rjieba-0.1.11-cp36-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl",
            "has_sig": false,
            "md5_digest": "8388c952f9ab0d0c12dc6f08964df272",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": null,
            "size": 4012543,
            "upload_time": "2022-02-12T12:04:22",
            "upload_time_iso_8601": "2022-02-12T12:04:22.644770Z",
            "url": "https://files.pythonhosted.org/packages/6f/62/c2791f6d47c3856f60bd13fbbf162df90fe9f2c83c8a3ed095ea68fb4ab0/rjieba-0.1.11-cp36-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8a4702b0f2e04a6a4718a7748fef767245a04f1309a1c0265896923e000f9c22",
                "md5": "201856dbfa68741b495b6cedd96db2eb",
                "sha256": "a5496b464b6d362293d73832680df6050726609fa70987bee164b4477cf9e43f"
            },
            "downloads": -1,
            "filename": "rjieba-0.1.11-cp36-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl",
            "has_sig": false,
            "md5_digest": "201856dbfa68741b495b6cedd96db2eb",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": null,
            "size": 4120062,
            "upload_time": "2022-02-12T12:04:21",
            "upload_time_iso_8601": "2022-02-12T12:04:21.273308Z",
            "url": "https://files.pythonhosted.org/packages/8a/47/02b0f2e04a6a4718a7748fef767245a04f1309a1c0265896923e000f9c22/rjieba-0.1.11-cp36-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "28be8999a88af21366952adafc34e60a0307e5a454ae144a70befe6c4270988b",
                "md5": "ca08051cdf34a32f4aaa7a15fcc37b53",
                "sha256": "cb38b8dd03a8280bc4df6307e00ef8ed57e115f0b4c75453aad3816a44f331f4"
            },
            "downloads": -1,
            "filename": "rjieba-0.1.11-cp36-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl",
            "has_sig": false,
            "md5_digest": "ca08051cdf34a32f4aaa7a15fcc37b53",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": null,
            "size": 4172578,
            "upload_time": "2022-02-12T12:04:24",
            "upload_time_iso_8601": "2022-02-12T12:04:24.304233Z",
            "url": "https://files.pythonhosted.org/packages/28/be/8999a88af21366952adafc34e60a0307e5a454ae144a70befe6c4270988b/rjieba-0.1.11-cp36-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1c273367d20eee9ab7e0d73f629eeecff138ecc7a4ee935a9e5728c5c88760f6",
                "md5": "505cc58c7f82bd5b7ad3963e215d5143",
                "sha256": "5fe3dd87452ff180d7986578c8e352fe1c1b577416cafdc11d3dfc1e35f1d1fc"
            },
            "downloads": -1,
            "filename": "rjieba-0.1.11-cp36-abi3-manylinux_2_5_i686.manylinux1_i686.whl",
            "has_sig": false,
            "md5_digest": "505cc58c7f82bd5b7ad3963e215d5143",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": null,
            "size": 3720160,
            "upload_time": "2022-02-12T12:04:25",
            "upload_time_iso_8601": "2022-02-12T12:04:25.635491Z",
            "url": "https://files.pythonhosted.org/packages/1c/27/3367d20eee9ab7e0d73f629eeecff138ecc7a4ee935a9e5728c5c88760f6/rjieba-0.1.11-cp36-abi3-manylinux_2_5_i686.manylinux1_i686.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c61c4b3c20282986e408f87d41eef2db0f8a86168341b97a4c2399a4ec8a0d59",
                "md5": "d5c574f1e6fd65da54d355f876169f24",
                "sha256": "2b8bd280d4f3730aba089b9f6dea91855742078804ecd48028f41c9099062c20"
            },
            "downloads": -1,
            "filename": "rjieba-0.1.11-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl",
            "has_sig": false,
            "md5_digest": "d5c574f1e6fd65da54d355f876169f24",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": null,
            "size": 3838996,
            "upload_time": "2022-02-12T12:04:27",
            "upload_time_iso_8601": "2022-02-12T12:04:27.022511Z",
            "url": "https://files.pythonhosted.org/packages/c6/1c/4b3c20282986e408f87d41eef2db0f8a86168341b97a4c2399a4ec8a0d59/rjieba-0.1.11-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "075628931b1ae4c89e789d55d139c2cd607e53a963c6d94214da906d406f6702",
                "md5": "2e95bd8fe1b0f406ff64f154dcfd5143",
                "sha256": "63faef666183bffdbbbd4beb756e079578990a08ee7a0c2bc1f97566f5a5b1d8"
            },
            "downloads": -1,
            "filename": "rjieba-0.1.11-cp36-abi3-musllinux_1_2_aarch64.whl",
            "has_sig": false,
            "md5_digest": "2e95bd8fe1b0f406ff64f154dcfd5143",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": null,
            "size": 4058009,
            "upload_time": "2022-02-12T12:04:28",
            "upload_time_iso_8601": "2022-02-12T12:04:28.577407Z",
            "url": "https://files.pythonhosted.org/packages/07/56/28931b1ae4c89e789d55d139c2cd607e53a963c6d94214da906d406f6702/rjieba-0.1.11-cp36-abi3-musllinux_1_2_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "47123da42febf293d915b9952a07d6047ba0f91d4d236736a81ea97ef3d6f8ca",
                "md5": "513f19049fcf8b5693079814743f3bf0",
                "sha256": "67e7635aea74038f7e7cd452a8eb4e3ad05c8e0ac12c03c32d3bdb8283b63dc1"
            },
            "downloads": -1,
            "filename": "rjieba-0.1.11-cp36-abi3-musllinux_1_2_armv7l.whl",
            "has_sig": false,
            "md5_digest": "513f19049fcf8b5693079814743f3bf0",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": null,
            "size": 4010131,
            "upload_time": "2022-02-12T12:04:29",
            "upload_time_iso_8601": "2022-02-12T12:04:29.903966Z",
            "url": "https://files.pythonhosted.org/packages/47/12/3da42febf293d915b9952a07d6047ba0f91d4d236736a81ea97ef3d6f8ca/rjieba-0.1.11-cp36-abi3-musllinux_1_2_armv7l.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b9f28ff6385f547690486d110d2fbdf00e72978ba570d0e7c6429302d6146f7c",
                "md5": "4405461c14d2879d63f3b321ee13eb7f",
                "sha256": "657c1863332b5bb9a4009975a99fc0c94f504b10ace84b36eb7dbfa1a3834491"
            },
            "downloads": -1,
            "filename": "rjieba-0.1.11-cp36-abi3-musllinux_1_2_i686.whl",
            "has_sig": false,
            "md5_digest": "4405461c14d2879d63f3b321ee13eb7f",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": null,
            "size": 3864270,
            "upload_time": "2022-02-12T12:04:31",
            "upload_time_iso_8601": "2022-02-12T12:04:31.940066Z",
            "url": "https://files.pythonhosted.org/packages/b9/f2/8ff6385f547690486d110d2fbdf00e72978ba570d0e7c6429302d6146f7c/rjieba-0.1.11-cp36-abi3-musllinux_1_2_i686.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5a623433231d92af712c96ef6e9e64639b008d1ab2892fbfa4953f3b2a85213c",
                "md5": "30975939510ccf3c3f0157f69efc5a2e",
                "sha256": "d0ce26b8cb5b3101e9fa59e07c9ef5dec3c7d0dba11668d8101cd77970951650"
            },
            "downloads": -1,
            "filename": "rjieba-0.1.11-cp36-abi3-musllinux_1_2_x86_64.whl",
            "has_sig": false,
            "md5_digest": "30975939510ccf3c3f0157f69efc5a2e",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": null,
            "size": 4015376,
            "upload_time": "2022-02-12T12:04:33",
            "upload_time_iso_8601": "2022-02-12T12:04:33.248883Z",
            "url": "https://files.pythonhosted.org/packages/5a/62/3433231d92af712c96ef6e9e64639b008d1ab2892fbfa4953f3b2a85213c/rjieba-0.1.11-cp36-abi3-musllinux_1_2_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8c9e18277bfcdbaae6794ca9b7076a47b1534c469cd378b5605e6e91b5dce60a",
                "md5": "37177ccc3f1c89a338a55436ce58cb4d",
                "sha256": "b2e98ca673370f0b9bc61a4e78df7181876bdb8087c4257cbcb80deaa1d8a119"
            },
            "downloads": -1,
            "filename": "rjieba-0.1.11-cp36-abi3-win32.whl",
            "has_sig": false,
            "md5_digest": "37177ccc3f1c89a338a55436ce58cb4d",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": null,
            "size": 2664075,
            "upload_time": "2022-02-12T12:04:34",
            "upload_time_iso_8601": "2022-02-12T12:04:34.436132Z",
            "url": "https://files.pythonhosted.org/packages/8c/9e/18277bfcdbaae6794ca9b7076a47b1534c469cd378b5605e6e91b5dce60a/rjieba-0.1.11-cp36-abi3-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "974d74d6c68dd61bb3cf035646b728eedd370332795dbc6111c25616e95f77e3",
                "md5": "cc00371f940c1c223fe9c27b11f210a3",
                "sha256": "61b4187c21b724dd1eba732482bdcdbf61623d64c936942d8e80d1a69315d3c7"
            },
            "downloads": -1,
            "filename": "rjieba-0.1.11-cp36-abi3-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "cc00371f940c1c223fe9c27b11f210a3",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": null,
            "size": 2728182,
            "upload_time": "2022-02-12T12:04:35",
            "upload_time_iso_8601": "2022-02-12T12:04:35.675343Z",
            "url": "https://files.pythonhosted.org/packages/97/4d/74d6c68dd61bb3cf035646b728eedd370332795dbc6111c25616e95f77e3/rjieba-0.1.11-cp36-abi3-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "51536bc9653460d3182383fdd972ee50c167acadc3aca440c9a4fb9ef9a201ad",
                "md5": "9494afe9a1ea5a67fd87fa89aee51bd1",
                "sha256": "a9cdbefc404dc2536b0e8c0f7b084a70f9e7e412abab5a93b0e09420db0499bc"
            },
            "downloads": -1,
            "filename": "rjieba-0.1.11.tar.gz",
            "has_sig": false,
            "md5_digest": "9494afe9a1ea5a67fd87fa89aee51bd1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 7491,
            "upload_time": "2022-02-12T12:04:36",
            "upload_time_iso_8601": "2022-02-12T12:04:36.785988Z",
            "url": "https://files.pythonhosted.org/packages/51/53/6bc9653460d3182383fdd972ee50c167acadc3aca440c9a4fb9ef9a201ad/rjieba-0.1.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-02-12 12:04:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "messense",
    "github_project": "rjieba-py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "rjieba"
}
        
Elapsed time: 0.36473s