Apply style

This commit is contained in:
Julien Plu
2020-01-08 15:11:54 +01:00
committed by Lysandre Debut
parent 64ca855617
commit 7fc628d98e
4 changed files with 14 additions and 9 deletions

View File

@@ -52,6 +52,7 @@ from utils_squad import (
write_predictions,
write_predictions_extended,
)
# The follwing import is the official SQuAD evaluation script (2.0).
# You can remove it from the dependencies if you are using this script outside of the library
# We've added it here for automated tests (see examples/test_examples.py file)

View File

@@ -21,6 +21,7 @@ import logging
import math
from transformers.tokenization_bert import BasicTokenizer, whitespace_tokenize
# Required by XLNet evaluation method to compute optimal threshold (see write_predictions_extended() method)
from utils_squad_evaluate import find_all_best_thresh_v2, get_raw_scores, make_qid_to_has_ans