thu-coai/cdconv
Preview • Updated • 73 • 3
How to use LilithHu/mbert-manipulative-detector with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="LilithHu/mbert-manipulative-detector") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("LilithHu/mbert-manipulative-detector")
model = AutoModelForSequenceClassification.from_pretrained("LilithHu/mbert-manipulative-detector")本模型用于检测中文和英文文本中的操纵性语言(Manipulative Language),例如隐性控制、情感勒索、语言操控等,广泛应用于社交心理、文本筛查和内容审核等场景。
本模型不适合用于:
请注意:
使用者应结合人工判断,多模态、多渠道地理解文本含义。对于模型预测结果不可盲信,应视为辅助工具。
from transformers import pipeline
classifier = pipeline("text-classification", model="LilithHu/mbert-manipulative-detector")
result = classifier("我爱你")
print(result)
也可通过终端调用:
curl -X POST https://api-inference.huggingface.co/models/LilithHu/mbert-manipulative-detector \
-H "Authorization: Bearer <your_hf_token>" \
-H "Content-Type: application/json" \
-d '{"inputs": "我爱你"}'
| Metric | Score |
|---|---|
| Accuracy | 0.** |
| Precision | 0.** |
| Recall | 0.** |
| F1-score | 0.** |
LilithHu
如需反馈建议,请通过 Hugging Face 留言联系作者。
@misc{LilithHu2025,
title={mBERT Manipulative Language Detector},
author={LilithHu},
year={2025},
url={https://huggingface.co/LilithHu/mbert-manipulative-detector}
}
Base model
google-bert/bert-base-multilingual-cased