Update README to remove blank line at top
#2
by
yundai424
- opened
README.md
CHANGED
@@ -1,79 +1,78 @@
|
|
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 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
loading: integrated_datasets/apc_datasets/SemEval/
|
51 |
-
loading: integrated_datasets/apc_datasets/SemEval/
|
52 |
-
loading: integrated_datasets/apc_datasets/
|
53 |
-
loading: integrated_datasets/apc_datasets/
|
54 |
-
loading: integrated_datasets/apc_datasets/
|
55 |
-
loading: integrated_datasets/apc_datasets/
|
56 |
-
loading: integrated_datasets/apc_datasets/
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
}
|
79 |
```
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
tags:
|
5 |
+
- aspect-based-sentiment-analysis
|
6 |
+
- PyABSA
|
7 |
+
license: mit
|
8 |
+
datasets:
|
9 |
+
- laptop14
|
10 |
+
- restaurant14
|
11 |
+
- restaurant16
|
12 |
+
- ACL-Twitter
|
13 |
+
- MAMS
|
14 |
+
- Television
|
15 |
+
- TShirt
|
16 |
+
- Yelp
|
17 |
+
metrics:
|
18 |
+
- accuracy
|
19 |
+
- macro-f1
|
20 |
+
widget:
|
21 |
+
- text: "[CLS] when tables opened up, the manager sat another party before us. [SEP] manager [SEP] "
|
22 |
+
---
|
23 |
+
|
24 |
+
# Note
|
25 |
+
This model is training with 30k+ ABSA samples, see [ABSADatasets](https://github.com/yangheng95/ABSADatasets). Yet the test sets are not included in pre-training, so you can use this model for training and benchmarking on common ABSA datasets, e.g., Laptop14, Rest14 datasets. (Except for the Rest15 dataset!)
|
26 |
+
|
27 |
+
# DeBERTa for aspect-based sentiment analysis
|
28 |
+
The `deberta-v3-large-absa` model for aspect-based sentiment analysis, trained with English datasets from [ABSADatasets](https://github.com/yangheng95/ABSADatasets).
|
29 |
+
|
30 |
+
## Training Model
|
31 |
+
This model is trained based on the FAST-LCF-BERT model with `microsoft/deberta-v3-large`, which comes from [PyABSA](https://github.com/yangheng95/PyABSA).
|
32 |
+
To track state-of-the-art models, please see [PyASBA](https://github.com/yangheng95/PyABSA).
|
33 |
+
|
34 |
+
## Usage
|
35 |
+
```python3
|
36 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
37 |
+
|
38 |
+
tokenizer = AutoTokenizer.from_pretrained("yangheng/deberta-v3-large-absa-v1.1")
|
39 |
+
|
40 |
+
model = AutoModelForSequenceClassification.from_pretrained("yangheng/deberta-v3-large-absa-v1.1")
|
41 |
+
```
|
42 |
+
|
43 |
+
## Example in PyASBA
|
44 |
+
An [example](https://github.com/yangheng95/PyABSA/blob/release/demos/aspect_polarity_classification/train_apc_multilingual.py) for using FAST-LCF-BERT in PyASBA datasets.
|
45 |
+
|
46 |
+
## Datasets
|
47 |
+
This model is fine-tuned with 180k examples for the ABSA dataset (including augmented data). Training dataset files:
|
48 |
+
```
|
49 |
+
loading: integrated_datasets/apc_datasets/SemEval/laptop14/Laptops_Train.xml.seg
|
50 |
+
loading: integrated_datasets/apc_datasets/SemEval/restaurant14/Restaurants_Train.xml.seg
|
51 |
+
loading: integrated_datasets/apc_datasets/SemEval/restaurant16/restaurant_train.raw
|
52 |
+
loading: integrated_datasets/apc_datasets/ACL_Twitter/acl-14-short-data/train.raw
|
53 |
+
loading: integrated_datasets/apc_datasets/MAMS/train.xml.dat
|
54 |
+
loading: integrated_datasets/apc_datasets/Television/Television_Train.xml.seg
|
55 |
+
loading: integrated_datasets/apc_datasets/TShirt/Menstshirt_Train.xml.seg
|
56 |
+
loading: integrated_datasets/apc_datasets/Yelp/yelp.train.txt
|
57 |
+
|
58 |
+
```
|
59 |
+
If you use this model in your research, please cite our paper:
|
60 |
+
```
|
61 |
+
@article{YangZMT21,
|
62 |
+
author = {Heng Yang and
|
63 |
+
Biqing Zeng and
|
64 |
+
Mayi Xu and
|
65 |
+
Tianxing Wang},
|
66 |
+
title = {Back to Reality: Leveraging Pattern-driven Modeling to Enable Affordable
|
67 |
+
Sentiment Dependency Learning},
|
68 |
+
journal = {CoRR},
|
69 |
+
volume = {abs/2110.08604},
|
70 |
+
year = {2021},
|
71 |
+
url = {https://arxiv.org/abs/2110.08604},
|
72 |
+
eprinttype = {arXiv},
|
73 |
+
eprint = {2110.08604},
|
74 |
+
timestamp = {Fri, 22 Oct 2021 13:33:09 +0200},
|
75 |
+
biburl = {https://dblp.org/rec/journals/corr/abs-2110-08604.bib},
|
76 |
+
bibsource = {dblp computer science bibliography, https://dblp.org}
|
77 |
+
}
|
|
|
78 |
```
|