-
Notifications
You must be signed in to change notification settings - Fork 154
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
Include project id in zipped export #5156
Comments
The project ID has no meaning for the exported project because when you import the project again, it gets assigned a new ID. Why do you need it? |
That's indeed what I thought the reason was why it's not included. The context is, I'm using Inception to collect training data for building a NER model. |
Have you considered using the project slug instead of the ID? It is at least a bit more stable. The slug would only change on import if there is already another project with the same slug. |
That's indeed an option. Currently I parse out the project_id based on this documentBaseUri repository/**project/6/**document/828/source |
Right... I believe it's a pycaprio thing though and that INCEpTION already returns the slug in the API response (as field |
Ah, so the name element in client.api.projects in pycaprio is the slug? |
This is the data transfer object on the Java side where you can see how the project information is mapped to the JSON response: |
Ok, clear. thanks. I'll look at the pycaprio side to incorporate the slug there and restructure my code to work with the slug. |
I just noted that the slug in the exported project is always null - will be fixed in next bug fix release. |
Is your feature request related to a problem? Please describe.
I'd like to have the project id next to the project name when exporting the project as UIMA CAS XMI (XML 1.0)
Describe the solution you'd like
When exporting the project as a zipped file, currently the project id is not available anywhere.
It seems only available in the cas metadata (namely the baseuri where it looks like repository/project/6/document/828/source) when a document is annotated, so not when there are no documents annotated whatsoever.
Describe alternatives you've considered
I could get it through the python client, where you first get a list of projects and for a specific project, get a zipped download, but I'd rather also have that the frontend returns the project id in the zip file
Additional context
Example screenshot of the json of the project export showing that only the project name is put in the json, not the project id
The text was updated successfully, but these errors were encountered: