neilctwu / YouyakuMan

Extractive summarizer using BertSum as summarization model
53 stars 15 forks source link

pretrained_model_file #11

Closed yutozabu closed 2 years ago

yutozabu commented 2 years ago

I got Error below with $python youyakumanJPN_train.py -data_folder [training_txt_path] -save_path [model_saving_path] -train_from YouyakuMan/checkpoint/jp/opt_step_1200000.pt

Traceback (most recent call last): File "youyakumanJPN_train.py", line 63, in <module> opt = dict(checkpoint['opt']) KeyError: 'opt'

How should I fix it? If I don't specify train_from, it works.