File size: 1,064 Bytes
873229e
 
 
 
 
 
 
ac01af9
283403c
ac01af9
283403c
ac01af9
283403c
ac01af9
283403c
ac01af9
283403c
ac01af9
 
 
283403c
ac01af9
283403c
 
 
 
8be4b48
283403c
ac01af9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
873229e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
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
```