Page locations
When the input contains pages, the NLP API returns new page locations and links sections to pages.
Example NLP API result file:
Specifically, the following two snippets show the new page location, and how they’re linked to the sections.
Changes
Python API
The new page locations are represented using the new class PageLocation. These can be found in attr:emtellipro.data.AnnotatedDocument.locations under the "page" key.
Example usage:
Schema changes
The new page locations are supported using:
- new
pagelocationtable (contains the page location) - new
pagelocationspantable (contains the spans for the pages) - new
pagesectiontable (links pages and sections)
Page location
Schema of the new pagelocation table (in PostgreSQL):
Example of the data that is in that table:
Linking to the document is done through the same location table as usual, but with type_ = 'page':
Page location span
Schema of new pagelocationspan table (in PostgreSQL):
The two tables can be joined on pagelocation.id = pagelocationspan.page_location_id:
Section page
The link between the page and section is done using the new pagesection table:

