





'''simple docstring'''




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


_SCREAMING_SNAKE_CASE							     =			logging.get_logger(__name__)

_SCREAMING_SNAKE_CASE							     =			{
    """microsoft/markuplm-base""": """https://huggingface.co/microsoft/markuplm-base/resolve/main/config.json""",
    """microsoft/markuplm-large""": """https://huggingface.co/microsoft/markuplm-large/resolve/main/config.json""",
}
class 			_lowerCAmelCase		(			__lowercase	):






     """simple docstring"""






     snake_case_						      =   '''markuplm'''



     def __init__(   self							:			Dict   ,       __snake_case							:			Tuple=3_05_22   ,       __snake_case							:			int=7_68   ,       __snake_case							:			Dict=12   ,       __snake_case							:			List[str]=12   ,       __snake_case							:			List[Any]=30_72   ,       __snake_case							:			Tuple="gelu"   ,       __snake_case							:			str=0.1   ,       __snake_case							:			List[str]=0.1   ,       __snake_case							:			Dict=5_12   ,       __snake_case							:			Optional[Any]=2   ,       __snake_case							:			Tuple=0.02   ,       __snake_case							:			List[str]=1e-12   ,       __snake_case							:			int=0   ,       __snake_case							:			List[str]=0   ,       __snake_case							:			List[Any]=2   ,       __snake_case							:			str=2_56   ,       __snake_case							:			Tuple=10_24   ,       __snake_case							:			Tuple=2_16   ,       __snake_case							:			List[str]=10_01   ,       __snake_case							:			List[str]=32   ,       __snake_case							:			Optional[Any]=50   ,       __snake_case							:			Tuple="absolute"   ,       __snake_case							:			List[str]=True   ,       __snake_case							:			Union[str, Any]=None   ,       **__snake_case							:			List[str]   ,       )->	Tuple:
        super().__init__(
            pad_token_id=_lowerCAmelCase   ,       bos_token_id=_lowerCAmelCase   ,       eos_token_id=_lowerCAmelCase   ,       **_lowerCAmelCase   ,       )
        snake_case 						=   vocab_size
        snake_case 						=   hidden_size
        snake_case 						=   num_hidden_layers
        snake_case 						=   num_attention_heads
        snake_case 						=   hidden_act
        snake_case 						=   intermediate_size
        snake_case 						=   hidden_dropout_prob
        snake_case 						=   attention_probs_dropout_prob
        snake_case 						=   max_position_embeddings
        snake_case 						=   type_vocab_size
        snake_case 						=   initializer_range
        snake_case 						=   layer_norm_eps
        snake_case 						=   position_embedding_type
        snake_case 						=   use_cache
        snake_case 						=   classifier_dropout
        # additional properties
        snake_case 						=   max_depth
        snake_case 						=   max_xpath_tag_unit_embeddings
        snake_case 						=   max_xpath_subs_unit_embeddings
        snake_case 						=   tag_pad_id
        snake_case 						=   subs_pad_id
        snake_case 						=   xpath_unit_hidden_size








import re






def 		lowerCAmelCase  (	UpperCamelCase__   :   str					)      ->    bool:

						"""simple docstring"""





						__SCREAMING_SNAKE_CASE:				Optional[int]           =   re.compile(
						    R'''^(?:0|94|\+94|0{2}94)''' R'''7(0|1|2|4|5|6|7|8)''' R'''(-| |)''' R'''\d{7}$'''					)

						return bool(re.search(UpperCamelCase__       ,			UpperCamelCase__					)					)


if __name__ == "__main__":
							lowerCAmelCase							:       str					 =	"""0094702343221"""

							print(is_sri_lankan_phone_number(phone))



