philschmid / document-ai-transformers

MIT License
331 stars 50 forks source link

layoutlm output formats #5

Open koyelseba opened 2 years ago

koyelseba commented 2 years ago

Hi Sir,

Thanks for sharing your tutorial and notebooks, it's really good. I have tried to Fine-tuning LayoutLM for SROIE dataset. But I not getting the proper output format. I also tried Fine-tuning Donut for SROIE dataset. And I got proper output format. (example {'total': '9.30', 'date': '26/11/2017', 'company': 'SANYU STATIONERY SHOP', 'address': 'NO. 31G&33G, JALAN SETIA INDAH X,U13/X 40170 SETIA ALAM'})

  1. Can you tell me how to get the LayoutLM output like Donut output?
philschmid commented 2 years ago

You cannot use LayoutLM for "generative" tasks