PreSumm icon indicating copy to clipboard operation
PreSumm copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: '../bert_data/cnndm.test.0.bert.pt'

Open rahulmadanraju opened this issue 5 years ago • 2 comments

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?

rahulmadanraju avatar Apr 30 '20 18:04 rahulmadanraju

You must pass a checkpoint to test_from.

6desislava6 avatar May 04 '20 19:05 6desislava6

You should re-frame the bert_data path as follow "../bert_data/cnndm"

SebastianVeile avatar May 21 '20 09:05 SebastianVeile