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="tum-nlp/bert-counterspeech-classifier")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("tum-nlp/bert-counterspeech-classifier")
model = AutoModelForSequenceClassification.from_pretrained("tum-nlp/bert-counterspeech-classifier")
Quick Links

Counter-Speech Classifier

The BERT-based counter-speech classifier is finetuned on the CONAN dataset for classifying whether a response is counter-speech, based on the counter-argument classifier ThinkCERCA/counterargument_hugging

Uses

The model is intended for classifying LM-generated dialogue responses, evaluating their validity as counter-speech.

Downloads last month
42
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including tum-nlp/bert-counterspeech-classifier