mbruton commited on
Commit
6b52de7
·
1 Parent(s): 4a0dc38

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +159 -0
README.md ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - mbruton/galician_srl
5
+ language:
6
+ - gl
7
+ metrics:
8
+ - seqeval
9
+ library_name: transformers
10
+ pipeline_tag: token-classification
11
+ ---
12
+
13
+ # Model Card for GalXLM-R for Semantic Role Labeling (cased)
14
+
15
+ This model is fine-tuned on a version of [XLM RoBERTa Base](https://huggingface.co/xlm-roberta-base) 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.
16
+
17
+ ## Model Details
18
+
19
+ ### Model Description
20
+
21
+ GalXLM-R 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. It was fine-tuned on Galician with the following objectives:
22
+
23
+ - Identify up to 13 verbal roots within a sentence.
24
+ - 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.
25
+
26
+ 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)
27
+
28
+ - **Developed by:** [Micaella Bruton](mailto:micaellabruton@gmail.com)
29
+ - **Model type:** Transformers
30
+ - **Language(s) (NLP):** Galician (gl)
31
+ - **License:** Apache 2.0
32
+ - **Finetuned from model:** [XLM RoBERTa Base](https://huggingface.co/xlm-roberta-base)
33
+
34
+ ### Model Sources
35
+
36
+ - **Repository:** [GalicianSRL](https://github.com/mbruton0426/GalicianSRL)
37
+ - **Paper:** To be updated
38
+
39
+ ## Uses
40
+
41
+ This model is intended to be used to develop and improve natural language processing tools for Galician.
42
+
43
+ ## Bias, Risks, and Limitations
44
+
45
+ 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.
46
+
47
+ ## Training Details
48
+
49
+ ### Training Data
50
+
51
+ 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.
52
+
53
+ #### Training Hyperparameters
54
+
55
+ - **Learning Rate:** 2e-5
56
+ - **Batch Size:** 16
57
+ - **Weight Decay:** 0.01
58
+ - **Early Stopping:** 10 epochs
59
+
60
+ ## Evaluation
61
+
62
+ #### Testing Data
63
+
64
+ 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.
65
+
66
+ #### Metrics
67
+
68
+ [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.
69
+ It supplies scoring both overall and per label type.
70
+
71
+ Overall:
72
+ - `accuracy`: the average [accuracy](https://huggingface.co/metrics/accuracy), on a scale between 0.0 and 1.0.
73
+ - `precision`: the average [precision](https://huggingface.co/metrics/precision), on a scale between 0.0 and 1.0.
74
+ - `recall`: the average [recall](https://huggingface.co/metrics/recall), on a scale between 0.0 and 1.0.
75
+ - `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.
76
+
77
+ Per label type:
78
+ - `precision`: the average [precision](https://huggingface.co/metrics/precision), on a scale between 0.0 and 1.0.
79
+ - `recall`: the average [recall](https://huggingface.co/metrics/recall), on a scale between 0.0 and 1.0.
80
+ - `f1`: the average [F1 score](https://huggingface.co/metrics/f1), on a scale between 0.0 and 1.0.
81
+
82
+ ### Results
83
+
84
+ | Label | Precision | Recall | f1-score | Support |
85
+ | :----------: | :-------: | :----: | :------: | :-----: |
86
+ | 0:arg0 | 0.77 | 0.77 | 0.77 | 485 |
87
+ | 0:arg1 | 0.79 | 0.71 | 0.75 | 483 |
88
+ | 0:arg2 | 0.72 | 0.72 | 0.72 | 264 |
89
+ | 0:root | 0.94 | 0.94 | 0.94 | 948 |
90
+ | 1:arg0 | 0.62 | 0.67 | 0.64 | 348 |
91
+ | 1:arg1 | 0.69 | 0.68 | 0.69 | 443 |
92
+ | 1:arg2 | 0.65 | 0.68 | 0.67 | 211 |
93
+ | 1:root | 0.85 | 0.88 | 0.86 | 802 |
94
+ | 2:arg0 | 0.58 | 0.57 | 0.58 | 240 |
95
+ | 2:arg1 | 0.61 | 0.60 | 0.61 | 331 |
96
+ | 2:arg2 | 0.52 | 0.65 | 0.58 | 156 |
97
+ | 2:root | 0.77 | 0.77 | 0.77 | 579 |
98
+ | 3:arg0 | 0.46 | 0.42 | 0.44 | 137 |
99
+ | 3:arg1 | 0.53 | 0.56 | 0.55 | 216 |
100
+ | 3:arg2 | 0.45 | 0.53 | 0.49 | 110 |
101
+ | 3:root | 0.63 | 0.74 | 0.68 | 374 |
102
+ | 4:arg0 | 0.40 | 0.27 | 0.32 | 70 |
103
+ | 4:arg1 | 0.53 | 0.44 | 0.48 | 109 |
104
+ | 4:arg2 | 0.43 | 0.56 | 0.49 | 66 |
105
+ | 4:root | 0.53 | 0.59 | 0.56 | 206 |
106
+ | 5:arg0 | 0.33 | 0.10 | 0.15 | 20 |
107
+ | 5:arg1 | 0.39 | 0.51 | 0.44 | 57 |
108
+ | 5:arg2 | 0.30 | 0.11 | 0.16 | 28 |
109
+ | 5:root | 0.40 | 0.38 | 0.39 | 102 |
110
+ | 6:arg0 | 0.25 | 0.08 | 0.12 | 13 |
111
+ | 6:arg1 | 0.00 | 0.00 | 0.00 | 25 |
112
+ | 6:arg2 | 0.00 | 0.00 | 0.00 | 8 |
113
+ | 6:root | 0.10 | 0.05 | 0.06 | 42 |
114
+ | 7:arg0 | 0.00 | 0.00 | 0.00 | 3 |
115
+ | 7:arg1 | 0.00 | 0.00 | 0.00 | 8 |
116
+ | 7:arg2 | 0.00 | 0.00 | 0.00 | 5 |
117
+ | 7:root | 0.00 | 0.00 | 0.00 | 16 |
118
+ | 8:arg0 | 0.00 | 0.00 | 0.00 | 1 |
119
+ | 8:arg1 | 0.00 | 0.00 | 0.00 | 2 |
120
+ | 8:arg2 | 0.00 | 0.00 | 0.00 | 1 |
121
+ | 8:root | 0.00 | 0.00 | 0.00 | 7 |
122
+ | 9:arg0 | 0.00 | 0.00 | 0.00 | 1 |
123
+ | 9:arg1 | 0.00 | 0.00 | 0.00 | 2 |
124
+ | 9:arg2 | 0.00 | 0.00 | 0.00 | 1 |
125
+ | 9:root | 0.00 | 0.00 | 0.00 | 3 |
126
+ | 10:arg1 | 0.00 | 0.00 | 0.00 | 1 |
127
+ | 10:root | 0.00 | 0.00 | 0.00 | 2 |
128
+ | micro avg | 0.71 | 0.70 | 0.70 | 6926 |
129
+ | macro avg | 0.34 | 0.33 | 0.33 | 6926 |
130
+ | weighted avg | 0.70 | 0.70 | 0.70 | 6926 |
131
+ | tot root avg | 0.38 | 0.40 | 0.39 | 3081 |
132
+ | tot A0 avg | 0.34 | 0.29 | 0.30 | 1318 |
133
+ | tot A1 avg | 0.32 | 0.32 | 0.32 | 1677 |
134
+ | tot A2 avg | 0.31 | 0.33 | 0.31 | 850 |
135
+ | tot r0 avg | 0.81 | 0.79 | 0.80 | 2180 |
136
+ | tot r1 avg | 0.70 | 0.73 | 0.72 | 1804 |
137
+ | tot r2 avg | 0.62 | 0.65 | 0.64 | 1306 |
138
+ | tot r3 avg | 0.52 | 0.56 | 0.54 | 837 |
139
+ | tot r4 avg | 0.47 | 0.47 | 0.46 | 451 |
140
+ | tot r5 avg | 0.36 | 0.28 | 0.29 | 207 |
141
+ | tot r6 avg | 0.09 | 0.03 | 0.05 | 88 |
142
+ | tot r7 avg | 0.00 | 0.00 | 0.00 | 32 |
143
+ | tot r8 avg | 0.00 | 0.00 | 0.00 | 11 |
144
+ | tot r9 avg | 0.00 | 0.00 | 0.00 | 7 |
145
+ | tot r10 avg | 0.00 | 0.00 | 0.00 | 3 |
146
+
147
+ ## Citation
148
+
149
+ **BibTeX:**
150
+
151
+ ```
152
+ @mastersthesis{bruton-galician-srl-23,
153
+ author = {Bruton, Micaella},
154
+ title = {BERTie Bott's Every Flavor Labels: A Tasty Guide to Developing a Semantic Role Labeling Model for Galician},
155
+ school = {Uppsala University},
156
+ year = {2023},
157
+ type = {Master's thesis},
158
+ }
159
+ ```