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
Search path for model files #7
Comments
If I understand the reporter correctly, he wants to install ocrd_calamari somewhere and relative pathnames in the checkpoint parameter should be relative to the called ocrd_calamari installation, not the cwd of the caller. I am not sure if I find this useful or intuitive. |
Exactly. Either that or make that behaviour configurable at installation time or via environment variable.
How else would you encapsulate a call to |
So your use case is specifying a parameter file like this:
And because of convention, ocrd_calamari would find these model files in e.g. I'll check if Calamari has a mechanism like this - a search path - first, but I think this could be implemented in that way. |
Exactly. I don't think Calamari itself has it. But |
BTW, I think a good place to look at for this is the Ocropus path search – modulo For a suitable name of the new environment variable, I recommend |
I like the idea and I'd prefer |
As a coda to this issue: Can we get rid of the wildcard in the |
Probably not, but the main reason I chose to do the
|
Maybe we could add a |
I can imagine having another parameter
I forgot about this issue. I'll have a look at how OCRopus does it first, but I think I'd want something like in the pseudo-code |
Simply renaming |
@bertsky in #6:
The text was updated successfully, but these errors were encountered: