This repository includes scrpits for training BERT models for Reducing the cost: Cross-Prompt Pre-finetuning for Short Answer Scoring (link). There are three function in the main script.
pip install -r requirement.txt
To train a BERT model for a specific prompt with a conf file:
python main.py train --config_path
To evaluate the fine-tuned model on a test dataset from a specific prompt:
python main.py eval --config_path
[--test_path ] [--save_path ] [--prompt ] [--item ]
python main.py eval_zero --config_path
--save_path
The dataset is available for academic use through the following link: https://www.nii.ac.jp/dsc/idr/rdata/RIKEN-SAA/ To use this scripts, you need to convert the json file to tsv file with three columns: answer, criteria and score.