CoolFace
Modelpublic

dannashao/bert-base-uncased-finetuned-advanced-srl_arg

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
1likes10kdownloads
Model Card

bert-base-uncased-finetuned-advanced-srl_arg

This model is a fine-tuned version of bert-base-uncased on the English Universal Propbank dataset for the Semantics Role Labeling (SRL) task. It achieves the following results on the evaluation set:

  • —Loss: 0.0914
  • —Precision: 0.8664
  • —Recall: 0.8673
  • —F1: 0.8669
  • —Accuracy: 0.9812

Model description

This more advanced SRL model uses similar apporach as the Augment method described in NegBERT (Khandelwal, et al. 2020). That is, adding a special token ([V]) immediately before the predicate:

This [V] is a sentence.

Note that the special token and the predicate is considered a whole. That is, the actual sentence is like

'This' '[V] is' 'a' 'sentence' '.'

Usages

The model labels semantics roles given input sentences. See usage examples at https://github.com/dannashao/bertsrl/blob/main/Evaluation.ipynb

Training and evaluation data

The English Universal Proposition Bank v1.0 data. See details at https://github.com/UniversalPropositions/UP-1.0

Training procedure

See details at https://github.com/chuqiaog/AdvancedNLPgroup1/blob/main/A3/A3main.ipynb

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 2e-05
  • —trainbatchsize: 16
  • —evalbatchsize: 16
  • —seed: 42
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —num_epochs: 3

Training results

Training LossEpochStepValidation LossPrecisionRecallF1Accuracy
0.04571.026550.08490.84470.86440.85440.9792
0.03222.053100.08830.85860.86790.86320.9806
0.02343.079650.09140.86640.86730.86690.9812

Framework versions

  • —Transformers 4.37.0
  • —Pytorch 2.0.1+cu117
  • —Datasets 2.16.1
  • —Tokenizers 0.15.1