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.1.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for fast_jieba-0.1.0-cp38-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52a18290406c81bf28c7cd743f77729b3b776882e95abce95566283968d2fda9 |
|
MD5 | c454d22752f77fb3c072a1d82575e4e5 |
|
BLAKE2b-256 | ccc377b8a93b12ada10eb5c5a3db99c9062583c461c6da913ff9e8ed0e01153e |