FileNotFoundError: [Errno 2] No such file or directory: '../bert_data/cnndm.test.0.bert.pt'
I am getting this above mentioned issue.
Going through the comments, I have re-framed the path as follows: python train.py -task abs -mode test -test_from ../bert_data/cnndm.test.0.bert.pt -batch_size 3000 -test_batch_size 500 -bert_data_path ../bert_data/cnndm -log_file ../logs/val_abs_bert_cnndm -model_path ../models/model_step_148000.pt -sep_optim true -use_interval true -visible_gpus 0 -max_pos 512 -max_length 200 -alpha 0.95 -min_length 50 -result_path ../logs/abs_bert_cnndm
Also is there method to call the pre-trained model directly for testing? Like a py package?
You must pass a checkpoint to test_from.
You should re-frame the bert_data path as follow "../bert_data/cnndm"