(eval_time_elapsed, prediction, nbest_json)
| 214 | return eval_time_elapsed, prediction, nbest_json |
| 215 | |
| 216 | def print_single_query(eval_time_elapsed, prediction, nbest_json): |
| 217 | print("------------------------") |
| 218 | print("Running inference in {:.3f} Sentences/Sec".format(1/eval_time_elapsed)) |
| 219 | print("------------------------") |
| 220 | |
| 221 | print("Answer: '{}'".format(prediction)) |
| 222 | print("With probability: {:.3f}".format(nbest_json[0]['probability'] * 100.0)) |
| 223 | |
| 224 | if squad_examples: |
| 225 | all_predictions = collections.OrderedDict() |
no test coverage detected