Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-nc-sa-4.0
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
library_name: transformers
|
6 |
+
pipeline_tag: text-classification
|
7 |
+
datasets:
|
8 |
+
- ClaimRev
|
9 |
+
widget:
|
10 |
+
- text: "Teachers are likely to educate children better than parents."
|
11 |
+
---
|
12 |
+
|
13 |
+
# Model
|
14 |
+
This model was obtained by fine-tuning `microsoft/deberta-base` on the extended ClaimRev dataset.
|
15 |
+
|
16 |
+
Paper: [To Revise or Not to Revise: Learning to Detect Improvable Claims for Argumentative Writing Support](https://arxiv.org/abs/2305.16799)
|
17 |
+
|
18 |
+
Authors: Gabriella Skitalinskaya and Henning Wachsmuth
|
19 |
+
|
20 |
+
# Suboptimal Claim Detection
|
21 |
+
We cast this task as a binary classification task, where the objective is, given an argumentative claim (in this case, the **parent claim** in the debate, which is opposed or supported by the claim in question), to decide whether it is in need of further revision or can be considered to be phrased more or less optimally.
|
22 |
+
|
23 |
+
# Usage
|
24 |
+
|
25 |
+
```python
|
26 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
27 |
+
import torch
|
28 |
+
|
29 |
+
tokenizer = AutoTokenizer.from_pretrained("gabski/deberta-suboptimal-claim-detection")
|
30 |
+
model = AutoModelForSequenceClassification.from_pretrained("gabski/deberta-suboptimal-claim-detection")
|
31 |
+
claim = 'Teachers are likely to educate children better than parents.'
|
32 |
+
model_input = tokenizer(claim, return_tensors='pt')
|
33 |
+
model_outputs = model(**model_input)
|
34 |
+
|
35 |
+
outputs = torch.nn.functional.softmax(model_outputs.logits, dim = -1)
|
36 |
+
print(outputs)
|
37 |
+
```
|