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"""




							lowerCAmelCase__							=       field(default='question-answering-extractive' ,					metadata={'include_in_asdict_even_if_is_default': True}    )
							lowerCAmelCase__							=       Features({'question': Value('string'    ), 'context': Value('string'    )}    )
							lowerCAmelCase__							=       Features(
							    {
							        'answers': Sequence(
							            {
							                'text': Value('string'    ),
							                'answer_start': Value('int32'    ),
							            }    )
							    }    )
							lowerCAmelCase__							=       'question'
							lowerCAmelCase__							=       'context'
							lowerCAmelCase__							=       'answers'



							@property
							def      _UpperCAmelCase							(     self	):







														'''simple docstring'''






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










from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available


SCREAMING_SNAKE_CASE__   :      Optional[int]				=		{"""tokenization_herbert""": ["""HerbertTokenizer"""]}

try:
					if not is_tokenizers_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					SCREAMING_SNAKE_CASE__   :      Optional[Any]				=		["""HerbertTokenizerFast"""]


if TYPE_CHECKING:
					from .tokenization_herbert import HerbertTokenizer

					try:
										if not is_tokenizers_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .tokenization_herbert_fast import HerbertTokenizerFast

else:
					import sys

					SCREAMING_SNAKE_CASE__   :      Union[str, Any]				=		_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)






