
'''simple docstring'''







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


_lowercase :  List[Any]    							=       logging.get_logger(__name__)

_lowercase :  str    							=       {
    "SCUT-DLVCLab/lilt-roberta-en-base": (
        "https://huggingface.co/SCUT-DLVCLab/lilt-roberta-en-base/resolve/main/config.json"
    ),
}






class  lowerCAmelCase__   (  lowerCamelCase_     ):
					lowerCAmelCase_        =     '''lilt'''






					def __init__(   self				,							__SCREAMING_SNAKE_CASE=3_05_22				,							__SCREAMING_SNAKE_CASE=7_68				,							__SCREAMING_SNAKE_CASE=12				,							__SCREAMING_SNAKE_CASE=12				,							__SCREAMING_SNAKE_CASE=30_72				,							__SCREAMING_SNAKE_CASE="gelu"				,							__SCREAMING_SNAKE_CASE=0.1				,							__SCREAMING_SNAKE_CASE=0.1				,							__SCREAMING_SNAKE_CASE=5_12				,							__SCREAMING_SNAKE_CASE=2				,							__SCREAMING_SNAKE_CASE=0.02				,							__SCREAMING_SNAKE_CASE=1E-1_2				,							__SCREAMING_SNAKE_CASE=0				,							__SCREAMING_SNAKE_CASE="absolute"				,							__SCREAMING_SNAKE_CASE=None				,							__SCREAMING_SNAKE_CASE=4				,							__SCREAMING_SNAKE_CASE=10_24				,							**__SCREAMING_SNAKE_CASE				,							):


											"""simple docstring"""





											super().__init__(pad_token_id=__SCREAMING_SNAKE_CASE				,							**__SCREAMING_SNAKE_CASE		)

											lowercase_	:     Tuple													=       vocab_size
											lowercase_	:     Dict													=       hidden_size
											lowercase_	:     int													=       num_hidden_layers
											lowercase_	:     Union[str, Any]													=       num_attention_heads
											lowercase_	:     Tuple													=       hidden_act
											lowercase_	:     List[str]													=       intermediate_size
											lowercase_	:     int													=       hidden_dropout_prob
											lowercase_	:     Dict													=       attention_probs_dropout_prob
											lowercase_	:     Optional[int]													=       max_position_embeddings
											lowercase_	:     int													=       type_vocab_size
											lowercase_	:     List[str]													=       initializer_range
											lowercase_	:     Tuple													=       layer_norm_eps
											lowercase_	:     Tuple													=       position_embedding_type
											lowercase_	:     Tuple													=       classifier_dropout
											lowercase_	:     Any													=       channel_shrink_ratio
											lowercase_	:     List[Any]													=       max_ad_position_embeddings







import copy
from dataclasses import dataclass, field
from typing import ClassVar, Dict

from ..features import Audio, Features, Value
from .base import TaskTemplate







@dataclass(frozen=lowercase__)
class 			_lowercase (							lowercase__):


       """simple docstring"""




       A__											=			field(default="automatic-speech-recognition"							,  metadata={"include_in_asdict_even_if_is_default": True})
       A__											=			Features({"audio": Audio()})
       A__											=			Features({"transcription": Value("string")})
       A__											=			"audio"
       A__											=			"transcription"





       def 						lowerCAmelCase     (   self							:			Any					,      __lowerCamelCase							:			int       ):


             '''simple docstring'''



             if self.audio_column not in features:
                   raise ValueError(f"Column {self.audio_column} is not present in features."       )
             if not isinstance(features[self.audio_column]					,      __lowerCamelCase       ):
                   raise ValueError(f"Column {self.audio_column} is not an Audio type."       )
             lowerCamelCase__		:				Tuple    =  copy.deepcopy(self       )
             lowerCamelCase__		:				Tuple    =  self.input_schema.copy()
             lowerCamelCase__		:				Optional[int]    =  features[self.audio_column]
             lowerCamelCase__		:				int    =  input_schema
             return task_template





       @property
       def 						lowerCAmelCase     (   self							:			int       ):


             '''simple docstring'''



             return {self.audio_column: "audio", self.transcription_column: "transcription"}


