Views
No views yet
Useful or Non-Useful in the context of an argument (intervention). It is fine-tuned on Critical Question Generation datasets using a ModernBERT architecture with extended context.pip install transformerspipeline1from transformers import pipeline
2
3classifier = pipeline("text-classification", model="MidhunKanadan/ModernBERT-CritiQ")
4
5intervention = "Investing in public transport reduces carbon emissions and benefits everyone."
6question = "What about the costs of implementing this system?"
7
8text = f"Intervention: {intervention} [SEP] Critical Question: {question}"
9result = classifier(text)[0]
10
11print(f"Label: {result['label']}, Confidence: {result['score']:.4f}")Label: Useful, Confidence: 0.9539