sgnlp.models.span_extraction.utils.write_predictions

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, verbose_logging, version_2_with_negative, null_score_diff_threshold)[source]

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