Data generation method, device, computing equipment and medium

By obtaining the query keywords in the table data and generating a variety of reply sentences based on similarity conditions, the problem of rigid and redundant reply sentence generation in the existing technology is solved, and automatic generation of reply sentences in the form of natural language and language model training data are realized. expansion.

CN114579601BActive Publication Date: 2024-09-03ALIBABA (CHINA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210188239.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2024-09-03
Estimated Expiration
2042-02-28

AI Technical Summary

Technical Problem

In the existing technology, generating reply sentences based on preset templates has problems such as large configuration volume, dull and redundant replies, and it is difficult to generate smooth natural language reply sentences.

Method used

By obtaining tabular data of the target query words, obtaining query keywords, and generating multiple types of reply sentences based on similarity conditions, including permutations and combinations of phrases and sentence templates, automatic generation of reply sentences in the form of natural language is achieved.

Benefits of technology

It achieves the generation of diversified natural language reply sentences, improves the fluency and diversity of reply sentences, and is suitable for reply sentence expansion and language model training in table question and answer scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114579601B
    Figure CN114579601B
Patent Text Reader

Abstract

One or more embodiments of the present application provide a data generation method, apparatus, computing device and medium. The present application obtains a first query result corresponding to a target query word, thereby obtaining a query keyword based on the obtained first query result, so as to perform a query in the first query result based on the obtained multiple query keywords to obtain a second query result corresponding to multiple query keywords, and then can generate multiple reply statements according to multiple types of set templates, based on the target keyword whose similarity with any query keyword meets the set conditions, and the second query result, so as to realize the automatic generation of multiple types of reply statements in natural language form.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of the present specification relate to the field of natural language processing technology, and in particular, to a data generation method, apparatus, computing device, and medium. Background Art

[0002] Table Question Answering (TableQA) is a task that gives answers to natural language questions based on the content of a table. The above task can be described as: querying a table set (including one or more tables) based on the natural language questions entered by the user to obtain the corresponding answers. After obtaining the answer corresponding to the natural language question, it is necessary to generate a corresponding reply statement based on the obtained answer so that the generated reply statement can be fed back to the user.

[0003] In the related art, a preset template can be used to generate a reply statement. However, the reply statements generated based on the preset template have the problems of large configuration volume, rigid responses, and redundancy. Therefore, there is an urgent need for a data generation method for generating reply statements to automatically generate fluent natural language reply statements. Summary of the invention

[0004] In view of this, one or more embodiments of the present specification provide a data generation method, apparatus, computing device, and medium.

[0005] To achieve the above objectives, one or more embodiments of this specification provide the following technical solutions:

[0006] According to a first aspect of one or more embodiments of this specification, a data generation method is proposed, the method comprising:

[0007] Obtaining a first query result corresponding to the target query term, where the first query result is data in a table format;

[0008] Based on the first query result, obtaining multiple query keywords;

[0009] Searching the first query result based on the multiple query keywords, obtaining second query results corresponding to the multiple query keywords;

[0010] According to multiple types of setting templates, multiple reply sentences are generated based on the target keyword whose similarity with any query keyword meets the set conditions and the second query result.

[0011] In some embodiments, according to multiple types of set templates, based on the target keyword whose similarity with any query keyword meets the set conditions and the second query result, multiple reply statements are generated, including:

[0012] For any query keyword, obtain a target keyword whose similarity with the query keyword meets the set conditions;

[0013] generating a plurality of candidate phrases according to a plurality of types of set phrase templates based on a plurality of query keywords, a target keyword corresponding to each query keyword, and a second query result;

[0014] According to various types of set sentence templates, multiple candidate phrases are arranged and combined to obtain multiple reply sentences.

[0015] In some embodiments, obtaining a first query result corresponding to the target query term includes:

[0016] Acquire a target query word that meets the first target condition;

[0017] A search is performed based on the target query word through the target search engine to obtain a first query result corresponding to the target query word.

[0018] In some embodiments, after obtaining the first query result corresponding to the target query term, the method further includes:

[0019] Performing data cleaning processing on the first query result;

[0020] Based on the first query result, multiple query keywords are obtained, including:

[0021] Based on the first query result after data cleaning processing, multiple query keywords are obtained.

[0022] In some embodiments, performing data cleaning on the first query result includes at least one of the following:

[0023] Based on the plurality of blacklist words, deleting a table including any blacklist word from the first query result;

[0024] Based on the table headers included in each table in the first query result, delete from the first query result the table corresponding to the table header in which the proportion of the first set word reaches the first ratio threshold;

[0025] Delete the tables whose number of table rows or columns in the first query result is less than the set number threshold;

[0026] Based on the number of occurrences of each data in the first query result, delete from the first query result the table corresponding to the data whose number of occurrences reaches a second ratio threshold;

[0027] Based on the data included in the first query result, a table corresponding to the data composed of the second setting words is deleted from the first query result.

[0028] In some embodiments, based on the first query result, multiple query keywords are obtained, including:

[0029] Based on the first query result, construct a structured query SQL statement, where the SQL statement includes multiple query keywords;

[0030] Searching the first query results based on the multiple query keywords to obtain the second query results corresponding to the multiple query keywords includes:

[0031] A query is performed in the first query result based on the SQL statement to obtain a second query result corresponding to multiple query keywords.

[0032] In some embodiments, after querying the first query result based on the SQL statement to obtain the second query result corresponding to the plurality of query keywords, the method further includes:

[0033] Filter the SQL statements based on the second query result to obtain a target SQL statement;

[0034] According to various types of setting templates, based on the target keyword whose similarity with any query keyword meets the setting conditions and the second query result, multiple reply statements are generated, including:

[0035] According to multiple types of setting templates, multiple reply statements are generated based on target keywords whose similarity with the query keywords in the target SQL statement meets the set conditions, and the second query result.

[0036] In some embodiments, the SQL statement is filtered based on the second query result to obtain a target SQL statement, including at least one of the following:

[0037] From the SQL statements, delete the SQL statements whose corresponding second query results are greater than the set number, and use the remaining SQL statements as target SQL statements;

[0038] From the SQL statements, delete the SQL statements whose corresponding second query results are empty, and use the remaining SQL statements as target SQL statements.

[0039] According to a second aspect of one or more embodiments of this specification, a data generating device is provided, the device comprising:

[0040] A first acquisition module, used to acquire a first query result corresponding to the target query term, the first query result being data in a table format;

[0041] A second acquisition module, used to acquire multiple query keywords based on the first query result;

[0042] A query module, configured to query the first query result based on multiple query keywords to obtain second query results corresponding to the multiple query keywords;

[0043] The generation module is used to generate multiple reply statements according to multiple types of setting templates, based on the target keyword whose similarity with any query keyword meets the set conditions, and the second query result.

[0044] In some embodiments, the generating module, when used to generate multiple reply statements according to multiple types of setting templates, based on the target keyword whose similarity with any query keyword satisfies the setting conditions, and the second query result, is used to:

[0045] For any query keyword, obtain a target keyword whose similarity with the query keyword meets the set conditions;

[0046] generating a plurality of candidate phrases according to a plurality of types of set phrase templates based on a plurality of query keywords, a target keyword corresponding to each query keyword, and a second query result;

[0047] According to various types of set sentence templates, multiple candidate phrases are arranged and combined to obtain multiple reply sentences.

[0048] In some embodiments, the first acquisition module, when used to acquire the first query result corresponding to the target query term, is used to:

[0049] Acquire a target query word that meets the first target condition;

[0050] A search is performed based on the target query word through the target search engine to obtain a first query result corresponding to the target query word.

[0051] In some embodiments, the apparatus further comprises:

[0052] A data cleaning module, used for performing data cleaning processing on the first query result;

[0053] The second acquisition module, when used to acquire multiple query keywords based on the first query result, is used to:

[0054] Based on the first query result after data cleaning processing, multiple query keywords are obtained.

[0055] In some embodiments, the data cleaning module, when used to perform data cleaning processing on the first query result, is used for at least one of the following:

[0056] Based on the plurality of blacklist words, deleting a table including any blacklist word from the first query result;

[0057] Based on the table headers included in each table in the first query result, delete from the first query result the table corresponding to the table header in which the proportion of the first set word reaches the first ratio threshold;

[0058] Delete the tables whose number of table rows or columns in the first query result is less than the set number threshold;

[0059] Based on the number of occurrences of each data in the first query result, delete from the first query result the table corresponding to the data whose number of occurrences reaches a second ratio threshold;

[0060] Based on the data included in the first query result, a table corresponding to the data composed of the second setting words is deleted from the first query result.

[0061] In some embodiments, the second acquisition module, when used to acquire multiple query keywords based on the first query result, is used to:

[0062] Based on the first query result, construct a structured query SQL statement, where the SQL statement includes multiple query keywords;

[0063] The query module, when used to perform a query in the first query result based on the multiple query keywords to obtain the second query result corresponding to the multiple query keywords, is used to:

[0064] A query is performed in the first query result based on the SQL statement to obtain a second query result corresponding to multiple query keywords.

[0065] In some embodiments, the apparatus further comprises:

[0066] A filtering module, used to filter the SQL statement based on the second query result to obtain a target SQL statement;

[0067] The generating module, when used to generate multiple reply statements according to multiple types of setting templates, based on the target keyword whose similarity with any query keyword satisfies the setting conditions and the second query result, is used to:

[0068] According to multiple types of setting templates, multiple reply statements are generated based on target keywords whose similarity with the query keywords in the target SQL statement meets the set conditions, and the second query result.

[0069] In some embodiments, the filtering module, when used to filter the SQL statement based on the second query result to obtain the target SQL statement, is used for at least one of the following:

[0070] From the SQL statements, delete the SQL statements whose corresponding second query results are greater than the set number, and use the remaining SQL statements as target SQL statements;

[0071] From the SQL statements, delete the SQL statements whose corresponding second query results are empty, and use the remaining SQL statements as target SQL statements.

[0072] According to a third aspect of one or more embodiments of this specification, a computing device is provided, the computing device comprising:

[0073] processor;

[0074] a memory for storing processor-executable instructions;

[0075] The processor implements the operations performed by the data generation method provided in the first aspect and any embodiment of the first aspect by running executable instructions.

[0076] According to a fourth aspect of one or more embodiments of this specification, a computer-readable storage medium is proposed, on which computer instructions are stored. When the instructions are executed by a processor, the operations performed by the data generation method provided in the above-mentioned first aspect and any embodiment of the first aspect are implemented.

[0077] According to the fifth aspect of one or more embodiments of this specification, a computer program product is proposed, including a computer program, which, when executed by a processor, implements the operations performed by the data generation method provided in the above-mentioned first aspect and any embodiment of the first aspect.

[0078] The present application obtains a first query result corresponding to a target query word, and then obtains query keywords based on the obtained first query result, so as to perform a query in the first query result based on the obtained multiple query keywords to obtain second query results corresponding to the multiple query keywords, and then can generate multiple reply statements according to multiple types of set templates, based on the target keyword whose similarity with any query keyword meets the set conditions, and the second query result, so as to realize the automatic generation of multiple types of reply statements in natural language form. BRIEF DESCRIPTION OF THE DRAWINGS

[0079] Figure 1 It is a flowchart of a data generating method provided by an exemplary embodiment.

[0080] Figure 2 It is a schematic diagram of a reply sentence rewriting situation provided by an exemplary embodiment.

[0081] Figure 3 This is a schematic diagram of the domain distribution of a reply sentence provided by an exemplary embodiment.

[0082] Figure 4It is a schematic diagram of a comparison between a data set generated by the present application and a CoSQL data set provided by an exemplary embodiment.

[0083] Figure 5 It is a flowchart of a data generating method provided by an exemplary embodiment.

[0084] Figure 6 It is a block diagram of a data generating device provided by an exemplary embodiment.

[0085] Figure 7 It is a schematic structural diagram of a computing device provided by an exemplary embodiment. DETAILED DESCRIPTION

[0086] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Instead, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.

[0087] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.

[0088] The present application provides a data generation method for automatically generating multiple types of natural language response statements to achieve the expansion of the response statements that can be used in the form question and answer process, so as to use the expanded response statements as training data for training the language model. The above data generation method can be executed by a computing device, and the computing device can be a server, such as a server, multiple servers, a server cluster, a cloud computing platform, etc., or the computing device can be a terminal device, such as a desktop computer, a portable computer, a supercomputer, etc. The present application does not limit the specific type of the computing device.

[0089] In some embodiments, after the expansion of the reply sentences that can be used in the form question and answer process is achieved through the data generation method provided by the present application, the expanded reply sentences can be used as training data for the language model, so that the language model can be trained based on the expanded reply sentences, thereby obtaining a language model for automatically giving reply sentences based on questions in natural language form.

[0090] Among them, the language model can be various types of neural network models, for example, the language model can be a transformer model, a bidirectional long short-term memory (LSTM) network model, a bidirectional encoder representation (Bidirectional Encoder Representations from Transformers, BERT) model, etc. This application does not limit the specific type of the language model.

[0091] It should be noted that the language model can be used in form question and answer scenarios in various fields, for example, government affairs, finance, education, operators, medical care and other fields. This application does not limit the specific scenarios in which the language model is applied.

[0092] The above is an introduction to the application environment of the present application. Based on the application environment introduced in the above content, the data generation method provided by the present application will be further explained below.

[0093] See also Figure 1 , Figure 1 is a flow chart of a data generation method provided by an exemplary embodiment, the method comprising:

[0094] Step 101: Obtain a first query result corresponding to a target query term, where the first query result is data in a table format.

[0095] Among them, the target query word can be a variety of types of words, for example, the target query word can be a word belonging to the medical field, or the target query word can be a word belonging to the education field, or the target query word can be a word belonging to the financial field, etc. This application does not limit the specific type of the target query word.

[0096] Step 102: Based on the first query result, obtain multiple query keywords.

[0097] Step 103: Search in the first query result based on the multiple query keywords to obtain second query results corresponding to the multiple query keywords.

[0098] Step 104 : Generate multiple reply statements according to multiple types of set templates, based on the target keyword whose similarity with any query keyword meets the set conditions, and the second query result.

[0099] The present application obtains a first query result corresponding to a target query word, and then obtains query keywords based on the obtained first query result, so as to perform a query in the first query result based on the obtained multiple query keywords to obtain second query results corresponding to the multiple query keywords, and then can generate multiple reply statements according to multiple types of set templates, based on the target keyword whose similarity with any query keyword meets the set conditions, and the second query result, so as to realize the automatic generation of multiple types of reply statements in natural language form.

[0100] After introducing the basic implementation process of the present application, the data generation method provided by the present application is further explained below in combination with multiple optional embodiments of the present application.

[0101] In some embodiments, for step 101, when obtaining the first query result corresponding to the target query term, the following steps may be included:

[0102] Step 1011: Obtain a target query term that meets a first target condition.

[0103] In one possible implementation, a target query word that meets a first target condition may be obtained from a target data set. The first target condition may be that the frequency of use of the word reaches a second set threshold number of times. Alternatively, the first target condition may be that the frequency of use of each word in the target data set is sorted in descending order, with the ranked frequency of use of the word being before a set position. Alternatively, the first target condition may be other conditions. This application does not limit the specific type of the first target condition.

[0104] The target dataset may be any open source dataset, for example, the target dataset may be a Chinese Language Understanding Evaluation (CLUE) dataset, or the target dataset may be another type of dataset. The present application does not limit the specific type of the target dataset.

[0105] Taking the target data set as the CLUE data set and the first target condition as the ranking of the frequency of use of words before the set position as an example, when the set position is 100,000, the frequency of use of each word included in the CLUE data set can be obtained, and then the words can be sorted in order from large to small according to the frequency of use, so as to obtain each word ranked before the 100,000th place, thereby obtaining 100,000 words as target query words.

[0106] Step 1012: Search based on the target query word through the target search engine to obtain a first query result corresponding to the target query word.

[0107] In a possible implementation, each target query word can be input into the target search engine respectively, and the target search engine can be used to perform searches based on each target query word to obtain a first query result corresponding to each target query word, that is, data in a tabular form corresponding to each target query word.

[0108] Optionally, when searching based on the target query term through the target search engine to obtain a first query result corresponding to the target search term, you can first search based on the target query term through the target search engine to obtain a form corresponding to the target search term, and then parse the obtained form to obtain data in a tabular form corresponding to the target query term, thereby obtaining the first query result.

[0109] The target search engine may be any search engine, for example, the target search engine may be a Google search engine. Optionally, the target search engine may also be other search engines. The present application does not limit the specific type of the target search engine.

[0110] Optionally, after obtaining the first query result corresponding to the target query word, the query keyword can be obtained based on the obtained query result. In addition, it should be noted that since the first query result is obtained based on the target query word, the obtained table data will include at least one target query word. In addition, the table data may also include other words, and there may be words that do not meet the requirements. Therefore, in more possible implementations, after obtaining the first query result corresponding to the target query word, the first query result may be subjected to data cleaning processing, so that multiple query keywords can be obtained based on the first query result that has undergone data cleaning processing.

[0111] In some embodiments, the first query result may be cleaned by at least one of the following methods:

[0112] 1. Based on multiple blacklist words, delete the table including any blacklist word from the first query result.

[0113] Among them, these multiple blacklist words can be pre-set. After obtaining the first query result corresponding to the target query word, you can search among the various words included in the first query result to determine whether the various tables included in the first query result include the blacklist words, thereby deleting the tables including the blacklist words.

[0114] For example, for any table in the first query result, you can search among the words included in the table. If there are blacklist words among the words included in the table, delete the table from the obtained first query result; if there are no blacklist words among the words included in the table, there is no need to delete the table.

[0115] Optionally, the blacklist words may be words of various types, for example, the blacklist words may include special characters, swear words, pornographic words, emoticons (such as emojis), etc. The present application does not limit the specific types of blacklist words.

[0116] 2. Based on the table headers included in each table in the first query result, the table corresponding to the table header in which the proportion of the first set word reaches the first ratio threshold is deleted from the first query result.

[0117] Among them, the first setting word can be pre-set, then after obtaining the first query result corresponding to the target query word, it can be searched in the headers (including row names and column names) included in each table in the first query result to determine whether the headers of each table include the first setting word and the proportion of the first setting word in the headers including the first setting word, so as to delete the table whose header includes the first setting word and the proportion of the first setting word reaches the first ratio threshold. Optionally, the first ratio threshold can be any value, for example, the first ratio threshold can be 70%, and the specific value of the first ratio threshold is not limited in this application.

[0118] For example, for any table in the first query result, you can search in the various headers included in the table, and when the first setting word exists in the header included in the table, determine the proportion of the first setting word in the header, and then when the proportion of the first setting word reaches the first proportion threshold, delete the table from the acquired first query result; if the first setting word does not exist in the header included in the table, or if the first setting word exists in the header included in the table but the proportion of the first setting word does not reach the first proportion threshold, there is no need to delete the table.

[0119] Optionally, the first setting word may be a variety of types of words, for example, the first setting word may be a date, English, a number, etc. The present application does not limit the specific type of the first setting word.

[0120] 3. Delete the tables whose number of rows or columns in the first query result is less than the set number threshold.

[0121] The set quantity threshold may be any value, for example, the set quantity threshold may be 2. Optionally, the set quantity threshold may also be other values. The present application does not limit the specific value of the set quantity threshold.

[0122] Taking the setting of the quantity threshold as 2 as an example, the tables in the first query result whose table rows or table columns are less than 2 can be deleted. For example, if a table has only one row, the table can be deleted from the first query result; for another example, if a table has only one column, the table can be deleted from the first query result.

[0123] 4. Based on the number of occurrences of each data in the first query result, delete from the first query result the table corresponding to the data whose number of occurrences reaches a second ratio threshold.

[0124] For any table in the first query result, the number of occurrences of each data in the table is obtained, so as to determine the proportion of the number of occurrences of each data in the table, so that when the proportion of the number of occurrences of any data reaches a second proportion threshold, the table can be deleted from the first query result. The second proportion threshold can be any value, for example, the second proportion threshold can be 50%.

[0125] Optionally, the occurrence ratio of each data in the row or column can also be determined, so that the table corresponding to the data whose occurrence ratio in a row or column reaches a second ratio threshold can be deleted.

[0126] 5. Based on the data included in the first query result, delete the table corresponding to the data composed of the second setting words from the first query result.

[0127] For example, for any table in the first query result, you can search among the various words included in the table. If there is data consisting only of the second set words among the words included in the table, the table can be deleted from the first query result. If there is no data consisting only of the second set words among the words included in the table, there is no need to delete the table.

[0128] The second setting words may be words of various types. For example, the second setting words may be letters, numbers, Hyper Text Markup Language (HTML) symbols, etc. The present application does not limit the specific types of the second setting words.

[0129] Through at least one of the above processes, data cleaning processing of the first query result can be achieved, so that the tables corresponding to the data that do not meet the requirements or are meaningless in the first query result can be eliminated, reducing the impact of these data that do not meet the requirements or are meaningless, so that subsequent data processing processes do not need to process these data, thereby improving the efficiency and accuracy of subsequent data processing processes.

[0130] It should be noted that, regardless of whether the first query result is subjected to data cleaning processing, the query keywords can be obtained based on the first query result. If the first query result is not subjected to data cleaning processing, multiple query keywords can be obtained directly based on the first query result corresponding to the target query term; if the first query result is subjected to data cleaning processing, multiple query keywords can be obtained based on the first query result subjected to data cleaning processing.

[0131] The following takes the process of obtaining multiple query keywords based on the first query result corresponding to the target query word as an example to illustrate the process of obtaining multiple query keywords based on the first query result in step 102.

[0132] In a possible implementation, a structured query language (SQL) statement may be constructed based on the first query result, where the SQL statement includes a plurality of query keywords.

[0133] For example, according to the context-free grammar for indicating the production set corresponding to the SQL statement and the preset abstract syntax tree, the data in the table data can be filled into the corresponding positions in the production set and the abstract syntax tree to realize the generation of the SQL statement.

[0134] Among them, the abstract syntax tree can be shown as follows:

[0135] Sql=(select select,cond? Where)

[0136] select = (agg * aggs)

[0137] agg=(agg_type agg_id,column col_id)

[0138] agg_type=NoneAggOp|Max|Min|Or(cond left,cond right)|Not(cond c)

[0139] The context-free grammar used to indicate the set of productions corresponding to the SQL statement can be as follows:

[0140] sql→select;

[0141] sql→select,cond;

[0142] select→agg;

[0143] select→agg,agg;

[0144] agg→agg_type,column;

[0145] agg_type → NoneAggOp;

[0146] agg_type→Max;

[0147] agg_type→Min;

[0148] cond → And;

[0149] cond → Or;

[0150] cond → Not;

[0151] It should be noted that the above process is explained by taking the example of obtaining multiple query keywords directly based on the first query result corresponding to the target query word. The process of obtaining multiple query keywords based on the first query result after data cleaning is similar and will not be repeated here.

[0152] It should be noted that after obtaining multiple query keywords, a query can be performed in the first query result based on the obtained query keywords. In some embodiments, for step 103, when a query is performed in the first query result based on the multiple query keywords to obtain the second query results corresponding to the multiple query keywords, it can be implemented in the following manner:

[0153] A search is performed in the table headers included in the first query result to determine a table with the query keyword as the table header, so as to obtain the second query results corresponding to the multiple query keywords from the positions corresponding to the query keywords in the table.

[0154] In addition, if the acquisition of multiple query keywords is achieved by constructing an SQL statement, then for step 103, when searching in the first query result based on the multiple query keywords and obtaining the second query results corresponding to the multiple query keywords, it can be achieved in the following manner:

[0155] A query is performed in the first query result based on the SQL statement to obtain a second query result corresponding to multiple query keywords.

[0156] For example, the SQL statement can be executed to search in the table header included in the first query result, thereby determining the table with the query keyword as the header, and then obtaining the query result corresponding to the SQL statement from the position corresponding to the query keyword in the table, that is, the second query result corresponding to the multiple query keywords.

[0157] In addition, in some embodiments, after obtaining the first query result, multiple tables included in the first query result can also be stored in the target location, thereby obtaining a queryable query data set located at the target location, so that subsequent queries can be performed in the queryable query data set.

[0158] Optionally, the target location may be a storage location on a computing device, or the target location may be a storage location associated with the computing device, which is not limited in the present application.

[0159] The query data set may be a public data set, that is, the query data set may be a data set that can be accessed by multiple types of data query interfaces. For example, the query data set may be a database including the table data, such as a relational database. Optionally, the query data set may also be other types of databases. The present application does not limit the specific type of the query data set.

[0160] A queryable query data set is constructed based on the first query result so that multiple computing devices can obtain query results from the query data set through their corresponding data query interfaces.

[0161] In some embodiments, after searching in the first query result based on multiple query keywords in step 103 to obtain second query results corresponding to the multiple query keywords, the SQL statement may be filtered based on the second query result to obtain the target SQL statement.

[0162] Wherein, when filtering the SQL statements based on the second query result to obtain the target SQL statements, it can be implemented in at least one of the following ways:

[0163] In a possible implementation, SQL statements whose corresponding second query results are greater than a set number are deleted from the SQL statements, and the remaining SQL statements are used as target SQL statements.

[0164] The set number may be any value, and this application does not limit the specific value of the set number.

[0165] In another possible implementation, the SQL statements whose corresponding second query results are empty are deleted from the SQL statements, and the remaining SQL statements are used as target SQL statements.

[0166] It should be noted that the SQL statements may be filtered by any one of the above two methods. Optionally, the SQL statements may be filtered by a combination of the above two methods. This application does not limit which method is used.

[0167] Through the above process, it is possible to filter out SQL statements with too many query results or empty query results, thereby eliminating meaningless SQL statements from the SQL statements, making it unnecessary to subsequently generate reply statements based on these SQL statements, thereby improving the efficiency of generating reply statements and improving the accuracy of the generated reply statements.

[0168] In some embodiments, for step 104, when generating multiple reply statements according to multiple types of set templates based on target keywords whose similarity to any query keyword meets the set conditions and the second query result, the following steps may be included:

[0169] Step 1041: For any query keyword, obtain a target keyword whose similarity with the query keyword in the SQL statement meets the set conditions.

[0170] In one possible implementation, a computing device may be associated with a word database that may store millions of candidate keywords, so that the similarity between each query keyword and each candidate keyword can be determined in turn, and then based on the determined similarities, the target keywords corresponding to each query keyword and whose similarity with itself meets the set conditions are determined.

[0171] Among them, the setting condition may be that the similarity is greater than a set similarity threshold, or the setting condition may be that after the determined similarities are sorted in order from large to small, the similarity is sorted before the set position, or the setting condition may also be other conditions. The present application does not limit the specific type of the setting condition.

[0172] In addition, it should be noted that when determining the similarity between any query keyword and each candidate keyword, the word vector extraction model can be used to obtain the word vectors of the query keyword and each candidate keyword respectively, so as to determine the cosine similarity between the word vector of the query keyword and the word vector of each candidate keyword, and the determined cosine similarity is used as the similarity between the query keyword and each candidate keyword.

[0173] The word vector extraction model can be a variety of models, and it is only necessary to ensure that the word vector extraction model can realize the word vector extraction of words. For example, the word vector extraction model can be a BERT model, or the word vector extraction model can also be other types of models. This application does not limit the specific type of the word vector extraction model.

[0174] It should be noted that the above is only an exemplary method for determining the similarity between the query keyword and each candidate keyword. In more possible implementations, other methods can also be used to determine the similarity between the query keyword and each candidate keyword. This application does not limit which specific method is used.

[0175] Taking the query keywords "yield" and MAX keywords as examples, through the above process, it can be determined that the target keywords whose similarity with the query keyword "yield" meets the set conditions are "income" and "make money", and the target keywords whose similarity with the MAX keyword as the query keyword meets the set conditions are "highest" and "maximum".

[0176] Step 1042: Generate multiple candidate phrases according to multiple types of set phrase templates, based on multiple query keywords, target keywords corresponding to each query keyword, and the second query result.

[0177] In one possible implementation, multiple types of set phrase templates may be pre-set, so that after determining a target keyword whose similarity with the query keyword meets the set conditions, the query keyword, the target keyword and the query result may be filled into the corresponding positions of the set phrase template respectively, thereby obtaining multiple candidate phrases.

[0178] For example, the set phrase template can be noun + adjective, adjective + noun. Still taking the query keyword "yield" and MAX keyword as an example, when generating candidate phrases according to the set phrase template, the query keyword "yield" and the target keyword whose similarity with the query keyword "yield" meets the set conditions can be filled into the noun position in the set phrase template, and the target keyword whose similarity with the MAX keyword as the query keyword meets the set conditions can be filled into the adjective position in the set phrase template, so that the candidate phrases such as "highest yield", "maximum yield", "maximum benefit", "highest benefit", "maximum yield", "highest yield", "maximum yield", "highest yield", "maximum benefit", and "highest benefit" can be obtained.

[0179] Optionally, a phrase whose similarity with the candidate phrase meets the set conditions can also be determined, so that the determined phrase is also used as a candidate phrase. The specific process is the same as the process of determining the target keyword whose similarity with the query keyword meets the set conditions, and will not be repeated here.

[0180] Taking the candidate phrases "highest yield", "maximum yield", "maximum yield", "highest yield", "maximum yield", "highest yield", "maximum yield", "highest yield" as an example, it can be determined that the phrases whose similarity with these candidate phrases meets the set conditions are "most profitable" and "most aggressive".

[0181] Step 1043: Arrange and combine multiple candidate phrases according to multiple types of set sentence templates to obtain multiple reply sentences.

[0182] Among them, the set sentence template can be noun + adjective + set phrase, adjective + noun + set phrase, etc. Taking the candidate phrases of "highest rate of return", "maximum rate of return", "maximum return", "highest return", "maximum return", "highest return", "maximum return", "highest return", "most profitable", and "most aggressive" as examples, we can get response sentences such as "the financial plan with the highest rate of return is ×××, and the highest rate of return is ×××", "the most profitable financial plan is ×××, and the maximum return is ×××", "the most aggressive financial plan is ×××, and the maximum return is ×××", "the financial plan with the highest rate of return is ×××, and the highest rate of return can generally reach ×××".

[0183] Through the above process, the expansion of reply sentences can be achieved from three levels: word granularity, phrase granularity, and sentence granularity. First, millions of words are accumulated at the word granularity, so that synonyms of query keywords can be determined from them, and the diversity of word granularity can be achieved by replacing synonyms; secondly, hundreds of thousands of phrase speech templates are accumulated at the phrase granularity, and the diversity of phrase level can be achieved by replacing speech templates; finally, the diversity of sentence granularity can be achieved through the arrangement and combination of phrases, thereby ensuring the diversity of reply sentences.

[0184] In some embodiments, after obtaining multiple reply statements, the relevant technicians can also rewrite the obtained reply statements and upload the rewritten extended reply statements to the computing device, so that the computing device can also use the received extended reply statements as reply statements for training the language model. In addition, when rewriting the obtained reply statements, the relevant technicians can also rewrite the generated reply statements into a more concise and fluent expression.

[0185] In one possible implementation, relevant technical personnel can view questions in natural language form, SQL statements, query results of SQL statements, and multiple generated reply statements, and can rewrite the reply statements based on the above content.

[0186] See also Figure 2 , Figure 2 is a schematic diagram of a reply sentence rewriting situation provided by an exemplary embodiment, such as Figure 2 As shown, the reply statement for the question "I am a liberal arts major, do you know any position suitable for me" and the query result "Position name = management position" is "The professional restriction is that the position name of liberal arts majors is management position". Through the above process, the reply statement can be rewritten as "The position suitable for liberal arts majors is management position"; the reply statement for the question "What is the position of AAA or a female, and what is the educational background", and the query results are "Position = Deputy Director||||Education = Bachelor's Degree", "Position = Director||||Education = Junior College" is "The gender is exactly female and the position is AAA, the educational background is undergraduate, the position is director, and the educational background is junior college". Through the above process, the reply statement can be rewritten as "AAA or a female's positions are deputy director and director, and their educational backgrounds are respectively deputy director and director, and their educational backgrounds are respectively Undergraduate and junior college"; the reply statement for the question "What are the rating agencies of BBB?" and the query result "rating agency = C City Finance Bureau" is "the rating agency whose name is BBB is C City Finance Bureau". Through the above process, the reply statement can be rewritten as "BBB's rating agency is C City Finance Bureau"; the reply statement for the question "What is the cumulative net value, the increase or decrease amount exceeds 0.011" and the query result "SUM (cumulative net value) = 36.61200000000001" is "The total cumulative net value with an increase or decrease greater than 0.011 is 36.61200000000001". Through the above process, the reply statement can be rewritten as "The total cumulative net value with an increase or decrease amount greater than 0.011 is 36.61200000000001".

[0187] Through the above process, the automatically generated reply statement can be rewritten, and then the rewritten reply statement can be uploaded to the computing device, so that the reply statement obtained by the computing device is more concise and better matches the question in natural language form.

[0188] In some embodiments, relevant technical personnel may also review the quality of reply statements and extended reply statements to filter out reply statements that are not fluent or do not strictly follow the given data input, or rewrite reply statements that are not fluent or do not strictly follow the given data input to ensure the accuracy of the reply statements used to train the language model, thereby ensuring the training effect of the language model.

[0189] Through the data generation method provided in this application, a data set containing 30,000 high-quality reply sentences can be obtained. The distribution of the fields to which these 30,000 reply sentences belong can be found in Figure 3 , Figure 3 is a schematic diagram of the domain distribution of a reply sentence provided by an exemplary embodiment, such as Figure 3 As shown, among these 30,000 reply statements, 24% belong to the media field, 2% belong to the electrical field, 2% belong to the transportation field, 18% belong to the banking field, 7% belong to the capital field, 19% belong to the insurance field, 2% belong to the medical field, 7% belong to the technology field, 11% belong to the public service field, 3% belong to the public safety field, 4% belong to the resources field, and 3% belong to the manufacturing field.

[0190] pass Figure 3 It can be seen that through the data generation method provided in this application, a data set of response data covering multiple fields can be obtained, and the data distribution is more extensive, thus better meeting the diverse needs of actual scenarios.

[0191] In addition, by counting the number of rows and columns of the query results of the SQL statements in this application, it can be found that the data generation method provided in this application can obtain a data set with lower complexity, see Figure 4 , Figure 4 FIG. 1 is a schematic diagram of a comparison between a data set generated by the present application and a CoSQL data set provided by an exemplary embodiment. Figure 4 As shown, the data set obtained by the data generation method provided in the present application is less complex than the CoSQL (large general dual-engine database management system) data set in terms of both the number of rows and the number of columns, thereby making the data set generated by the present application more suitable for use in actual scenarios, and also making the recognition scale of the language model trained based on the data set generated by the present application larger.

[0192] The data generation methods provided in the above embodiments can be found in Figure 5 , Figure 5 is a flow chart of a data generation method provided by an exemplary embodiment. Figure 5As shown, the present application realizes table collection by acquiring the table data corresponding to the target query word, and then generates SQL statements based on the collected table data, so that by executing the generated SQL statements, queries can be performed in the collected table data, so that template-based reply statements can be generated based on the SQL statements and the query results, and the reply statements can be rewritten, and then the rewritten reply statements can be reviewed. If the review fails, the reply statements can be rewritten to obtain reply statements that have passed the review and serve as training data for subsequent training of the language model.

[0193] Through the data generation method provided in this specification, it is possible to construct response sentences in natural language in the form question and answer process based on the abstract syntax tree, thereby obtaining response sentences in more fluent natural language, so that the constructed response sentences can be used as training data for subsequent training of the language model, thereby achieving the expansion of the training data of the language model.

[0194] It should be noted that the above content is only a brief introduction to the process of the data generation method provided in this application. The specific implementation method can be found in the above embodiments and will not be repeated here.

[0195] Corresponding to the aforementioned method embodiments, this specification also provides embodiments of an apparatus and a computing device used therein.

[0196] See also Figure 6 , Figure 6 is a block diagram of a data generating device provided by an exemplary embodiment, the device comprising:

[0197] A first acquisition module 601 is used to acquire a first query result corresponding to a target query term, where the first query result is data in a table format;

[0198] A second acquisition module 602, configured to acquire multiple query keywords based on the first query result;

[0199] A query module 603, configured to perform a query in the first query result based on the multiple query keywords to obtain a second query result corresponding to the multiple query keywords;

[0200] The generating module 604 is used to generate a plurality of reply statements according to a plurality of types of setting templates, based on a target keyword whose similarity with any query keyword meets the setting conditions, and the second query result.

[0201] In some embodiments, the generating module 604, when used to generate multiple reply statements according to multiple types of setting templates, based on the target keyword whose similarity with any query keyword satisfies the setting conditions, and the second query result, is used to:

[0202] For any query keyword, obtain a target keyword whose similarity with the query keyword meets the set conditions;

[0203] generating a plurality of candidate phrases according to a plurality of types of set phrase templates based on a plurality of query keywords, a target keyword corresponding to each query keyword, and a second query result;

[0204] According to various types of set sentence templates, multiple candidate phrases are arranged and combined to obtain multiple reply sentences.

[0205] In some embodiments, the first acquisition module 601, when used to acquire the first query result corresponding to the target query term, is used to:

[0206] Acquire a target query word that meets the first target condition;

[0207] A search is performed based on the target query word through the target search engine to obtain a first query result corresponding to the target query word.

[0208] In some embodiments, the apparatus further comprises:

[0209] A data cleaning module, used for performing data cleaning processing on the first query result;

[0210] The second acquisition module 602, when used to acquire multiple query keywords based on the first query result, is used to:

[0211] Based on the first query result after data cleaning processing, multiple query keywords are obtained.

[0212] In some embodiments, the data cleaning module, when used to perform data cleaning processing on the first query result, is used for at least one of the following:

[0213] Based on the plurality of blacklist words, deleting a table including any blacklist word from the first query result;

[0214] Based on the table headers included in each table in the first query result, delete from the first query result the table corresponding to the table header in which the proportion of the first set word reaches the first ratio threshold;

[0215] Delete the tables whose number of table rows or columns in the first query result is less than the set number threshold;

[0216] Based on the number of occurrences of each data in the first query result, delete from the first query result the table corresponding to the data whose number of occurrences reaches a second ratio threshold;

[0217] Based on the data included in the first query result, a table corresponding to the data composed of the second setting words is deleted from the first query result.

[0218] In some embodiments, the second acquisition module 602, when used to acquire multiple query keywords based on the first query result, is used to:

[0219] Based on the first query result, construct a structured query SQL statement, where the SQL statement includes multiple query keywords;

[0220] The query module 603, when used to perform a query in the first query result based on the multiple query keywords to obtain the second query result corresponding to the multiple query keywords, is used to:

[0221] A query is performed in the first query result based on the SQL statement to obtain a second query result corresponding to multiple query keywords.

[0222] In some embodiments, the apparatus further comprises:

[0223] A filtering module, used to filter the SQL statement based on the second query result to obtain a target SQL statement;

[0224] The generating module 604, when used to generate multiple reply statements according to multiple types of setting templates, based on the target keyword whose similarity with any query keyword satisfies the setting conditions and the second query result, is used to:

[0225] According to multiple types of setting templates, multiple reply statements are generated based on target keywords whose similarity with the query keywords in the target SQL statement meets the set conditions, and the second query result.

[0226] In some embodiments, the filtering module, when used to filter the SQL statement based on the second query result to obtain the target SQL statement, is used for at least one of the following:

[0227] From the SQL statements, delete the SQL statements whose corresponding second query results are greater than the set number, and use the remaining SQL statements as target SQL statements;

[0228] From the SQL statements, delete the SQL statements whose corresponding second query results are empty, and use the remaining SQL statements as target SQL statements.

[0229] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.

[0230] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying creative labor.

[0231] The present application also provides a computing device, see Figure 7 , Figure 7 is a schematic structural diagram of a computing device provided by an exemplary embodiment. Figure 7 At the hardware level, the device includes a processor 702, an internal bus 704, a network interface 706, a memory 708, and a non-volatile memory 710, and may also include hardware required to implement other functions. One or more embodiments of this specification may be implemented based on software, such as the processor 702 reading the corresponding computer program from the non-volatile memory 710 into the memory 708 and then running it. Of course, in addition to the software implementation, one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0232] The present application also provides a computer program product, including a computer program, which implements the data generation method provided in any embodiment of the present application when the computer program is executed by a processor.

[0233] The systems, devices or modules described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.

[0234] In a typical configuration, a computer includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0235] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0236] Computer readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0237] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0238] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0239] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0240] It should be understood that although the terms first, second, third, etc. may be used to describe various information in one or more embodiments of this specification, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0241] The above description is merely a preferred embodiment of one or more embodiments of the present specification and is not intended to limit one or more embodiments of the present specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present specification shall be included in the scope of protection of one or more embodiments of the present specification.

Claims

1. A data generation method, It is characterized in that The method comprises: Obtaining a first query result corresponding to the target query term, wherein the first query result is data in a table format; Based on the first query result, obtaining multiple query keywords; Searching the first query results based on the multiple query keywords to obtain second query results corresponding to the multiple query keywords; According to multiple types of setting templates, multiple reply sentences are generated based on the target keyword whose similarity with any query keyword meets the set conditions and the second query result.

2. The method according to claim 1, It is characterized in that The method generates multiple reply statements according to multiple types of setting templates, based on the target keyword whose similarity with any query keyword meets the setting conditions, and the second query result, including: For any query keyword, obtain a target keyword whose similarity with the query keyword meets a set condition; generating a plurality of candidate phrases according to a plurality of types of set phrase templates based on the plurality of query keywords, a target keyword corresponding to each query keyword, and the second query result; The plurality of candidate phrases are arranged and combined according to a plurality of types of set sentence templates to obtain the plurality of reply sentences.

3. The method according to claim 1, It is characterized in that The obtaining of the first query result corresponding to the target query term includes: Acquire a target query word that meets the first target condition; A search is performed based on the target query word through a target search engine to obtain a first query result corresponding to the target query word.

4. The method according to claim 1, It is characterized in that After obtaining the first query result corresponding to the target query word, the method further includes: Performing data cleaning processing on the first query result; The acquiring a plurality of query keywords based on the first query result includes: Based on the first query result after data cleaning processing, the multiple query keywords are obtained.

5. The method according to claim 4, It is characterized in that The performing data cleaning on the first query result includes at least one of the following: Based on the plurality of blacklist words, deleting a table including any blacklist word from the first query result; Based on the table headers included in each table in the first query result, deleting from the first query result the table corresponding to the table header in which the proportion of the first set word reaches a first ratio threshold; Deleting the tables in the first query result whose number of table rows or table columns is less than a set number threshold; Based on the number of occurrences of each data in the first query result, deleting from the first query result the table corresponding to the data whose number of occurrences reaches a second ratio threshold; Based on the data included in the first query result, a table corresponding to the data consisting of the second setting words is deleted from the first query result.

6. The method according to claim 1, It is characterized in that The acquiring a plurality of query keywords based on the first query result includes: Based on the first query result, construct a structured query SQL statement, wherein the SQL statement includes the multiple query keywords; The querying in the first query result based on the multiple query keywords to obtain the second query result corresponding to the multiple query keywords includes: A query is performed in the first query result based on the SQL statement to obtain a second query result corresponding to the multiple query keywords.

7. The method according to claim 6, It is characterized in that After querying the first query result based on the SQL statement to obtain the second query result corresponding to the multiple query keywords, the method further includes: Filter the SQL statement based on the second query result to obtain a target SQL statement; The method generates multiple reply statements according to multiple types of setting templates, based on the target keyword whose similarity with any query keyword meets the setting conditions, and the second query result, including: According to multiple types of setting templates, multiple reply statements are generated based on the target keyword whose similarity with the query keyword in the target SQL statement meets the set conditions, and the second query result.

8. The method according to claim 7, It is characterized in that The filtering the SQL statement based on the second query result to obtain a target SQL statement includes at least one of the following: From the SQL statements, delete the SQL statements whose corresponding second query results are greater than a set number, and use the remaining SQL statements as the target SQL statements; From the SQL statements, delete the SQL statements whose corresponding second query results are empty, and use the remaining SQL statements as the target SQL statements.

9. A data generating device, It is characterized in that The device comprises: A first acquisition module, used to acquire a first query result corresponding to the target query word, wherein the first query result is data in a table format; A second acquisition module, configured to acquire a plurality of query keywords based on the first query result; A query module, configured to query the first query results based on the multiple query keywords to obtain second query results corresponding to the multiple query keywords; A generation module is used to generate multiple reply statements according to multiple types of setting templates, based on the target keyword whose similarity with any query keyword meets the set conditions, and the second query result.

10. A computing device, It is characterized in that The computing device comprises: processor; a memory for storing processor-executable instructions; The processor implements the data generating method according to any one of claims 1 to 8 by running the executable instructions.

11. A computer-readable storage medium having computer instructions stored thereon, It is characterized in that When the instructions are executed by a processor, the data generating method according to any one of claims 1 to 8 is implemented.