Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
f6210c49
Unverified
Commit
f6210c49
authored
Apr 25, 2022
by
Yih-Dar
Committed by
GitHub
Apr 25, 2022
Browse files
Fix RemBertTokenizerFast (#16933)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
32adbb26
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/transformers/models/rembert/tokenization_rembert_fast.py
src/transformers/models/rembert/tokenization_rembert_fast.py
+1
-0
No files found.
src/transformers/models/rembert/tokenization_rembert_fast.py
View file @
f6210c49
...
...
@@ -139,6 +139,7 @@ class RemBertTokenizerFast(PreTrainedTokenizerFast):
self
.
remove_space
=
remove_space
self
.
keep_accents
=
keep_accents
self
.
vocab_file
=
vocab_file
self
.
can_save_slow_tokenizer
=
False
if
not
self
.
vocab_file
else
True
def
build_inputs_with_special_tokens
(
self
,
token_ids_0
:
List
[
int
],
token_ids_1
:
Optional
[
List
[
int
]]
=
None
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment