yevhenkost
commited on
Commit
•
4573d91
1
Parent(s):
fcc4b45
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-nc-sa-4.0
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
tags:
|
6 |
+
- argument mining
|
7 |
+
datasets:
|
8 |
+
- US2016
|
9 |
+
- QT30
|
10 |
+
metrics:
|
11 |
+
- macro-f1
|
12 |
+
---
|
13 |
+
|
14 |
+
## ALBERT-based model for Argument Relation Identification (ARI)
|
15 |
+
|
16 |
+
|
17 |
+
Argument Mining model trained with English (EN) data for the Argument Relation Identification (ARI) task using the US2016 and the QT30 corpora.
|
18 |
+
This a fine-tuned [albert/albert-base-v2](https://huggingface.co/albert/albert-base-v2) model, inspired by "Transformer-Based Models for Automatic Detection of Argument Relations: A Cross-Domain Evaluation" paper.
|
19 |
+
|
20 |
+
|
21 |
+
## Usage
|
22 |
+
```python
|
23 |
+
|
24 |
+
from transformers import BertTokenizer,BertForSequenceClassification
|
25 |
+
|
26 |
+
classes_decoder = {
|
27 |
+
0: "Inference",
|
28 |
+
1: "Conflict",
|
29 |
+
2: "Rephrase",
|
30 |
+
3: "No-Relation"
|
31 |
+
}
|
32 |
+
|
33 |
+
|
34 |
+
model = BertForSequenceClassification.from_pretrained("yevhenkost/ArgumentMining-EN-ARI-AIF-ALBERT")
|
35 |
+
tokenizer = BertTokenizer.from_pretrained("yevhenkost/ArgumentMining-EN-ARI-AIF-ALBERT")
|
36 |
+
|
37 |
+
text_one, text_two = "The water is wet", "The sun is really hot"
|
38 |
+
|
39 |
+
model_inputs = tokenizer(text_one, text_two, return_tensors="pt")
|
40 |
+
|
41 |
+
# regular SequenceClassifierOutput
|
42 |
+
model_output = model(**model_inputs)
|
43 |
+
```
|
44 |
+
|
45 |
+
Cite:
|
46 |
+
|
47 |
+
```
|
48 |
+
@article{ruiz2021transformer,
|
49 |
+
author = {R. Ruiz-Dolz and J. Alemany and S. Barbera and A. Garcia-Fornes},
|
50 |
+
journal = {IEEE Intelligent Systems},
|
51 |
+
title = {Transformer-Based Models for Automatic Identification of Argument Relations: A Cross-Domain Evaluation},
|
52 |
+
year = {2021},
|
53 |
+
volume = {36},
|
54 |
+
number = {06},
|
55 |
+
issn = {1941-1294},
|
56 |
+
pages = {62-70},
|
57 |
+
doi = {10.1109/MIS.2021.3073993},
|
58 |
+
publisher = {IEEE Computer Society}
|
59 |
+
}
|
60 |
+
|
61 |
+
```
|