Fixed:
- actuall apply CLI
--log-filename - adapt to Pillow changes
ocrd workspace clone: do pass on--file-grp(for download filtering)
Changed:
- 🔥
ocrd_utils,ocrd_models,ocrd_modelfactory,ocrd_validatorsandocrd_networkare not published
as separate packages anymore, everything is contained inocrd- you should adapt yourrequirements.txtaccordingly - 🔥
Processor.parameternow a property (attribute always exists, butNonefor non-processing contexts) - 🔥
Processor.parameteris now afrozendict(contents immutable) - 🔥
Processor.parametervalidate when(ever) set instead of (just) the constructor - setting
Processor.parameterwill also trigger (Processor.shutdown() and)Processor.setup()` get_processor(... instance_caching=True): usemin(max_instances, OCRD_MAX_PROCESSOR_CACHE)- 🔥
Processor.verifyalways validates fileGrp cardinalities (because we haveocrd-tool.jsondefaults now) - 🔥
OcrdMets.add_agentwithout positional arguments ocrd bashlib input-filesnow uses normal Processor decorator, and gets passed actualocrd-tool.jsonand tool name
from bashlib'socrd__wrap
Added:
Processor.metadata_filename: expose to make local path ofocrd-tool.jsonin Python distribution reusable+overridableProcessor.metadata_location: expose to make absolute path ofocrd-tool.jsonreusable+overridableProcessor.metadata_rawdict: expose to make in-memory contents ofocrd-tool.jsonreusable+overridableProcessor.metadata: expose to make validated and default-expanded contents ofocrd-tool.jsonreusable+overridableProcessor.shutdown: to shut down processor after processing, optionalProcessor.max_instances: class attribute to control instance caching of this implementation