Skip to content

Pass original file name up to INCEpTION #20

@reckart

Description

@reckart

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

Metadata

Metadata

Assignees

Labels

🐛BugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions