Skip to content

Commit

Permalink
test_recognize.py: use stable API
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky authored Aug 13, 2024
1 parent 41b0045 commit 340f513
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_recognize.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ def test_recognize(self):
with pushd_popd(tempdir=True) as tempdir:
workspace = resolver.workspace_from_url(assets.path_to('communist_manifesto/data/mets.xml'), dst_dir=tempdir, download=True)
workspace.overwrite_mode = True
proc = KrakenRecognize(
workspace,
input_file_grp="OCR-D-SEG-KRAKEN",
output_file_grp="OCR-D-OCR-KRAKEN",
run_processor(KrakenRecognize,
workspace=workspace,
input_file_grp="OCR-D-SEG-KRAKEN",
output_file_grp="OCR-D-OCR-KRAKEN",
)
proc.process()
workspace.save_mets()
# FIXME: add result assertions (find_files, parsing PAGE etc)

if __name__ == "__main__":
main(__file__)

0 comments on commit 340f513

Please sign in to comment.