From 01312c6369a8bf420ceafe989321f65bb951f76d Mon Sep 17 00:00:00 2001 From: Robert Sachunsky Date: Fri, 11 Feb 2022 07:50:58 +0100 Subject: [PATCH] recognize: delegate to core functions --- ocrd_calamari/recognize.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/ocrd_calamari/recognize.py b/ocrd_calamari/recognize.py index 7620c9c..2e7bbc9 100644 --- a/ocrd_calamari/recognize.py +++ b/ocrd_calamari/recognize.py @@ -242,18 +242,7 @@ class CalamariRecognize(Processor): # Add metadata about this operation and its runtime parameters: - metadata = pcgts.get_Metadata() # ensured by from_file() - metadata.add_MetadataItem( - MetadataItemType(type_="processingStep", - name=self.ocrd_tool['steps'][0], - value=TOOL, - Labels=[LabelsType( - externalModel="ocrd-tool", - externalId="parameters", - Label=[LabelType(type_=name, value=self.parameter[name]) - for name in self.parameter.keys()])])) - - + self.add_metadata(pcgts) file_id = make_file_id(input_file, self.output_file_grp) pcgts.set_pcGtsId(file_id) self.workspace.add_file(