Downloads · 30 days
24
5% of all-time downloads
enpchina/cws_chinese_shunpao_0923
cws_chinese_shunpao_0923 is a machine learning model from enpchina. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
You can use this model with Transformers pipeline for token-classification.
Downloads · 30 days
24
5% of all-time downloads
All-time downloads
507
Public
Parameters
115M
462 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors462 MB · 100%
From the Hugging Face model README
You can use this model with Transformers pipeline for token-classification.
from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline
nlp = pipeline("token-classification", model="enpchina/cws_chinese_shunpao_0923", aggregation_strategy="simple")
example = "非兩君之盡心於民事,以實心而行實政, 其能得此,於諸紳士也哉。"
cws_results = nlp(example)
print(cws_results)
print()
tab = [w["word"].replace(" ","") for w in cws_results]
print(tab)
print()
print(" ".join(tab))