

"""simple docstring"""




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

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


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





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







"""simple docstring"""




import numpy as np



def 	UpperCAmelCase__   (				A__   )      ->      np.array:




   """simple docstring"""
   return 1 / (1 + np.exp(-vector   ))


if __name__ == "__main__":
     import doctest

     doctest.testmod()




