Skip to main content

faster word segmentation tool, based on jieba_rs

Project description

FastJieba

fast_jieba for python, create by pyo3, use rust crate jieba_rs

import fast_jieba
from fast_jieba.analyse import extract_tags, textrank

words = fast_jieba.tokenize("小明就读北京清华大学物理系")
print(words)

tags = extract_tags("小明就读北京清华大学物理系")
print(tags)

tags = textrank("小明就读北京清华大学物理系")
print(tags)

print("**************")
texts = ["小明就读北京清华大学物理系" for _ in range(4)]

words = fast_jieba.batch_tokenize(texts)
print(words)

words = fast_jieba.batch_cut(texts)
print(words)

words = fast_jieba.batch_posseg(texts)
print(words)

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

fast_jieba-0.4.0.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distributions

fast_jieba-0.4.0-cp310-none-win_amd64.whl (5.0 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

fast_jieba-0.4.0-cp310-cp310-manylinux_2_31_x86_64.whl (5.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.31+ x86-64

fast_jieba-0.4.0-cp310-cp310-macosx_10_7_x86_64.whl (5.1 MB view hashes)

Uploaded CPython 3.10 macOS 10.7+ x86-64

fast_jieba-0.4.0-cp39-none-win_amd64.whl (5.0 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

fast_jieba-0.4.0-cp39-cp39-manylinux_2_31_x86_64.whl (5.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.31+ x86-64

fast_jieba-0.4.0-cp39-cp39-macosx_10_7_x86_64.whl (5.1 MB view hashes)

Uploaded CPython 3.9 macOS 10.7+ x86-64

fast_jieba-0.4.0-cp38-none-win_amd64.whl (5.0 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

fast_jieba-0.4.0-cp38-cp38-manylinux_2_31_x86_64.whl (5.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.31+ x86-64

fast_jieba-0.4.0-cp38-cp38-manylinux_2_28_x86_64.whl (5.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.28+ x86-64

fast_jieba-0.4.0-cp38-cp38-macosx_10_7_x86_64.whl (5.1 MB view hashes)

Uploaded CPython 3.8 macOS 10.7+ x86-64

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