modelzoo.transformers.pytorch.bert.fine_tuning.qa.run_prediction.write_predictions#

modelzoo.transformers.pytorch.bert.fine_tuning.qa.run_prediction.write_predictions(all_examples, all_features, all_results, n_best_size, max_answer_length, do_lower_case, output_prediction_file, output_nbest_file, output_null_log_odds_file, vocab_file, version_2_with_negative=False, null_score_diff_threshold=0.0, verbose_logging=False)[source]#

Write final predictions to the json file and log-odds of null if needed.