



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     lowerCAmelCase_		(  a__							):
       UpperCAmelCase__    : Optional[int]       					=  "roc_bert"
       def __init__(      self,      SCREAMING_SNAKE_CASE_=3_0522,      SCREAMING_SNAKE_CASE_=768,      SCREAMING_SNAKE_CASE_=12,      SCREAMING_SNAKE_CASE_=12,      SCREAMING_SNAKE_CASE_=3072,      SCREAMING_SNAKE_CASE_="gelu",      SCREAMING_SNAKE_CASE_=0.1,      SCREAMING_SNAKE_CASE_=0.1,      SCREAMING_SNAKE_CASE_=512,      SCREAMING_SNAKE_CASE_=2,      SCREAMING_SNAKE_CASE_=0.02,      SCREAMING_SNAKE_CASE_=1e-12,      SCREAMING_SNAKE_CASE_=True,      SCREAMING_SNAKE_CASE_=0,      SCREAMING_SNAKE_CASE_="absolute",      SCREAMING_SNAKE_CASE_=None,      SCREAMING_SNAKE_CASE_=True,      SCREAMING_SNAKE_CASE_=True,      SCREAMING_SNAKE_CASE_=768,      SCREAMING_SNAKE_CASE_=910,      SCREAMING_SNAKE_CASE_=512,      SCREAMING_SNAKE_CASE_=2_4858,      SCREAMING_SNAKE_CASE_=True,      **SCREAMING_SNAKE_CASE_,      )					->		int:
          UpperCamelCase   :  Any						     =     vocab_size
          UpperCamelCase   :  Any						     =     max_position_embeddings
          UpperCamelCase   :  Optional[Any]						     =     hidden_size
          UpperCamelCase   :  Tuple						     =     num_hidden_layers
          UpperCamelCase   :  Tuple						     =     num_attention_heads
          UpperCamelCase   :  Dict						     =     intermediate_size
          UpperCamelCase   :  Optional[Any]						     =     hidden_act
          UpperCamelCase   :  Tuple						     =     hidden_dropout_prob
          UpperCamelCase   :  List[Any]						     =     attention_probs_dropout_prob
          UpperCamelCase   :  Tuple						     =     initializer_range
          UpperCamelCase   :  Any						     =     type_vocab_size
          UpperCamelCase   :  Any						     =     layer_norm_eps
          UpperCamelCase   :  Union[str, Any]						     =     use_cache
          UpperCamelCase   :  Any						     =     enable_pronunciation
          UpperCamelCase   :  List[Any]						     =     enable_shape
          UpperCamelCase   :  List[str]						     =     pronunciation_embed_dim
          UpperCamelCase   :  Optional[int]						     =     pronunciation_vocab_size
          UpperCamelCase   :  str						     =     shape_embed_dim
          UpperCamelCase   :  Tuple						     =     shape_vocab_size
          UpperCamelCase   :  Optional[int]						     =     concat_input
          UpperCamelCase   :  Dict						     =     position_embedding_type
          UpperCamelCase   :  List[str]						     =     classifier_dropout
          super().__init__(pad_token_id=SCREAMING_SNAKE_CASE_,      **SCREAMING_SNAKE_CASE_	)








# tests directory-specific settings - this file is run automatically
# by pytest before any tests are run

import sys
import warnings
from os.path import abspath, dirname, join


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
__UpperCAmelCase	       =	abspath(join(dirname(dirname(dirname(__file__))), '''src'''))
sys.path.insert(1, git_repo_path)


# silence FutureWarning warnings in tests since often we can't act on them until
# they become normal warnings - i.e. the tests still need to test the current functionality
warnings.simplefilter(action='''ignore''', category=FutureWarning)
def 		UpperCamelCase     (       snake_case__	:   Dict     )     ->					List[str]:
   from transformers.testing_utils import pytest_addoption_shared

   pytest_addoption_shared(snake_case__     )


def 		UpperCamelCase     (       snake_case__	:   List[Any]     )     ->					Dict:
   from transformers.testing_utils import pytest_terminal_summary_main

   UpperCamelCase   :  Optional[int]						     =     terminalreporter.config.getoption('--make-reports'     )
   if make_reports:
      pytest_terminal_summary_main(snake_case__	,					id=snake_case__     )



