


'''simple docstring'''

from ...configuration_utils import PretrainedConfig


lowerCAmelCase				:int        =      {
    '''google/tapas-base-finetuned-sqa''': (
        '''https://huggingface.co/google/tapas-base-finetuned-sqa/resolve/main/config.json'''
    ),
    '''google/tapas-base-finetuned-wtq''': (
        '''https://huggingface.co/google/tapas-base-finetuned-wtq/resolve/main/config.json'''
    ),
    '''google/tapas-base-finetuned-wikisql-supervised''': (
        '''https://huggingface.co/google/tapas-base-finetuned-wikisql-supervised/resolve/main/config.json'''
    ),
    '''google/tapas-base-finetuned-tabfact''': (
        '''https://huggingface.co/google/tapas-base-finetuned-tabfact/resolve/main/config.json'''
    ),
}
class _lowerCamelCase	(						lowercase__							):



		'''simple docstring'''







		A_     :      Union[str, Any]				   =    """tapas"""







		def __init__( self		:						int  ,					_A		:						Dict=30522  ,					_A		:						List[str]=768  ,					_A		:						Dict=12  ,					_A		:						Tuple=12  ,					_A		:						Any=3072  ,					_A		:						Dict="gelu"  ,					_A		:						Optional[int]=0.1  ,					_A		:						Dict=0.1  ,					_A		:						List[str]=1024  ,					_A		:						int=[3, 256, 256, 2, 256, 256, 10]  ,					_A		:						Any=0.02  ,					_A		:						Optional[int]=1E-12  ,					_A		:						Tuple=0  ,					_A		:						List[str]=10.0  ,					_A		:						List[Any]=0  ,					_A		:						int=1.0  ,					_A		:						Optional[Any]=None  ,					_A		:						str=1.0  ,					_A		:						Optional[Any]=False  ,					_A		:						Optional[Any]=None  ,					_A		:						List[str]=1.0  ,					_A		:						List[Any]=1.0  ,					_A		:						Optional[int]=False  ,					_A		:						Tuple=False  ,					_A		:						Tuple="ratio"  ,					_A		:						Tuple=None  ,					_A		:						int=None  ,					_A		:						List[Any]=64  ,					_A		:						List[Any]=32  ,					_A		:						Optional[int]=False  ,					_A		:						Dict=True  ,					_A		:						Optional[Any]=False  ,					_A		:						List[str]=False  ,					_A		:						Optional[int]=True  ,					_A		:						Any=False  ,					_A		:						int=None  ,					_A		:						List[str]=None  ,					**_A		:						Any  ,					)  ->			Tuple:
			super().__init__(pad_token_id=_A  ,					**_A      )

			# BERT hyperparameters (with updated max_position_embeddings and type_vocab_sizes)
			__magic_name__	:   str					     =					vocab_size
			__magic_name__	:   List[Any]					     =					hidden_size
			__magic_name__	:   Tuple					     =					num_hidden_layers
			__magic_name__	:   List[str]					     =					num_attention_heads
			__magic_name__	:   Any					     =					hidden_act
			__magic_name__	:   Union[str, Any]					     =					intermediate_size
			__magic_name__	:   Optional[int]					     =					hidden_dropout_prob
			__magic_name__	:   Optional[int]					     =					attention_probs_dropout_prob
			__magic_name__	:   str					     =					max_position_embeddings
			__magic_name__	:   Optional[Any]					     =					type_vocab_sizes
			__magic_name__	:   int					     =					initializer_range
			__magic_name__	:   Any					     =					layer_norm_eps

			# Fine-tuning task hyperparameters
			__magic_name__	:   List[Any]					     =					positive_label_weight
			__magic_name__	:   str					     =					num_aggregation_labels
			__magic_name__	:   Optional[int]					     =					aggregation_loss_weight
			__magic_name__	:   Optional[Any]					     =					use_answer_as_supervision
			__magic_name__	:   List[str]					     =					answer_loss_importance
			__magic_name__	:   int					     =					use_normalized_answer_loss
			__magic_name__	:   Optional[Any]					     =					huber_loss_delta
			__magic_name__	:   Any					     =					temperature
			__magic_name__	:   Any					     =					aggregation_temperature
			__magic_name__	:   int					     =					use_gumbel_for_cells
			__magic_name__	:   Dict					     =					use_gumbel_for_aggregation
			__magic_name__	:   List[Any]					     =					average_approximation_function
			__magic_name__	:   str					     =					cell_selection_preference
			__magic_name__	:   str					     =					answer_loss_cutoff
			__magic_name__	:   Union[str, Any]					     =					max_num_rows
			__magic_name__	:   List[str]					     =					max_num_columns
			__magic_name__	:   int					     =					average_logits_per_cell
			__magic_name__	:   str					     =					select_one_column
			__magic_name__	:   List[str]					     =					allow_empty_column_selection
			__magic_name__	:   Dict					     =					init_cell_selection_weights_to_zero
			__magic_name__	:   Union[str, Any]					     =					reset_position_index_per_cell
			__magic_name__	:   Optional[int]					     =					disable_per_token_loss

			# Aggregation hyperparameters
			__magic_name__	:   Optional[int]					     =					aggregation_labels
			__magic_name__	:   str					     =					no_aggregation_label_index

			if isinstance(self.aggregation_labels  ,					_A      ):
				__magic_name__	:   List[str]					     =					{int(_A      ): v for k, v in aggregation_labels.items()}



'''simple docstring'''

def lowerCamelCase      (      lowerCAmelCase    :     str		):





	"""simple docstring"""







	return "".join(chr(ord(lowerCAmelCase		) - 32		) if 'a' <= char <= 'z' else char for char in word		)


if __name__ == "__main__":
							from doctest import testmod

							testmod()