"examples/vscode:/vscode.git/clone" did not exist on "dd52804f5fce0a568ffbb3dc7fd088d2de0a0e56"
Unverified Commit 764f836d authored by Julien Chaumond's avatar Julien Chaumond Committed by GitHub
Browse files

Update test_tokenization_auto.py

parent d5831acb
...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment