v3.0.0b1
Pre-release
Pre-release
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_validators
andocrd_network
are not published
as separate packages anymore, everything is contained inocrd
- you should adapt yourrequirements.txt
accordingly - 🔥
Processor.parameter
now a property (attribute always exists, butNone
for non-processing contexts) - 🔥
Processor.parameter
is now afrozendict
(contents immutable) - 🔥
Processor.parameter
validate when(ever) set instead of (just) the constructor - setting
Processor.parameter
will also trigger (Processor.shutdown() and)
Processor.setup()` get_processor(... instance_caching=True)
: usemin(max_instances, OCRD_MAX_PROCESSOR_CACHE)
- 🔥
Processor.verify
always validates fileGrp cardinalities (because we haveocrd-tool.json
defaults now) - 🔥
OcrdMets.add_agent
without positional arguments ocrd bashlib input-files
now uses normal Processor decorator, and gets passed actualocrd-tool.json
and tool name
from bashlib'socrd__wrap
Added:
Processor.metadata_filename
: expose to make local path ofocrd-tool.json
in Python distribution reusable+overridableProcessor.metadata_location
: expose to make absolute path ofocrd-tool.json
reusable+overridableProcessor.metadata_rawdict
: expose to make in-memory contents ofocrd-tool.json
reusable+overridableProcessor.metadata
: expose to make validated and default-expanded contents ofocrd-tool.json
reusable+overridableProcessor.shutdown
: to shut down processor after processing, optionalProcessor.max_instances
: class attribute to control instance caching of this implementation