






"""simple docstring"""



from ..utils import DummyObject, requires_backends





class  a_	(			metaclass=_a							):
					SCREAMING_SNAKE_CASE_		:    List[Any]							   =       ['''torch''', '''librosa''']




					def __init__(    self					:						Union[str, Any]   ,						*A					:						Tuple   ,						**A					:						Tuple       )  ->  Any:
							requires_backends(self   ,						['''torch''', '''librosa''']       )




					@classmethod
					def   A  (    cls					:						Optional[int]   ,						*A					:						Tuple   ,						**A					:						Optional[Any]       )  ->  List[Any]:
							requires_backends(cls   ,						['''torch''', '''librosa''']       )






					@classmethod
					def   A  (    cls					:						List[Any]   ,						*A					:						str   ,						**A					:						Union[str, Any]       )  ->  Optional[Any]:
							requires_backends(cls   ,						['''torch''', '''librosa''']       )





class  a_	(			metaclass=_a							):
					SCREAMING_SNAKE_CASE_		:    Dict							   =       ['''torch''', '''librosa''']




					def __init__(    self					:						Optional[int]   ,						*A					:						int   ,						**A					:						int       )  ->  Optional[Any]:
							requires_backends(self   ,						['''torch''', '''librosa''']       )




					@classmethod
					def   A  (    cls					:						str   ,						*A					:						Optional[int]   ,						**A					:						List[str]       )  ->  str:
							requires_backends(cls   ,						['''torch''', '''librosa''']       )






					@classmethod
					def   A  (    cls					:						Union[str, Any]   ,						*A					:						Union[str, Any]   ,						**A					:						List[Any]       )  ->  int:
							requires_backends(cls   ,						['''torch''', '''librosa''']       )











"""simple docstring"""



from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available, is_torch_available


__A		:	Any      =		{
    '''configuration_realm''': ['''REALM_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''RealmConfig'''],
    '''tokenization_realm''': ['''RealmTokenizer'''],
}

try:
						if not is_tokenizers_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						__A		:	Tuple      =		['''RealmTokenizerFast''']

try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						__A		:	Optional[int]      =		[
						    '''REALM_PRETRAINED_MODEL_ARCHIVE_LIST''',
						    '''RealmEmbedder''',
						    '''RealmForOpenQA''',
						    '''RealmKnowledgeAugEncoder''',
						    '''RealmPreTrainedModel''',
						    '''RealmReader''',
						    '''RealmScorer''',
						    '''load_tf_weights_in_realm''',
						]
						__A		:	Union[str, Any]      =		['''RealmRetriever''']


if TYPE_CHECKING:
						from .configuration_realm import REALM_PRETRAINED_CONFIG_ARCHIVE_MAP, RealmConfig
						from .tokenization_realm import RealmTokenizer

						try:
												if not is_tokenizers_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .tokenization_realm import RealmTokenizerFast

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_realm import (
												    REALM_PRETRAINED_MODEL_ARCHIVE_LIST,
												    RealmEmbedder,
												    RealmForOpenQA,
												    RealmKnowledgeAugEncoder,
												    RealmPreTrainedModel,
												    RealmReader,
												    RealmScorer,
												    load_tf_weights_in_realm,
												)
												from .retrieval_realm import RealmRetriever


else:
						import sys

						__A		:	Optional[int]      =		_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)



