Open yoshitomo-matsubara opened 5 years ago
It seems like the output_dir
was set as out/squad_doc/01
but it actually turned out to be out/squad_doc/011
. I went through my code and I haven't found any modification to output_dir
. So could you please take a look at output_dir
to see if there is any bug?
I intentionally used out/squad_doc/011
to see what files under out/squad_doc/01
are changed and how, so I put a copy of out/squad_doc/01
as out/squad_doc/011
, and ran the code.
And it seems that I needed to set predict_file
, and that's why I faced the above error.
It would be great if you can update README.md again, and it includes
python -m bert.run_squad_document_full_e2e --vocab_file $BERT_DIR/vocab.txt --bert_config_file $BERT_DIR/bert_config.json --do_predict_open --data_dir $DATA_DIR --predict_file dev-v1.1.json --output_dir out/squad_doc/01
Then the final performance was shown as follows:
Ranker, type: test_open, step: 43646, map: 0.000, mrr: 0.000, top_1: 0.000, top_3: 0.000, top_5: 0.000, top_7: 0.000, retrieval_rate: 0.190
Reader, type: test_open, step: 43646, em: 40.199, f1: 48.414
Thank you!
Hi @yoshitomo-matsubara, I've seen you nearly reproduced the reported results with training_batch_size of 16 on SQuAD-document test set. I've been trying to reproduce the results using the released code and command lines (which uses batch size of 32) on README but I'm only getting em: 44.664, f1: 67.382 (on SQuAD document test). Is there any detail you used during training the model?
Thanks in advance!
Hi @SeoHyeong I've already closed this issue, but it may help
Hello,
python -m bert.run_squad_document_full_e2e \ --vocab_file $BERT_DIR/vocab.txt \ --bert_config_file $BERT_DIR/bert_config.json \ --do_predict_open \ --data_dir $DATA_DIR \ --output_dir out/squad_doc/01
As I ran the above program with/without my minor fixes, which is pull-requested here, I faced the following error.
Could you please take a look at this problem, and provide the solution?
Thank you!