monologg / JointBERT

Pytorch implementation of JointBERT: "BERT for Joint Intent Classification and Slot Filling"
Apache License 2.0
662 stars 186 forks source link

how calculate sent? #18

Open 1535966643 opened 4 years ago

1535966643 commented 4 years ago

i hard try, but i stilll don't how to calculate. my acc is low,,,,,bad mood....
hope you help me, thanks

deeptigoyal commented 2 years ago

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:

Have I done right? hoping for reply

thanks