# Custom data preparation for LayoutLM model

**URL:** <https://discuss.huggingface.co/t/custom-data-preparation-for-layoutlm-model/52959>\
**Category:** 🤗Optimum\
**Created:** [August 31, 2023, 11:57am UTC](https://discuss.huggingface.co/t/custom-data-preparation-for-layoutlm-model/52959 "2023-08-31T11:57:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sankettgorey](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@sankettgorey](https://discuss.huggingface.co/u/sankettgorey)\
**Post date:** [August 31, 2023, 11:57am UTC](https://discuss.huggingface.co/t/custom-data-preparation-for-layoutlm-model/52959/1 "2023-08-31T11:57:20Z")

</div>

Hello, I am preparing custom dataset for information extraction using LayoutLM model. I am using this notebook: [Google Colab](https://colab.research.google.com/github/NielsRogge/Transformers-Tutorials/blob/master/LayoutLM/Fine_tuning_LayoutLMForTokenClassification_on_FUNSD.ipynb#scrollTo=vm3sGnBsL64o)  
I am not getting how to prepare train\_box.txt, prepare train\_box.txt.tmp files. When I export annotated data from UBIAI tool, I get only box.txt, lables.txt, image.txt files.  
Please help.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![regisss](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/regisss/32/22467_2.png) [@regisss](https://discuss.huggingface.co/u/regisss)\
**Post date:** [September 18, 2023, 2:35pm UTC](https://discuss.huggingface.co/t/custom-data-preparation-for-layoutlm-model/52959/2 "2023-09-18T14:35:31Z")

</div>

Hi @sankettgorey, you should rather ask in the Datasets category: [🤗Datasets - Hugging Face Forums](https://discuss.huggingface.co/c/datasets/10)
