The above code was executed in google Colab. Instructions for using:
- Copy the files into your Google drive.
- Add GloVe embeddings and dataset files to the drive. Dataset can be downloaded from here. You may need to make changes in paths in the code.
- The embeddings are available at this link
- For Transformer models the models are downloaded as part of transformers package.
- Open the python notebook on Colab where it can be executed (The notebook may not open in Github due to large size).
- The code has been run on tensorflow 1.x for BiLSTM based models.
- The code has been run on tensorflow 2.x for Transformer (BERT, ALBERT, MPNet, RoBERTa) based models on a TPU environment.