From 7da45a0ec1111e2ea28505b4e444e135bdcdf4b2 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Thu, 6 Aug 2020 12:31:47 +0200 Subject: [PATCH] Set pcGtsId Newest OCR-D validation checks PAGE-XML pcGtsId against METS file/@ID. Set the pcGtsId here correctly. Fixes #40. --- ocrd_calamari/recognize.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ocrd_calamari/recognize.py b/ocrd_calamari/recognize.py index 8ae0a17..5555d75 100644 --- a/ocrd_calamari/recognize.py +++ b/ocrd_calamari/recognize.py @@ -222,6 +222,7 @@ def _words(s): file_id = self._make_file_id(input_file, n) + pcgts.set_pcGtsId(file_id) self.workspace.add_file( ID=file_id, file_grp=self.output_file_grp,