ModernBERT-CritiQ / README.md
MidhunKanadan's picture
Update README.md
873229e verified
---
license: mit
language:
- en
base_model:
- answerdotai/ModernBERT-base
---
## πŸ” ModernBERT-CritiQ: Critical Question Usefulness Classifier
This model classifies **critical questions** as either `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.
---
## πŸ’‘ How to Use
### πŸ›  Install Dependencies
```bash
pip install transformers
```
### πŸš€ Run with HuggingFace `pipeline`
```python
from transformers import pipeline
classifier = pipeline("text-classification", model="MidhunKanadan/ModernBERT-CritiQ")
intervention = "Investing in public transport reduces carbon emissions and benefits everyone."
question = "What about the costs of implementing this system?"
text = f"Intervention: {intervention} [SEP] Critical Question: {question}"
result = classifier(text)[0]
print(f"Label: {result['label']}, Confidence: {result['score']:.4f}")
```
---
## 🧠 Expected Output
```
Label: Useful, Confidence: 0.9539
```