How to open and modify .ser files?

939 views
Skip to first unread message

Stefano Butelli

unread,
Oct 18, 2023, 11:54:44 AM10/18/23
to inception-users
Hello! I'm using INCEpTION 27.0 and thanks a lot for making it :) 

I would like to resume the annotations of an old exported project (same version) but I need to change all the references to the users as these have changed. I replaced the user names in the jsons but I can't open the .ser files. Using a free tool I think I have decompressed them but I still can't open them with notepad. (I'm confident in python if needed) What should I do? Thanks

Richard Eckart de Castilho

unread,
Oct 18, 2023, 11:57:30 AM10/18/23
to incepti...@googlegroups.com
Hi,

> On 18. Oct 2023, at 17:54, Stefano Butelli <butelli...@gmail.com> wrote:
>
> I would like to resume the annotations of an old exported project (same version) but I need to change all the references to the users as these have changed. I replaced the user names in the jsons but I can't open the .ser files. Using a free tool I think I have decompressed them but I still can't open them with notepad. (I'm confident in python if needed) What should I do? Thanks

There are no references to the user names inside the .ser files, so you do not have to open and change them. The names of the .ser files contain the user names, so you'd only have to rename them.

The files contain serialized Java objects. You won't be able to read them using Python. You'd need to use the Apache UIMA Java SDK if your wanted to load the .ser files.

Cheers,

-- Richard

Stefano Butelli

unread,
Oct 19, 2023, 3:14:14 AM10/19/23
to inception-users

There are no references to the user names inside the .ser files, so you do not have to open and change them. The names of the .ser files contain the user names, so you'd only have to rename them.


Thanks for your answer. However, I'm sure the username is there at least once because I see it among the strange characters when opening the .ser with notepad 

Thanks,
Stefano

Richard Eckart de Castilho

unread,
Oct 19, 2023, 4:28:18 AM10/19/23
to inception-users

> On 19. Oct 2023, at 09:14, Stefano Butelli <butelli...@gmail.com> wrote:
>
> Thanks for your answer. However, I'm sure the username is there at least once because I see it among the strange characters when opening the .ser with notepad

That is true, but it should not be relevant. INCEpTION should update that string next time the document is written according to the user name encoded in the file name at that time.

-- Richard

Reply all
Reply to author
Forward
0 new messages