File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 136136from docling_eval .prediction_providers .google_prediction_provider import (
137137 GoogleDocAIPredictionProvider ,
138138)
139-
140- # TableFormer is optional - it requires docling with table_structure_model support
141- try :
142- from docling_eval .prediction_providers .tableformer_provider import (
143- TableFormerPredictionProvider ,
144- )
145-
146- TABLEFORMER_AVAILABLE = True
147- except ImportError :
148- TABLEFORMER_AVAILABLE = False
149- TableFormerPredictionProvider = None # type: ignore
150-
139+ from docling_eval .prediction_providers .tableformer_provider import (
140+ TableFormerPredictionProvider ,
141+ )
151142from docling_eval .utils .external_docling_document_loader import (
152143 ExternalDoclingDocumentLoader ,
153144)
@@ -629,11 +620,6 @@ def get_prediction_provider(
629620 ignore_missing_predictions = True ,
630621 )
631622 elif provider_type == PredictionProviderType .TABLEFORMER :
632- if not TABLEFORMER_AVAILABLE :
633- raise RuntimeError (
634- "TableFormer prediction provider is not available. "
635- "Please ensure docling is installed with table_structure_model support."
636- )
637623 return TableFormerPredictionProvider (
638624 do_visualization = do_visualization ,
639625 ignore_missing_predictions = True ,
You can’t perform that action at this time.
0 commit comments