JointBERT icon indicating copy to clipboard operation
JointBERT copied to clipboard

Getting exception model doesn't exist

Open deeptigoyal opened this issue 4 years ago • 0 comments

Hi Team,

While training JoinBERT on my dataset using command:

!python main.py --task ss
--model_dir ss_model
--do_train --do_eval
--use_crf

I am getting exception:

raise Exception("Model doesn't exists! Train first!") Exception: Model doesn't exists! Train first!

To resolve this issue, I made a change in trainer.py wherein I commented

if self.args.save_steps > 0 and global_step % self.args.save_steps == 0:

and replaced it with only

if self.args.save_steps > 0: #dip

Have I done right? hoping for reply .

Thanks

deeptigoyal avatar Dec 22 '21 06:12 deeptigoyal