
"""simple docstring"""



from ...configuration_utils import PretrainedConfig
from ...utils import logging


__lowercase						:     int							      =		logging.get_logger(__name__)

__lowercase						:     Optional[Any]							      =		{
    """studio-ousia/luke-base""": """https://huggingface.co/studio-ousia/luke-base/resolve/main/config.json""",
    """studio-ousia/luke-large""": """https://huggingface.co/studio-ousia/luke-large/resolve/main/config.json""",
}





class 					lowerCAmelCase			(				snake_case_					):
     """simple docstring"""







     __lowercase						:List[Any]          =    "luke"




     def __init__(      self ,		UpperCamelCase__=50_267 ,		UpperCamelCase__=500_000 ,		UpperCamelCase__=768 ,		UpperCamelCase__=256 ,		UpperCamelCase__=12 ,		UpperCamelCase__=12 ,		UpperCamelCase__=3_072 ,		UpperCamelCase__="gelu" ,		UpperCamelCase__=0.1 ,		UpperCamelCase__=0.1 ,		UpperCamelCase__=512 ,		UpperCamelCase__=2 ,		UpperCamelCase__=0.02 ,		UpperCamelCase__=1e-12 ,		UpperCamelCase__=True ,		UpperCamelCase__=None ,		UpperCamelCase__=1 ,		UpperCamelCase__=0 ,		UpperCamelCase__=2 ,		**UpperCamelCase__ ,		)					->  Dict:







            '''simple docstring'''





            super().__init__(pad_token_id=UpperCamelCase__ ,		bos_token_id=UpperCamelCase__ ,		eos_token_id=UpperCamelCase__ ,		**UpperCamelCase__							)

            lowerCamelCase_       							=		vocab_size
            lowerCamelCase_       							=		entity_vocab_size
            lowerCamelCase_       							=		hidden_size
            lowerCamelCase_       							=		entity_emb_size
            lowerCamelCase_       							=		num_hidden_layers
            lowerCamelCase_       							=		num_attention_heads
            lowerCamelCase_       							=		hidden_act
            lowerCamelCase_       							=		intermediate_size
            lowerCamelCase_       							=		hidden_dropout_prob
            lowerCamelCase_       							=		attention_probs_dropout_prob
            lowerCamelCase_       							=		max_position_embeddings
            lowerCamelCase_       							=		type_vocab_size
            lowerCamelCase_       							=		initializer_range
            lowerCamelCase_       							=		layer_norm_eps
            lowerCamelCase_       							=		use_entity_aware_attention
            lowerCamelCase_       							=		classifier_dropout

import enum
import shutil
import sys


__A,		__A							=shutil.get_terminal_size()

__A							={'''UP''': '''A''', '''DOWN''': '''B''', '''RIGHT''': '''C''', '''LEFT''': '''D'''}




class        _SCREAMING_SNAKE_CASE	( enum.Enum		):
	lowerCAmelCase__   =					0
	lowerCAmelCase__   =					1





def      lowerCamelCase_					(							lowerCamelCase__      ,					lowerCamelCase__=""       ):
				sys.stdout.write(str(lowerCamelCase__       ) + end       )
				sys.stdout.flush()





def      lowerCamelCase_					(							lowerCamelCase__      ,					lowerCamelCase__      ,					lowerCamelCase__=""       ):
				forceWrite(F'\u001b[{color}m{content}\u001b[0m'      ,					lowerCamelCase__       )





def      lowerCamelCase_					(							):
				forceWrite("\r"       )





def      lowerCamelCase_					(							lowerCamelCase__      ,					lowerCamelCase__       ):
				forceWrite(F'\033[{num_lines}{CURSOR_TO_CHAR[direction.upper()]}'       )





def      lowerCamelCase_					(							):
				forceWrite(" " * TERMINAL_WIDTH       )
				reset_cursor()





def      lowerCamelCase_					(							):
				reset_cursor()
				forceWrite("-" * TERMINAL_WIDTH       )


