"""simple docstring"""







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

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

@dataclass(frozen=lowercase		)
class 	UpperCamelCase    (					lowercase		):
				# `task` is not a ClassVar since we want it to be part of the `asdict` output for JSON serialization
				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       _lowercase  (self       :   Tuple)					->			Dict[str, str]:
					return {self.question_column: "question", self.context_column: "context", self.answers_column: "answers"}






"""simple docstring"""







import numpy as np
def 						__UpperCAmelCase       (					UpperCAmelCase_					:       np.array						)							->    np.array:

	'''simple docstring'''





	return 1 / (1 + np.exp(-vector						))


if __name__ == "__main__":
	import doctest

	doctest.testmod()





