Import modified documents and annotations

12 views
Skip to first unread message

Lasse Mempel

unread,
Mar 19, 2026, 3:00:38 PM (13 days ago) Mar 19
to inception-users
Ahoj,

we decided to include additional initial text into our already annotated documents, that we also want to annotate.
I struggle to find a way to modify an export of the documents and annotations with 
dkpro-cassis in a way, that it is importable again with the former annotations.
Can you give me a little help what would be the most promising way to accomplish this?
We use a custom span and a custom relation layer on a federated instance of Inception 38.3, so no server admin rights.

Best regards
Lasse

Richard Eckart de Castilho

unread,
Mar 19, 2026, 3:08:11 PM (13 days ago) Mar 19
to inception-users
Hi,
Quite tricky. On the federated instance, you won't be able to use the remote API - which would be quite handy here.

So here would be my tip:

- Export the project (with UIMA CAS JSON as secondary format)
- Reimport the project
- Remove all documents from the re-imported project
- Use cassis to process the CAS JSON files from the original export as you need it (assuming that's not you blocker)
- Import those JSON files

The problem with this approach is that it only works if you only have a single annotator.
Outside of the remote API, there is no way of uploading annotated documents for individual annotators in a project.

Alternatively:

- Export the project
- Import it into a local INCEpTION running on your personal device
- Activate the remote API on that INCEpTION
- Use the remote API to retrieve documents and annotations (CAS JSON)
- Again create an empty clone of the project
- Use the remote API to upload the modified documents and modified annotations
- Export the project
- Import the project to the federated instance

Does any of this help?

Cheers,

-- Richard

Lasse Mempel

unread,
Mar 20, 2026, 5:13:39 AM (13 days ago) Mar 20
to incepti...@googlegroups.com
Dear Richard,

your suggestion worked perfectly - thank you very much! You’ve probably saved me days of unnecessary tinkering.

Best regards,
Lasse

--
You received this message because you are subscribed to the Google Groups "inception-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inception-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/inception-users/B9C25467-E854-4139-B4A9-AC335A90F2F4%40gmail.com.
Reply all
Reply to author
Forward
0 new messages