


'''simple docstring'''







import json
from typing import List, Optional, Tuple

from tokenizers import normalizers

from ...tokenization_utils_fast import PreTrainedTokenizerFast
from ...utils import logging
from .tokenization_convbert import ConvBertTokenizer


a__  :					Optional[Any]        =       logging.get_logger(__name__)

a__  :					Any        =       {'vocab_file': 'vocab.txt'}

a__  :					List[Any]        =       {
    'vocab_file': {
        'YituTech/conv-bert-base': 'https://huggingface.co/YituTech/conv-bert-base/resolve/main/vocab.txt',
        'YituTech/conv-bert-medium-small': (
            'https://huggingface.co/YituTech/conv-bert-medium-small/resolve/main/vocab.txt'
        ),
        'YituTech/conv-bert-small': 'https://huggingface.co/YituTech/conv-bert-small/resolve/main/vocab.txt',
    }
}

a__  :					Optional[Any]        =       {
    'YituTech/conv-bert-base': 5_1_2,
    'YituTech/conv-bert-medium-small': 5_1_2,
    'YituTech/conv-bert-small': 5_1_2,
}


a__  :					int        =       {
    'YituTech/conv-bert-base': {'do_lower_case': True},
    'YituTech/conv-bert-medium-small': {'do_lower_case': True},
    'YituTech/conv-bert-small': {'do_lower_case': True},
}
class 					lowercase_     (    a__   ):
    __UpperCAmelCase   			=	VOCAB_FILES_NAMES
    __UpperCAmelCase   			=	PRETRAINED_VOCAB_FILES_MAP
    __UpperCAmelCase   			=	PRETRAINED_INIT_CONFIGURATION
    __UpperCAmelCase   			=	PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
    __UpperCAmelCase   			=	ConvBertTokenizer


    def __init__(     self  ,					a=None  ,					a=None  ,					a=True  ,					a="[UNK]"  ,					a="[SEP]"  ,					a="[PAD]"  ,					a="[CLS]"  ,					a="[MASK]"  ,					a=True  ,					a=None  ,					**a  ,					):
          super().__init__(
              a  ,					tokenizer_file=a  ,					do_lower_case=a  ,					unk_token=a  ,					sep_token=a  ,					pad_token=a  ,					cls_token=a  ,					mask_token=a  ,					tokenize_chinese_chars=a  ,					strip_accents=a  ,					**a  ,					)

          UpperCamelCase__										=				json.loads(self.backend_tokenizer.normalizer.__getstate__()    )
          if (
              normalizer_state.get("lowercase"  ,					a    ) != do_lower_case
              or normalizer_state.get("strip_accents"  ,					a    ) != strip_accents
              or normalizer_state.get("handle_chinese_chars"  ,					a    ) != tokenize_chinese_chars
          ):
                UpperCamelCase__										=				getattr(a  ,					normalizer_state.pop("type"    )    )
                UpperCamelCase__										=				do_lower_case
                UpperCamelCase__										=				strip_accents
                UpperCamelCase__										=				tokenize_chinese_chars
                UpperCamelCase__										=				normalizer_class(**a    )

          UpperCamelCase__										=				do_lower_case


    def    __a							(     self  ,					a  ,					a=None    ):
          UpperCamelCase__										=				[self.cls_token_id] + token_ids_a + [self.sep_token_id]

          if token_ids_a:
                output += token_ids_a + [self.sep_token_id]

          return output


    def    __a							(     self  ,					a  ,					a = None    ):
          UpperCamelCase__										=				[self.sep_token_id]
          UpperCamelCase__										=				[self.cls_token_id]
          if token_ids_a is None:
                return len(cls + token_ids_a + sep    ) * [0]
          return len(cls + token_ids_a + sep    ) * [0] + len(token_ids_a + sep    ) * [1]


    def    __a							(     self  ,					a  ,					a = None    ):
          UpperCamelCase__										=				self._tokenizer.model.save(a  ,					name=a    )
          return tuple(a    )












def 						__SCREAMING_SNAKE_CASE  (				UpperCamelCase__			,			UpperCamelCase__			,			UpperCamelCase__ )  ->				int:







			'''simple docstring'''

			if exponent == 1:
						return base
			if exponent % 2 == 0:
						UpperCAmelCase   		=				_modexpt(UpperCamelCase__			,			exponent // 2			,			UpperCamelCase__ ) % modulo_value
						return (x * x) % modulo_value
			else:
						return (base * _modexpt(UpperCamelCase__			,			exponent - 1			,			UpperCamelCase__ )) % modulo_value





def 						__SCREAMING_SNAKE_CASE  (				UpperCamelCase__ = 1777			,			UpperCamelCase__ = 1855			,			UpperCamelCase__ = 8 )  ->				int:







			'''simple docstring'''

			UpperCAmelCase   		=				base
			for _ in range(1			,			UpperCamelCase__ ):
						UpperCAmelCase   		=				_modexpt(UpperCamelCase__			,			UpperCamelCase__			,			10**digits )

			return result


if __name__ == "__main__":
				print(F'{solution() = }')



