
'''simple docstring'''



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

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

@dataclass(frozen=_lowerCamelCase)
class    _a				(_lowerCamelCase):





       """simple docstring"""




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






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








'''simple docstring'''



from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available


UpperCamelCase__      :		int       							=  {"tokenization_herbert": ["HerbertTokenizer"]}

try:
     if not is_tokenizers_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     UpperCamelCase__      :		Tuple       							=  ["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

     UpperCamelCase__      :		Tuple       							=  _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)






