mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
typo in annotation
modify `heruistic` to `heuristic` in line 660, `charcter` to `character` in line 661.
This commit is contained in:
parent
59e2bdd086
commit
d1e4fa98a9
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user