# US 2025/0148190 A1 · Appearance-Conserving Document Semantic Enhancement

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

- Number: US 2025/0148190 A1
- Document ID: US20250148190A1
- Status: Published application
- Kind: A1
- Application number: 18/503,592
- Filed: 2023-11-07
- Published: 2025-05-08
- Earliest claimed: 2023-11-07
- Assignees: CoreFiling S.A.R.L.
- Applicants: Corefiling S.A.R.L.
- Inventors: Jonathan Siddle; Mark Goodhand; Ben Russell; Nicolas Duvauchel; Ethan Bishop
- Web page: https://patentgrep.com/patent/US20250148190A1

## CPC

- G06F 40/151: Transformation
- G06F 40/103: Formatting, i.e. changing of presentation of documents (automatic justification G06F40/189; automatic line break hyphenation G06F40/191)
- G06F 40/143: Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
- G06F 40/154: Tree transformation for tree-structured or markup documents, e.g. XSLT, XSL-FO or stylesheets
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer implemented system and method automatically transform an original document (such as an HTML or XHTML document) into a transformed document, such that the transformed document includes elements which better represent the semantics of the original document, while having minimal impact on the document's rendered appearance. The transformed document may also be smaller, more practical to use, and more amenable to automated processing than the original document.

## Claims

### Claim 1

A method performed by at least one computer processor executing computer program instructions stored in at least one non-transitory computer-readable medium, the method comprising:
(A) receiving an original document as input;
(B) rendering the original document to produce an original document image;
(C) applying an ordered plurality of transformations on the original document, thereby producing a plurality of transformed documents, wherein the applying comprises rejecting any transformed documents whose rendered appearance satisfies a difference criterion relative to a rendered appearance of the original document;
(D) identifying a final transformed document that was not rejected in the plurality of transformed documents; and
(E) outputting the final transformed document.

### Claim 2 (depends on 1)

The method of claim 1, wherein (B) further comprises generating an original document map based on the original document, wherein the original document map comprises, for each element identifier I of a corresponding element E in the original document, a mapping from element identifier I to a corresponding location of a rendering of element E in the original document image.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
(F) before (C), generating, based on the original document and the original document rendering output, a plurality of features, the plurality of features including a plurality of classifications of a plurality of elements in the original document.

### Claim 4 (depends on 3)

The method of claim 3, wherein generating the plurality of features comprises:
inferring semantics of the plurality of elements in the original document based on relative positions of the plurality of elements within the original document; and
generating the plurality of features based on the inferred semantics of the plurality of elements.

### Claim 5 (depends on 3)

The method of claim 3, wherein (F) further comprises generating, based on the original document, the original document image, the original document map, and the plurality of classifications, a plurality of nestings of components specified by the plurality of classifications.

### Claim 6 (depends on 1)

The method of claim 1, wherein (C) comprises:
(C)(1) setting a current document to the original document;
(C)(2) for each transformation T in the ordered plurality of transformations:
(C)(2)(a) applying transformation T to the current document to generate a current transformed document;
(C)(2)(b) rendering the current transformed document to produce a current transformed document image;
(C)(2)(c) comparing the original document image to the current transformed document image to produce current image comparison output;
(C)(2)(d) only if the current image comparison output does not satisfy the difference criterion, then setting the current document to the current transformed document; and
wherein (D) comprises identifying the current document as the final transformed document.

### Claim 7 (depends on 6)

The method of claim 6, wherein (C)(2)(b) further comprises generating a current transformed document map based on the current transformed document, wherein the current transformed document map comprises, for each element identifier I of a corresponding element E in the current transformed document, a mapping from element identifier I to a corresponding location of a rendering of element E in the current transformed document image.

### Claim 8 (depends on 1)

The method of claim 1, wherein the original document comprises an XHTML document, and wherein the final transformed document comprises an XHTML document.

### Claim 9 (depends on 1)

The method of claim 1, wherein the original document comprises an HTML document, and wherein the final transformed document comprises an HTML document.

### Claim 10 (depends on 1)

The method of claim 1, wherein the original document comprises an iXBRL document, wherein the final transformed document comprises an iXBRL document, and wherein meanings of iXBRL tags in the original document are preserved in the final transformed document according to the iXBRL specification.

### Claim 11 (depends on 1)

The method of claim 1, wherein (C)(2)(d) comprises determining whether the current image comparison output satisfies the difference criterion, which comprises determining whether the current image comparison output is greater than a predetermined threshold value.

### Claim 12

A system comprising at least one non-transitory computer-readable medium having computer program instructions stored thereon, the computer program instructions being executable by at least one computer processor to perform a method, the method comprising:
(A) receiving an original document as input;
(B) rendering the original document to produce an original document image;
(C) applying an ordered plurality of transformations on the original document, thereby producing a plurality of transformed documents, wherein the applying comprises rejecting any transformed documents whose rendered appearance satisfies a difference criterion relative to a rendered appearance of the original document;
(D) identifying a final transformed document that was not rejected in the plurality of transformed documents; and
(E) outputting the final transformed document.

### Claim 13 (depends on 12)

The system of claim 12, wherein (B) further comprises generating an original document map based on the original document, wherein the original document map comprises, for each element identifier I of a corresponding element E in the original document, a mapping from element identifier I to a corresponding location of a rendering of element E in the original document image.

### Claim 14 (depends on 13)

The system of claim 13, wherein the method further comprises:
(F) before (C), generating, based on the original document and the original document rendering output, a plurality of features, the plurality of features including a plurality of classifications of a plurality of elements in the original document.

### Claim 15 (depends on 3)

The system of claim 3, wherein generating the plurality of features comprises:
inferring semantics of the plurality of elements in the original document based on relative positions of the plurality of elements within the original document; and
generating the plurality of features based on the inferred semantics of the plurality of elements.

### Claim 16 (depends on 14)

The system of claim 14, wherein (F) further comprises generating, based on the original document, the original document image, the original document map, and the plurality of classifications, a plurality of nestings of components specified by the plurality of classifications.

### Claim 17 (depends on 12)

The system of claim 12, wherein (C) comprises:
(C)(1) setting a current document to the original document;
(C)(2) for each transformation T in the ordered plurality of transformations:
(C)(2)(a) applying transformation T to the current document to generate a current transformed document;
(C)(2)(b) rendering the current transformed document to produce a current transformed document image;
(C)(2)(c) comparing the original document image to the current transformed document image to produce current image comparison output;
(C)(2)(d) only if the current image comparison output does not satisfy the difference criterion, then setting the current document to the current transformed document; and
wherein (D) comprises identifying the current document as the final transformed document.

### Claim 18 (depends on 17)

The system of claim 17, wherein (C)(2)(b) further comprises generating a current transformed document map based on the current transformed document, wherein the current transformed document map comprises, for each element identifier I of a corresponding element E in the current transformed document, a mapping from element identifier I to a corresponding location of a rendering of element E in the current transformed document image.

### Claim 19 (depends on 12)

The system of claim 12, wherein the original document comprises an XHTML document, and wherein the final transformed document comprises an XHTML document.

### Claim 20 (depends on 12)

The system of claim 12, wherein the original document comprises an HTML document, and wherein the final transformed document comprises an HTML document.

### Claim 21 (depends on 12)

The system of claim 12, wherein the original document comprises an iXBRL document, wherein the final transformed document comprises an iXBRL document, and wherein meanings of iXBRL tags in the original document are preserved in the final transformed document according to the iXBRL specification.

### Claim 22 (depends on 12)

The system of claim 12, wherein (C)(2)(d) comprises determining whether the current image comparison output satisfies the difference criterion, which comprises determining whether the current image comparison output is greater than a predetermined threshold value.
