Unverified Commit f6210c49 authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Fix RemBertTokenizerFast (#16933)


Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent 32adbb26
...@@ -139,6 +139,7 @@ class RemBertTokenizerFast(PreTrainedTokenizerFast): ...@@ -139,6 +139,7 @@ class RemBertTokenizerFast(PreTrainedTokenizerFast):
self.remove_space = remove_space self.remove_space = remove_space
self.keep_accents = keep_accents self.keep_accents = keep_accents
self.vocab_file = vocab_file self.vocab_file = vocab_file
self.can_save_slow_tokenizer = False if not self.vocab_file else True
def build_inputs_with_special_tokens( def build_inputs_with_special_tokens(
self, token_ids_0: List[int], token_ids_1: Optional[List[int]] = None self, token_ids_0: List[int], token_ids_1: Optional[List[int]] = None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment