Edit model card

Model Card for SpaXLM-R-pt for Semantic Role Labeling

This model is fine-tuned on a version of XLM RoBERTa Base which is pre-trained on the SRL task for Portuguese, and is one of 24 models introduced as part of this project.

Model Details

Model Description

SpaXLM-R-pt for Semantic Role Labeling (SRL) is a transformers model, leveraging XLM-R's extensive pretraining on 100 languages to achieve better SRL predictions for Spanish. This model is additionally pre-trained on the SRL task for Portuguese. It was fine-tuned on Spanish with the following objectives:

  • Identify up to 16 verbal roots within a sentence.
  • Identify available arguments and thematic roles for each verbal root.

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/arg3/argM) and its thematic role (adv/agt/atr/ben/cau/cot/des/efi/ein/exp/ext/fin/ins/loc/mnr/ori/pat/src/tem/tmp)

Model Sources

Uses

This model is intended to be used to develop and improve natural language processing tools for Spanish.

Bias, Risks, and Limitations

The Spanish training set lacked highly complex sentences and as such, performs much better on sentences of mid- to low-complexity.

Training Details

Training Data

This model was pre-trained on the PropBank.Br Portuguese SRL corpus. This model was fine-tuned on the "train" portion of the SpanishSRL Dataset produced as part of this same project.

Training Hyperparameters

  • Learning Rate: 2e-5
  • Batch Size: 16
  • Weight Decay: 0.01
  • Early Stopping: 10 epochs

Evaluation

Testing Data

This model was tested on the "test" portion of the SpanishSRL Dataset produced as part of this same project.

Metrics

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. It supplies scoring both overall and per label type.

Overall:

  • accuracy: the average accuracy, on a scale between 0.0 and 1.0.
  • precision: the average precision, on a scale between 0.0 and 1.0.
  • recall: the average recall, on a scale between 0.0 and 1.0.
  • f1: the average F1 score, which is the harmonic mean of the precision and recall. It also has a scale of 0.0 to 1.0.

Per label type:

  • precision: the average precision, on a scale between 0.0 and 1.0.
  • recall: the average recall, on a scale between 0.0 and 1.0.
  • f1: the average F1 score, on a scale between 0.0 and 1.0.

Results

Label Precision Recall f1-score Support
0:arg0:agt 0.93 0.93 0.93 867
0:arg0:cau 0.69 0.60 0.64 57
0:arg0:src 0.00 0.00 0.00 1
0:arg1:ext 0.00 0.00 0.00 3
0:arg1:pat 0.88 0.89 0.88 536
0:arg1:tem 0.88 0.89 0.89 589
0:arg2:atr 0.85 0.89 0.87 278
0:arg2:ben 0.81 0.90 0.85 78
0:arg2:efi 0.67 0.29 0.40 7
0:arg2:exp 0.33 0.17 0.22 6
0:arg2:ext 0.57 0.53 0.55 15
0:arg2:loc 0.73 0.33 0.46 57
0:arg3:ben 1.00 0.20 0.33 5
0:arg3:ein 0.50 1.00 0.67 1
0:arg3:fin 0.50 0.50 0.50 2
0:arg3:ori 0.67 0.60 0.63 10
0:arg4:des 0.58 0.94 0.71 16
0:arg4:efi 0.67 0.40 0.50 5
0:argM:adv 0.58 0.60 0.59 268
0:argM:atr 0.65 0.62 0.64 24
0:argM:cau 0.79 0.56 0.66 41
0:argM:ext 0.00 0.00 0.00 5
0:argM:fin 0.80 0.78 0.79 46
0:argM:loc 0.69 0.80 0.74 186
0:argM:mnr 0.72 0.47 0.57 66
0:argM:tmp 0.86 0.86 0.86 411
0:root 0.99 0.99 0.99 1662
1:arg0:agt 0.92 0.91 0.92 564
1:arg0:cau 0.73 0.82 0.77 44
1:arg1:ext 0.00 0.00 0.00 2
1:arg1:pat 0.89 0.87 0.88 482
1:arg1:tem 0.88 0.90 0.89 390
1:arg2:atr 0.89 0.88 0.88 197
1:arg2:ben 0.75 0.89 0.81 66
1:arg2:efi 1.00 0.50 0.67 6
1:arg2:ext 0.71 0.71 0.71 7
1:arg2:ins 0.00 0.00 0.00 1
1:arg2:loc 0.62 0.52 0.57 44
1:arg3:ben 0.00 0.00 0.00 2
1:arg3:ein 0.00 0.00 0.00 3
1:arg3:fin 1.00 1.00 1.00 2
1:arg3:ori 0.12 0.50 0.20 2
1:arg4:des 0.47 0.90 0.62 10
1:arg4:efi 0.50 0.50 0.50 2
1:argM:adv 0.56 0.58 0.57 220
1:argM:atr 0.67 0.74 0.70 19
1:argM:cau 0.65 0.74 0.69 35
1:argM:ext 0.00 0.00 0.00 7
1:argM:fin 0.57 0.66 0.61 38
1:argM:loc 0.74 0.74 0.74 156
1:argM:mnr 0.60 0.27 0.37 44
1:argM:tmp 0.83 0.81 0.82 247
1:root 0.97 0.97 0.97 1323
2:arg0:agt 0.86 0.90 0.88 336
2:arg0:cau 0.79 0.77 0.78 35
2:arg0:exp 0.00 0.00 0.00 1
2:arg0:src 0.00 0.00 0.00 1
2:arg1:pat 0.84 0.82 0.83 333
2:arg1:tem 0.84 0.84 0.84 291
2:arg2:atr 0.92 0.89 0.90 124
2:arg2:ben 0.69 0.84 0.76 43
2:arg2:efi 0.89 0.89 0.89 9
2:arg2:ext 0.33 0.60 0.43 5
2:arg2:ins 0.00 0.00 0.00 1
2:arg2:loc 0.43 0.44 0.44 27
2:arg3:ben 0.00 0.00 0.00 4
2:arg3:ein 0.00 0.00 0.00 1
2:arg3:ori 0.40 0.67 0.50 3
2:arg4:des 0.50 0.88 0.64 16
2:arg4:efi 0.00 0.00 0.00 6
2:argM:adv 0.54 0.51 0.52 176
2:argM:atr 0.56 0.33 0.42 15
2:argM:cau 0.43 0.59 0.50 17
2:argM:ext 0.00 0.00 0.00 4
2:argM:fin 0.78 0.69 0.74 36
2:argM:ins 0.00 0.00 0.00 1
2:argM:loc 0.73 0.74 0.73 117
2:argM:mnr 0.38 0.29 0.33 35
2:argM:tmp 0.78 0.76 0.77 161
2:root 0.93 0.94 0.94 913
3:arg0:agt 0.86 0.87 0.86 227
3:arg0:cau 0.71 0.71 0.71 14
3:arg1:pat 0.81 0.83 0.82 199
3:arg1:tem 0.78 0.81 0.79 160
3:arg2:atr 0.78 0.77 0.78 79
3:arg2:ben 0.69 0.93 0.79 27
3:arg2:efi 0.00 0.00 0.00 1
3:arg2:ext 0.00 0.00 0.00 3
3:arg2:loc 0.50 0.38 0.43 21
3:arg3:ben 0.00 0.00 0.00 3
3:arg3:ein 0.00 0.00 0.00 2
3:arg3:ori 0.00 0.00 0.00 3
3:arg4:des 0.47 1.00 0.64 7
3:arg4:efi 0.00 0.00 0.00 5
3:argM:adv 0.51 0.47 0.49 98
3:argM:atr 1.00 0.14 0.25 7
3:argM:cau 0.50 0.31 0.38 13
3:argM:ext 0.00 0.00 0.00 1
3:argM:fin 0.56 0.67 0.61 15
3:argM:loc 0.64 0.68 0.66 69
3:argM:mnr 0.43 0.55 0.48 11
3:argM:tmp 0.86 0.82 0.84 92
3:root 0.92 0.93 0.92 569
4:arg0:agt 0.86 0.81 0.83 119
4:arg0:cau 1.00 0.67 0.80 6
4:arg1:pat 0.71 0.75 0.73 87
4:arg1:tem 0.85 0.75 0.80 109
4:arg2:atr 0.75 0.92 0.83 53
4:arg2:ben 0.53 0.82 0.64 11
4:arg2:ext 0.00 0.00 0.00 1
4:arg2:loc 0.58 0.64 0.61 11
4:arg3:ein 0.00 0.00 0.00 1
4:arg3:ori 0.00 0.00 0.00 1
4:arg4:des 0.69 0.90 0.78 10
4:arg4:efi 0.00 0.00 0.00 1
4:argM:adv 0.56 0.60 0.58 50
4:argM:atr 0.00 0.00 0.00 4
4:argM:cau 0.14 0.33 0.20 3
4:argM:ext 0.00 0.00 0.00 1
4:argM:fin 0.64 0.64 0.64 11
4:argM:loc 0.58 0.75 0.65 24
4:argM:mnr 0.50 0.31 0.38 16
4:argM:tmp 0.75 0.69 0.72 52
4:root 0.90 0.91 0.90 322
5:arg0:agt 0.79 0.88 0.83 72
5:arg0:cau 1.00 0.40 0.57 5
5:arg1:pat 0.64 0.65 0.64 71
5:arg1:tem 0.81 0.61 0.69 41
5:arg2:atr 0.62 0.48 0.54 21
5:arg2:ben 0.43 1.00 0.60 6
5:arg2:efi 0.00 0.00 0.00 1
5:arg2:ext 0.00 0.00 0.00 1
5:arg2:loc 0.00 0.00 0.00 1
5:arg3:ein 0.00 0.00 0.00 1
5:arg4:des 0.00 0.00 0.00 1
5:arg4:efi 0.00 0.00 0.00 1
5:argM:adv 0.33 0.35 0.34 26
5:argM:cau 0.00 0.00 0.00 3
5:argM:fin 0.50 0.80 0.62 5
5:argM:loc 0.58 0.67 0.62 21
5:argM:mnr 0.00 0.00 0.00 7
5:argM:tmp 0.62 0.67 0.65 30
5:root 0.82 0.84 0.83 173
6:arg0:agt 0.69 0.53 0.60 34
6:arg0:cau 0.00 0.00 0.00 1
6:arg1:loc 0.00 0.00 0.00 1
6:arg1:pat 0.43 0.82 0.57 28
6:arg1:tem 0.39 0.44 0.41 16
6:arg2:atr 0.31 0.38 0.34 13
6:arg2:ben 0.50 0.60 0.55 5
6:arg2:loc 0.00 0.00 0.00 1
6:arg3:ben 0.00 0.00 0.00 1
6:argM:adv 0.23 0.70 0.34 10
6:argM:atr 0.00 0.00 0.00 2
6:argM:cau 0.00 0.00 0.00 1
6:argM:fin 0.33 0.50 0.40 2
6:argM:loc 0.18 0.57 0.28 7
6:argM:mnr 0.00 0.00 0.00 5
6:argM:tmp 0.50 0.86 0.63 7
6:root 0.65 0.59 0.62 82
7:arg0:agt 0.35 0.88 0.50 17
7:arg1:pat 0.54 0.82 0.65 17
7:arg1:tem 0.59 0.67 0.62 15
7:arg2:atr 0.53 0.53 0.53 15
7:arg2:ben 0.40 0.29 0.33 7
7:arg2:loc 0.00 0.00 0.00 1
7:arg3:ori 0.00 0.00 0.00 1
7:arg4:des 0.00 0.00 0.00 1
7:argM:adv 0.14 0.20 0.17 5
7:argM:atr 0.00 0.00 0.00 1
7:argM:fin 0.00 0.00 0.00 1
7:argM:loc 0.00 0.00 0.00 3
7:argM:tmp 0.42 0.83 0.56 6
7:root 0.54 0.84 0.66 45
8:arg0:agt 0.00 0.00 0.00 8
8:arg0:cau 0.00 0.00 0.00 1
8:arg1:pat 0.00 0.00 0.00 4
8:arg1:tem 0.21 0.56 0.30 9
8:arg2:atr 0.08 0.25 0.12 4
8:arg2:ext 0.00 0.00 0.00 1
8:arg2:loc 0.00 0.00 0.00 2
8:arg3:ori 0.00 0.00 0.00 1
8:argM:adv 0.27 0.38 0.32 8
8:argM:ext 0.00 0.00 0.00 1
8:argM:fin 0.00 0.00 0.00 1
8:argM:loc 0.00 0.00 0.00 4
8:argM:mnr 0.00 0.00 0.00 1
8:argM:tmp 0.00 0.00 0.00 1
8:root 0.38 0.68 0.49 25
9:arg0:agt 0.00 0.00 0.00 6
9:arg0:cau 0.00 0.00 0.00 1
9:arg1:pat 0.00 0.00 0.00 4
9:arg1:tem 0.00 0.00 0.00 5
9:arg2:atr 0.00 0.00 0.00 3
9:arg2:ben 0.00 0.00 0.00 1
9:argM:adv 0.00 0.00 0.00 6
9:argM:cau 0.00 0.00 0.00 1
9:argM:fin 0.00 0.00 0.00 2
9:argM:loc 0.00 0.00 0.00 2
9:argM:tmp 0.00 0.00 0.00 1
9:root 0.04 0.06 0.05 17
10:arg0:agt 0.00 0.00 0.00 3
10:arg1:pat 0.00 0.00 0.00 5
10:arg1:tem 0.00 0.00 0.00 3
10:arg2:atr 0.00 0.00 0.00 1
10:arg2:ben 0.00 0.00 0.00 2
10:argM:adv 0.00 0.00 0.00 3
10:argM:fin 0.00 0.00 0.00 1
10:argM:tmp 0.00 0.00 0.00 1
10:root 0.00 0.00 0.00 12
11:arg0:agt 0.00 0.00 0.00 1
11:arg0:cau 0.00 0.00 0.00 1
11:arg1:pat 0.00 0.00 0.00 2
11:arg1:tem 0.00 0.00 0.00 4
11:arg2:atr 0.00 0.00 0.00 3
11:arg2:ben 0.00 0.00 0.00 1
11:argM:adv 0.00 0.00 0.00 4
11:argM:loc 0.00 0.00 0.00 1
11:argM:tmp 0.00 0.00 0.00 1
11:root 0.00 0.00 0.00 9
12:arg0:agt 0.00 0.00 0.00 3
12:arg1:pat 0.00 0.00 0.00 1
12:arg1:tem 0.00 0.00 0.00 2
12:arg2:atr 0.00 0.00 0.00 2
12:argM:adv 0.00 0.00 0.00 1
12:argM:cau 0.00 0.00 0.00 1
12:argM:tmp 0.00 0.00 0.00 3
12:root 0.00 0.00 0.00 7
13:arg0:cau 0.00 0.00 0.00 1
13:arg1:tem 0.00 0.00 0.00 1
13:arg2:atr 0.00 0.00 0.00 1
13:argM:adv 0.00 0.00 0.00 1
13:argM:atr 0.00 0.00 0.00 1
13:argM:loc 0.00 0.00 0.00 1
13:root 0.00 0.00 0.00 4
14:arg1:pat 0.00 0.00 0.00 1
14:arg2:ben 0.00 0.00 0.00 1
14:argM:mnr 0.00 0.00 0.00 1
14:root 0.00 0.00 0.00 2
micro avg 0.83 0.83 0.83 15436
macro avg 0.34 0.36 0.34 15436
weighted avg 0.83 0.83 0.83 15436
tot root avg 0.48 0.52 0.49 5165.00
tot arg0:agt avg 0.48 0.52 0.49 2257.00
tot arg0:cau avg 0.45 0.36 0.39 166.00
tot arg0:exp avg 0.00 0.00 0.00 1.00
tot arg0:src avg 0.00 0.00 0.00 2.00
tot arg0 0.41 0.40 0.39 2426.00
tot arg1:ext avg 0.00 0.00 0.00 5.00
tot arg1:loc avg 0.00 0.00 0.00 1.00
tot arg1:pat avg 0.41 0.46 0.43 1770.00
tot arg1:tem avg 0.45 0.46 0.45 1635.00
tot arg1 0.39 0.42 0.39 3411.00
tot arg2:atr avg 0.41 0.43 0.41 794.00
tot arg2:ben avg 0.41 0.56 0.46 255.00
tot arg2:efi avg 0.51 0.34 0.39 24.00
tot arg2:exp avg 0.33 0.17 0.22 6.00
tot arg2:ext avg 0.23 0.26 0.24 33.00
tot arg2:ins avg 0.00 0.00 0.00 2.00
tot arg2:loc avg 0.32 0.26 0.28 165.00
tot arg2 0.36 0.38 0.36 1279.00
tot arg3:ben avg 0.20 0.04 0.07 15.00
tot arg3:ein avg 0.08 0.17 0.11 9.00
tot arg3:fin avg 0.75 0.75 0.75 4.00
tot arg3:ori avg 0.17 0.25 0.19 21.00
tot arg3 0.21 0.22 0.19 49.00
tot arg4:des avg 0.39 0.66 0.48 61.00
tot arg4:efi avg 0.20 0.15 0.17 20.00
tot arg4 0.30 0.42 0.34 81.00
tot argM:adv avg 0.27 0.31 0.28 876.00
tot argM:atr avg 0.36 0.23 0.25 73.00
tot argM:cau avg 0.28 0.28 0.27 115.00
tot argM:ext avg 0.00 0.00 0.00 19.00
tot argM:fin avg 0.38 0.43 0.40 158.00
tot argM:ins avg 0.00 0.00 0.00 1.00
tot argM:loc avg 0.35 0.41 0.37 591.00
tot argM:mnr avg 0.29 0.21 0.24 186.00
tot argM:tmp avg 0.43 0.48 0.45 1013.00
tot argM 0.31 0.32 0.30 3032.00
tot r0 avg 0.64 0.58 0.59 5242
tot r1 avg 0.58 0.59 0.57 3913
tot r2 avg 0.47 0.50 0.48 2711
tot r3 avg 0.48 0.47 0.45 1626
tot r4 avg 0.48 0.50 0.48 892
tot r5 avg 0.38 0.39 0.36 487
tot r6 avg 0.25 0.35 0.28 216
tot r7 avg 0.25 0.36 0.29 135
tot r8 avg 0.06 0.12 0.08 71
tot r9 avg 0.00 0.01 0.00 49
tot r10 avg 0.00 0.00 0.00 31
tot r11 avg 0.00 0.00 0.00 27
tot r12 avg 0.00 0.00 0.00 20
tot r13 avg 0.00 0.00 0.00 10
tot r14 avg 0.00 0.00 0.00 5

Citation

BibTeX:

@inproceedings{bruton-beloucif-2023-bertie,
    title = "{BERT}ie Bott{'}s Every Flavor Labels: A Tasty Introduction to Semantic Role Labeling for {G}alician",
    author = "Bruton, Micaella  and
      Beloucif, Meriem",
    editor = "Bouamor, Houda  and
      Pino, Juan  and
      Bali, Kalika",
    booktitle = "Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing",
    month = dec,
    year = "2023",
    address = "Singapore",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2023.emnlp-main.671",
    doi = "10.18653/v1/2023.emnlp-main.671",
    pages = "10892--10902",
    abstract = "In this paper, we leverage existing corpora, WordNet, and dependency parsing to build the first Galician dataset for training semantic role labeling systems in an effort to expand available NLP resources. Additionally, we introduce verb indexing, a new pre-processing method, which helps increase the performance when semantically parsing highly-complex sentences. We use transfer-learning to test both the resource and the verb indexing method. Our results show that the effects of verb indexing were amplified in scenarios where the model was both pre-trained and fine-tuned on datasets utilizing the method, but improvements are also noticeable when only used during fine-tuning. The best-performing Galician SRL model achieved an f1 score of 0.74, introducing a baseline for future Galician SRL systems. We also tested our method on Spanish where we achieved an f1 score of 0.83, outperforming the baseline set by the 2009 CoNLL Shared Task by 0.025 showing the merits of our verb indexing method for pre-processing.",
}
Downloads last month
8
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.

Dataset used to train mbruton/spa_pt_XLM-R