How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="crackrammer/ShieldBERT-Base-Chinese-Sensitive")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("crackrammer/ShieldBERT-Base-Chinese-Sensitive")
model = AutoModelForSequenceClassification.from_pretrained("crackrammer/ShieldBERT-Base-Chinese-Sensitive")
Quick Links

这是一个基于 bert-base-chinese 微调的敏感词检测模型,专门用于识别中文文本中的敏感、成人及违规内容。

协议声明

本模型权重及相关代码采用 Apache License 2.0 协议开源。

Downloads last month
3
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support