ModernBERT-base-critical-question-classifier
This is a fine-tuned version of [answerdotai/ModernBERT-base] for classifying critical questions about an argument (intervention) into three labels:
UsefulUnhelpfulInvalid
The model was trained on a dataset where each intervention can have multiple critical questions, each annotated with one of the above labels.
Usage
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="MidhunKanadan/ModernBERT-base-critical-question-classifier",
truncation=True, # ensures long inputs are handled
max_length=2048 # ModernBERT can handle long contexts
)
intervention = "CLINTON: \"The central question in this election is really what kind of country we want to be and what kind of future we 'll build together\nToday is my granddaughter 's second birthday\nI think about this a lot\nwe have to build an economy that works for everyone , not just those at the top\nwe need new jobs , good jobs , with rising incomes\nI want us to invest in you\nI want us to invest in your future\njobs in infrastructure , in advanced manufacturing , innovation and technology , clean , renewable energy , and small business\nmost of the new jobs will come from small business\nWe also have to make the economy fairer\nThat starts with raising the national minimum wage and also guarantee , finally , equal pay for women 's work\nI also want to see more companies do profit-sharing\"",
critical_question = "Could Clinton investing in you have consequences that we should take into account? Is it practically possible?"
text = f"Intervention: {intervention} [SEP] Critical Question: {critical_question}"
result = classifier(text)[0]
print(f"Label: {result['label']}")
- Downloads last month
- 46
Model tree for MidhunKanadan/ModernBERT-base-critical-question-classifier
Base model
answerdotai/ModernBERT-base