Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
764f836d
Unverified
Commit
764f836d
authored
Jan 13, 2020
by
Julien Chaumond
Committed by
GitHub
Jan 13, 2020
Browse files
Update test_tokenization_auto.py
parent
d5831acb
Changes
1
Hide 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 @
764f836d
...
@@ -33,7 +33,7 @@ class AutoTokenizerTest(unittest.TestCase):
...
@@ -33,7 +33,7 @@ class AutoTokenizerTest(unittest.TestCase):
# @slow
# @slow
def
test_tokenizer_from_pretrained
(
self
):
def
test_tokenizer_from_pretrained
(
self
):
logging
.
basicConfig
(
level
=
logging
.
INFO
)
logging
.
basicConfig
(
level
=
logging
.
INFO
)
for
model_name
in
[
x
for
x
in
BERT_PRETRAINED_CONFIG_ARCHIVE_MAP
.
keys
()
if
not
"japanese"
in
x
]:
for
model_name
in
[
x
for
x
in
BERT_PRETRAINED_CONFIG_ARCHIVE_MAP
.
keys
()
if
"japanese"
not
in
x
]:
tokenizer
=
AutoTokenizer
.
from_pretrained
(
model_name
)
tokenizer
=
AutoTokenizer
.
from_pretrained
(
model_name
)
self
.
assertIsNotNone
(
tokenizer
)
self
.
assertIsNotNone
(
tokenizer
)
self
.
assertIsInstance
(
tokenizer
,
BertTokenizer
)
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