# US 2025/0165703 A1 · Merging misidentified text structures in a document

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

- Number: US 2025/0165703 A1
- Document ID: US20250165703A1
- Status: Published application
- Kind: A1
- Application number: 18/511,111
- Filed: 2023-11-16
- Published: 2025-05-22
- Earliest claimed: 2023-11-16
- Assignees: Adobe Inc.
- Applicants: Adobe Inc.
- Inventors: Shwetha S; Jayant Vaibhav SRIVASTAVA; Dinesh AGARWAL; Aparna GARIMELLA; Anandhavelu N
- Web page: https://patentgrep.com/patent/US20250165703A1

## CPC

- G06F 40/174: Form filling; Merging
- G06F 40/109: Font handling; Temporal or kinetic typography
- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments are disclosed for merging misidentified text structures. The method may include receiving a document including a plurality of text elements. The method may further include determining, by a machine learning model, a likelihood of merging a first text element of the plurality of text elements with a second text element of the plurality of text elements based on structure data and context data associated with the first and second text elements. The method may further include determining whether the likelihood of merging the first text element with the second text element satisfies a threshold. The method further includes responsive to determining that the likelihood of merging the first text element with the second text element satisfies the threshold, merging the first text element with the second text element.

## Claims

### Claim 1

A method comprising:
receiving a document including a plurality of text elements;
determining, by a machine learning model, a likelihood of merging a first text element of the plurality of text elements with a second text element of the plurality of text elements based on structure data and context data associated with the first and second text elements;
determining whether the likelihood of merging the first text element with the second text element satisfies a threshold; and
responsive to determining that the likelihood of merging the first text element with the second text element satisfies the threshold, merging the first text element with the second text element.

### Claim 2 (depends on 1)

The method of claim 1, wherein the plurality of text elements include a plurality of headings, and wherein the first text element is a candidate heading and the second text element is a target heading.

### Claim 3 (depends on 2)

The method of claim 2, wherein the structure data associated with the first and second text elements includes a font of the candidate heading and a font of the target heading.

### Claim 4 (depends on 2)

The method of claim 2, wherein the structure data associated with the first and second text elements includes a distance between the candidate heading and the target heading.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
receiving a candidate bounding box including the candidate heading;
receiving a target bounding box including the target heading; and
determining a distance between a center of the candidate bounding box and a center of the target bounding box to obtain the distance between the candidate heading and the target heading.

### Claim 6 (depends on 2)

The method of claim 2, wherein the context data associated with the first and second text elements includes:
a candidate heading embedding generated by a language machine learning model based on the candidate heading; and
a target heading embedding generated by the language machine learning model based on the target heading.

### Claim 7 (depends on 1)

The method of claim 1, wherein the plurality of text elements include a plurality of paragraphs, and wherein the first text element is a candidate incomplete paragraph and the second text element is a target incomplete paragraph.

### Claim 8 (depends on 7)

The method of claim 7, wherein the candidate incomplete paragraph and the target incomplete paragraph share one or more structural attributes.

### Claim 9 (depends on 7)

The method of claim 7, wherein the context data associated with the first and second text elements includes:
a candidate incomplete paragraph embedding generated by the machine learning model based on the candidate incomplete paragraph, and
a target incomplete paragraph embedding generated by the machine learning model based on the target incomplete paragraph.

### Claim 10 (depends on 1)

The method of claim 1, wherein the likelihood of merging the first text element of the plurality of text elements with the second text element of the plurality of text elements is determined based on the structure data and the context data associated with the first and second text elements.

### Claim 11

A non-transitory computer-readable medium storing executable instructions, which when executed by a processing device, cause the processing device to perform operations comprising:
receiving a document including a candidate text element and a target text element;
classifying the candidate text element as a text element to be merged responsive to a merge likelihood satisfying a threshold, wherein the merge likelihood is based on a structure of the candidate text element and the target text element and a context of the candidate text element and the target text element;
updating a tag associated with at least one of the candidate text element or the target text element; and
obtaining a merged document using the updated tag.

### Claim 12 (depends on 11)

The non-transitory computer-readable medium of claim 11, wherein classifying the candidate text element as the text element to be merged, further causes the processing device to perform operations comprising:
determining, by a language machine learning model, a candidate heading embedding and a target heading embedding based on a candidate heading and a target heading, wherein the candidate heading is the candidate text element and the target heading is the target text element; and
determining, by a machine learning model, the merge likelihood based on a structure of the candidate heading and the target heading, and the candidate heading embedding and the target heading embedding.

### Claim 13 (depends on 12)

The non-transitory computer-readable medium of claim 12, wherein the structure of the candidate heading and the target heading includes a font of the candidate heading and a font of the target heading.

### Claim 14 (depends on 12)

The non-transitory computer-readable medium of claim 12, wherein the structure of the candidate heading and the target heading includes a distance between the candidate heading and the target heading.

### Claim 15 (depends on 11)

The non-transitory computer-readable medium of claim 11, wherein classifying the candidate text element as the text element to be merged, further causes the processing device to perform operations comprising:
determining, by a language machine learning model, the merge likelihood based on a structure of a candidate paragraph and a target paragraph, and a context of the candidate paragraph and the target paragraph, wherein the candidate paragraph is the candidate text element and the target paragraph is the target text element.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the context of the candidate paragraph and the target paragraph is determined using the language machine learning model, wherein the context of the candidate paragraph is a candidate paragraph embedding and the context of the target paragraph is a target paragraph embedding.

### Claim 17 (depends on 16)

The non-transitory computer-readable medium of claim 16, storing instructions that further cause the processing device to perform operations comprising:
determining, by the language machine learning model, the candidate paragraph embedding and the target paragraph embedding based on the target paragraph and the candidate paragraph, wherein the target paragraph and the candidate paragraph are each incomplete text paragraphs and share one or more structural attributes.

### Claim 18

A system comprising:
a memory component; and
a processing device coupled to the memory component, the processing device to perform operations comprising:
receiving a document including a plurality of text elements;
determining, by a machine learning model, a likelihood of merging a first text element of the plurality of text elements with a second text element of the plurality of text elements based on structure data and context data associated with the first and second text elements;
determining whether the likelihood of merging the first text element with the second text element satisfies a threshold; and
responsive to determining that the likelihood of merging the first text element with the second text element satisfies the threshold, merging the first text element with the second text element.

### Claim 19 (depends on 18)

The system of claim 18, wherein the plurality of text elements include a plurality of headings, and wherein the first text element is a candidate heading and the second text element is a target heading.

### Claim 20 (depends on 18)

The system of claim 18, wherein the plurality of text elements include a plurality of paragraphs, and wherein the first text element is a candidate incomplete paragraph and the second text element is a target incomplete paragraph.
