-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adapt to decentralized resources #801
Comments
Looks fairly complete for changes in core, thank you. I'll extend #800 for the latter three points, the first one is already in place ( |
That's not quite what I meant though. I would expect the new |
Doing this every time the |
Good point. But the distinction between constructor and And even in the resmgr CLI, 1s delay would still be tolerable, so it does not hurt if you query a single processor. So it is only |
I've tested it and including all the spurious results like
If we do it completely dynamically then yes, that would be the only case. And we save ourselves future headaches, if we don't try to serialize the resource descriptions to |
I took the liberty of checking tasks that have been solved by now above.
seems complete: core/ocrd/ocrd/resource_manager.py Lines 105 to 115 in ceb9992
core/ocrd_utils/ocrd_utils/os.py Lines 97 to 107 in ceb9992
Also, as discussed in ocrd_tesserocr, we still need to handle resource location
core/ocrd_utils/ocrd_utils/os.py Lines 115 to 120 in ceb9992
seems complete: core/ocrd_validators/ocrd_validators/constants.py Lines 22 to 28 in ceb9992
core/ocrd/ocrd/resource_manager.py Line 88 in 6196e3b
seems complete: core/ocrd_validators/ocrd_validators/ocrd_tool.schema.yml Lines 168 to 209 in ceb9992
seems complete: Lines 161 to 195 in 4148a88
already tracked by OCR-D/spec#193 Not sure about the guides and Wiki yet. I did find the section about resmgr download syntax to be out of date though. |
To implement OCR-D/spec#181, AFAICS we need:
Processor.ocrd_tool['resources']
with the preinstalled centralized database inOcrdResourceManager
's constructor and.load_resource_list
Processor.ocrd_tool['resource_locations']
in.resolve_resource
and.list_all_resources
ocrd_validators.resource_list_validator
, specifically itsresource_list.schema.yml
(subtypes oftype
)ocrd_validators.ocrd_tool_validator
, specifically itsocrd_tool.schema.yml
by updatingrepo/spec
Did I forget anything?
EDIT
ocrd/resources.yml
from old syntax to new oneThe text was updated successfully, but these errors were encountered: