Export custom layer within CoNNL

41 views
Skip to first unread message

Phillip Schönfelder

unread,
Mar 29, 2021, 2:31:37 AM3/29/21
to inception-users

Hi all,
is it possible to change the layers being exported in CoNLL-Format? I made a NER layer myself with a separate tagset and would like to export it as NER as a column in a CoNLL file. I know I could have just taken the default NER layer... but that's my current state. All the annotations are done and I am worried that I will not be able to export them properly.
Any help sis appreciated!
 
Best Regards
Phil

Richard Eckart de Castilho

unread,
Mar 29, 2021, 2:37:01 AM3/29/21
to inception-users
Hi Phil,

> On 29. Mar 2021, at 08:31, Phillip Schönfelder <schoenf...@gmail.com> wrote:
>
> is it possible to change the layers being exported in CoNLL-Format? I made a NER layer myself with a separate tagset and would like to export it as NER as a column in a CoNLL file.


for the CoNLL exporters, only the built-in NER layer works - they are not reconfigurable.

That said, you have two options I can think of right away:

1) Export as TSV and editor the file header to change the NER column from your custom type to the default type. Then create a new project, import the data again and then export in the CoNLL format.

2) Export as UIMA CAS XMI and implement a Python script using DKPro Cassis to convert the data to your preferred format.

Cheers,

-- Richard

Phillip Schönfelder

unread,
Mar 29, 2021, 7:47:05 AM3/29/21
to incepti...@googlegroups.com
Hi Richard,
thank you so much for your help. I was able to re-import the project after changing the header, but the annotations were still on the same layers. So that did not work for me. However, thanks to your hint about the TSV format, I implemented a converter to directly convert TSV -> CoNLL. Solved my problem for now.

Best regards,
Phil

--
You received this message because you are subscribed to a topic in the Google Groups "inception-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/inception-users/CzxEL_rG2F8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to inception-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inception-users/82697A80-2488-4BCA-B22A-33F8BED526A0%40gmail.com.
Reply all
Reply to author
Forward
0 new messages