# US 2022/0284172 A1 · Machine learning technologies for structuring unstructured data

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

- Number: US 2022/0284172 A1
- Document ID: US20220284172A1
- Status: Published application
- Kind: A1
- Application number: 17/684,880
- Filed: 2022-03-02
- Published: 2022-09-08
- Earliest claimed: 2021-03-05
- Assignees: NeoCova Corporation
- Applicants: NeoCova Corporation
- Inventors: Maxwell Brian Rebo
- Web page: https://patentgrep.com/patent/US20220284172A1

## CPC

- G06F 40/126: Character encoding
- G06F 40/103: Formatting, i.e. changing of presentation of documents (automatic justification G06F40/189; automatic line break hyphenation G06F40/191)
- G06F 40/166: Editing, e.g. inserting or deleting
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/09: Supervised learning
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Technologies for formatting textual data include a computing device that obtains a string and generates a set of features by encoding the string according to an encoding scheme. Encoding the string may include assigning a character type and an indication of the character value to each character. The computing device inputs the features to a machine learning model, which outputs an indication of a modification to the string that the computing device may apply to the string. The computing device may generate simulated modifications using a Monte Carlo tree search simulation and include the simulation results in the set of features. The computing device may generate features for input data, input those features to a machine learning model that outputs a modification to the input data, and apply the modification to generate data according to a target schema. Other embodiments are described and claimed.

## Claims

### Claim 1

A computing device for automatically formatting textual data, the computing device comprising:
an encoder to (i) obtain a first string comprising a first plurality of characters and (ii) generate a first set of features by encoding of the first plurality of characters according to an encoding scheme, wherein the first set of features is indicative of, for each character of the first plurality of characters, a character type and a character value; and
a string modification system to (i) input the first set of features to a machine learning model to generate output indicative of a first modification to the first string, and (ii) apply the first modification to the first string to generate a second string comprising a second plurality of characters.

### Claim 2 (depends on 1)

The computing device of claim 1, wherein:
the string modification system is further to determine whether a stop criteria is met in response to application of the first modification; and
in response to a determination that the stop criteria is not met:
the encoder is to generate a second set of features by encoding of the second plurality of characters according to the encoding scheme; and
the string modification system is to (i) input the second set of features to the machine learning model to generate output indicative of a second modification to the second string, and (ii) apply the second modification to the second string to generate a third string.

### Claim 3 (depends on 1)

The computing device of claim 1, wherein to generate the first set of features further comprises to perform a Monte Carlo tree search simulation to generate a simulated modification to the first input string and a score associated with the simulated modification, wherein the first set of input features is further indicative of the simulated modification and the score associated with the simulated modification.

### Claim 4 (depends on 1)

The computing device of claim 1, wherein:
the encoder is further to obtain an indication of a target format for the input string; and
to generate the first set of features further comprises to generate the first set of features by encoding of the target format according to the encoding scheme.

### Claim 5 (depends on 1)

The computing device of claim 1, wherein the first modification is selected from a plurality of modifications including removal of a character of the input string, insertion of a character into the input string, and moving of a character from one location in the input string to another location in the input string.

### Claim 6 (depends on 1)

The computing device of claim 1, wherein to encode the first plurality of characters according to the encoding scheme comprises, for each character of the first plurality of characters, to assign a character type of a plurality of character types to the character.

### Claim 7 (depends on 6)

The computing device of claim 6, wherein the plurality of character types comprises a numerical digit, a lowercase letter, an uppercase letter, a space, or a period.

### Claim 8 (depends on 6)

The computing device of claim 6, wherein to encode the first plurality of characters further comprises, for each character of the first plurality of characters, to generate a vector that includes an indication of the character type assigned to the character and an indication of the character value of the character.

### Claim 9 (depends on 8)

The computing device of claim 8, wherein the vector comprises a two-hot encoded binary vector including a first set bit indicative of the character type and a second set bit indicative of the character value.

### Claim 10 (depends on 1)

The computing device of claim 1, wherein the machine learning model comprises a machine learning model trained to reformat phone number data or a machine learning model trained to reformat name data.

### Claim 11 (depends on 1)

The computing device of claim 1, wherein the machine learning model comprises a Neural Turing Machine (NTM).

### Claim 12

One or more non-transitory, computer-readable storage media comprising a plurality of instructions that in response to being executed cause a computing device to:
obtain a first string comprising a first plurality of characters;
generate a first set of features by encoding the first plurality of characters according to an encoding scheme, wherein the first set of features is indicative of, for each character of the first plurality of characters, a character type and a character value;
input the first set of features to a machine learning model to generate output indicative of a first modification to the first string; and
apply the first modification to the first string to generate a second string comprising a second plurality of characters.

### Claim 13 (depends on 12)

The one or more computer-readable storage media of claim 12, further comprising a plurality of instructions that in response to being executed cause the computing device to:
obtain an indication of a target format for the input string; wherein
to generate the first set of features further comprises to generate the first set of features by encoding the target format according to the encoding scheme.

### Claim 14 (depends on 12)

The one or more computer-readable storage media of claim 12, wherein the first modification is selected from a plurality of modifications including removal of a character of the input string, insertion of a character into the input string, and moving of a character from one location in the input string to another location in the input string.

### Claim 15 (depends on 12)

The one or more computer-readable storage media of claim 12, wherein to encode the first plurality of characters according to the encoding scheme comprises, for each character of the first plurality of characters, to assign a character type of a plurality of character types to the character.

### Claim 16 (depends on 15)

The one or more computer-readable storage media of claim 15, wherein to encode the first plurality of characters further comprises, for each character of the first plurality of characters, to generate a vector including an indication of the character type assigned to the character and an indication of the character value of the character.

### Claim 17

A computing device for automatically formatting data into a target schema, the computing device comprising:
an encoder to (i) select a first portion of a first textual data, wherein the first portion comprises a plurality of characters, and (ii) generate a first set of features by encoding of the first portion according to an encoding scheme, wherein the first set of features is indicative of, for each character of the first portion, a character type and a character value; and
a structure modification system to (i) input the first set of features to a machine learning model to generate output indicative of a first modification to the first textual data, and (ii) apply the first modification to the first textual data to generate a second textual data in the target schema.

### Claim 18 (depends on 17)

The computing device of claim 17, wherein to apply the first modification comprises to store the first portion in a first field of the second textual data, wherein the target schema is indicative of the first field.

### Claim 19 (depends on 17)

The computing device of claim 17, wherein:
the encoder is further to obtain an indication of the target schema; and
to generate the first set of features further comprises to generate the first set of features based on the indication of the target schema.

### Claim 20 (depends on 19)

The computing device of claim 19, wherein the indication of the target schema comprises an indication of at least one field in the target schema and an indication of at least one format for the at least one field.
