

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

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



@dataclass(frozen=UpperCAmelCase_     )
class   __lowercase    (			UpperCAmelCase_     ):




			"""simple docstring"""







			_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 	_SCREAMING_SNAKE_CASE      (			self  :					Tuple):
									return {self.question_column: "question", self.context_column: "context", self.answers_column: "answers"}









def       A_				(   _UpperCAmelCase    ,     _UpperCAmelCase   ):

						if density <= 0:
												raise ValueError("Impossible fluid density"   )
						if bulk_modulus <= 0:
												raise ValueError("Impossible bulk modulus"   )

						return (bulk_modulus / density) ** 0.5


if __name__ == "__main__":
						import doctest

						doctest.testmod()






