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
eb3479e7
"model_cards/vscode:/vscode.git/clone" did not exist on "35fd3d64e36e5dadde4a63dab75ee3b599293f18"
Unverified
Commit
eb3479e7
authored
Apr 05, 2021
by
Lysandre Debut
Committed by
GitHub
Apr 05, 2021
Browse files
Some models have no tokenizers (#11064)
parent
773e4c72
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
tests/test_tokenization_common.py
tests/test_tokenization_common.py
+8
-7
No files found.
tests/test_tokenization_common.py
View file @
eb3479e7
...
...
@@ -69,6 +69,7 @@ def merge_model_tokenizer_mappings(
model_tokenizer_mapping
=
OrderedDict
([])
for
configuration
in
configurations
:
if
configuration
in
model_mapping
and
configuration
in
tokenizer_mapping
:
model
=
model_mapping
[
configuration
]
tokenizer
=
tokenizer_mapping
[
configuration
][
0
]
tokenizer_fast
=
tokenizer_mapping
[
configuration
][
1
]
...
...
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