mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 19:21:31 +06:00
parent
2a15e8ccfb
commit
330d83fdbd
@ -666,7 +666,7 @@ class PreTrainedTokenizerFast(PreTrainedTokenizerBase):
|
||||
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"]
|
||||
|
Loading…
Reference in New Issue
Block a user