# US 2021/0165956 A1 · Systems and methods for generating tables from print-ready digital source documents

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0165956 A1
- Document ID: US20210165956A1
- Status: Published application
- Kind: A1
- Application number: 17/118,128
- Filed: 2020-12-10
- Published: 2021-06-03
- Earliest claimed: 2016-01-12
- Assignees: Datawatch Corporation
- Applicants: Datawatch Corporation
- Inventors: Mark Stephen Kyre; Jeffrey Lucas Eldridge; Austin Alexander Spears; Samuel Allen Hudock
- Web page: https://patentgrep.com/patent/US20210165956A1

## CPC

- G06F 16/254: {Extract, transform and load [ETL] procedures, e.g. ETL data flows in data warehouses}
- G06F 40/131: Fragmentation of text files, e.g. creating reusable text-blocks; Linking to fragments, e.g. using XInclude; Namespaces
- G06F 40/177: of tables; using ruled lines
- G06K 15/1814: {including print-ready data, i.e. data already matched to the printing process}
- G06F 16/313: {Selection or weighting of terms for indexing}
- G06F 16/951: Indexing; Web crawling techniques
- G06F 40/103: Formatting, i.e. changing of presentation of documents (automatic justification G06F40/189; automatic line break hyphenation G06F40/191)
- G06F 40/106: Display of layout of documents; Previewing
- G06F 40/14: Tree-structured documents (parsing G06F40/205; validation G06F40/226)
- G06V 30/414: Extracting the geometrical structure, e.g. layout tree; Block segmentation, e.g. bounding boxes for graphics or text
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06K: GRAPHICAL DATA READING (image or video recognition or understanding G06V); PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Systems and methods are provided for generating tables from print-ready digital source documents. A document is received and one or more text fragments are identified on a rendered page of the document. A wrapping region collection is generated, comprising one or more wrapping regions. A tabular, narrative and label score is generated for each wrapping region. A block type is assigned to each wrapping region based on the scores. A wrapping region group and a block set are generated. One or more tables are generated based on text fragments corresponding to one of the one or more blocks. The text fragments are organized into corresponding fields of the one or more tables.

## Claims

### Claim at position 1

-20. (canceled)

### Claim 21

One or more non-transitory computer-readable media including one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform operations comprising:
receiving a plurality of wrapping regions, wherein each of the wrapping regions comprises one or more respective fragments of text from an electronic source document;
generating a plurality of wrapping region groups, wherein each of the wrapping regions is added to a corresponding one of the wrapping region groups;
adding the plurality of wrapping region groups to a coordinate map;
selecting a first wrapping region group from the plurality wrapping region groups;
extending a boundary of the first wrapping region group on the coordinate map;
determining that the extended boundary of the first wrapping region group intersects a second boundary of a second wrapping region group of the plurality wrapping region groups;
determining a merge score for the second wrapping region group;
determining based on the merge score for the second wrapping region group, whether to merge the second wrapping region group with the first wrapping region group;
generating one or more tables based on the determination whether to merge the second wrapping region group with the first wrapping region group; and
providing an electronic output document comprising the one or more tables.

### Claim 22 (depends on 1)

The one or more non-transitory computer-readable media of claim 1, wherein the electronic source document is a print-ready digital source document.

### Claim 23 (depends on 21)

The one or more non-transitory computer-readable media of claim 21, wherein a file type of the electronic source document is at least one of a XPS file type, RTF file type, or PDF file type.

### Claim 24 (depends on 21)

The one or more non-transitory computer-readable media of claim 21, wherein each of the wrapping region groups comprises a respective set of spatial coordinate indicating a position of that wrapping region group on a rendered page.

### Claim 25 (depends on 21)

The one or more non-transitory computer-readable media of claim 21, wherein the first wrapping region group is selected based on at least one of a vertical position of the first wrapping region group on the coordinate map, a horizontal position of the first wrapping region group on the coordinate map, or a height of the first wrapping region group.

### Claim 26 (depends on 21)

The one or more non-transitory computer-readable media of claim 21, wherein extending the boundary of the first wrapping region group comprises extending the boundary in a leftward direction and in a rightward direction on the coordinate map.

### Claim 27 (depends on 26)

The one or more non-transitory computer-readable media of claim 26, wherein the first wrapping region is the tallest, uppermost, and leftmost wrapping region group of the plurality of wrapping region groups having a tabular block type.

### Claim 28 (depends on 26)

The one or more non-transitory computer-readable media of claim 26, wherein the merge score is determined based on at least one of:
a vertical alignment between the first wrapping region group and the second wrapping region group,
a block type of the first wrapping region group and a block type of the second wrapping region group, or
a number of matching lines between the first wrapping region group and the second wrapping region group.

### Claim 29 (depends on 21)

The one or more non-transitory computer-readable media of claim 21, wherein extending the boundary of the first wrapping region group comprises extending the boundary in an upward direction and in a downward direction on the coordinate map.

### Claim 30 (depends on 29)

The one or more non-transitory computer-readable media of claim 29, wherein the first wrapping region is the widest, uppermost, and leftmost wrapping region group of the plurality of wrapping region groups having a tabular block type.

### Claim 31 (depends on 29)

The one or more non-transitory computer-readable media of claim 29, wherein the merge score is determined based on at least one of:
a horizontal alignment between the first wrapping region group and the second wrapping region group,
a block column alignment between the first wrapping region group and the second wrapping region group, or
a column data type of the first wrapping region group and a column data type of the second wrapping region group.

### Claim 32 (depends on 21)

The one or more non-transitory computer-readable media of claim 21, further comprising:
subsequent to determining whether to merge the second wrapping region group with the first wrapping region group:
selecting a third wrapping region group from among the plurality wrapping region group;
extending a boundary of the third wrapping region group on the coordinate map;
determining that the extended boundary of the third wrapping region group intersects one or more boundaries of one or more other wrapping region groups of the plurality wrapping region groups;
determining for each of the one or more other wrapping region groups, a corresponding merge score, and
determining based on the merge scores, whether to merge the one or more other wrapping region groups with the third wrapping region group, and
wherein the one or more one or more tables are generated based further on the determination whether to merge the one or more other wrapping region groups with the third wrapping region group.

### Claim 33

A system comprising:
one or more processors;
one or more non-transitory computer-readable media including one or more sequences of instructions which, when executed by the one or more processors, causes the one or more processors to perform operations comprising:
receiving a plurality of wrapping regions, wherein each of the wrapping regions comprises one or more respective fragments of text from an electronic source document;
generating a plurality of wrapping region groups, wherein each of the wrapping regions is added to a corresponding one of the wrapping region groups;
adding the plurality of wrapping region groups to a coordinate map;
selecting a first wrapping region group from the plurality wrapping region groups;
extending a boundary of the first wrapping region group on the coordinate map;
determining that the extended boundary of the first wrapping region group intersects a second boundary of a second wrapping region group of the plurality wrapping region groups;
determining a merge score for the second wrapping region group;
determining based on the merge score for the second wrapping region group, whether to merge the second wrapping region group with the first wrapping region group;
generating one or more tables based on the determination whether to merge the second wrapping region group with the first wrapping region group; and
providing an electronic output document comprising the one or more tables.

### Claim 34 (depends on 33)

The system of claim 33, wherein the first wrapping region group is selected based on at least one of a vertical position of the first wrapping region group on the coordinate map, a horizontal position of the first wrapping region group on the coordinate map, or a height of the first wrapping region group.

### Claim 35 (depends on 33)

The system of claim 33, wherein extending the boundary of the first wrapping region group comprises extending the boundary in a leftward direction and in a rightward direction on the coordinate map.

### Claim 36 (depends on 35)

The system of claim 35, wherein the merge score is determined based on at least one of:
a vertical alignment between the first wrapping region group and the second wrapping region group,
a block type of the first wrapping region group and a block type of the second wrapping region group, or
a number of matching lines between the first wrapping region group and the second wrapping region group.

### Claim 37 (depends on 33)

The system of claim 33, wherein extending the boundary of the first wrapping region group comprises extending the boundary in an upward direction and in a downward direction on the coordinate map.

### Claim 38 (depends on 37)

The system of claim 37, wherein the merge score is determined based on at least one of:
a horizontal alignment between the first wrapping region group and the second wrapping region group,
a block column alignment between the first wrapping region group and the second wrapping region group, or
a column data type of the first wrapping region group and a column data type of the second wrapping region group.

### Claim 39 (depends on 33)

The system of claim 33, the operations further comprising:
subsequent to determining whether to merge the second wrapping region group with the first wrapping region group:
selecting a third wrapping region group from among the plurality wrapping region group;
extending a boundary of the third wrapping region group on the coordinate map;
determining that the extended boundary of the third wrapping region group intersects one or more boundaries of one or more other wrapping region groups of the plurality wrapping region groups;
determining for each of the one or more other wrapping region groups, a corresponding merge score, and
determining based on the merge scores, whether to merge the one or more other wrapping region groups with the third wrapping region group, and
wherein the one or more one or more tables are generated based further on the determination whether to merge the one or more other wrapping region groups with the third wrapping region group.

### Claim 40

A method comprising:
receiving, by a computing device, a plurality of wrapping regions, wherein each of the wrapping regions comprises one or more respective fragments of text from an electronic source document;
generating, by the computing device, a plurality of wrapping region groups, wherein each of the wrapping regions is added to a corresponding one of the wrapping region groups;
adding, by the computing device, the plurality of wrapping region groups to a coordinate map;
selecting, by the computing device, a first wrapping region group from the plurality wrapping region groups;
extending, by the computing device, a boundary of the first wrapping region group on the coordinate map;
determining, by the computing device, that the extended boundary of the first wrapping region group intersects a second boundary of a second wrapping region group of the plurality wrapping region groups;
determining, by the computing device, a merge score for the second wrapping region group;
determining, by the computing device, based on the merge score, whether to merge the second wrapping region group with the first wrapping region group;
generating, by the computing system, one or more tables based on the determination whether to merge the second wrapping region group with the first wrapping region group; and
providing, by the computing system, an electronic output document comprising the one or more tables.
