Skip to content

Commit

Permalink
Typo in "end_of_word_suffix" (huggingface#13477)
Browse files Browse the repository at this point in the history
But does it really work?
  • Loading branch information
KoichiYasuoka authored Sep 8, 2021
1 parent 2a15e8c commit 330d83f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/tokenization_utils_fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ def train_new_from_iterator(
kwargs["continuing_subword_prefix"] = tokenizer_json["model"]["continuing_subword_prefix"]
if (
tokenizer_json["model"]["type"] == "BPE"
and "end_of_work_suffix" not in kwargs
and "end_of_word_suffix" not in kwargs
and tokenizer_json["model"]["end_of_word_suffix"] is not None
):
kwargs["end_of_word_suffix"] = tokenizer_json["model"]["end_of_word_suffix"]
Expand Down

0 comments on commit 330d83f

Please sign in to comment.