CoolFace
Modelpublic

mbruton/gal_enptsp_mBERT

sourceHugging Faceapache-2.0updated 3y agoView on Hugging Face
0likes19downloads
Model Card

Model Card for GalBERT-enptsp for Semantic Role Labeling (cased)

This model is fine-tuned on a version of multilingual BERT 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. Prior to this work, there were no published Galician datasets or models for SRL.

Model Details

Model Description

GalBERT-enptsp for Semantic Role Labeling (SRL) is a transformers model, leveraging mBERT's extensive pretraining on 104 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. This model is cased: it makes a difference between english and English. It was fine-tuned on Galician with the following objectives:

  • —Identify up to 13 verbal roots within a sentence.
  • —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.

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)

Model Sources

Uses

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

Bias, Risks, and Limitations

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.

Training Details

Training Data

This model was pre-trained on the OntoNotes 5.0 English SRL corpus, PropBank.Br Portuguese SRL corpus, and the SpanishSRL Dataset produced as part of this same project. This model was fine-tuned on the "train" portion of the GalicianSRL 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 GalicianSRL 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

LabelPrecisionRecallf1-scoreSupport
0:arg00.780.710.74485
0:arg10.680.730.71483
0:arg20.700.750.73264
0:root0.910.930.92948
1:arg00.640.640.64348
1:arg10.670.660.67443
1:arg20.590.660.63211
1:root0.820.840.83802
2:arg00.590.530.56240
2:arg10.570.630.60331
2:arg20.480.660.56156
2:root0.750.760.75579
3:arg00.590.490.54137
3:arg10.570.560.56216
3:arg20.420.540.47110
3:root0.710.740.72374
4:arg00.580.470.5270
4:arg10.530.520.53109
4:arg20.430.300.3666
4:root0.670.650.66206
5:arg00.400.400.4020
5:arg10.510.510.5157
5:arg20.580.250.3528
5:root0.600.560.58102
6:arg00.500.150.2413
6:arg10.320.360.3425
6:arg20.000.000.008
6:root0.480.500.4942
7:arg00.000.000.003
7:arg10.330.120.188
7:arg20.000.000.005
7:root0.670.500.5716
8:arg00.000.000.001
8:arg10.000.000.002
8:arg20.000.000.001
8:root0.200.140.177
9:arg00.000.000.001
9:arg10.000.000.002
9:arg20.000.000.001
9:root0.000.000.003
10:arg10.000.000.001
10:root0.000.000.002
micro avg0.700.710.706926
macro avg0.410.390.396926
weighted avg0.700.710.706926
tot root avg0.530.510.523081
tot A0 avg0.410.340.361318
tot A1 avg0.380.370.371677
tot A2 avg0.320.320.31850
tot r0 avg0.770.780.782180
tot r1 avg0.680.700.691804
tot r2 avg0.600.650.621306
tot r3 avg0.570.580.57837
tot r4 avg0.550.490.52451
tot r5 avg0.520.430.46207
tot r6 avg0.330.250.2788
tot r7 avg0.250.160.1932
tot r8 avg0.050.040.0411
tot r9 avg0.000.000.007
tot r10 avg0.000.000.003

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.",
}