Patch BigBird tokenization test (#12653)

This commit is contained in:
Lysandre Debut
2021-07-13 08:53:06 +02:00
committed by GitHub
parent c523b241c2
commit a6938c4721

View File

@@ -220,7 +220,7 @@ class BigBirdTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
tokenizer = BigBirdTokenizer.from_pretrained("google/bigbird-roberta-base") tokenizer = BigBirdTokenizer.from_pretrained("google/bigbird-roberta-base")
decoded_text = tokenizer.decode(tokenizer("Paris is the [MASK].").input_ids) decoded_text = tokenizer.decode(tokenizer("Paris is the [MASK].").input_ids)
self.assertTrue(decoded_text == "[CLS] Paris is the [MASK].[SEP]") self.assertTrue(decoded_text == "[CLS] Paris is the[MASK].[SEP]")
@slow @slow
def test_tokenizer_integration(self): def test_tokenizer_integration(self):