Make Barthez tokenizer tests a bit faster (#10399)

* Make Barthez tokenizer tests a bit faster

* Quality
This commit is contained in:
Sylvain Gugger
2021-02-25 11:42:25 -05:00
committed by GitHub
parent b040e6efc1
commit 26f8b2cb10
4 changed files with 6 additions and 8 deletions

View File

@@ -33,8 +33,9 @@ class BarthezTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
def setUp(self):
super().setUp()
tokenizer = BarthezTokenizer.from_pretrained("moussaKam/mbarthez")
tokenizer = BarthezTokenizerFast.from_pretrained("moussaKam/mbarthez")
tokenizer.save_pretrained(self.tmpdirname)
tokenizer.save_pretrained(self.tmpdirname, legacy_format=False)
self.tokenizer = tokenizer
@require_torch