HumanSignal / label-studio-converter

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

feat: FUNSD converter #127

Closed makseq closed 2 years ago

makseq commented 2 years ago

Usage:

cd label_studio_converter
python3 funsd.py export.json 

This command will export your LS OCR annotations to "./funsd/" directory.

If you want to merge words into the whole phrases, you should implement your own interactive ML backend and connect it to Label Studio (https://labelstud.io/guide/ml_create.html#Support-interactive-preannotations-in-your-ML-backend). It should generate the root bbox to the group of words. Then you need to modify the converter script to take into account this root bboxes.