Update README.md
Browse files
README.md
CHANGED
@@ -4,3 +4,30 @@ license: cc-by-nc-sa-4.0
|
|
4 |
datasets:
|
5 |
- ClaimRev
|
6 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
datasets:
|
5 |
- ClaimRev
|
6 |
---
|
7 |
+
|
8 |
+
# Model
|
9 |
+
This model was obtained by fine-tuning bert-base-cased on the ClaimRev dataset.
|
10 |
+
|
11 |
+
Paper: [Learning From Revisions: Quality Assessment of Claims in Argumentation at Scale](https://aclanthology.org/2021.eacl-main.147/)
|
12 |
+
Authors: Gabriella Skitalinskaya, Jonas Klaff, Henning Wachsmuth
|
13 |
+
|
14 |
+
# Claim Quality Classification
|
15 |
+
We cast this task as a pairwise classification task, where the objective is to compare two versions of the same claim and determine which one is better.
|
16 |
+
|
17 |
+
# Usage
|
18 |
+
|
19 |
+
```python
|
20 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
21 |
+
import torch
|
22 |
+
|
23 |
+
tokenizer = AutoTokenizer.from_pretrained("gabski/bert-relative-claim-quality")
|
24 |
+
model = AutoModelForSequenceClassification.from_pretrained("gabski/bert-relative-claim-quality")
|
25 |
+
claim_1 = 'Smoking marijuana is less harmfull then smoking cigarettes.'
|
26 |
+
claim_2 = 'Smoking marijuana is less harmful than smoking cigarettes.'
|
27 |
+
model_input = tokenizer(claim_1,claim_2, return_tensors='pt')
|
28 |
+
model_outputs = model(**model_input)
|
29 |
+
|
30 |
+
outputs = torch.nn.functional.softmax(model_outputs.logits, dim = -1)
|
31 |
+
print(outputs)
|
32 |
+
```
|
33 |
+
|