



'''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 						_UpperCamelCase  (							lowerCamelCase__    ):


			'''simple docstring'''

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

			@property
			def UpperCamelCase__					(							self     : Tuple						):





					"""simple docstring"""






					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_torch_available


UpperCamelCase__       :	Any    = {
    '''configuration_instructblip''': [
        '''INSTRUCTBLIP_PRETRAINED_CONFIG_ARCHIVE_MAP''',
        '''InstructBlipConfig''',
        '''InstructBlipQFormerConfig''',
        '''InstructBlipVisionConfig''',
    ],
    '''processing_instructblip''': ['''InstructBlipProcessor'''],
}

try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						UpperCamelCase__       :	Optional[Any]    = [
						    '''INSTRUCTBLIP_PRETRAINED_MODEL_ARCHIVE_LIST''',
						    '''InstructBlipQFormerModel''',
						    '''InstructBlipPreTrainedModel''',
						    '''InstructBlipForConditionalGeneration''',
						    '''InstructBlipVisionModel''',
						]

if TYPE_CHECKING:
						from .configuration_instructblip import (
						    INSTRUCTBLIP_PRETRAINED_CONFIG_ARCHIVE_MAP,
						    InstructBlipConfig,
						    InstructBlipQFormerConfig,
						    InstructBlipVisionConfig,
						)
						from .processing_instructblip import InstructBlipProcessor

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_instructblip import (
												    INSTRUCTBLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
												    InstructBlipForConditionalGeneration,
												    InstructBlipPreTrainedModel,
												    InstructBlipQFormerModel,
												    InstructBlipVisionModel,
												)

else:
						import sys

						UpperCamelCase__       :	str    = _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)