fixed finename (#10939)

This commit is contained in:
Bhadresh Savani 2021-03-28 22:18:12 +05:30 committed by GitHub
parent b0595d33c1
commit 4f21e1ddd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,7 +222,7 @@ def postprocess_qa_predictions(
)
if version_2_with_negative:
null_odds_file = os.path.join(
output_dir, "null_odds.json" if prefix is None else f"{prefix}_null_odds_{prefix}.json"
output_dir, "null_odds.json" if prefix is None else f"{prefix}_null_odds.json"
)
logger.info(f"Saving predictions to {prediction_file}.")