- Clone the repository
- Run this bash command to download the data: bash NNSERL/get_transfer_data.sh
- Install the requirements: pip3 install -r NNSERL/requirements.txt
- Move into the directory: cd NNSERL
- Clone the transformers repository: https://github.com/huggingface/transformers.git
- Replace the modeling_bert.py file: cp ./modeling_bert.py ./transformers/src/transformers/models/bert/modeling_bert.py
- Install the transformers package pip3 install -e .
- Run the file: python3 nnserl.py
To change any hyperparameters, please make changes to the config dictionary in the nnserl.py