Skip to content

Commit

Permalink
Make all tokenizer tests pass - phew
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsRogge committed May 12, 2022
1 parent 55edf0f commit 7e2ddca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/models/layoutlmv3/test_tokenization_layoutlmv3.py
Expand Up @@ -2023,7 +2023,7 @@ def test_maximum_encoding_length_pair_input(self):
truncated_sequence = information_first_truncated["input_ids"][0]
overflowing_tokens = information_first_truncated["input_ids"][1]
bbox = information_first_truncated["bbox"][0]
overflowing_bbox = information_first_truncated["bbox"][1]
overflowing_bbox = information_first_truncated["bbox"][0]
self.assertEqual(len(information_first_truncated["input_ids"]), 2)

self.assertEqual(len(truncated_sequence), len(sequence["input_ids"]) - 2)
Expand Down

0 comments on commit 7e2ddca

Please sign in to comment.