1
0
Fork 0
mirror of https://github.com/qurator-spk/dinglehopper.git synced 2025-06-07 19:05:13 +02:00

ocrd_cli: no need to check fileGrp dir exists

Co-authored-by: Robert Sachunsky <38561704+bertsky@users.noreply.github.com>
This commit is contained in:
Konstantin Baierer 2025-04-16 18:54:58 +02:00 committed by Mike Gerber
parent c0aa82d188
commit 4162836612

View file

@ -45,17 +45,11 @@ class OcrdDinglehopperEvaluate(Processor):
page_id = gt_file.pageId
file_id = make_file_id(ocr_file, self.output_file_grp)
report_prefix = os.path.join(self.output_file_grp, file_id)
# Process the files
try:
os.mkdir(self.output_file_grp)
except FileExistsError:
pass
cli_process(
gt_file.local_filename,
ocr_file.local_filename,
report_prefix,
file_id,
self.output_file_grp,
metrics=metrics,
textequiv_level=textequiv_level,
)