
from collections import OrderedDict
from typing import Mapping

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


__lowercase											=      logging.get_logger(__name__)

__lowercase											=      {
    '''facebook/data2vec-text-base''': '''https://huggingface.co/data2vec/resolve/main/config.json''',
}


class 			lowerCamelCase_  (     UpperCAmelCase_				):






    '''simple docstring'''






    a__			:		Dict      			=   """data2vec-text"""







    def __init__(			self				,				__lowercase=30_522				,				__lowercase=768				,				__lowercase=12				,				__lowercase=12				,				__lowercase=3_072				,				__lowercase="gelu"				,				__lowercase=0.1				,				__lowercase=0.1				,				__lowercase=512				,				__lowercase=2				,				__lowercase=0.02				,				__lowercase=1E-1_2				,				__lowercase=1				,				__lowercase=0				,				__lowercase=2				,				__lowercase="absolute"				,				__lowercase=True				,				__lowercase=None				,				**__lowercase				,				) ->			Tuple:
        super().__init__(pad_token_id=__lowercase				,				bos_token_id=__lowercase				,				eos_token_id=__lowercase				,				**__lowercase)

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


class 			lowerCamelCase_  (     UpperCAmelCase_				):






    '''simple docstring'''






    @property
    def     UpperCamelCase__     (			self) ->			Mapping[str, Mapping[int, str]]:
        if self.task == "multiple-choice":
            __UpperCamelCase  :int    						=	{0: '''batch''', 1: '''choice''', 2: '''sequence'''}
        else:
            __UpperCamelCase  :Optional[Any]    						=	{0: '''batch''', 1: '''sequence'''}
        return OrderedDict(
            [
                ('''input_ids''', dynamic_axis),
                ('''attention_mask''', dynamic_axis),
            ])






from typing import List

import datasets
from datasets.tasks import AudioClassification

from ..folder_based_builder import folder_based_builder


__lowercase											=      datasets.utils.logging.get_logger(__name__)


class 			lowerCamelCase_  (     folder_based_builder.FolderBasedBuilderConfig				):






    '''simple docstring'''






    a__			:		bool      			=   None
    a__			:		bool      			=   None


class 			lowerCamelCase_  (     folder_based_builder.FolderBasedBuilder				):






    '''simple docstring'''






    a__			:		List[Any]      			=   datasets.Audio()
    a__			:		int      			=   """audio"""
    a__			:		str      			=   AudioFolderConfig
    a__			:		List[str]  # definition at the bottom of the script
    a__			:		int      			=   AudioClassification(audio_column="""audio"""		,			label_column="""label"""				)
__lowercase											=      [
    '''.aiff''',
    '''.au''',
    '''.avr''',
    '''.caf''',
    '''.flac''',
    '''.htk''',
    '''.svx''',
    '''.mat4''',
    '''.mat5''',
    '''.mpc2k''',
    '''.ogg''',
    '''.paf''',
    '''.pvf''',
    '''.raw''',
    '''.rf64''',
    '''.sd2''',
    '''.sds''',
    '''.ircam''',
    '''.voc''',
    '''.w64''',
    '''.wav''',
    '''.nist''',
    '''.wavex''',
    '''.wve''',
    '''.xi''',
    '''.mp3''',
    '''.opus''',
]
__lowercase											=      AUDIO_EXTENSIONS





