Bart-gen-arg / scripts /test_kairos.sh
adherent's picture
what is the <arg> in <trg>
6c25ddb
raw
history blame
837 Bytes
#!/usr/bin/env bash
set -e
set -x
CKPT_NAME=gen-KAIROS
MODEL=constrained-gen
rm -rf checkpoints/${CKPT_NAME}-pred
python train.py --model=$MODEL --ckpt_name=${CKPT_NAME}-pred \
--load_ckpt=checkpoints/${CKPT_NAME}/epoch=2-v0.ckpt \
--dataset=KAIROS \
--eval_only \
--mark_trigger \
--train_file=data/wikievents/train.jsonl \
--val_file=data/wikievents/dev.jsonl \
--test_file=data/wikievents/test.jsonl \
--coref_dir=data/wikievents/coref \
--train_batch_size=4 \
--eval_batch_size=4 \
--learning_rate=3e-5 \
--accumulate_grad_batches=4 \
--num_train_epochs=3
python src/genie/scorer.py --gen-file=checkpoints/$CKPT_NAME-pred/predictions.jsonl \
--test-file=data/wikievents/test.jsonl \
--dataset=KAIROS \
--coref-file=data/wikievents/coref/test.jsonlines \
--head-only \
--coref