


'''simple docstring'''



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


__UpperCAmelCase      :List[str]			    =       logging.get_logger(__name__)

__UpperCAmelCase      :int			    =       {
    "speechbrain/m-ctc-t-large": "https://huggingface.co/speechbrain/m-ctc-t-large/resolve/main/config.json",
    # See all M-CTC-T models at https://huggingface.co/models?filter=mctct
}



class      a    (		a_	):


     """simple docstring"""






     SCREAMING_SNAKE_CASE	:			List[Any]							       =       "mctct"

     def __init__(    self					:		Dict							,			snake_case					:		str=8065							,			snake_case					:		List[Any]=1536							,			snake_case					:		str=36							,			snake_case					:		Union[str, Any]=6144							,			snake_case					:		Union[str, Any]=4							,			snake_case					:		str=384							,			snake_case					:		Union[str, Any]=920							,			snake_case					:		Dict=1E-5							,			snake_case					:		List[str]=0.3							,			snake_case					:		Tuple="relu"							,			snake_case					:		int=0.02							,			snake_case					:		int=0.3							,			snake_case					:		List[Any]=0.3							,			snake_case					:		Union[str, Any]=1							,			snake_case					:		List[str]=0							,			snake_case					:		List[str]=2							,			snake_case					:		Optional[int]=1							,			snake_case					:		List[Any]=0.3							,			snake_case					:		int=1							,			snake_case					:		Tuple=(7,)							,			snake_case					:		Dict=(3,)							,			snake_case					:		str=80							,			snake_case					:		Any=1							,			snake_case					:		Dict=None							,			snake_case					:		Dict="sum"							,			snake_case					:		Optional[Any]=False							,			**snake_case					:		Tuple							,			)						->							List[Any]:
          super().__init__(**snake_case							,			pad_token_id=snake_case							,			bos_token_id=snake_case							,			eos_token_id=snake_case      )
          __UpperCAmelCase     :			List[str]  							=      vocab_size
          __UpperCAmelCase     :			Union[str, Any]  							=      hidden_size
          __UpperCAmelCase     :			Union[str, Any]  							=      num_hidden_layers
          __UpperCAmelCase     :			str  							=      intermediate_size
          __UpperCAmelCase     :			Union[str, Any]  							=      num_attention_heads
          __UpperCAmelCase     :			Optional[Any]  							=      attention_head_dim
          __UpperCAmelCase     :			List[str]  							=      max_position_embeddings
          __UpperCAmelCase     :			Optional[Any]  							=      layer_norm_eps
          __UpperCAmelCase     :			Optional[int]  							=      layerdrop
          __UpperCAmelCase     :			Tuple  							=      hidden_act
          __UpperCAmelCase     :			str  							=      initializer_range
          __UpperCAmelCase     :			List[str]  							=      hidden_dropout_prob
          __UpperCAmelCase     :			Optional[int]  							=      attention_probs_dropout_prob
          __UpperCAmelCase     :			int  							=      pad_token_id
          __UpperCAmelCase     :			str  							=      bos_token_id
          __UpperCAmelCase     :			Dict  							=      eos_token_id
          __UpperCAmelCase     :			List[str]  							=      conv_glu_dim
          __UpperCAmelCase     :			List[Any]  							=      conv_dropout
          __UpperCAmelCase     :			Union[str, Any]  							=      num_conv_layers
          __UpperCAmelCase     :			Optional[Any]  							=      input_feat_per_channel
          __UpperCAmelCase     :			Optional[int]  							=      input_channels
          __UpperCAmelCase     :			Optional[Any]  							=      conv_channels
          __UpperCAmelCase     :			int  							=      ctc_loss_reduction
          __UpperCAmelCase     :			Any  							=      ctc_zero_infinity

          # prevents config testing fail with exporting to json
          __UpperCAmelCase     :			Optional[Any]  							=      list(snake_case      )
          __UpperCAmelCase     :			int  							=      list(snake_case      )

          if len(self.conv_kernel      ) != self.num_conv_layers:
               raise ValueError(
                   '''Configuration for convolutional module is incorrect. '''
                   '''It is required that `len(config.conv_kernel)` == `config.num_conv_layers` '''
                   f'but is `len(config.conv_kernel) = {len(self.conv_kernel      )}`, '
                   f'`config.num_conv_layers = {self.num_conv_layers}`.'      )



'''simple docstring'''



import requests

__UpperCAmelCase      :Union[str, Any]			    =       "https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey="




def      _a     (						_lowercase :     str  ):





     '''simple docstring'''






     __UpperCAmelCase     :			Union[str, Any]  							=      requests.get(_NEWS_API + bbc_news_api_key  ).json()
     # each article in the list is a dict
     for i, article in enumerate(bbc_news_page['''articles''']      , 1  ):
          print(F'{i}.) {article["title"]}'  )


if __name__ == "__main__":
      fetch_bbc_news(bbc_news_api_key="<Your BBC News API key goes here>")