HumanSignal / label-studio-converter

Tools for converting Label Studio annotations into common dataset formats
https://labelstud.io/
255 stars 132 forks source link

Is it possible to convert texts containing relations annotated in Label Studio into a Spacy binary file format ? #219

Open Sofyan-fcomte opened 1 year ago

Sofyan-fcomte commented 1 year ago

Is there a converter somewhere that can be used to turn JSON Label Studio files into Spacy binary file format ? I've been working on Label Studio for a while and I didn't expect to hit this roadblock... I urgently need some sort of converter for a relation extraction project. For context, I'm talking about Spacy's custom relation extraction component : https://youtu.be/8HL-Ap5_Axo While Label Studio's documentation shows that annotations for NER can be converted to Spacy binary format if they are exported as CONLL2003 files, the CONLL2003 format doesn't capture the annotated relations.

Is there a solution or work around to this problem ?