Skip to content

Commit

Permalink
Update squad_lib.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sushreebarsa authored Nov 8, 2023
1 parent 2a7ee9b commit 8e2ee9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion official/nlp/data/squad_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ def get_final_text(pred_text, orig_text, do_lower_case, verbose=False):
# What we really want to return is "Steve Smith".
#
# Therefore, we have to apply a semi-complicated alignment heruistic between
# `pred_text` and `orig_text` to get a character-to-charcter alignment. This
# `pred_text` and `orig_text` to get a character-to-character alignment. This
# can fail in certain cases in which case we just return `orig_text`.

def _strip_spaces(text):
Expand Down

0 comments on commit 8e2ee9c

Please sign in to comment.