




"""simple docstring"""






from graphs.minimum_spanning_tree_kruskal import kruskal





def 							UpperCAmelCase		(		):
					_lowerCAmelCase:List[str]									=  9
					_lowerCAmelCase:Union[str, Any]									=  [
					    [0, 1, 4],
					    [0, 7, 8],
					    [1, 2, 8],
					    [7, 8, 7],
					    [7, 6, 1],
					    [2, 8, 2],
					    [8, 6, 6],
					    [2, 3, 7],
					    [2, 5, 4],
					    [6, 5, 2],
					    [3, 5, 14],
					    [3, 4, 9],
					    [5, 4, 10],
					    [1, 7, 11],
					]

					_lowerCAmelCase:List[str]									=  kruskal(snake_case      ,       snake_case    )

					_lowerCAmelCase:List[str]									=  [
					    [7, 6, 1],
					    [2, 8, 2],
					    [6, 5, 2],
					    [0, 1, 4],
					    [2, 5, 4],
					    [2, 3, 7],
					    [0, 7, 8],
					    [3, 4, 9],
					]

					assert sorted(snake_case    ) == sorted(snake_case    )












"""simple docstring"""






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


UpperCamelCase__						=			logging.get_logger(__name__)

UpperCamelCase__						=			{
    '''weiweishi/roc-bert-base-zh''': '''https://huggingface.co/weiweishi/roc-bert-base-zh/resolve/main/config.json''',
}




class   a__			(       UpperCamelCase_  ):
						snake_case__             = '''roc_bert'''





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




											"""simple docstring"""







											_lowerCAmelCase:Tuple									=  vocab_size
											_lowerCAmelCase:Any									=  max_position_embeddings
											_lowerCAmelCase:Union[str, Any]									=  hidden_size
											_lowerCAmelCase:Optional[Any]									=  num_hidden_layers
											_lowerCAmelCase:int									=  num_attention_heads
											_lowerCAmelCase:int									=  intermediate_size
											_lowerCAmelCase:Union[str, Any]									=  hidden_act
											_lowerCAmelCase:Any									=  hidden_dropout_prob
											_lowerCAmelCase:List[Any]									=  attention_probs_dropout_prob
											_lowerCAmelCase:List[Any]									=  initializer_range
											_lowerCAmelCase:Dict									=  type_vocab_size
											_lowerCAmelCase:Dict									=  layer_norm_eps
											_lowerCAmelCase:str									=  use_cache
											_lowerCAmelCase:Any									=  enable_pronunciation
											_lowerCAmelCase:List[str]									=  enable_shape
											_lowerCAmelCase:Optional[int]									=  pronunciation_embed_dim
											_lowerCAmelCase:Union[str, Any]									=  pronunciation_vocab_size
											_lowerCAmelCase:str									=  shape_embed_dim
											_lowerCAmelCase:List[Any]									=  shape_vocab_size
											_lowerCAmelCase:str									=  concat_input
											_lowerCAmelCase:Optional[int]									=  position_embedding_type
											_lowerCAmelCase:Any									=  classifier_dropout
											super().__init__(pad_token_id=a__     ,**a__)






