# US 2025/0061282 A1 · Method of generating training data, readable medium, and electronic device

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

- Number: US 2025/0061282 A1
- Document ID: US20250061282A1
- Status: Published application
- Kind: A1
- Application number: 18/784,900
- Filed: 2024-07-25
- Published: 2025-02-20
- Earliest claimed: 2023-08-15
- Assignees: Beijing Youzhuju Network Technology Co., Ltd.
- Applicants: Beijing Youzhuju Network Technology Co., Ltd.
- Inventors: Yukun MA
- Web page: https://patentgrep.com/patent/US20250061282A1

## CPC

- G06F 40/30: Semantic analysis
- G06F 40/295: Named entity recognition
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method of generating training data, a readable medium and an electronic device are provided. The method includes: acquiring sample data; determining a data generation template according to the sample data; generating question data according to the first data in the sample data and the data generation template, and determining answer data according to the second data other than the first data in the sample data; and combining the question data and the answer data into the training data.

## Claims

### Claim 1

A method of generating training data, comprising:
acquiring sample data;
determining a data generation template according to the sample data;
generating question data according to first data in the sample data and the data generation template, and determining answer data according to second data other than the first data in the sample data; and
combining the question data and the answer data into the training data.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining a data generation template according to the sample data, comprises:
when the sample data comprises tabular data, determining the data generation template according to arrangement information of data in the tabular data;
when the sample data comprises text data, determining the data generation template by at least one selected from the group consisting of:
performing semantic recognition on the sample data to obtain a semantic recognition result, and determining the data generation template according to the semantic recognition result; and
performing entity recognition on the sample data through a preset entity recognition model to obtain an entity recognition result, and determining the data generation template according to the entity recognition result.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the determining the data generation template according to the semantic recognition result, comprises:
searching for at least one data generation template carrying a first template identifier in a preset template library according to the semantic recognition result, wherein the preset template library pre-stores a plurality of the data generation templates, and the first template identifier is a preset template identifier matching the semantic recognition result; and
the determining the data generation template according to the entity recognition result, comprises:
searching for at least one data generation template carrying a second template identifier in the preset template library according to the entity recognition result, wherein the second template identifier is a preset template identifier matching the entity recognition result.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the determining the data generation template according to arrangement information of data in the tabular data, comprises:
determining a question template for acquiring a concept explanation content as the data generation template with respect to any of following data of the tabular data selected from the group consisting of: a table name, first row data, and first column data; and
determining a question template with a condition as the data generation template with respect to non-first row data other than the table name or non-first column data other than the table name in the tabular data.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the determining a data generation template according to the sample data, comprises:
when the first data in the sample data is a title, determining a first data generation template, wherein the first data generation template is a question template for acquiring an explanation content of the first data; and
the determining answer data according to second data other than the first data in the sample data, comprises:
taking a directory content corresponding to the sample data or an abstract content located after the first data in the sample data as the answer data.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the determining a data generation template according to the sample data, comprises:
when the first data in the sample data is a concept entity, determining a second data generation template, wherein the second data generation template is a question template for acquiring an explanation content of the first data; and
the determining answer data according to second data other than the first data in the sample data, comprises:
determining the answer data according to a context content of the first data in the sample data.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the determining a data generation template according to the sample data, comprises:
when the second data in the sample data is arrayed data, determining a third data generation template,
wherein the third data generation template is a question template for acquiring the arrayed data, and the first data is correspondingly data located before the second data in the sample data.

### Claim 8 (depends on 3)

The method according to claim 3, wherein the determining the data generation template according to arrangement information of data in the tabular data, comprises:
determining a question template for acquiring a concept explanation content as the data generation template with respect to any of following data of the tabular data selected from the group consisting of: a table name, first row data, and first column data; and
determining a question template with a condition as the data generation template with respect to non-first row data other than the table name or non-first column data other than the table name in the tabular data.

### Claim 9

A non-transient computer-readable medium, storing computer programs, wherein when the computer programs are executed by at least one processor, a method of generating training data is implemented, and the method of generating training data comprises:
acquiring sample data;
determining a data generation template according to the sample data;
generating question data according to first data in the sample data and the data generation template, and determining answer data according to second data other than the first data in the sample data; and
combining the question data and the answer data into the training data.

### Claim 10 (depends on 9)

The non-transient computer-readable medium according to claim 9, wherein the determining a data generation template according to the sample data, comprises:
when the sample data comprises tabular data, determining the data generation template according to arrangement information of data in the tabular data;
when the sample data comprises text data, determining the data generation template by at least one selected from the group consisting of:
performing semantic recognition on the sample data to obtain a semantic recognition result, and determining the data generation template according to the semantic recognition result; and
performing entity recognition on the sample data through a preset entity recognition model to obtain an entity recognition result, and determining the data generation template according to the entity recognition result.

### Claim 11 (depends on 10)

The non-transient computer-readable medium according to claim 10, wherein the determining the data generation template according to the semantic recognition result, comprises:
searching for at least one data generation template carrying a first template identifier in a preset template library according to the semantic recognition result, wherein the preset template library pre-stores a plurality of the data generation templates, and the first template identifier is a preset template identifier matching the semantic recognition result; and
the determining the data generation template according to the entity recognition result, comprises:
searching for at least one data generation template carrying a second template identifier in the preset template library according to the entity recognition result, wherein the second template identifier is a preset template identifier matching the entity recognition result.

### Claim 12 (depends on 10)

The non-transient computer-readable medium according to claim 10, wherein the determining the data generation template according to arrangement information of data in the tabular data, comprises:
determining a question template for acquiring a concept explanation content as the data generation template with respect to any of following data of the tabular data selected from the group consisting of: a table name, first row data, and first column data; and
determining a question template with a condition as the data generation template with respect to non-first row data other than the table name or non-first column data other than the table name in the tabular data.

### Claim 13 (depends on 9)

The non-transient computer-readable medium according to claim 9, wherein the determining a data generation template according to the sample data, comprises:
when the first data in the sample data is a title, determining a first data generation template, wherein the first data generation template is a question template for acquiring an explanation content of the first data; and
the determining answer data according to second data other than the first data in the sample data, comprises:
taking a directory content corresponding to the sample data or an abstract content located after the first data in the sample data as the answer data.

### Claim 14 (depends on 9)

The non-transient computer-readable medium according to claim 9, wherein the determining a data generation template according to the sample data, comprises:
when the first data in the sample data is a concept entity, determining a second data generation template, wherein the second data generation template is a question template for acquiring an explanation content of the first data; and
the determining answer data according to second data other than the first data in the sample data, comprises:
determining the answer data according to a context content of the first data in the sample data.

### Claim 15

An electronic device, comprising:
a memory, storing computer programs; and
at least one processor, configured to execute the computer programs in the memory to implement a method of generating training data, wherein the method of generating training data comprises:
acquiring sample data;
determining a data generation template according to the sample data;
generating question data according to first data in the sample data and the data generation template, and determining answer data according to second data other than the first data in the sample data; and
combining the question data and the answer data into the training data.

### Claim 16 (depends on 15)

The electronic device according to claim 15, wherein the determining a data generation template according to the sample data, comprises:
when the sample data comprises tabular data, determining the data generation template according to arrangement information of data in the tabular data;
when the sample data comprises text data, determining the data generation template by at least one selected from the group consisting of:
performing semantic recognition on the sample data to obtain a semantic recognition result, and determining the data generation template according to the semantic recognition result; and
performing entity recognition on the sample data through a preset entity recognition model to obtain an entity recognition result, and determining the data generation template according to the entity recognition result.

### Claim 17 (depends on 16)

The electronic device according to claim 16, wherein the determining the data generation template according to the semantic recognition result, comprises:
searching for at least one data generation template carrying a first template identifier in a preset template library according to the semantic recognition result, wherein the preset template library pre-stores a plurality of the data generation templates, and the first template identifier is a preset template identifier matching the semantic recognition result; and
the determining the data generation template according to the entity recognition result, comprises:
searching for at least one data generation template carrying a second template identifier in the preset template library according to the entity recognition result, wherein the second template identifier is a preset template identifier matching the entity recognition result.

### Claim 18 (depends on 16)

The electronic device according to claim 16, wherein the determining the data generation template according to arrangement information of data in the tabular data, comprises:
determining a question template for acquiring a concept explanation content as the data generation template with respect to any of following data of the tabular data selected from the group consisting of: a table name, first row data, and first column data; and
determining a question template with a condition as the data generation template with respect to non-first row data other than the table name or non-first column data other than the table name in the tabular data.

### Claim 19 (depends on 15)

The electronic device according to claim 15, wherein the determining a data generation template according to the sample data, comprises:
when the first data in the sample data is a title, determining a first data generation template, wherein the first data generation template is a question template for acquiring an explanation content of the first data; and
the determining answer data according to second data other than the first data in the sample data, comprises:
taking a directory content corresponding to the sample data or an abstract content located after the first data in the sample data as the answer data.

### Claim 20 (depends on 15)

The electronic device according to claim 15, wherein the determining a data generation template according to the sample data, comprises:
when the first data in the sample data is a concept entity, determining a second data generation template, wherein the second data generation template is a question template for acquiring an explanation content of the first data; and
the determining answer data according to second data other than the first data in the sample data, comprises:
determining the answer data according to a context content of the first data in the sample data.
