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
ed6cd597
Unverified
Commit
ed6cd597
authored
Jan 13, 2020
by
Julien Chaumond
Committed by
GitHub
Jan 13, 2020
Browse files
Update test_tokenization_auto.py
parent
5cb463a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_tokenization_auto.py
tests/test_tokenization_auto.py
+1
-1
No files found.
tests/test_tokenization_auto.py
View file @
ed6cd597
...
...
@@ -33,7 +33,7 @@ class AutoTokenizerTest(unittest.TestCase):
# @slow
def
test_tokenizer_from_pretrained
(
self
):
logging
.
basicConfig
(
level
=
logging
.
INFO
)
for
model_name
in
[
"bert-base-uncased"
]:
for
model_name
in
[
x
for
x
in
BERT_PRETRAINED_CONFIG_ARCHIVE_MAP
if
not
"japanese"
in
x
]:
tokenizer
=
AutoTokenizer
.
from_pretrained
(
model_name
)
self
.
assertIsNotNone
(
tokenizer
)
self
.
assertIsInstance
(
tokenizer
,
BertTokenizer
)
...
...
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