Skip to content
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

Pass original file name up to INCEpTION #20

Open
reckart opened this issue Mar 19, 2024 · 0 comments
Open

Pass original file name up to INCEpTION #20

reckart opened this issue Mar 19, 2024 · 0 comments
Assignees
Labels
🐛Bug Something isn't working
Milestone

Comments

@reckart
Copy link
Member

reckart commented Mar 19, 2024

Describe the bug
When uploading a file with annotations or a source document file, pycaprio uses a dummy name data to upload the file. This may work in most cases, but there may be UIMA reader components on the INCEpTION side that behave differently depending on the file extension (e.g. when importing RDF data and looking at the extension to see which RDF format is being used). This may currently fail.

Expected behavior
The pycaprio API should be changed such that not only an IO can be passed, but also a file/path object - and if an IO is passed, the caller should be able to pass the original file name along in the call.

Please complete the following information:

  • Version: 0.2.1
@reckart reckart added the 🐛Bug Something isn't working label Mar 19, 2024
@reckart reckart added this to the 0.3.0 milestone Mar 19, 2024
@reckart reckart self-assigned this Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant