Heading locations
Heading locations are used for identifying headings that identify sections.
Example NLP API result file:
Specifically, the following snuppet contains an example of the new “headings” field.
Changes
Python API
The new heading location is available in locations under the "heading" key which contains instances of HeadingLocation. There is also a link from sections using heading.
Example usage:
Schema changes
The heading location is supported using the headinglocation and headinglocationspan tables.
Heading location
Schema of the new headinglocation table (in PostgreSQL):
Example of data that is in that table:
Note that the link to the heading is done through headinglocation.section_location_id.
Linking to the document is done through the same location table as usual, but with type_ = 'heading':
Heading location span
Schema of the new headinglocationspan table:
The two tables can be joined:

