Skip to content

Commit

Permalink
set page pcGtsId from file ID
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky committed Jun 29, 2023
1 parent 5f8bdcb commit 5ad0892
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- workarounds for broken models (DocBank_X101, Jambo-sudo_X101)
- `make deps`: add explicit reqs prior to pip step with Torch index
- set `pc:PcGts/@pcGtsId` from `mets:file/@ID`

### Added
- CI for CLI tests (with cached models and stored result artifacts)
Expand Down
1 change: 1 addition & 0 deletions ocrd_detectron2/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ class id to a new PAGE region type (and subtype).
page_id = input_file.pageId or input_file.ID
LOG.info("INPUT FILE %i / %s", n, page_id)
pcgts = page_from_file(self.workspace.download_file(input_file))
pcgts.set_pcGtsId(file_id)
self.add_metadata(pcgts)

page = pcgts.get_Page()
Expand Down

0 comments on commit 5ad0892

Please sign in to comment.