# Document AI Custom Processor - annotating across pages

**URL:** <https://discuss.google.dev/t/document-ai-custom-processor-annotating-across-pages/139650>\
**Category:** AI Solutions\
**Tags:** document-ai\
**Created:** [December 14, 2023, 10:34am UTC](https://discuss.google.dev/t/document-ai-custom-processor-annotating-across-pages/139650 "2023-12-14T10:34:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [December 14, 2023, 10:34am UTC](https://discuss.google.dev/t/document-ai-custom-processor-annotating-across-pages/139650/1 "2023-12-14T10:34:49Z")

</div>

I am currently building a custom OCR extractor with Google’s Document AI, my documents are usually around 8-14 pages long and I have created a schema across all possible pages. Using the defined schema, I begin annotating manually across all pages of the imported documents. However, when I evaluate my model, it seems that the model can only accurate annotate/predict labels on the first page. Does anyone know what is the cause of this issue? Thanks a lot!

\*\* I’ll expand more on how I have been annotating maybe this is the reason why it has been causing me this issue. So I have around 40 labels and each page of the document uses around 5-15 labels depending on what the type of content is on each page. The way I have been labeling is I annotate the labels that exist on that specific page. For example, page 1 has company\_name, company\_address, company\_type so I only label them and leave the other 30ish labels empty and move on to the next page. Is this correct? Or am I missing something in this step?

---

<div class="post-metadata">

**Author:** ![azc2107](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/azc2107/32/880_2.png) [@azc2107](https://discuss.google.dev/u/azc2107)\
**Post date:** [June 4, 2024, 1:11pm UTC](https://discuss.google.dev/t/document-ai-custom-processor-annotating-across-pages/139650/2 "2024-06-04T13:11:18Z")

</div>

Hey @Cookie ! Did you ever figure out this issue? I’m starting to label pages as well and am wondering if I’m doing it correctly as I have a similar use case.
