
import warnings

from transformers import AutoTokenizer
from transformers.utils import is_torch_available
from transformers.utils.generic import ExplicitEnum

from ...processing_utils import ProcessorMixin


if is_torch_available():
					import torch

class       a		(   __UpperCAmelCase					):
							lowercase_		:						Any   							=  'char'
							lowercase_		:						Any   							=  'bpe'
							lowercase_		:						Optional[int]   							=  'wp'
UpperCamelCase_   	=	(DecodeType.CHARACTER, DecodeType.BPE, DecodeType.WORDPIECE)

class       a		(   __UpperCAmelCase					):
							lowercase_		:						List[Any]   							=  ['image_processor', 'char_tokenizer']
							lowercase_		:						Tuple   							=  'ViTImageProcessor'
							lowercase_		:						List[Any]   							=  'MgpstrTokenizer'







							def __init__(						self  :  Dict      ,				snake_case__  :  Optional[int]=None      ,				snake_case__  :  Any=None      ,				**snake_case__  :  Dict ):
								"""simple docstring"""







								__lowerCAmelCase         =							None
								if "feature_extractor" in kwargs:
									warnings.warn(
									    "The `feature_extractor` argument is deprecated and will be removed in v5, use `image_processor`"
									    " instead."      ,				snake_case__      ,				)
									__lowerCAmelCase         =							kwargs.pop("feature_extractor" )

								__lowerCAmelCase         =							image_processor if image_processor is not None else feature_extractor
								if image_processor is None:
									raise ValueError("You need to specify an `image_processor`." )
								if tokenizer is None:
									raise ValueError("You need to specify a `tokenizer`." )

								__lowerCAmelCase         =							tokenizer
								__lowerCAmelCase         =							AutoTokenizer.from_pretrained("gpt2" )
								__lowerCAmelCase         =							AutoTokenizer.from_pretrained("bert-base-uncased" )

								super().__init__(snake_case__      ,				snake_case__ )







							def __call__(						self  :  Optional[int]      ,				snake_case__  :  str=None      ,				snake_case__  :  List[str]=None      ,				snake_case__  :  List[str]=None      ,				**snake_case__  :  Optional[int] ):
								"""simple docstring"""







								if images is None and text is None:
									raise ValueError("You need to specify either an `images` or `text` input to process." )

								if images is not None:
									__lowerCAmelCase         =							self.image_processor(snake_case__      ,				return_tensors=snake_case__      ,				**snake_case__ )
								if text is not None:
									__lowerCAmelCase         =							self.char_tokenizer(snake_case__      ,				return_tensors=snake_case__      ,				**snake_case__ )

								if text is None:
									return inputs
								elif images is None:
									return encodings
								else:
									__lowerCAmelCase         =							encodings["input_ids"]
									return inputs







							def       UpperCAmelCase__					(						self  :  Optional[Any]      ,				snake_case__  :  List[Any] ):
								"""simple docstring"""







								__lowerCAmelCase   ,						__lowerCAmelCase   ,						__lowerCAmelCase         =							sequences
								__lowerCAmelCase         =							char_preds.size(0 )

								__lowerCAmelCase   ,						__lowerCAmelCase         =							self._decode_helper(snake_case__      ,				"char" )
								__lowerCAmelCase   ,						__lowerCAmelCase         =							self._decode_helper(snake_case__      ,				"bpe" )
								__lowerCAmelCase   ,						__lowerCAmelCase         =							self._decode_helper(snake_case__      ,				"wp" )

								__lowerCAmelCase         =							[]
								__lowerCAmelCase         =							[]
								for i in range(snake_case__ ):
									__lowerCAmelCase         =							[char_scores[i], bpe_scores[i], wp_scores[i]]
									__lowerCAmelCase         =							[char_strs[i], bpe_strs[i], wp_strs[i]]
									__lowerCAmelCase         =							scores.index(max(snake_case__ ) )
									final_strs.append(strs[max_score_index] )
									final_scores.append(scores[max_score_index] )

								__lowerCAmelCase         =							{}
								__lowerCAmelCase         =							final_strs
								__lowerCAmelCase         =							final_scores
								__lowerCAmelCase         =							char_strs
								__lowerCAmelCase         =							bpe_strs
								__lowerCAmelCase         =							wp_strs
								return out







							def       UpperCAmelCase__					(						self  :  Tuple      ,				snake_case__  :  List[str]      ,				snake_case__  :  Union[str, Any] ):
								"""simple docstring"""







								if format == DecodeType.CHARACTER:
									__lowerCAmelCase         =							self.char_decode
									__lowerCAmelCase         =							1
									__lowerCAmelCase         =							"[s]"
								elif format == DecodeType.BPE:
									__lowerCAmelCase         =							self.bpe_decode
									__lowerCAmelCase         =							2
									__lowerCAmelCase         =							"#"
								elif format == DecodeType.WORDPIECE:
									__lowerCAmelCase         =							self.wp_decode
									__lowerCAmelCase         =							102
									__lowerCAmelCase         =							"[SEP]"
								else:
									raise ValueError(F"Format {format} is not supported." )

								__lowerCAmelCase   ,						__lowerCAmelCase         =							[], []
								__lowerCAmelCase         =							pred_logits.size(0 )
								__lowerCAmelCase         =							pred_logits.size(1 )
								__lowerCAmelCase   ,						__lowerCAmelCase         =							pred_logits.topk(1      ,				dim=-1      ,				largest=snake_case__      ,				sorted=snake_case__ )
								__lowerCAmelCase         =							preds_index.view(-1      ,				snake_case__ )[:, 1:]
								__lowerCAmelCase         =							decoder(snake_case__ )
								__lowerCAmelCase   ,						__lowerCAmelCase         =							torch.nn.functional.softmax(snake_case__      ,				dim=2 ).max(dim=2 )
								__lowerCAmelCase         =							preds_max_prob[:, 1:]

								for index in range(snake_case__ ):
									__lowerCAmelCase         =							preds_str[index].find(snake_case__ )
									__lowerCAmelCase         =							preds_str[index][:pred_eos]
									__lowerCAmelCase         =							preds_index[index].cpu().tolist()
									__lowerCAmelCase         =							pred_index.index(snake_case__ ) if eos_token in pred_index else -1
									__lowerCAmelCase         =							preds_max_prob[index][: pred_eos_index + 1]
									__lowerCAmelCase         =							pred_max_prob.cumprod(dim=0 )[-1] if pred_max_prob.nelement() != 0 else 0.0
									dec_strs.append(snake_case__ )
									conf_scores.append(snake_case__ )

								return dec_strs, conf_scores







							def       UpperCAmelCase__					(						self  :  Dict      ,				snake_case__  :  Union[str, Any] ):
								"""simple docstring"""







								__lowerCAmelCase         =							[seq.replace(" "      ,				"" ) for seq in self.char_tokenizer.batch_decode(snake_case__ )]
								return decode_strs







							def       UpperCAmelCase__					(						self  :  Optional[int]      ,				snake_case__  :  List[str] ):
								"""simple docstring"""







								return self.bpe_tokenizer.batch_decode(snake_case__ )







							def       UpperCAmelCase__					(						self  :  Optional[Any]      ,				snake_case__  :  List[str] ):
								"""simple docstring"""







								__lowerCAmelCase         =							[seq.replace(" "      ,				"" ) for seq in self.wp_tokenizer.batch_decode(snake_case__ )]
								return decode_strs








import unittest

from transformers import DebertaVaTokenizer, DebertaVaTokenizerFast
from transformers.testing_utils import get_tests_dir, require_sentencepiece, require_tokenizers, slow

from ...test_tokenization_common import TokenizerTesterMixin


UpperCamelCase_   	=	get_tests_dir("fixtures/spiece.model")

@require_sentencepiece
@require_tokenizers
class       a		(   __UpperCAmelCase      ,	unittest.TestCase					):
							lowercase_		:						Union[str, Any]   							=  DebertaVaTokenizer
							lowercase_		:						List[str]   							=  DebertaVaTokenizerFast
							lowercase_		:						str   							=  True
							lowercase_		:						List[Any]   							=  True







							def       UpperCAmelCase__					(						self  :  Optional[Any] ):
								"""simple docstring"""







								super().setUp()

								# We have a SentencePiece fixture for testing
								__lowerCAmelCase         =							DebertaVaTokenizer(snake_case__      ,				unk_token="<unk>" )
								tokenizer.save_pretrained(self.tmpdirname )







							def       UpperCAmelCase__					(						self  :  str      ,				snake_case__  :  Dict ):
								"""simple docstring"""







								__lowerCAmelCase         =							"this is a test"
								__lowerCAmelCase         =							"this is a test"
								return input_text, output_text







							def       UpperCAmelCase__					(						self  :  int ):
								"""simple docstring"""







								__lowerCAmelCase         =							"<pad>"
								__lowerCAmelCase         =							0

								self.assertEqual(self.get_tokenizer()._convert_token_to_id(snake_case__ )      ,				snake_case__ )
								self.assertEqual(self.get_tokenizer()._convert_id_to_token(snake_case__ )      ,				snake_case__ )







							def       UpperCAmelCase__					(						self  :  Any ):
								"""simple docstring"""







								__lowerCAmelCase         =							list(self.get_tokenizer().get_vocab().keys() )
								self.assertEqual(vocab_keys[0]      ,				"<pad>" )
								self.assertEqual(vocab_keys[1]      ,				"<unk>" )
								self.assertEqual(vocab_keys[-1]      ,				"[PAD]" )
								self.assertEqual(len(snake_case__ )      ,				30_001 )







							def       UpperCAmelCase__					(						self  :  Tuple ):
								"""simple docstring"""







								self.assertEqual(self.get_tokenizer().vocab_size      ,				30_000 )







							def       UpperCAmelCase__					(						self  :  List[str] ):
								"""simple docstring"""







								__lowerCAmelCase         =							" \tHeLLo!how  \n Are yoU?  "
								__lowerCAmelCase         =							["▁hello", "!", "how", "▁are", "▁you", "?"]
								# fmt: on

								__lowerCAmelCase         =							DebertaVaTokenizer(snake_case__      ,				do_lower_case=snake_case__ )
								__lowerCAmelCase         =							tokenizer.convert_ids_to_tokens(tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ ) )

								self.assertListEqual(snake_case__      ,				snake_case__ )

								__lowerCAmelCase         =							DebertaVaTokenizerFast(snake_case__      ,				do_lower_case=snake_case__ )
								__lowerCAmelCase         =							rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ ) )

								self.assertListEqual(snake_case__      ,				snake_case__ )







							@unittest.skip("There is an inconsistency between slow and fast tokenizer due to a bug in the fast one." )
							def       UpperCAmelCase__					(						self  :  Union[str, Any] ):
								"""simple docstring"""







								pass







							@unittest.skip("There is an inconsistency between slow and fast tokenizer due to a bug in the fast one." )
							def       UpperCAmelCase__					(						self  :  List[str] ):
								"""simple docstring"""







								pass







							def       UpperCAmelCase__					(						self  :  Any ):
								"""simple docstring"""







								__lowerCAmelCase         =							"I was born in 92000, and this is falsé."
								__lowerCAmelCase         =							["▁", "<unk>", "▁was", "▁born", "▁in", "▁9", "2000", "▁", ",", "▁and", "▁this", "▁is", "▁fal", "s", "<unk>", "▁", ".", ]
								# fmt: on

								__lowerCAmelCase         =							DebertaVaTokenizer(snake_case__      ,				split_by_punct=snake_case__ )
								__lowerCAmelCase         =							tokenizer.convert_ids_to_tokens(tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ ) )

								self.assertListEqual(snake_case__      ,				snake_case__ )

								__lowerCAmelCase         =							DebertaVaTokenizerFast(snake_case__      ,				split_by_punct=snake_case__ )
								__lowerCAmelCase         =							rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ ) )

								self.assertListEqual(snake_case__      ,				snake_case__ )







							def       UpperCAmelCase__					(						self  :  Tuple ):
								"""simple docstring"""







								__lowerCAmelCase         =							"I was born in 92000, and this is falsé."
								__lowerCAmelCase         =							["▁i", "▁was", "▁born", "▁in", "▁9", "2000", "▁", ",", "▁and", "▁this", "▁is", "▁fal", "s", "<unk>", "▁", ".", ]
								# fmt: on

								__lowerCAmelCase         =							DebertaVaTokenizer(snake_case__      ,				do_lower_case=snake_case__      ,				split_by_punct=snake_case__ )
								__lowerCAmelCase         =							tokenizer.convert_ids_to_tokens(tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ ) )
								self.assertListEqual(snake_case__      ,				snake_case__ )

								__lowerCAmelCase         =							DebertaVaTokenizerFast(snake_case__      ,				do_lower_case=snake_case__      ,				split_by_punct=snake_case__ )
								__lowerCAmelCase         =							rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ ) )
								self.assertListEqual(snake_case__      ,				snake_case__ )







							def       UpperCAmelCase__					(						self  :  Optional[int] ):
								"""simple docstring"""







								__lowerCAmelCase         =							"I was born in 92000, and this is falsé."
								__lowerCAmelCase         =							["▁i", "▁was", "▁born", "▁in", "▁9", "2000", ",", "▁and", "▁this", "▁is", "▁fal", "s", "<unk>", ".", ]
								# fmt: on

								__lowerCAmelCase         =							DebertaVaTokenizer(snake_case__      ,				do_lower_case=snake_case__      ,				split_by_punct=snake_case__ )
								__lowerCAmelCase         =							tokenizer.convert_ids_to_tokens(tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ ) )

								self.assertListEqual(snake_case__      ,				snake_case__ )

								__lowerCAmelCase         =							DebertaVaTokenizerFast(snake_case__      ,				do_lower_case=snake_case__      ,				split_by_punct=snake_case__ )
								__lowerCAmelCase         =							rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ ) )

								self.assertListEqual(snake_case__      ,				snake_case__ )







							def       UpperCAmelCase__					(						self  :  int ):
								"""simple docstring"""







								__lowerCAmelCase         =							"I was born in 92000, and this is falsé."
								__lowerCAmelCase         =							["▁", "<unk>", "▁was", "▁born", "▁in", "▁9", "2000", "▁", ",", "▁and", "▁this", "▁is", "▁fal", "s", "<unk>", "▁", ".", ]
								# fmt: on

								__lowerCAmelCase         =							DebertaVaTokenizer(snake_case__      ,				do_lower_case=snake_case__      ,				split_by_punct=snake_case__ )
								__lowerCAmelCase         =							tokenizer.convert_ids_to_tokens(tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ ) )

								self.assertListEqual(snake_case__      ,				snake_case__ )

								__lowerCAmelCase         =							DebertaVaTokenizerFast(snake_case__      ,				do_lower_case=snake_case__      ,				split_by_punct=snake_case__ )
								__lowerCAmelCase         =							rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ ) )

								self.assertListEqual(snake_case__      ,				snake_case__ )







							def       UpperCAmelCase__					(						self  :  Tuple ):
								"""simple docstring"""







								__lowerCAmelCase         =							" \tHeLLo!how  \n Are yoU?  "
								__lowerCAmelCase         =							["▁", "<unk>", "e", "<unk>", "o", "!", "how", "▁", "<unk>", "re", "▁yo", "<unk>", "?"]
								# fmt: on

								__lowerCAmelCase         =							DebertaVaTokenizer(snake_case__      ,				do_lower_case=snake_case__      ,				split_by_punct=snake_case__ )
								__lowerCAmelCase         =							tokenizer.convert_ids_to_tokens(tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ ) )

								self.assertListEqual(snake_case__      ,				snake_case__ )

								__lowerCAmelCase         =							DebertaVaTokenizerFast(snake_case__      ,				do_lower_case=snake_case__      ,				split_by_punct=snake_case__ )
								__lowerCAmelCase         =							rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ ) )

								self.assertListEqual(snake_case__      ,				snake_case__ )







							def       UpperCAmelCase__					(						self  :  Optional[int] ):
								"""simple docstring"""







								__lowerCAmelCase         =							self.get_tokenizer()
								__lowerCAmelCase         =							self.get_rust_tokenizer()

								__lowerCAmelCase         =							"I was born in 92000, and this is falsé."

								__lowerCAmelCase         =							tokenizer.convert_ids_to_tokens(tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ ) )
								__lowerCAmelCase         =							rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ ) )
								self.assertListEqual(snake_case__      ,				snake_case__ )

								__lowerCAmelCase         =							tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ )
								__lowerCAmelCase         =							rust_tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ )
								self.assertListEqual(snake_case__      ,				snake_case__ )

								__lowerCAmelCase         =							self.get_rust_tokenizer()
								__lowerCAmelCase         =							tokenizer.encode(snake_case__ )
								__lowerCAmelCase         =							rust_tokenizer.encode(snake_case__ )
								self.assertListEqual(snake_case__      ,				snake_case__ )







							def       UpperCAmelCase__					(						self  :  Optional[int] ):
								"""simple docstring"""







								__lowerCAmelCase         =							"This is a test"
								__lowerCAmelCase         =							[13, 1, 4_398, 25, 21, 1_289]
								__lowerCAmelCase         =							["▁", "T", "his", "▁is", "▁a", "▁test"]
								__lowerCAmelCase         =							["▁", "<unk>", "his", "▁is", "▁a", "▁test"]

								__lowerCAmelCase         =							DebertaVaTokenizer(snake_case__      ,				keep_accents=snake_case__ )
								__lowerCAmelCase         =							DebertaVaTokenizerFast(snake_case__      ,				keep_accents=snake_case__ )

								__lowerCAmelCase         =							tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ )
								self.assertListEqual(snake_case__      ,				snake_case__ )
								__lowerCAmelCase         =							tokenizer.tokenize(snake_case__ )
								self.assertListEqual(snake_case__      ,				snake_case__ )
								__lowerCAmelCase         =							tokenizer.convert_ids_to_tokens(snake_case__ )
								self.assertListEqual(snake_case__      ,				snake_case__ )

								__lowerCAmelCase         =							rust_tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ )
								self.assertListEqual(snake_case__      ,				snake_case__ )
								__lowerCAmelCase         =							rust_tokenizer.tokenize(snake_case__ )
								self.assertListEqual(snake_case__      ,				snake_case__ )
								__lowerCAmelCase         =							rust_tokenizer.convert_ids_to_tokens(snake_case__ )
								self.assertListEqual(snake_case__      ,				snake_case__ )

								# fmt: off
								__lowerCAmelCase         =							"I was born in 92000, and this is falsé."
								__lowerCAmelCase         =							[13, 1, 23, 386, 19, 561, 3_050, 15, 17, 48, 25, 8_256, 18, 1, 9]
								__lowerCAmelCase         =							["▁", "I", "▁was", "▁born", "▁in", "▁9", "2000", ",", "▁and", "▁this", "▁is", "▁fal", "s", "é", ".", ]
								__lowerCAmelCase         =							["▁", "<unk>", "▁was", "▁born", "▁in", "▁9", "2000", ",", "▁and", "▁this", "▁is", "▁fal", "s", "<unk>", ".", ]
								# fmt: on

								__lowerCAmelCase         =							tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ )
								self.assertListEqual(snake_case__      ,				snake_case__ )
								__lowerCAmelCase         =							tokenizer.tokenize(snake_case__ )
								self.assertListEqual(snake_case__      ,				snake_case__ )
								__lowerCAmelCase         =							tokenizer.convert_ids_to_tokens(snake_case__ )
								self.assertListEqual(snake_case__      ,				snake_case__ )

								__lowerCAmelCase         =							rust_tokenizer.encode(snake_case__      ,				add_special_tokens=snake_case__ )
								self.assertListEqual(snake_case__      ,				snake_case__ )
								__lowerCAmelCase         =							rust_tokenizer.tokenize(snake_case__ )
								self.assertListEqual(snake_case__      ,				snake_case__ )
								__lowerCAmelCase         =							rust_tokenizer.convert_ids_to_tokens(snake_case__ )
								self.assertListEqual(snake_case__      ,				snake_case__ )







							def       UpperCAmelCase__					(						self  :  Any ):
								"""simple docstring"""







								__lowerCAmelCase         =							DebertaVaTokenizer(snake_case__ )

								__lowerCAmelCase         =							tokenizer.encode("sequence builders" )
								__lowerCAmelCase         =							tokenizer.encode("multi-sequence build" )

								__lowerCAmelCase         =							tokenizer.build_inputs_with_special_tokens(snake_case__ )
								__lowerCAmelCase         =							tokenizer.build_inputs_with_special_tokens(snake_case__      ,				snake_case__ )

								self.assertEqual([tokenizer.cls_token_id] + text + [tokenizer.sep_token_id]      ,				snake_case__ )
								self.assertEqual(
								    [tokenizer.cls_token_id] + text + [tokenizer.sep_token_id] + text_a + [tokenizer.sep_token_id]      ,				snake_case__      ,				)







							@slow
							def       UpperCAmelCase__					(						self  :  Optional[int] ):
								"""simple docstring"""







								__lowerCAmelCase         =							{"input_ids": [[1, 39_867, 36, 19_390, 486, 27, 35_052, 81_436, 18, 60_685, 1_225, 7, 35_052, 81_436, 18, 9_367, 16_899, 18, 15_937, 53, 594, 773, 18, 16_287, 30_465, 36, 15_937, 6, 41_139, 38, 36_979, 60_763, 191, 6, 34_132, 99, 6, 50_538, 390, 43_230, 6, 34_132, 2_779, 20_850, 14, 699, 1_072, 1_194, 36, 382, 10_901, 53, 7, 699, 1_072, 2_084, 36, 20_422, 630, 53, 19, 105, 3_049, 1_896, 1_053, 16_899, 1_506, 11, 37_978, 4_243, 7, 1_237, 31_869, 200, 16_566, 654, 6, 35_052, 81_436, 7, 55_630, 13_593, 4, 2], [1, 26, 15_011, 13, 667, 8, 1_053, 18, 23_611, 1_237, 72_356, 12_820, 34, 104_134, 1_209, 35, 13_313, 6_627, 21, 202, 347, 7, 164, 2_399, 11, 46, 4_485, 4, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 5, 1_232, 2_864, 15_785, 14_951, 105, 5, 8_581, 1_250, 4, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], "token_type_ids": [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], "attention_mask": [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]}  # noqa: E501
								# fmt: on

								self.tokenizer_integration_test_util(
								    expected_encoding=snake_case__      ,				model_name="microsoft/deberta-v2-xlarge"      ,				revision="ad6e42c1532ddf3a15c39246b63f5559d558b670"      ,				)






