mbruton commited on
Commit
7308667
1 Parent(s): bf474bb

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +166 -0
README.md ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - mbruton/galician_srl
5
+ - CoNLL-2012
6
+ - PropBank.Br
7
+ - mbruton/spanish_srl
8
+ language:
9
+ - gl
10
+ - en
11
+ - pt
12
+ - es
13
+ metrics:
14
+ - seqeval
15
+ library_name: transformers
16
+ pipeline_tag: token-classification
17
+ ---
18
+
19
+ # Model Card for GalXLM-R-enptsp for Semantic Role Labeling
20
+
21
+ This model is fine-tuned on a version of [XLM RoBERTa Base](https://huggingface.co/xlm-roberta-base) which is pre-trained on the SRL task for English, Portuguese, and Spanish, and is one of 24 models introduced as part of [this project](https://github.com/mbruton0426/GalicianSRL). Prior to this work, there were no published Galician datasets or models for SRL.
22
+
23
+ ## Model Details
24
+
25
+ ### Model Description
26
+
27
+ GalXLM-R-enptsp for Semantic Role Labeling (SRL) is a transformers model, leveraging XLM-R's extensive pretraining on 100 languages to achieve better SRL predictions for low-resource Galician. This model is additionally pre-trained on the SRL task for English, Portuguese, and Spanish. It was fine-tuned on Galician with the following objectives:
28
+
29
+ - Identify up to 13 verbal roots within a sentence.
30
+ - Identify available arguments for each verbal root. Due to scarcity of data, this model focused solely on the identification of arguments 0, 1, and 2.
31
+
32
+ Labels are formatted as: r#:tag, where r# links the token to a specific verbal root of index #, and tag identifies the token as the verbal root (root) or an individual argument (arg0/arg1/arg2)
33
+
34
+ - **Developed by:** [Micaella Bruton](mailto:micaellabruton@gmail.com)
35
+ - **Model type:** Transformers
36
+ - **Language(s) (NLP):** Galician (gl), English (en), Portuguese (pt), Spanish (es)
37
+ - **License:** Apache 2.0
38
+ - **Finetuned from model:** [English, Portuguese, and Spanish pre-trained XLM RoBERTa Base](https://huggingface.co/mbruton/spa_enpt_XLM-R)
39
+
40
+ ### Model Sources
41
+
42
+ - **Repository:** [GalicianSRL](https://github.com/mbruton0426/GalicianSRL)
43
+ - **Paper:** To be updated
44
+
45
+ ## Uses
46
+
47
+ This model is intended to be used to develop and improve natural language processing tools for Galician.
48
+
49
+ ## Bias, Risks, and Limitations
50
+
51
+ Galician is a low-resource language which prior to this project lacked a semantic role labeling dataset. As such, the dataset used to train this model is extrememly limited and could benefit from the inclusion of additional sentences and manual validation by native speakers.
52
+
53
+ ## Training Details
54
+
55
+ ### Training Data
56
+
57
+ This model was pre-trained on the [OntoNotes 5.0 English SRL corpus](http://catalog.ldc.upenn.edu/LDC2013T19), [PropBank.Br Portuguese SRL corpus](http://www.nilc.icmc.usp.br/portlex/index.php/en/projects/propbankbringl), and the [SpanishSRL Dataset](http://www.nilc.icmc.usp.br/portlex/index.php/en/projects/propbankbringl) produced as part of this same project.
58
+ This model was fine-tuned on the "train" portion of the [GalicianSRL Dataset](https://huggingface.co/datasets/mbruton/galician_srl) produced as part of this same project.
59
+
60
+ #### Training Hyperparameters
61
+
62
+ - **Learning Rate:** 2e-5
63
+ - **Batch Size:** 16
64
+ - **Weight Decay:** 0.01
65
+ - **Early Stopping:** 10 epochs
66
+
67
+ ## Evaluation
68
+
69
+ #### Testing Data
70
+
71
+ This model was tested on the "test" portion of the [GalicianSRL Dataset](https://huggingface.co/datasets/mbruton/galician_srl) produced as part of this same project.
72
+
73
+ #### Metrics
74
+
75
+ [seqeval](https://huggingface.co/spaces/evaluate-metric/seqeval) is a Python framework for sequence labeling evaluation. It can evaluate the performance of chunking tasks such as named-entity recognition, part-of-speech tagging, and semantic role labeling.
76
+ It supplies scoring both overall and per label type.
77
+
78
+ Overall:
79
+ - `accuracy`: the average [accuracy](https://huggingface.co/metrics/accuracy), on a scale between 0.0 and 1.0.
80
+ - `precision`: the average [precision](https://huggingface.co/metrics/precision), on a scale between 0.0 and 1.0.
81
+ - `recall`: the average [recall](https://huggingface.co/metrics/recall), on a scale between 0.0 and 1.0.
82
+ - `f1`: the average [F1 score](https://huggingface.co/metrics/f1), which is the harmonic mean of the precision and recall. It also has a scale of 0.0 to 1.0.
83
+
84
+ Per label type:
85
+ - `precision`: the average [precision](https://huggingface.co/metrics/precision), on a scale between 0.0 and 1.0.
86
+ - `recall`: the average [recall](https://huggingface.co/metrics/recall), on a scale between 0.0 and 1.0.
87
+ - `f1`: the average [F1 score](https://huggingface.co/metrics/f1), on a scale between 0.0 and 1.0.
88
+
89
+ ### Results
90
+
91
+ | Label | Precision | Recall | f1-score | Support |
92
+ | :----------: | :-------: | :----: | :------: | :-----: |
93
+ | 0:arg0 | 0.80 | 0.67 | 0.73 | 485 |
94
+ | 0:arg1 | 0.66 | 0.74 | 0.69 | 483 |
95
+ | 0:arg2 | 0.68 | 0.73 | 0.70 | 264 |
96
+ | 0:root | 0.93 | 0.93 | 0.93 | 948 |
97
+ | 1:arg0 | 0.67 | 0.64 | 0.66 | 348 |
98
+ | 1:arg1 | 0.68 | 0.70 | 0.69 | 443 |
99
+ | 1:arg2 | 0.57 | 0.67 | 0.61 | 211 |
100
+ | 1:root | 0.84 | 0.86 | 0.85 | 802 |
101
+ | 2:arg0 | 0.58 | 0.60 | 0.59 | 240 |
102
+ | 2:arg1 | 0.63 | 0.65 | 0.64 | 331 |
103
+ | 2:arg2 | 0.54 | 0.69 | 0.61 | 156 |
104
+ | 2:root | 0.75 | 0.80 | 0.77 | 579 |
105
+ | 3:arg0 | 0.48 | 0.49 | 0.49 | 137 |
106
+ | 3:arg1 | 0.62 | 0.55 | 0.58 | 216 |
107
+ | 3:arg2 | 0.46 | 0.66 | 0.55 | 110 |
108
+ | 3:root | 0.69 | 0.73 | 0.71 | 374 |
109
+ | 4:arg0 | 0.54 | 0.47 | 0.50 | 70 |
110
+ | 4:arg1 | 0.55 | 0.60 | 0.57 | 109 |
111
+ | 4:arg2 | 0.44 | 0.42 | 0.43 | 66 |
112
+ | 4:root | 0.61 | 0.60 | 0.60 | 206 |
113
+ | 5:arg0 | 0.37 | 0.50 | 0.43 | 20 |
114
+ | 5:arg1 | 0.56 | 0.47 | 0.51 | 57 |
115
+ | 5:arg2 | 0.33 | 0.32 | 0.33 | 28 |
116
+ | 5:root | 0.57 | 0.51 | 0.54 | 102 |
117
+ | 6:arg0 | 0.38 | 0.23 | 0.29 | 13 |
118
+ | 6:arg1 | 0.26 | 0.36 | 0.31 | 25 |
119
+ | 6:arg2 | 0.00 | 0.00 | 0.00 | 8 |
120
+ | 6:root | 0.40 | 0.38 | 0.39 | 42 |
121
+ | 7:arg0 | 0.00 | 0.00 | 0.00 | 3 |
122
+ | 7:arg1 | 1.00 | 0.12 | 0.22 | 8 |
123
+ | 7:arg2 | 0.00 | 0.00 | 0.00 | 5 |
124
+ | 7:root | 0.20 | 0.19 | 0.19 | 16 |
125
+ | 8:arg0 | 0.00 | 0.00 | 0.00 | 1 |
126
+ | 8:arg1 | 0.00 | 0.00 | 0.00 | 2 |
127
+ | 8:arg2 | 0.00 | 0.00 | 0.00 | 1 |
128
+ | 8:root | 0.00 | 0.00 | 0.00 | 7 |
129
+ | 9:arg0 | 0.00 | 0.00 | 0.00 | 1 |
130
+ | 9:arg1 | 0.00 | 0.00 | 0.00 | 2 |
131
+ | 9:arg2 | 0.00 | 0.00 | 0.00 | 1 |
132
+ | 9:root | 0.00 | 0.00 | 0.00 | 3 |
133
+ | 10:arg1 | 0.00 | 0.00 | 0.00 | 1 |
134
+ | 10:root | 0.00 | 0.00 | 0.00 | 2 |
135
+ | micro avg | 0.70 | 0.72 | 0.71 | 6926 |
136
+ | macro avg | 0.40 | 0.39 | 0.38 | 6926 |
137
+ | weighted avg | 0.70 | 0.72 | 0.71 | 6926 |
138
+ | tot root avg | 0.45 | 0.45 | 0.45 | 3081 |
139
+ | tot A0 avg | 0.38 | 0.36 | 0.37 | 1318 |
140
+ | tot A1 avg | 0.45 | 0.38 | 0.38 | 1677 |
141
+ | tot A2 avg | 0.30 | 0.35 | 0.32 | 850 |
142
+ | tot r0 avg | 0.77 | 0.77 | 0.76 | 2180 |
143
+ | tot r1 avg | 0.69 | 0.72 | 0.70 | 1804 |
144
+ | tot r2 avg | 0.63 | 0.69 | 0.65 | 1306 |
145
+ | tot r3 avg | 0.56 | 0.61 | 0.58 | 837 |
146
+ | tot r4 avg | 0.54 | 0.52 | 0.53 | 451 |
147
+ | tot r5 avg | 0.46 | 0.45 | 0.45 | 207 |
148
+ | tot r6 avg | 0.26 | 0.24 | 0.25 | 88 |
149
+ | tot r7 avg | 0.30 | 0.08 | 0.10 | 32 |
150
+ | tot r8 avg | 0.00 | 0.00 | 0.00 | 11 |
151
+ | tot r9 avg | 0.00 | 0.00 | 0.00 | 7 |
152
+ | tot r10 avg | 0.00 | 0.00 | 0.00 | 3 |
153
+
154
+ ## Citation
155
+
156
+ **BibTeX:**
157
+
158
+ ```
159
+ @mastersthesis{bruton-galician-srl-23,
160
+ author = {Bruton, Micaella},
161
+ title = {BERTie Bott's Every Flavor Labels: A Tasty Guide to Developing a Semantic Role Labeling Model for Galician},
162
+ school = {Uppsala University},
163
+ year = {2023},
164
+ type = {Master's thesis},
165
+ }
166
+ ```