From d1e4fa98a91dfebfd88ef77b5ee761665ea0fe4a Mon Sep 17 00:00:00 2001 From: Yongbo Wang Date: Thu, 14 Mar 2019 17:32:15 +0800 Subject: [PATCH] typo in annotation modify `heruistic` to `heuristic` in line 660, `charcter` to `character` in line 661. --- examples/run_squad.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/run_squad.py b/examples/run_squad.py index 2e478991bf..bb335ce75c 100644 --- a/examples/run_squad.py +++ b/examples/run_squad.py @@ -657,8 +657,8 @@ def get_final_text(pred_text, orig_text, do_lower_case, verbose_logging=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 + # Therefore, we have to apply a semi-complicated alignment heuristic between + # `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):