bert-qa icon indicating copy to clipboard operation
bert-qa copied to clipboard

Fine tune on SQuAD 2.0: no prediction.json output

Open luke4u opened this issue 5 years ago • 1 comments

Hi Ken,

I retrained the model on SQuAD 2.0. But there is no output file (prediction.json) for the initial dev set predictions. See below image. As such, I couldn't run the script: python $SQUAD_DIR/evaluate-v2.0.py $SQUAD_DIR/dev-v2.0.json ./squad/predictions.json --na-prob-file ./squad/null_odds.json

Any chance you can share some insights?

output

Thanks a lot. Luke

luke4u avatar Oct 11 '19 12:10 luke4u

Hello @luke4u , Can you confirm you have set "--do_predict=true" while executing run_squad.py command?

Check our NLP Tutorial: Question Answering System Using BERT + SQuAD On Colab TPU which might provide you further insights on fine-tuning and generating predictions successfully using Colab.

mittalpatel avatar Feb 16 '20 09:02 mittalpatel