unilm icon indicating copy to clipboard operation
unilm copied to clipboard

preprocessing format??

Open sibtain-r opened this issue 6 years ago • 3 comments

how to preprocess sroie dataset to finetune this model?

sibtain-r avatar Mar 15 '20 19:03 sibtain-r

@SibtainRazaJamali We did not provide the preprocessing because we used the ground truth OCR reuslts coming from the manual check of official release, as mentioned in our paper. If you do not want to check the results manually, please just organize the sroie dataset in the reading order.

wolfshow avatar Mar 16 '20 08:03 wolfshow

But i am asking for labeled data format to finetune the model. Can i label each word with labels like COMPANY_NAME,DATE,OTHER etc? or we need to label according to {S,B,I,E,O} tags?

sibtain-r avatar Mar 16 '20 09:03 sibtain-r

@SibtainRazaJamali Typically, we use the BIO tags for each category. For example, B-DATE, I-DATE, B-Com, I-Com and O for others.

wolfshow avatar Mar 17 '20 04:03 wolfshow