This code is the implementation for DMBERT model. The implementations are based on Huggingface's Transformers, especially its example for the multiple-choice task.
-
python==3.6.9
-
torch==1.2.0
-
transformers==2.8.0
-
sklearn==0.20.2
Hint: please read and delete all the comments after the backslash in each line of the .sh
scripts before running them.
- Download LEVEN data files and put them in the
./data
folder. - Run
run_train.sh
for training and evaluation on the validation set. - Run
run_infer.sh
to get predictions on the test set (dumped toresults.jsonl
).
See the two scripts for more details.