mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 03:01:07 +06:00
better for python2.x
This commit is contained in:
parent
4cbdc7d910
commit
f2ac50cb55
@ -109,7 +109,7 @@ class BertTokenizationTest(CommonTestCases.CommonTokenizerTester):
|
||||
decoded = tokenizer.decode(encoded)
|
||||
self.assertEqual(
|
||||
decoded.lower(),
|
||||
(f"[CLS] {input} [SEP]").lower()
|
||||
("[CLS] " + input + " [SEP]").lower()
|
||||
)
|
||||
|
||||
def test_is_whitespace(self):
|
||||
|
Loading…
Reference in New Issue
Block a user