



"""simple docstring"""





from collections import OrderedDict
from typing import Mapping

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


lowerCamelCase       	=						logging.get_logger(__name__)

lowerCamelCase       	=						{
    """facebook/xlm-roberta-xl""": """https://huggingface.co/facebook/xlm-roberta-xl/resolve/main/config.json""",
    """facebook/xlm-roberta-xxl""": """https://huggingface.co/facebook/xlm-roberta-xxl/resolve/main/config.json""",
    # See all XLM-RoBERTa-XL models at https://huggingface.co/models?filter=xlm-roberta-xl
}
class 				lowercase__       (   SCREAMING_SNAKE_CASE				):







       '''simple docstring'''


       UpperCamelCase						=					'''xlm-roberta-xl'''



       def __init__(							self      :  Any		,    _UpperCAmelCase      :  Tuple=250880		,    _UpperCAmelCase      :  List[str]=2560		,    _UpperCAmelCase      :  Union[str, Any]=36		,    _UpperCAmelCase      :  Tuple=32		,    _UpperCAmelCase      :  str=10240		,    _UpperCAmelCase      :  List[str]="gelu"		,    _UpperCAmelCase      :  Optional[int]=0.1		,    _UpperCAmelCase      :  str=0.1		,    _UpperCAmelCase      :  Optional[Any]=514		,    _UpperCAmelCase      :  Optional[int]=1		,    _UpperCAmelCase      :  Optional[int]=0.02		,    _UpperCAmelCase      :  List[str]=1e-05		,    _UpperCAmelCase      :  List[Any]=1		,    _UpperCAmelCase      :  Dict=0		,    _UpperCAmelCase      :  Dict=2		,    _UpperCAmelCase      :  Dict="absolute"		,    _UpperCAmelCase      :  Tuple=True		,    _UpperCAmelCase      :  Dict=None		,    **_UpperCAmelCase      :  List[Any]		,    )			->						str:


             '''simple docstring'''




             super().__init__(pad_token_id=_UpperCAmelCase		,    bos_token_id=_UpperCAmelCase		,    eos_token_id=_UpperCAmelCase		,    **_UpperCAmelCase   )
             UpperCAmelCase_      			=							vocab_size
             UpperCAmelCase_      			=							hidden_size
             UpperCAmelCase_      			=							num_hidden_layers
             UpperCAmelCase_      			=							num_attention_heads
             UpperCAmelCase_      			=							hidden_act
             UpperCAmelCase_      			=							intermediate_size
             UpperCAmelCase_      			=							hidden_dropout_prob
             UpperCAmelCase_      			=							attention_probs_dropout_prob
             UpperCAmelCase_      			=							max_position_embeddings
             UpperCAmelCase_      			=							type_vocab_size
             UpperCAmelCase_      			=							initializer_range
             UpperCAmelCase_      			=							layer_norm_eps
             UpperCAmelCase_      			=							position_embedding_type
             UpperCAmelCase_      			=							use_cache
             UpperCAmelCase_      			=							classifier_dropout



class 				lowercase__       (   SCREAMING_SNAKE_CASE				):







       '''simple docstring'''


       @property
       def 					lowercase__    (							self      :  Tuple   )			->						Mapping[str, Mapping[int, str]]:


             '''simple docstring'''




             if self.task == "multiple-choice":
                   UpperCAmelCase_      			=							{0: "batch", 1: "choice", 2: "sequence"}
             else:
                   UpperCAmelCase_      			=							{0: "batch", 1: "sequence"}
             return OrderedDict(
                 [
                     ("input_ids", dynamic_axis),
                     ("attention_mask", dynamic_axis),
                 ]   )









"""simple docstring"""





def        a__     (				lowerCAmelCase__     ,      lowerCAmelCase__				):
      return [sentence[i : i + ngram_size] for i in range(len(lowerCAmelCase__				) - ngram_size + 1				)]


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

  testmod()




