import warnings

from ...utils import logging
from .image_processing_segformer import SegformerImageProcessor


__SCREAMING_SNAKE_CASE						:   int         =			logging.get_logger(__name__)



class        lowercase_   (					__snake_case		):



							def __init__(						self				,    *lowercase_				,    **lowercase_    ):
													warnings.warn(
													    "The class SegformerFeatureExtractor is deprecated and will be removed in version 5 of Transformers."
													    " Please use SegformerImageProcessor instead."				,    lowercase_				,    )
													super().__init__(*lowercase_				,    **lowercase_    )
import logging

from transformers import PretrainedConfig


__SCREAMING_SNAKE_CASE						:   Any         =			logging.getLogger(__name__)


__SCREAMING_SNAKE_CASE						:   int         =			{
    'bertabs-finetuned-cnndm': 'https://huggingface.co/remi/bertabs-finetuned-cnndm-extractive-abstractive-summarization/resolve/main/config.json',
}



class        lowercase_   (					__snake_case		):
							_lowerCamelCase						=		'bertabs'



							def __init__(						self				,    lowercase_=30_522				,    lowercase_=512				,    lowercase_=6				,    lowercase_=512				,    lowercase_=8				,    lowercase_=512				,    lowercase_=0.2				,    lowercase_=6				,    lowercase_=768				,    lowercase_=8				,    lowercase_=2_048				,    lowercase_=0.2				,    **lowercase_				,    ):
													super().__init__(**lowercase_    )

													_snake_case						:					List[Any]    =   vocab_size
													_snake_case						:					int    =   max_pos

													_snake_case						:					Tuple    =   enc_layers
													_snake_case						:					Optional[Any]    =   enc_hidden_size
													_snake_case						:					Union[str, Any]    =   enc_heads
													_snake_case						:					str    =   enc_ff_size
													_snake_case						:					Any    =   enc_dropout

													_snake_case						:					Tuple    =   dec_layers
													_snake_case						:					Optional[Any]    =   dec_hidden_size
													_snake_case						:					Dict    =   dec_heads
													_snake_case						:					str    =   dec_ff_size
													_snake_case						:					List[str]    =   dec_dropout