No project description provided
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.2.0.tar.gz
(4.2 kB
view hashes)
Built Distributions
Close
Hashes for fast_jieba-0.2.0-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef7f8b8e0181f056f311c3667dcc8ddb0c1676a98e3bfe7b6ca2cd36ea6cc537 |
|
MD5 | 7b35a71dd9e2a1fa95137274a4678924 |
|
BLAKE2b-256 | c081be7c3d030c7860e85d0c6722b4cc98e31090a8a1f750dc1672a46b7494e0 |
Close
Hashes for fast_jieba-0.2.0-cp38-cp38-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6653bc8ac15e59b8ca9133a5eea429e51fae02aecdc1d283f1c1c71dfd4fcbad |
|
MD5 | 8e8b3a0acce8dbf1f82393239eeb0be5 |
|
BLAKE2b-256 | 2e7ab803aeb4620028a7a0ddc11b63c2f266ece67db0049c00f7478694887f61 |
Close
Hashes for fast_jieba-0.2.0-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae9ede420cf5b841a209e3c947a9fd51bfb3cc4d7f70717b6811dedd9e04bc81 |
|
MD5 | 8221396d7c51dd39ec8bd1a93eff94b1 |
|
BLAKE2b-256 | 6a1c993e725609e7044618a4a0584c172b32ef2de99fbfe7f29412ad7e0b4be8 |