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

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







@dataclass(frozen=__lowercase  )
class 					lowerCamelCase		(  __lowercase  ):
     UpperCAmelCase__    :							str									=		field(default="question-answering-extractive"							,			metadata={"include_in_asdict_even_if_is_default": True}  )
     UpperCAmelCase__    :							ClassVar[Features]									=		Features({"question": Value("string"  ), "context": Value("string"  )}  )
     UpperCAmelCase__    :							ClassVar[Features]									=		Features(
         {
             "answers": Sequence(
                 {
                     "text": Value("string"  ),
                     "answer_start": Value("int32"  ),
                 }  )
         }  )
     UpperCAmelCase__    :							str									=		"question"
     UpperCAmelCase__    :							str									=		"context"
     UpperCAmelCase__    :							str									=		"answers"





     @property
     def 		UpperCAmelCase(self				:   Dict       )						->						Dict[str, str]:
         return {self.question_column: "question", self.context_column: "context", self.answers_column: "answers"}



from __future__ import annotations



def 						lowercase_      (       A__			,		A__			,		A__		)							->							int | float:
    """simple docstring"""

    if len(A__		) == 0:
        raise ValueError("find_max() arg is an empty sequence"		)
    if (
        left >= len(A__		)
        or left < -len(A__		)
        or right >= len(A__		)
        or right < -len(A__		)
    ):
        raise IndexError("list index out of range"		)
    if left == right:
        return nums[left]
    snake_case								= (left + right) >> 1  # the middle
    snake_case								= find_max(A__			,		A__			,		A__		)  # find max in range[left, mid]
    snake_case								= find_max(A__			,		mid + 1			,		A__		)  # find max in range[mid + 1, right]

    return left_max if left_max >= right_max else right_max


if __name__ == "__main__":
   import doctest

   doctest.testmod(verbose=True)

