






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

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


@dataclass(frozen=_lowerCAmelCase   )
class        __UpperCamelCase    (     _lowerCAmelCase   ):
	# `task` is not a ClassVar since we want it to be part of the `asdict` output for JSON serialization
	__snake_case	:str   =       field(default='question-answering-extractive'   ,			metadata={'include_in_asdict_even_if_is_default': True}   )
	__snake_case	:ClassVar[Features]   =       Features({'question': Value('string'   ), 'context': Value('string'   )}   )
	__snake_case	:ClassVar[Features]   =       Features(
	    {
	        'answers': Sequence(
	            {
	                'text': Value('string'   ),
	                'answer_start': Value('int32'   ),
	            }   )
	    }   )
	__snake_case	:str   =       "question"
	__snake_case	:str   =       "context"
	__snake_case	:str   =       "answers"







	@property
	def  _a   (  self      :							Optional[int]			)		-> Dict[str, str]:
		"""simple docstring"""







		return {self.question_column: "question", self.context_column: "context", self.answers_column: "answers"}










from __future__ import annotations





def 				snake_case  (     lowerCamelCase					):




	'''simple docstring'''







	if not nums:
		return 0
	__lowercase             =  nums[0]
	__lowercase             =  0
	for num in nums[1:]:
		__lowercase       ,						__lowercase             =  (
		    max_excluding + num,
		    max(lowerCamelCase				,  lowerCamelCase					),
		)
	return max(lowerCamelCase				,  lowerCamelCase					)


if __name__ == "__main__":
						import doctest

						doctest.testmod()

