# US 2021/0342556 A1 · Foreign language machine translation of documents in a variety of formats

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

- Number: US 2021/0342556 A1
- Document ID: US20210342556A1
- Status: Published application
- Kind: A1
- Application number: 17/244,884
- Filed: 2021-04-29
- Published: 2021-11-04
- Earliest claimed: 2020-04-29
- Assignees: Vannevar Labs, Inc.
- Applicants: Vannevar Labs, Inc.
- Inventors: Daniel Goodman; Nathanial Hartman; Nathaniel Bush; Brett Granberg
- Web page: https://patentgrep.com/patent/US20210342556A1

## CPC

- G06F 3/0484: for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F 3/04842: Selection of displayed objects or displayed text elements (G06F3/0482 takes precedence)
- G06F 40/106: Display of layout of documents; Previewing
- G06F 40/44: Statistical methods, e.g. probability models
- G06F 40/47: Machine-assisted translation, e.g. using translation memory
- G06F 40/58: Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06V 30/19173: {Classification techniques}
- G06V 30/413: Classification of content, e.g. text, photographs or tables
- G06V 30/414: Extracting the geometrical structure, e.g. layout tree; Block segmentation, e.g. bounding boxes for graphics or text
- G06F 2207/4824: Neural networks
- G06N 20/00: Machine learning
- G06V 30/10: Character recognition
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Methods, systems, and apparatus, including computer programs encoded on computer storage media, for extracting text from an input document to generate one or more inference. Each inference box may be input into a machine learning network trained on training labels. Each training label provides a human-augmented version of output from a separate machine translation engine. A first translation may be generated by machine learning network. The first translation may be displayed in a user interface with respect to display of an original version of the input document and a translated version of a portion of the input document.

## Claims

### Claim 1

A system comprising:
one or more processors; and
a non-transitory computer readable medium storing a plurality of instructions, which when executed, cause the one or more processors to:
extract text from an input document to generate at least one inference box based on the extracted text, the inference box including a transcription of the extracted text;
input the inference box into a neural network foreign language translation (NN-FLT) model trained on one or more training labels associated with a separate machine translation engine, each training label providing a human-augmented version of each portion of machine translation output received from the separate machine translation engine, further comprising:
calculate a hash of the extracted text;
if the hash is located in a hash index of previously translated text:
skip input of the inference box to avoid retranslation; and
if the hash is not located in the hash index:
add the hash to the hash index; and
(ii) proceed to input the inference box into the NN-FLT model;
receive a first translation of the transcription generated by the NN-FLT model; and
display the first translation in a user interface with respect to display of an original version of the input document and display of a translated version of at least a portion of the input document.

### Claim 2 (depends on 1)

The system of claim 1, wherein extract text from an input document comprises:
extract a plurality of foreign language text strings from a cell phone document corpus, wherein at least one of the foreign language text strings is based on one or more foreign language linguistic variations utilized by a community of persons that is a source of the cell phone document corpus; wherein the separate machine translation engine comprises a third-party, open source machine translation engine unfamiliar with the one or more foreign language linguistic variations; and
generate a respective inference box for each extracted foreign language text strings.

### Claim 3 (depends on 1)

The system of claim 1, wherein the NN-FLT model is a transformer translation network based on an encoder-decoder transformer architecture.

### Claim 4 (depends on 1)

The system of claim 1, wherein extract text from an input document for generation at least one inference box comprises:
receive a transcription probability resulting from one of: optical character recognition or direct text extraction, wherein the inference box includes the transcription, the transcription probability and one or more coordinates that map to an input document location of the extracted text.

### Claim 5

(canceled)

### Claim 6 (depends on 1)

The system of claim 1, further comprises:
send the transcription of the extracted text to the separate machine translation engine;
receive a second translation of the transcription generated by separate machine translation engine; and
wherein display the first translation in the user interface comprises:
display the first and the second translation of the transcription with respect to display of the original version of the input document and display of the translated version of at least a portion of the input document.

### Claim 7

A system comprising:
one or more processors; and
a non-transitory computer readable medium storing a plurality of instructions, which when executed, cause the one or more processors to:
extract text from an input document to generate at least one inference box based on the extracted text, the inference box including a transcription of the extracted text;
input the inference box into a neural network foreign language translation (NN-FLT) model trained on one or more training labels associated with a separate machine translation engine, each training label providing a human-augmented version of each portion of machine translation output received from the separate machine translation engine;
receive a first translation of the transcription generated by the NN-FLT model; and
display the first translation in a user interface with respect to display of an original version of the input document and display of a translated version of at least a portion of the input document, wherein display the first translation in the user interface further comprises:
detect a selection of an icon representing the original document presented in the user interface; and
based on the selection of the icon, triggering a user interface side-by-side view of a portion of the original version of the input document and the translated version of the portion of the input document, wherein the inference box is represented in both views of the portion of the original version of the input document and the translated version of the portion of the input document.

### Claim 8 (depends on 7)

The system of claim 7, wherein triggering the user interface side-by-side view comprises:
detect selection of a translation preference; and
based on the translation preference, display the first translation from the NN-FLT model or the second translation from the separate machine translation engine in the inference box represented in the translated version of the portion of the input document.

### Claim 9

A computer-implemented method, comprising:
extracting text from an input document to generate at least one inference box based on the extracted text, the inference box including a transcription of the extracted text;
inputting the inference box into a neural network foreign language translation (NN-FLT) model trained on one or more training labels associated with a separate machine translation engine, each training label providing a human-augmented version of each portion of machine translation output received from the separate machine translation engine, further comprising:
calculating a hash of the extracted text;
if the hash is located in a hash index of previously translated text:
(i) skipping input of the inference box to avoid retranslation; and
if the hash is not located in the hash index;
adding the hash to the hash index; and
(ii) proceeding to input the inference box into the NN-FLT model;
receiving a first translation of the transcription generated by the NN-FLT model; and
displaying the first translation in a user interface with respect to display of an original version of the input document and display of a translated version of at least a portion of the input document.

### Claim 10 (depends on 9)

The computer-implemented method of claim 9, wherein extracting text from an input document comprises:
extracting a plurality of foreign language text strings from a cell phone document corpus, wherein at least one of the foreign language text strings is based on one or more foreign language linguistic variations utilized by a community of persons that is a source of the cell phone document corpus; wherein the separate machine translation engine comprises a third-party, open source machine translation engine unfamiliar with the one or more foreign language linguistic variations; and
generating a respective inference box for each extracted foreign language text strings.

### Claim 11 (depends on 9)

The computer-implemented method of claim 9, wherein the NN-FLT model is a transformer translation network based on an encoder-decoder transformer architecture.

### Claim 12 (depends on 9)

The computer-implemented method of claim 9, wherein extract text from an input document for generation at least one inference box comprises:
receiving a transcription probability resulting from one of: optical character recognition or direct text extraction, wherein the inference box includes the transcription, the transcription probability and one or more coordinates that map to an input document location of the extracted text.

### Claim 13

(canceled)

### Claim 14 (depends on 9)

The computer-implemented method of claim 9, further comprises:
sending the transcription of the extracted text to the separate machine translation engine;
receiving a second translation of the transcription generated by separate machine translation engine; and
wherein displaying the first translation in the user interface comprises:
displaying the first and the second translation of the transcription with respect to display of the original version of the input document and display of the translated version of at least a portion of the input document.

### Claim 15

A computer-implemented method, comprising:
extracting text from an input document to generate at least one inference box based on the extracted text, the inference box including a transcription of the extracted text;
inputting the inference box into a neural network foreign language translation (NN-FLT) model trained on one or more training labels associated with a separate machine translation engine, each training label providing a human-augmented version of each portion of machine translation output received from the separate machine translation engine;
receiving a first translation of the transcription generated by the NN-FLT model; and
displaying the first translation in a user interface with respect to display of an original version of the input document and display of a translated version of at least a portion of the input document, wherein displaying the first translation in the user interface further comprises:
detecting a selection of an icon representing the original document presented in the user interface; and
based on the selection of the icon, triggering a user interface side-by-side view of a portion of the original version of the input document and the translated version of the portion of the input document, wherein the inference box is represented in both views of the portion of the original version of the input document and the translated version of the portion of the input document.

### Claim 16 (depends on 15)

The computer-implemented method of claim 15, wherein triggering the user interface side-by-side view comprises:
detecting selection of a translation preference; and
based on the translation preference, displaying the first translation from the NN-FLT model or the second translation from the separate machine translation engine in the inference box represented in the translated version of the portion of the input document.

### Claim 17

A computer program product comprising a non-transitory computer-readable medium having a computer-readable program code embodied therein to be executed by one or more processors, the program code including instructions to:
extract text from an input document to generate at least one inference box based on the extracted text, the inference box including a transcription of the extracted text;
input the inference box into a neural network foreign language translation (NN-FLT) model trained on one or more training labels associated with a separate machine translation engine, each training label providing a human-augmented version of each portion of machine translation output received from the separate machine translation engine, further comprising:
calculate a hash of the extracted text;
if the hash is located in a hash index of previously translated text:
skip input of the inference box to avoid retranslation; and
if the hash is not located in the hash index:
(i) add the hash to the hash index; and
(ii) proceed to input the inference box into the NN-FLT model;
receive a first translation of the transcription generated by the NN-FLT model; and
display the first translation in a user interface with respect to display of an original version of the input document and display of a translated version of at least a portion of the input document.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein extract text from an input document comprises:
extract a plurality of foreign language text strings from a cell phone document corpus, wherein at least one of the foreign language text strings is based on one or more foreign language linguistic variations utilized by a community of persons that is a source of the cell phone document corpus; wherein the separate machine translation engine comprises a third-party, open source machine translation engine unfamiliar with the one or more foreign language linguistic variations; and
generate a respective inference box for each extracted foreign language text strings.

### Claim 19 (depends on 17)

The computer program product of claim 17, wherein the NN-FLT model is a transformer translation network based on an encoder-decoder transformer architecture.

### Claim 20 (depends on 17)

The computer program product of claim 17, further comprises:
send the transcription of the extracted text to the separate machine translation engine;
receive a second translation of the transcription generated by separate machine translation engine; and
wherein display the first translation in the user interface comprises:
display the first and the second translation of the transcription with respect to display of the original version of the input document and display of the translated version of at least a portion of the input document.

### Claim 21

A computer program product comprising a non-transitory computer-readable medium having a computer-readable program code embodied therein to be executed by one or more processors, the program code including instructions to:
extract text from an input document to generate at least one inference box based on the extracted text, the inference box including a transcription of the extracted text;
input the inference box into a neural network foreign language translation (NN-FLT) model trained on one or more training labels associated with a separate machine translation engine, each training label providing a human-augmented version of each portion of machine translation output received from the separate machine translation engine;
receive a first translation of the transcription generated by the NN-FLT model; and
display the first translation in a user interface with respect to display of an original version of the input document and display of a translated version of at least a portion of the input document, wherein display the first translation in the user interface further comprises:
detect a selection of an icon representing the original document presented in the user interface; and
based on the selection of the icon, triggering a user interface side-by-side view of a portion of the original version of the input document and the translated version of the portion of the input document, wherein the inference box is represented in both views of the portion of the original version of the input document and the translated version of the portion of the input document.
