Black preview (#17217)
* Black preview * Fixup too! * Fix check copies * Use the same version as the CI * Bump black
This commit is contained in:
@@ -126,7 +126,9 @@ class DebertaTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
|
||||
sequences = [
|
||||
"ALBERT: A Lite BERT for Self-supervised Learning of Language Representations",
|
||||
"ALBERT incorporates two parameter reduction techniques",
|
||||
"The first one is a factorized embedding parameterization. By decomposing the large vocabulary embedding matrix into two small matrices, we separate the size of the hidden layers from the size of vocabulary embedding.",
|
||||
"The first one is a factorized embedding parameterization. By decomposing the large vocabulary"
|
||||
" embedding matrix into two small matrices, we separate the size of the hidden layers from the size of"
|
||||
" vocabulary embedding.",
|
||||
]
|
||||
|
||||
encoding = tokenizer(sequences, padding=True)
|
||||
@@ -155,7 +157,9 @@ class DebertaTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
|
||||
expected_decoded_sequence = [
|
||||
"ALBERT: A Lite BERT for Self-supervised Learning of Language Representations",
|
||||
"ALBERT incorporates two parameter reduction techniques",
|
||||
"The first one is a factorized embedding parameterization. By decomposing the large vocabulary embedding matrix into two small matrices, we separate the size of the hidden layers from the size of vocabulary embedding.",
|
||||
"The first one is a factorized embedding parameterization. By decomposing the large vocabulary"
|
||||
" embedding matrix into two small matrices, we separate the size of the hidden layers from the size of"
|
||||
" vocabulary embedding.",
|
||||
]
|
||||
|
||||
self.assertDictEqual(encoding.data, expected_encoding)
|
||||
|
||||
Reference in New Issue
Block a user