Skip to content

Commit

Permalink
wrapper: set pcGtsId to METS file ID
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky authored Aug 14, 2020
1 parent ccb0017 commit c49bdc7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ocrd_keraslm/wrapper/rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit c49bdc7

Please sign in to comment.