Skip to content

Commit 5fd30e3

Browse files
committed
Remove options in extraction identifier
1 parent b8f54a0 commit 5fd30e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/trainable_entity_extractor/adapters/extractors/pdf_to_multi_option_extractor/PdfToMultiOptionExtractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def get_method_performance(
219219
return performance
220220

221221
def can_be_used(self, extraction_data: ExtractionData) -> bool:
222-
if not extraction_data.options and not extraction_data.extraction_identifier.get_options():
222+
if not extraction_data.options:
223223
return False
224224

225225
for sample in extraction_data.samples:

src/trainable_entity_extractor/adapters/extractors/text_to_multi_option_extractor/TextToMultiOptionExtractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def get_suggestions(self, method_name: str, prediction_samples_data: PredictionS
118118
return suggestions
119119

120120
def can_be_used(self, extraction_data: ExtractionData) -> bool:
121-
if not extraction_data.options and not extraction_data.extraction_identifier.get_options_path().exists():
121+
if not extraction_data.options:
122122
return False
123123

124124
for sample in extraction_data.samples:

0 commit comments

Comments
 (0)