Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
context: "Homeschooling should be banned."
|
12 |
+
---
|
13 |
+
|
14 |
+
# Model
|
15 |
+
This model was obtained by fine-tuning `microsoft/deberta-base` on the extended ClaimRev dataset.
|
16 |
+
|
17 |
+
Paper: [To Revise or Not to Revise: Learning to Detect Improvable Claims for Argumentative Writing Support](https://arxiv.org/abs/2305.16799)
|
18 |
+
|
19 |
+
Authors: Gabriella Skitalinskaya and Henning Wachsmuth
|
20 |
+
|
21 |
+
# Suboptimal Claim Detection
|
22 |
+
We cast this task as a binary classification task, where the objective is, given an argumentative claim and some contextual information (in this case, the **main thesis** of the debate), to decide whether it is in need of further revision or can be considered to be phrased more or less optimally.
|
23 |
+
|
24 |
+
# Usage
|
25 |
+
|
26 |
+
```python
|
27 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
28 |
+
import torch
|
29 |
+
|
30 |
+
tokenizer = AutoTokenizer.from_pretrained("gabski/deberta-suboptimal-claim-detection-with-thesis")
|
31 |
+
model = AutoModelForSequenceClassification.from_pretrained("gabski/deberta-suboptimal-claim-detection-with-thesis")
|
32 |
+
claim = 'Teachers are likely to educate children better than parents.'
|
33 |
+
thesis = 'Homeschooling should be banned.'
|
34 |
+
model_input = tokenizer(claim, thesis, return_tensors='pt')
|
35 |
+
model_outputs = model(**model_input)
|
36 |
+
|
37 |
+
outputs = torch.nn.functional.softmax(model_outputs.logits, dim = -1)
|
38 |
+
print(outputs)
|
39 |
+
```
|