Skip to content

Commit

Permalink
Update squad_lib_sp.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sushreebarsa authored Oct 31, 2023
1 parent faef999 commit c2a55d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion official/nlp/data/squad_lib_sp.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ def postprocess_output(all_examples,
start_logit=pred.start_logit,
end_logit=pred.end_logit))

# if we didn't inlude the empty option in the n-best, include it
# if we didn't include the empty option in the n-best, include it
if version_2_with_negative and not xlnet_format:
if "" not in seen_predictions:
nbest.append(
Expand Down

0 comments on commit c2a55d9

Please sign in to comment.