Research Article

Pharmacovigilance with Transformers: A Framework to Detect Adverse Drug Reactions Using BERT Fine-Tuned with FARM

Table 3

Comparison of training time of BERT and FARM-BERT for each epoch on Twitter and PubMed datasets.

EpochsTraining time of the models
PubMed datasetTwitter dataset
BERTFARM-BERTBERTFARM-BERT

Epoch 1604.01360.37192.21152.44
Epoch 2596.36420.06193.04151.31
Epoch 3589.01399.42187.22156.51
Epoch 4579.32393.21192.11149.22
Epoch 5574.50391.40192.38153.49