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
99f9243d
"tests/tokenization_tests_commons.py" did not exist on "8aba81a0b64bbf7a2dcd13eaceb543c5f38fd82f"
Commit
99f9243d
authored
Jan 15, 2020
by
Julien Chaumond
Browse files
same here, try to not serialize too much if unneeded
parent
9d8fd2d4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/transformers/tokenization_utils.py
src/transformers/tokenization_utils.py
+2
-1
No files found.
src/transformers/tokenization_utils.py
View file @
99f9243d
...
...
@@ -503,6 +503,7 @@ class PreTrainedTokenizer(object):
tokenizer_config_file
=
os
.
path
.
join
(
save_directory
,
TOKENIZER_CONFIG_FILE
)
tokenizer_config
=
copy
.
deepcopy
(
self
.
init_kwargs
)
if
len
(
self
.
init_inputs
)
>
0
:
tokenizer_config
[
"init_inputs"
]
=
copy
.
deepcopy
(
self
.
init_inputs
)
for
file_id
in
self
.
vocab_files_names
.
keys
():
tokenizer_config
.
pop
(
file_id
,
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