


'''simple docstring'''







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


A				:					str    						=			get_tests_dir('''fixtures/spiece.model''')


@require_sentencepiece
@require_tokenizers
class 			__lowerCamelCase			(	a_    , unittest.TestCase	):
    """simple docstring"""
    a													=   DebertaVaTokenizer
    a													=   DebertaVaTokenizerFast
    a													=   True
    a													=   True


    def        A   (  self      :							Dict):
           super().setUp()

           # We have a SentencePiece fixture for testing
           _A					:     Tuple     = DebertaVaTokenizer(SCREAMING_SNAKE_CASE				,							unk_token='<unk>')
           tokenizer.save_pretrained(self.tmpdirname)


    def        A   (  self      :							str				,							SCREAMING_SNAKE_CASE      :							Optional[int]):
           _A					:     Optional[int]     = 'this is a test'
           _A					:     int     = 'this is a test'
           return input_text, output_text


    def        A   (  self      :							Union[str, Any]):
           _A					:     Union[str, Any]     = '<pad>'
           _A					:     Dict     = 0

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


    def        A   (  self      :							List[str]):
           _A					:     Optional[Any]     = 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(SCREAMING_SNAKE_CASE)				,							30001)


    def        A   (  self      :							str):
           self.assertEqual(self.get_tokenizer().vocab_size				,							30000)


    def        A   (  self      :							Dict):
           # fmt: off
           _A					:     List[str]     = ' \tHeLLo!how  \n Are yoU?  '
           _A					:     List[Any]     = ['▁hello', '!', 'how', '▁are', '▁you', '?']
           # fmt: on

           _A					:     Any     = DebertaVaTokenizer(SCREAMING_SNAKE_CASE				,							do_lower_case=SCREAMING_SNAKE_CASE)
           _A					:     Dict     = tokenizer.convert_ids_to_tokens(tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE))

           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)

           _A					:     str     = DebertaVaTokenizerFast(SCREAMING_SNAKE_CASE				,							do_lower_case=SCREAMING_SNAKE_CASE)
           _A					:     int     = rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE))

           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)


    @unittest.skip('There is an inconsistency between slow and fast tokenizer due to a bug in the fast one.')
    def        A   (  self      :							List[Any]):
           pass


    @unittest.skip('There is an inconsistency between slow and fast tokenizer due to a bug in the fast one.')
    def        A   (  self      :							List[Any]):
           pass


    def        A   (  self      :							str):
           # fmt: off
           _A					:     Union[str, Any]     = 'I was born in 92000, and this is falsé.'
           _A					:     Tuple     = ['▁', '<unk>', '▁was', '▁born', '▁in', '▁9', '2000', '▁', ',', '▁and', '▁this', '▁is', '▁fal', 's', '<unk>', '▁', '.', ]
           # fmt: on

           _A					:     List[str]     = DebertaVaTokenizer(SCREAMING_SNAKE_CASE				,							split_by_punct=SCREAMING_SNAKE_CASE)
           _A					:     Dict     = tokenizer.convert_ids_to_tokens(tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE))

           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)

           _A					:     List[str]     = DebertaVaTokenizerFast(SCREAMING_SNAKE_CASE				,							split_by_punct=SCREAMING_SNAKE_CASE)
           _A					:     int     = rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE))

           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)


    def        A   (  self      :							List[str]):
           # fmt: off
           _A					:     Union[str, Any]     = 'I was born in 92000, and this is falsé.'
           _A					:     List[Any]     = ['▁i', '▁was', '▁born', '▁in', '▁9', '2000', '▁', ',', '▁and', '▁this', '▁is', '▁fal', 's', '<unk>', '▁', '.', ]
           # fmt: on

           _A					:     int     = DebertaVaTokenizer(SCREAMING_SNAKE_CASE				,							do_lower_case=SCREAMING_SNAKE_CASE				,							split_by_punct=SCREAMING_SNAKE_CASE)
           _A					:     List[Any]     = tokenizer.convert_ids_to_tokens(tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE))
           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)

           _A					:     List[str]     = DebertaVaTokenizerFast(SCREAMING_SNAKE_CASE				,							do_lower_case=SCREAMING_SNAKE_CASE				,							split_by_punct=SCREAMING_SNAKE_CASE)
           _A					:     Dict     = rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE))
           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)


    def        A   (  self      :							Optional[Any]):
           # fmt: off
           _A					:     Any     = 'I was born in 92000, and this is falsé.'
           _A					:     Dict     = ['▁i', '▁was', '▁born', '▁in', '▁9', '2000', ',', '▁and', '▁this', '▁is', '▁fal', 's', '<unk>', '.', ]
           # fmt: on

           _A					:     Union[str, Any]     = DebertaVaTokenizer(SCREAMING_SNAKE_CASE				,							do_lower_case=SCREAMING_SNAKE_CASE				,							split_by_punct=SCREAMING_SNAKE_CASE)
           _A					:     str     = tokenizer.convert_ids_to_tokens(tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE))

           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)

           _A					:     List[str]     = DebertaVaTokenizerFast(SCREAMING_SNAKE_CASE				,							do_lower_case=SCREAMING_SNAKE_CASE				,							split_by_punct=SCREAMING_SNAKE_CASE)
           _A					:     Union[str, Any]     = rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE))

           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)


    def        A   (  self      :							List[str]):
           # fmt: off
           _A					:     Union[str, Any]     = 'I was born in 92000, and this is falsé.'
           _A					:     Optional[Any]     = ['▁', '<unk>', '▁was', '▁born', '▁in', '▁9', '2000', '▁', ',', '▁and', '▁this', '▁is', '▁fal', 's', '<unk>', '▁', '.', ]
           # fmt: on

           _A					:     Tuple     = DebertaVaTokenizer(SCREAMING_SNAKE_CASE				,							do_lower_case=SCREAMING_SNAKE_CASE				,							split_by_punct=SCREAMING_SNAKE_CASE)
           _A					:     List[str]     = tokenizer.convert_ids_to_tokens(tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE))

           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)

           _A					:     Tuple     = DebertaVaTokenizerFast(SCREAMING_SNAKE_CASE				,							do_lower_case=SCREAMING_SNAKE_CASE				,							split_by_punct=SCREAMING_SNAKE_CASE)
           _A					:     List[Any]     = rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE))

           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)


    def        A   (  self      :							Any):
           # fmt: off
           _A					:     Any     = ' \tHeLLo!how  \n Are yoU?  '
           _A					:     List[str]     = ['▁', '<unk>', 'e', '<unk>', 'o', '!', 'how', '▁', '<unk>', 're', '▁yo', '<unk>', '?']
           # fmt: on

           _A					:     str     = DebertaVaTokenizer(SCREAMING_SNAKE_CASE				,							do_lower_case=SCREAMING_SNAKE_CASE				,							split_by_punct=SCREAMING_SNAKE_CASE)
           _A					:     Union[str, Any]     = tokenizer.convert_ids_to_tokens(tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE))

           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)

           _A					:     str     = DebertaVaTokenizerFast(SCREAMING_SNAKE_CASE				,							do_lower_case=SCREAMING_SNAKE_CASE				,							split_by_punct=SCREAMING_SNAKE_CASE)
           _A					:     Union[str, Any]     = rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE))

           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)


    def        A   (  self      :							Tuple):
           _A					:     Any     = self.get_tokenizer()
           _A					:     Any     = self.get_rust_tokenizer()

           _A					:     Optional[Any]     = 'I was born in 92000, and this is falsé.'

           _A					:     Union[str, Any]     = tokenizer.convert_ids_to_tokens(tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE))
           _A					:     Tuple     = rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE))
           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)

           _A					:     Optional[Any]     = tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE)
           _A					:     int     = rust_tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE)
           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)

           _A					:     Tuple     = self.get_rust_tokenizer()
           _A					:     int     = tokenizer.encode(SCREAMING_SNAKE_CASE)
           _A					:     str     = rust_tokenizer.encode(SCREAMING_SNAKE_CASE)
           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)


    def        A   (  self      :							str):
           _A					:     str     = 'This is a test'
           _A					:     str     = [13, 1, 4398, 25, 21, 1289]
           _A					:     List[Any]     = ['▁', 'T', 'his', '▁is', '▁a', '▁test']
           _A					:     Optional[int]     = ['▁', '<unk>', 'his', '▁is', '▁a', '▁test']

           _A					:     str     = DebertaVaTokenizer(SCREAMING_SNAKE_CASE				,							keep_accents=SCREAMING_SNAKE_CASE)
           _A					:     Any     = DebertaVaTokenizerFast(SCREAMING_SNAKE_CASE				,							keep_accents=SCREAMING_SNAKE_CASE)

           _A					:     Any     = tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE)
           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)
           _A					:     List[Any]     = tokenizer.tokenize(SCREAMING_SNAKE_CASE)
           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)
           _A					:     Any     = tokenizer.convert_ids_to_tokens(SCREAMING_SNAKE_CASE)
           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)

           _A					:     str     = rust_tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE)
           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)
           _A					:     Optional[int]     = rust_tokenizer.tokenize(SCREAMING_SNAKE_CASE)
           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)
           _A					:     Union[str, Any]     = rust_tokenizer.convert_ids_to_tokens(SCREAMING_SNAKE_CASE)
           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)

           # fmt: off
           _A					:     Union[str, Any]     = 'I was born in 92000, and this is falsé.'
           _A					:     Optional[Any]     = [13, 1, 23, 386, 19, 561, 3050, 15, 17, 48, 25, 8256, 18, 1, 9]
           _A					:     Tuple     = ['▁', 'I', '▁was', '▁born', '▁in', '▁9', '2000', ',', '▁and', '▁this', '▁is', '▁fal', 's', 'é', '.', ]
           _A					:     List[Any]     = ['▁', '<unk>', '▁was', '▁born', '▁in', '▁9', '2000', ',', '▁and', '▁this', '▁is', '▁fal', 's', '<unk>', '.', ]
           # fmt: on

           _A					:     int     = tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE)
           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)
           _A					:     Tuple     = tokenizer.tokenize(SCREAMING_SNAKE_CASE)
           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)
           _A					:     Optional[Any]     = tokenizer.convert_ids_to_tokens(SCREAMING_SNAKE_CASE)
           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)

           _A					:     int     = rust_tokenizer.encode(SCREAMING_SNAKE_CASE				,							add_special_tokens=SCREAMING_SNAKE_CASE)
           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)
           _A					:     Dict     = rust_tokenizer.tokenize(SCREAMING_SNAKE_CASE)
           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)
           _A					:     Union[str, Any]     = rust_tokenizer.convert_ids_to_tokens(SCREAMING_SNAKE_CASE)
           self.assertListEqual(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)


    def        A   (  self      :							str):
           _A					:     Any     = DebertaVaTokenizer(SCREAMING_SNAKE_CASE)

           _A					:     Optional[int]     = tokenizer.encode('sequence builders')
           _A					:     Tuple     = tokenizer.encode('multi-sequence build')

           _A					:     Dict     = tokenizer.build_inputs_with_special_tokens(SCREAMING_SNAKE_CASE)
           _A					:     Optional[Any]     = tokenizer.build_inputs_with_special_tokens(SCREAMING_SNAKE_CASE				,							SCREAMING_SNAKE_CASE)

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


    @slow
    def        A   (  self      :							Optional[int]):
           # fmt: off
           _A					:     Optional[int]     = {'input_ids': [[1, 39867, 36, 19390, 486, 27, 35052, 81436, 18, 60685, 1225, 7, 35052, 81436, 18, 9367, 16899, 18, 15937, 53, 594, 773, 18, 16287, 30465, 36, 15937, 6, 41139, 38, 36979, 60763, 191, 6, 34132, 99, 6, 50538, 390, 43230, 6, 34132, 2779, 20850, 14, 699, 1072, 1194, 36, 382, 10901, 53, 7, 699, 1072, 2084, 36, 20422, 630, 53, 19, 105, 3049, 1896, 1053, 16899, 1506, 11, 37978, 4243, 7, 1237, 31869, 200, 16566, 654, 6, 35052, 81436, 7, 55630, 13593, 4, 2], [1, 26, 15011, 13, 667, 8, 1053, 18, 23611, 1237, 72356, 12820, 34, 104134, 1209, 35, 13313, 6627, 21, 202, 347, 7, 164, 2399, 11, 46, 4485, 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, 1232, 2864, 15785, 14951, 105, 5, 8581, 1250, 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=SCREAMING_SNAKE_CASE				,							model_name='microsoft/deberta-v2-xlarge'				,							revision='ad6e42c1532ddf3a15c39246b63f5559d558b670'				,							)










'''simple docstring'''







from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_flax_available,
    is_tf_available,
    is_tokenizers_available,
    is_torch_available,
)


A				:					List[str]    						=			{
    '''configuration_electra''': ['''ELECTRA_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''ElectraConfig''', '''ElectraOnnxConfig'''],
    '''tokenization_electra''': ['''ElectraTokenizer'''],
}

try:
   if not is_tokenizers_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   A				:					int    						=			['''ElectraTokenizerFast''']

try:
   if not is_torch_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   A				:					List[str]    						=			[
       '''ELECTRA_PRETRAINED_MODEL_ARCHIVE_LIST''',
       '''ElectraForCausalLM''',
       '''ElectraForMaskedLM''',
       '''ElectraForMultipleChoice''',
       '''ElectraForPreTraining''',
       '''ElectraForQuestionAnswering''',
       '''ElectraForSequenceClassification''',
       '''ElectraForTokenClassification''',
       '''ElectraModel''',
       '''ElectraPreTrainedModel''',
       '''load_tf_weights_in_electra''',
   ]

try:
   if not is_tf_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   A				:					Dict    						=			[
       '''TF_ELECTRA_PRETRAINED_MODEL_ARCHIVE_LIST''',
       '''TFElectraForMaskedLM''',
       '''TFElectraForMultipleChoice''',
       '''TFElectraForPreTraining''',
       '''TFElectraForQuestionAnswering''',
       '''TFElectraForSequenceClassification''',
       '''TFElectraForTokenClassification''',
       '''TFElectraModel''',
       '''TFElectraPreTrainedModel''',
   ]

try:
   if not is_flax_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   A				:					List[Any]    						=			[
       '''FlaxElectraForCausalLM''',
       '''FlaxElectraForMaskedLM''',
       '''FlaxElectraForMultipleChoice''',
       '''FlaxElectraForPreTraining''',
       '''FlaxElectraForQuestionAnswering''',
       '''FlaxElectraForSequenceClassification''',
       '''FlaxElectraForTokenClassification''',
       '''FlaxElectraModel''',
       '''FlaxElectraPreTrainedModel''',
   ]


if TYPE_CHECKING:
   from .configuration_electra import ELECTRA_PRETRAINED_CONFIG_ARCHIVE_MAP, ElectraConfig, ElectraOnnxConfig
   from .tokenization_electra import ElectraTokenizer

   try:
      if not is_tokenizers_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .tokenization_electra_fast import ElectraTokenizerFast

   try:
      if not is_torch_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .modeling_electra import (
          ELECTRA_PRETRAINED_MODEL_ARCHIVE_LIST,
          ElectraForCausalLM,
          ElectraForMaskedLM,
          ElectraForMultipleChoice,
          ElectraForPreTraining,
          ElectraForQuestionAnswering,
          ElectraForSequenceClassification,
          ElectraForTokenClassification,
          ElectraModel,
          ElectraPreTrainedModel,
          load_tf_weights_in_electra,
      )

   try:
      if not is_tf_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .modeling_tf_electra import (
          TF_ELECTRA_PRETRAINED_MODEL_ARCHIVE_LIST,
          TFElectraForMaskedLM,
          TFElectraForMultipleChoice,
          TFElectraForPreTraining,
          TFElectraForQuestionAnswering,
          TFElectraForSequenceClassification,
          TFElectraForTokenClassification,
          TFElectraModel,
          TFElectraPreTrainedModel,
      )

   try:
      if not is_flax_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .modeling_flax_electra import (
          FlaxElectraForCausalLM,
          FlaxElectraForMaskedLM,
          FlaxElectraForMultipleChoice,
          FlaxElectraForPreTraining,
          FlaxElectraForQuestionAnswering,
          FlaxElectraForSequenceClassification,
          FlaxElectraForTokenClassification,
          FlaxElectraModel,
          FlaxElectraPreTrainedModel,
      )

else:
   import sys

   A				:					Tuple    						=			_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)






