Open hedonihilist opened 3 years ago
After extracting bert_data_cnndm_final.zip, I got files named like cnndm.train.100.bert.pt, which is not recognized by the following code
bert_data_cnndm_final.zip
cnndm.train.100.bert.pt
https://github.com/nlpyang/PreSumm/blob/70b810e0f06d179022958dd35c1a3385fe87f28c/src/models/data_loader.py#L84
Changing the code like this can fix the issue:
pts = sorted(glob.glob(os.path.join(args.bert_data_path, 'cnndm.' + corpus_type + '.[0-9]*.pt'))
It misses a ). The fix is rather pts = sorted(glob.glob(os.path.join(args.bert_data_path, 'cnndm.' + corpus_type + '.[0-9]*.pt')))
)
pts = sorted(glob.glob(os.path.join(args.bert_data_path, 'cnndm.' + corpus_type + '.[0-9]*.pt')))
After extracting
bert_data_cnndm_final.zip
, I got files named likecnndm.train.100.bert.pt
, which is not recognized by the following codehttps://github.com/nlpyang/PreSumm/blob/70b810e0f06d179022958dd35c1a3385fe87f28c/src/models/data_loader.py#L84
Changing the code like this can fix the issue: