Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cover results of LAYOUT features #20

Closed
9 of 12 tasks
bertsky opened this issue Mar 8, 2024 · 0 comments · Fixed by #21
Closed
9 of 12 tasks

cover results of LAYOUT features #20

bertsky opened this issue Mar 8, 2024 · 0 comments · Fixed by #21

Comments

@bertsky
Copy link
Member

bertsky commented Mar 8, 2024

So far, we only convert the basic page layout and TABLE feature results, but if the AWS query contains LAYOUT in FeatureTypes, then we do get rich layout hierarchy (last paragraph of Block types in Textract Layout API Reference:

  • LAYOUT_TITLE - The main title of the document.
    → TextRegion with @type=heading
  • LAYOUT_HEADER - Text located in the top margin of the document.
    → TextRegion with @type=header
  • LAYOUT_FOOTER - Text located in the bottom margin of the document.
    → TextRegion with @type=footer
  • LAYOUT_SECTION_HEADER - The titles of sections within a document.
    → TextRegion with @type=heading, too
  • LAYOUT_PAGE_NUMBER - The page number of the documents.
    → TextRegion with @type=page-number
  • LAYOUT_LIST - Any information grouped together in list form.
    → TextRegion with @type=other,
    • but perhaps we could also set @type=list in the ReadingOrder/OrderedGroup
  • LAYOUT_FIGURE - Indicates the location of an image in a document.
    → ImageRegion
  • LAYOUT_TABLE - Indicates the location of a table in the document.
    → TableRegion
    • (but how does that interfere with blocks of TABLE type??)
  • LAYOUT_KEY_VALUE - Indicates the location of form key-values in a document.
    → unclear, probably connected to KEY_VALUE_SET blocks
  • LAYOUT_TEXT - Text that is present typically as a part of paragraphs in documents.
    → TextRegion with @type=paragraph
@bertsky bertsky linked a pull request Apr 12, 2024 that will close this issue
@rue-a rue-a closed this as completed in #21 Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant