From c49bdc70785624c54af79b6279a2d42725850efb Mon Sep 17 00:00:00 2001 From: Robert Sachunsky <38561704+bertsky@users.noreply.github.com> Date: Fri, 14 Aug 2020 20:35:28 +0200 Subject: [PATCH] wrapper: set pcGtsId to METS file ID --- ocrd_keraslm/wrapper/rate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ocrd_keraslm/wrapper/rate.py b/ocrd_keraslm/wrapper/rate.py index 7cf1b33..0a0c4d4 100644 --- a/ocrd_keraslm/wrapper/rate.py +++ b/ocrd_keraslm/wrapper/rate.py @@ -131,6 +131,7 @@ def process(self): # write back result file_id = make_file_id(input_file, self.output_file_grp) + pcgts.set_pcGtsId(file_id) self.workspace.add_file( ID=file_id, pageId=input_file.pageId, @@ -157,6 +158,7 @@ def process(self): # write back result file_id = make_file_id(prev_file, self.output_file_grp) + prev_pcgts.set_pcGtsId(file_id) self.workspace.add_file( ID=file_id, pageId=prev_file.pageId, @@ -179,6 +181,7 @@ def process(self): # write back result file_id = make_file_id(input_file, self.output_file_grp) + prev_pcgts.set_pcGtsId(file_id) self.workspace.add_file( ID=file_id, pageId=input_file.pageId,