-
Notifications
You must be signed in to change notification settings - Fork 40
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
Train a Project using API #634
Comments
This sounds like a good feature and something I've also thought about in the past. However, it's quite a challenge to do all of this and also ensure data consistency. This may be worthwhile to split into several features implemented separately:
There is already a tiny bit of functionality in this direction - the For the API design, I think it might be worth looking at the Maui Server HTTP API which has similar goals (they have taggers, Annif has projects). |
There could be also CLI command to create a new project configuration, named e.g. Most backend-specific parameters could be set to default values coming from
This could speed up creating new projects, for which currently copy-pasting an example project configuration from Wiki or |
For creating the project configuration via CLI, instead of giving backend parameters with options, a better approach is to inquire them with prompts. There could be even autocompletion showing selectable values, e.g. for backend. |
It would be great to have a REST method were you could upload a compressed archive and then a model is trained. You probably would have to add the project configuration to the call. An alternative could be creating new projects via API and then train them afterwards.
To stop disk space from filling up, the intermediate files should be removed after training or there has to be an API call for cleaning intermediate data. The later variant would also allow parameter optimization using the uploaded data.
You would probably need some kind of locking for the projects file to keep it in sync with the projects of the running instance
The text was updated successfully, but these errors were encountered: