



"""simple docstring"""






from collections import OrderedDict
from typing import Mapping

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


__snake_case				:  int =       logging.get_logger(__name__)

__snake_case				:  Union[str, Any] =       {
    'bert-base-uncased': 'https://huggingface.co/bert-base-uncased/resolve/main/config.json',
    'bert-large-uncased': 'https://huggingface.co/bert-large-uncased/resolve/main/config.json',
    'bert-base-cased': 'https://huggingface.co/bert-base-cased/resolve/main/config.json',
    'bert-large-cased': 'https://huggingface.co/bert-large-cased/resolve/main/config.json',
    'bert-base-multilingual-uncased': 'https://huggingface.co/bert-base-multilingual-uncased/resolve/main/config.json',
    'bert-base-multilingual-cased': 'https://huggingface.co/bert-base-multilingual-cased/resolve/main/config.json',
    'bert-base-chinese': 'https://huggingface.co/bert-base-chinese/resolve/main/config.json',
    'bert-base-german-cased': 'https://huggingface.co/bert-base-german-cased/resolve/main/config.json',
    'bert-large-uncased-whole-word-masking': (
        'https://huggingface.co/bert-large-uncased-whole-word-masking/resolve/main/config.json'
    ),
    'bert-large-cased-whole-word-masking': (
        'https://huggingface.co/bert-large-cased-whole-word-masking/resolve/main/config.json'
    ),
    'bert-large-uncased-whole-word-masking-finetuned-squad': (
        'https://huggingface.co/bert-large-uncased-whole-word-masking-finetuned-squad/resolve/main/config.json'
    ),
    'bert-large-cased-whole-word-masking-finetuned-squad': (
        'https://huggingface.co/bert-large-cased-whole-word-masking-finetuned-squad/resolve/main/config.json'
    ),
    'bert-base-cased-finetuned-mrpc': 'https://huggingface.co/bert-base-cased-finetuned-mrpc/resolve/main/config.json',
    'bert-base-german-dbmdz-cased': 'https://huggingface.co/bert-base-german-dbmdz-cased/resolve/main/config.json',
    'bert-base-german-dbmdz-uncased': 'https://huggingface.co/bert-base-german-dbmdz-uncased/resolve/main/config.json',
    'cl-tohoku/bert-base-japanese': 'https://huggingface.co/cl-tohoku/bert-base-japanese/resolve/main/config.json',
    'cl-tohoku/bert-base-japanese-whole-word-masking': (
        'https://huggingface.co/cl-tohoku/bert-base-japanese-whole-word-masking/resolve/main/config.json'
    ),
    'cl-tohoku/bert-base-japanese-char': (
        'https://huggingface.co/cl-tohoku/bert-base-japanese-char/resolve/main/config.json'
    ),
    'cl-tohoku/bert-base-japanese-char-whole-word-masking': (
        'https://huggingface.co/cl-tohoku/bert-base-japanese-char-whole-word-masking/resolve/main/config.json'
    ),
    'TurkuNLP/bert-base-finnish-cased-v1': (
        'https://huggingface.co/TurkuNLP/bert-base-finnish-cased-v1/resolve/main/config.json'
    ),
    'TurkuNLP/bert-base-finnish-uncased-v1': (
        'https://huggingface.co/TurkuNLP/bert-base-finnish-uncased-v1/resolve/main/config.json'
    ),
    'wietsedv/bert-base-dutch-cased': 'https://huggingface.co/wietsedv/bert-base-dutch-cased/resolve/main/config.json',
    # See all BERT models at https://huggingface.co/models?filter=bert
}



class      A__  (    __SCREAMING_SNAKE_CASE				):




	'''simple docstring'''





	SCREAMING_SNAKE_CASE        =      'bert'

	def __init__(	self:						int			,     _SCREAMING_SNAKE_CASE:						List[str]=3_0522			,     _SCREAMING_SNAKE_CASE:						Optional[Any]=768			,     _SCREAMING_SNAKE_CASE:						Optional[Any]=12			,     _SCREAMING_SNAKE_CASE:						Optional[Any]=12			,     _SCREAMING_SNAKE_CASE:						int=3072			,     _SCREAMING_SNAKE_CASE:						str="gelu"			,     _SCREAMING_SNAKE_CASE:						Optional[int]=0.1			,     _SCREAMING_SNAKE_CASE:						Union[str, Any]=0.1			,     _SCREAMING_SNAKE_CASE:						Optional[Any]=512			,     _SCREAMING_SNAKE_CASE:						Dict=2			,     _SCREAMING_SNAKE_CASE:						Optional[Any]=0.02			,     _SCREAMING_SNAKE_CASE:						Any=1e-12			,     _SCREAMING_SNAKE_CASE:						str=0			,     _SCREAMING_SNAKE_CASE:						str="absolute"			,     _SCREAMING_SNAKE_CASE:						Any=True			,     _SCREAMING_SNAKE_CASE:						Union[str, Any]=None			,     **_SCREAMING_SNAKE_CASE:						Union[str, Any]			,     )							->			Tuple:

				"""simple docstring"""

				super().__init__(pad_token_id=_SCREAMING_SNAKE_CASE			,     **_SCREAMING_SNAKE_CASE)

				__lowerCAmelCase :    Any				=			vocab_size
				__lowerCAmelCase :    str				=			hidden_size
				__lowerCAmelCase :    Dict				=			num_hidden_layers
				__lowerCAmelCase :    int				=			num_attention_heads
				__lowerCAmelCase :    Optional[Any]				=			hidden_act
				__lowerCAmelCase :    str				=			intermediate_size
				__lowerCAmelCase :    Optional[int]				=			hidden_dropout_prob
				__lowerCAmelCase :    Optional[int]				=			attention_probs_dropout_prob
				__lowerCAmelCase :    Optional[int]				=			max_position_embeddings
				__lowerCAmelCase :    Any				=			type_vocab_size
				__lowerCAmelCase :    str				=			initializer_range
				__lowerCAmelCase :    Any				=			layer_norm_eps
				__lowerCAmelCase :    Optional[int]				=			position_embedding_type
				__lowerCAmelCase :    Optional[Any]				=			use_cache
				__lowerCAmelCase :    int				=			classifier_dropout






class      A__  (    __SCREAMING_SNAKE_CASE				):




	'''simple docstring'''





	@property
	def 				_SCREAMING_SNAKE_CASE  (	self:						Optional[Any])							->			Mapping[str, Mapping[int, str]]:

				"""simple docstring"""

				if self.task == "multiple-choice":
							__lowerCAmelCase :    Optional[Any]				=			{0: "batch", 1: "choice", 2: "sequence"}
				else:
							__lowerCAmelCase :    int				=			{0: "batch", 1: "sequence"}
				return OrderedDict(
				    [
				        ("input_ids", dynamic_axis),
				        ("attention_mask", dynamic_axis),
				        ("token_type_ids", dynamic_axis),
				    ])




"""simple docstring"""






from abc import ABC, abstractmethod
from argparse import ArgumentParser



class      A__  (    __SCREAMING_SNAKE_CASE				):




	'''simple docstring'''





	@staticmethod
	@abstractmethod
	def 				_SCREAMING_SNAKE_CASE  (	_SCREAMING_SNAKE_CASE:						ArgumentParser)							->			Optional[int]:

				"""simple docstring"""

				raise NotImplementedError()







	@abstractmethod
	def 				_SCREAMING_SNAKE_CASE  (	self:						Union[str, Any])							->			Dict:

				"""simple docstring"""

				raise NotImplementedError()