evaluate_squad¶
Official evaluation script for SQuAD version 2.0.
In addition to basic functionality, we also compute additional statistics and plot precision-recall curves if an additional na_prob.json file is provided. This file is expected to map question ID’s to the model’s predicted probability that a question is unanswerable.
Functions
Lower text and remove punctuation, articles and extra whitespace. |
|