





from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


lowercase_		:				Dict				=						{'''configuration_ibert''': ['''IBERT_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''IBertConfig''', '''IBertOnnxConfig''']}

try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		lowercase_		:				Tuple				=						[
		    '''IBERT_PRETRAINED_MODEL_ARCHIVE_LIST''',
		    '''IBertForMaskedLM''',
		    '''IBertForMultipleChoice''',
		    '''IBertForQuestionAnswering''',
		    '''IBertForSequenceClassification''',
		    '''IBertForTokenClassification''',
		    '''IBertModel''',
		    '''IBertPreTrainedModel''',
		]

if TYPE_CHECKING:
		from .configuration_ibert import IBERT_PRETRAINED_CONFIG_ARCHIVE_MAP, IBertConfig, IBertOnnxConfig

		try:
				if not is_torch_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_ibert import (
				    IBERT_PRETRAINED_MODEL_ARCHIVE_LIST,
				    IBertForMaskedLM,
				    IBertForMultipleChoice,
				    IBertForQuestionAnswering,
				    IBertForSequenceClassification,
				    IBertForTokenClassification,
				    IBertModel,
				    IBertPreTrainedModel,
				)

else:
		import sys

		lowercase_		:				List[Any]				=						_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)













lowercase_		:				Tuple				=						'''
# Installazione di Transformers
! pip install transformers datasets
# Per installare dalla fonte invece dell\'ultima versione rilasciata, commenta il comando sopra e
# rimuovi la modalità commento al comando seguente.
# ! pip install git+https://github.com/huggingface/transformers.git
'''

lowercase_		:				Optional[int]				=						[{'''type''': '''code''', '''content''': INSTALL_CONTENT}]
lowercase_		:				str				=						{
    '''{processor_class}''': '''FakeProcessorClass''',
    '''{model_class}''': '''FakeModelClass''',
    '''{object_class}''': '''FakeObjectClass''',
}






