Data processing method and apparatus, and device and medium

Through natural language processing and intention recognition technology, the data acquisition process in the data board is simplified, the efficiency of high-dimensional and multi-index data search is solved, and the function of quickly obtaining data is realized.

WO2024179581A1PCT designated stage expired Publication Date: 2024-09-06BEIJING VOLCANO ENGINE TECH CO LTD

Patent Information

Application Number
PCT/CN2024/079656
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-02
Filing Date
2024-03-01
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In the data board, due to the high-dimensionality and multi-index characteristics of business data, the search time is long and the data analysis process is complicated, which affects the efficiency of users to obtain data.

Method used

By obtaining natural language statements entered by the user, natural language processing, intention recognition and multiple recalls are performed, the target intention recognition model is determined, and data processing is performed to obtain target data, simplifying the process of users obtaining data.

Benefits of technology

It improves the efficiency of users to obtain data, reduces the complexity of data search and analysis, and enables users to quickly obtain the required data information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024079656_06092024_PF_FP
    Figure CN2024079656_06092024_PF_FP
Patent Text Reader

Abstract

Provided in the present disclosure are a data processing method and apparatus, and a device and a medium. The method comprises: when a user needs to acquire target data, it being possible to directly input a statement for instructing the acquisition of the target data, wherein the statement may be in a natural language; then, performing natural language processing on the statement, so as to acquire initial processing data; performing intention recognition on the initial processing data by using a preset intention recognition model, so as to acquire one or more initial intention recognition results; screening the initial intention recognition results, so as to determine a target intention recognition model; and performing matching processing on the target intention recognition model and the initial processing data, so as to determine a target data model, and then acquiring the target data on the basis of the target data model. By means of the data processing method, a user does not need to operate a data dashboard to query data, and required data can be acquired on the basis of a natural language which is inputted by the user, thereby improving the efficiency of the user acquiring data.
Need to check novelty before this filing date? Find Prior Art

Description

Data processing method, device, equipment and medium

[0001] This application claims priority to Chinese patent application No. 202310227459.4 filed on March 2, 2023, the entire text of which is incorporated herein by reference as a part of this application. Technical Field

[0002] The present disclosure relates to a data processing method, apparatus, device, and medium. Background Art

[0003] As an important data-driven tool, the data dashboard allows users to call business data tables, display data, monitor and analyze key business indicators, and obtain the necessary data information to make business decisions.

[0004] As businesses grow, business data tables are becoming increasingly dimensional and multi-index. Using data dashboards to search and analyze data can lead to long search times and complex analysis processes due to the large number of dimensions and indicators, impacting user data acquisition efficiency.

[0005] Summary of the Invention

[0006] In view of this, the present disclosure provides a data processing method, apparatus, device, and medium to improve the efficiency of users in acquiring data.

[0007] To achieve the above objectives, the technical solutions provided by this disclosure are as follows:

[0008] In a first aspect of the present disclosure, a data processing method is provided, the method comprising:

[0009] Obtaining a statement input by a user, wherein the statement is used to instruct acquisition of target data required by the user;

[0010] Performing natural language processing on the sentence to obtain initial processing data;

[0011] Performing intent recognition on the initial processed data based on a preset intent recognition model to obtain at least one initial intent recognition result;

[0012] Performing multi-way recall on the at least one initial intent recognition result to determine a target intent recognition model;

[0013] Processing the initial processing data based on the target intention recognition model to determine a target data model;

[0014] The target data is acquired based on the target data model.

[0015] In a second aspect of the present disclosure, a data processing device is provided, the device comprising:

[0016] A first acquiring unit is configured to acquire a statement input by a user, wherein the statement is used to instruct acquisition of target data required by the user;

[0017] a first processing unit, configured to perform natural language processing on the sentence to obtain initial processing data;

[0018] an identification unit, configured to perform intent identification on the initial processed data based on a preset intent identification model, and obtain at least one initial intent identification result;

[0019] a determination unit, configured to perform multi-way recall on the at least one initial intent recognition result to determine a target intent recognition model;

[0020] a second processing unit, configured to process the initial processing data based on the target intention recognition model to determine a target data model;

[0021] A second acquiring unit is configured to acquire the target data based on the target data model.

[0022] In a third aspect of the present disclosure, an electronic device is provided, the device comprising: a processor and a memory;

[0023] The memory is used to store instructions or computer programs;

[0024] The processor is configured to execute the instructions or computer program in the memory so that the electronic device executes the method described in the first aspect above.

[0025] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium. When the instructions are executed on a device, the device executes the method described in the first aspect above.

[0026] In a fifth aspect of the present disclosure, a computer program product is provided, wherein the computer program product includes a computer program / instructions, and when the computer program / instructions are executed by a processor, the method described in the first aspect is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0028] FIG1 is a flow chart of a data processing method provided by an embodiment of the present disclosure;

[0029] FIG2 is a schematic diagram of a data display page provided by an embodiment of the present disclosure;

[0030] FIG3 is a schematic diagram of an acquisition intent recognition model provided by an embodiment of the present disclosure;

[0031] FIG4 is a schematic diagram of a data processing device provided by an embodiment of the present disclosure;

[0032] FIG5 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0033] In order to enable those skilled in the art to better understand the solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the embodiments described are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.

[0034] As businesses evolve, business data tables are becoming increasingly dimensional and multi-metric. When using data dashboards to search and analyze data in data tables, the numerous dimensions and metrics can lead to long search times and complex analysis processes, hindering user data acquisition efficiency.

[0035] Based on this, an embodiment of the present disclosure provides a data processing method to improve the efficiency of users in acquiring data. In specific implementation, when a user needs to acquire target data, he or she can directly input a statement indicating the acquisition of target data, which can be a natural language. Then, the statement is processed in a natural language to obtain initial processing data. The initial processing data is subjected to intent recognition using a preset intention recognition model to obtain one or more initial intention recognition results. The initial intention recognition results are screened to determine a target intention recognition model. The target intention recognition model is matched with the initial processing data to determine the target data model, thereby acquiring the target data based on the target data model. Through the data processing method provided by the present disclosure, there is no need for users to operate the data dashboard to query data, and the required data can be acquired based on the natural language input by the user, thereby improving the efficiency of users in acquiring data.

[0036] To facilitate understanding of the technical methods provided by the embodiments of the present disclosure, a detailed introduction will be given below with reference to the accompanying drawings.

[0037] Refer to FIG1 , which is a flow chart of a data processing method provided by an embodiment of the present disclosure.

[0038] The method can be executed by a data robot, which can be a functional module in a data processing device, an independent data processing device or product, or an application that implements data processing. The embodiments of the present disclosure do not limit this.

[0039] The method may include the following steps:

[0040] S101: Obtain a statement input by a user, where the statement is used to instruct to obtain target data required by the user.

[0041] When a user needs to retrieve target data, they can directly enter a statement through the Data Robot to instruct it to retrieve the target data. This statement can be in natural language, for example, "Query order volume" or "Analyze the reasons for the decrease in order volume." The Data Robot has a pre-stored dataset and processes the data in the dataset based on the user's statement to retrieve the target data.

[0042] S102: Perform natural language processing on the sentence to obtain initial processing data.

[0043] Since the device cannot directly recognize the user's sentences, it first performs natural language processing on the sentences input by the user to obtain initial processing data.

[0044] In one possible implementation, natural language processing can be performed on a sentence in the following manner, and semantic analysis can be performed on the sentence based on a text classification model to obtain the intent information of the sentence. At least one slot in the sentence is labeled based on the intent information and using a sequence labeling model, wherein each slot has a corresponding slot type. Among them, the slot can represent an identifier of key information used to accurately express the user's intent. A slot is a variable that can help a data robot understand the user's intent from a semantic perspective. The types of slots may include data tables, indicators, dimensions, dimension members, indicator filter conditions, dimension filter conditions, dates, sorting, restrictions (limits), etc. Each slot is then mapped to a real dimension value through entity linking, and the corresponding slot is replaced with the real dimension value to obtain the initial processing data.

[0045] The text classification model and sequence labeling model can be pre-trained models. To facilitate understanding of their working principles, the following describes their training process.

[0046] To train the text classification model and sequence labeling model, training samples must first be obtained. Optionally, training samples can be obtained by: The data robot can obtain historical sentences input by each user and then determine preset slot types, sentence template sets, and the different intent types corresponding to the sentence template sets based on the historical sentences. Intent types can be pre-set and include system instructions, intent templates, data queries, data analysis, and so on. Pre-set slot types can include tenants, data tables, indicators, dimensions, dimension members, indicator filters, dimension filters, dates, sorting, and limits. The sentence template set is determined based on the different forms of questions included in the historical sentences. The intent type corresponding to the sentence template set can indicate how the user obtains the target data, such as through system instruction queries or data analysis. Table 1 shows an example of a sentence template set and intent type. [] represents a slot in a sentence. As shown in Table 1, the standard sentence includes mandatory information, which is required in the target user's sentence so that the sentence can be considered complete and retrieve the target data required by the user.

[0047] Table 1

[0048] After determining the statement template set, the statement template set can be populated using historical statements to obtain the corresponding statement set. For the first statement in the statement set, based on the various slot types determined above, the slots included in the first statement can be annotated using BIO to obtain annotation information. During BIO annotation, each word can be annotated as "BX," "IX," or "O." "BX" indicates that the segment containing the word belongs to type X and is at the beginning of the segment, "IX" indicates that the segment containing the word belongs to type X and is in the middle of the segment, and "O" indicates that it does not belong to any type. For example, when the first statement is "Yesterday's e-commerce daily report," the annotation information obtained using BIO can be expressed as "B-Date, I-Date, O, B-Dim-value, I-Dim-value, B-Dim, I-Dim," where "Yesterday" represents the date, "e-commerce" represents the dimension, and "daily report" represents the keyword. Since the intent type set corresponding to the statement template set has been determined based on each user's historical statements, the intent type corresponding to each statement template in the statement template set can also be determined. Then, a training sample is determined using all first sentences in the sentence set, the annotation information corresponding to each first sentence, and the intent type corresponding to each first sentence.

[0049] In one possible implementation, when training a text classification model based on training samples, multiple first sentences from the training samples can be input into an initial classification model to obtain a first encoding vector. The initial classification model then performs feature extraction on the first encoding vector to obtain an intent type output value corresponding to the training samples. A first loss function is then determined based on the intent types and intent type output values ​​corresponding to each of the multiple first sentences. The first loss function can represent the degree of difference between the actual intent type corresponding to the training sample and the intent type output value output by the initial classification model. A larger first loss function indicates a greater difference between the two, i.e., a less accurate initial classification model. When the first loss function is greater than or equal to a first threshold, indicating that the intent type output value output by the initial classification model does not meet the required match between the intent types corresponding to the multiple first sentences, the parameters of the initial classification model can be adjusted based on the first loss function. The initial classification model can then be re-inputted with the multiple first sentences into the adjusted initial classification model and subsequent training steps can be repeated until the determined first loss function is less than the first threshold, thereby obtaining a trained text classification model. A user sentence can then be input into the trained text classification model to obtain the sentence's intent information, i.e., the intent type corresponding to the sentence. It should be noted that when the sentence input by the user is not in a standard sentence template format, multiple intent types may be determined based on the user's sentence, that is, not just one intent type is determined.

[0050] In one possible implementation, when a sequence labeling model is trained using training samples, multiple first statements can be input into the initial labeling model to obtain a second encoding vector. The second encoding vector is decoded using the initial labeling model to obtain an output value of the labeling information. Then, a second loss function is determined based on the labeling information and the output value of the labeling information corresponding to the multiple first statements. The second loss function can represent the degree of difference between the actual labeling information corresponding to the training sample and the output value of the labeling information output by the initial labeling model. When the second loss function is greater than or equal to the second threshold, it indicates that the accuracy of the initial labeling model does not meet the requirements. The parameters of the initial labeling model can be adjusted based on the second loss function, and the multiple first statements can be input into the initial labeling model after the parameters are adjusted and the subsequent training process can be re-executed until the second loss function is less than the second threshold to obtain a trained sequence labeling model. After determining the intent information corresponding to the statement, the slot type in the intent information can be known, and the slot in the labeled statement can be labeled using the trained sequence labeling model.

[0051] It should be noted that the text classification model and sequence labeling model provided in the above embodiment are only exemplary descriptions and are not limited to the above implementation methods. Other achievable methods are also within the scope of protection of this disclosure.

[0052] After annotating the slots in a sentence, you can use entity linking to map the slots to real dimension values. This replaces the corresponding slots with real dimension values ​​to obtain initial processing data based on the sentence. For example, if the sentence fragment representing the date slot in a sentence is "last week," the specific time corresponding to "last week" can be determined based on the time the user entered the sentence, thereby mapping it to the real value. The following describes the process of mapping slots to real dimension values ​​through entity linking, combining different slot types.

[0053] For date slots, the extracted date slots are mapped to standard date values ​​based on the current time of the target user's input statement. For example, if the user inputs February 1, 2023, the date slot "Last Monday" can be mapped to "January 23, 2023," and the date slot "This Week" can be mapped to "January 30, 2023 to February 5, 2023."

[0054] For the slots representing dimension members, after marking the slots for the sentences input by the user, the sentence fragments whose slot type is dimension members can be filtered out. The sentence fragments representing dimension members are searched by Elasticsearch (ES) to recall several candidates. Then the text similarity algorithm can be used to calculate the similarity score between the sentence fragment and each candidate, sort them according to the similarity scores, and select the candidate with the highest score as the true value corresponding to the dimension member. Among them, the text similarity algorithm can be implemented through the edit distance. The edit distance refers to the minimum number of editing operations required to edit one character into another between two characters. The larger the edit distance, the lower the similarity between the two characters. For example, when the sentence fragment representing the dimension member in the sentence is "target store", the mapped true value can be "target official flagship store".

[0055] For slots representing indicators, a sequence labeling model can be used to annotate and filter sentence fragments with the indicator slot type from the user's input sentence. The indicator dataset that the user has access to is obtained from the dataset. A text similarity algorithm is then used to calculate the similarity score between the sentence fragment and the indicators in the indicator dataset. The similarity scores are sorted, and the indicator with the highest score is selected as the true value for the indicator slot. It should be noted that the entity linking process for dimension slots can be found in the entity linking process for indicators and will not be repeated here.

[0056] For the slot representing the dimension filter condition, the real value mapped by the slot can be expressed as [dimension name] + [operator] + [dimension member]. After using the sequence labeling model to label the slots in the sentence input by the target user, the sentence fragments whose slot type is the dimension filter condition can be filtered out. Then, the operator position in the sentence fragment is determined based on the preset operator combination. Among them, the preset operator set may include "for", "is", etc. According to the position of the operator, the part representing the dimension and the part identifying the dimension member can be determined, and then the dimension entity linking process and the dimension member entity linking process can be executed respectively according to the above embodiment.

[0057] S103: Perform intent recognition on the initial processed data based on a preset intent recognition model to obtain at least one initial intent recognition result.

[0058] According to the above embodiments, the preset intent types may include system instructions, intent templates, data queries, and data analysis. Therefore, the corresponding preset intent recognition models may include multiple intent recognition models, namely, a system instruction intent recognition model, an intent template intent recognition model, a data query intent recognition model, and a data analysis intent recognition model. Since the sentence input by the user is not a standard sentence template, the intent information obtained is not a single piece of intent information. Therefore, the initial processing data can be subjected to intent recognition based on multiple preset intent recognition models to obtain multiple initial intent recognition results.

[0059] According to the above embodiment, each intent recognition model includes a preset slot set, and each slot has a corresponding slot type. After the initial processing data is processed by natural language, multiple intent recognition models can be used to perform intent recognition on the initial processing data. Based on the slot type corresponding to the preset slot set and the slot type corresponding to at least one slot in the initial processing data, the preset slot set is matched with the at least one slot to determine a matching evaluation index. Specifically, based on the slot type corresponding to the preset slot set in the intent recognition model and the slot type corresponding to the slot in the initial processing data, the preset slot set is matched with the slot in the initial processing data to determine a matching evaluation index. For example, the matching evaluation index can be a matching score. Optionally, when the preset slot set includes multiple preset slots, the evaluation weight corresponding to each preset slot can be pre-set, and then the similarity between the slot in the initial processing data and each preset slot in the preset slot set is calculated, and the evaluation weight corresponding to each preset slot is combined as the matching score. The similarity between the calculated slot and the preset slot may be achieved by calculating the semantic similarity. The specific implementation process is not the focus of the present disclosure and will not be described in detail here.

[0060] S104: Perform multi-channel recall on the obtained initial intent recognition results to determine the target intent recognition model.

[0061] After obtaining initial intent recognition results corresponding to multiple intent recognition models, a multi-way recall can be performed on these initial intent recognition results to screen and determine the final target intent recognition model. Specifically, multiple intent recognition models and their corresponding matching evaluation metrics can first be screened based on the user's data permissions to obtain a first set of matching evaluation metrics. Different users have different data permissions. For example, a user may not be able to perform data analysis on order changes. Therefore, based on the user's data permissions, the intent recognition models and their corresponding matching evaluation metrics that the user cannot view can be deleted, thereby obtaining a preliminarily screened first set of matching evaluation metrics. Optionally, the step of screening based on the user's data permissions can also be performed before performing intent recognition on the initial processed data using a preset intent recognition model to simplify the intent recognition process. After obtaining the first set of matching evaluation metrics, the first set of matching evaluation metrics can be screened based on the preset evaluation metrics to obtain a second set of matching evaluation metrics. The preset evaluation metrics can represent matching evaluation criteria that meet the requirements. When the matching evaluation metrics are greater than the preset evaluation metrics, it indicates that the matching evaluation metrics and the corresponding intent recognition model meet the screening requirements. The second matching evaluation indicator set obtained through screening of preset evaluation indicators may contain multiple matching evaluation indicators. The target matching evaluation indicator can then be determined based on the priority order of the intent recognition models corresponding to the second matching evaluation indicator set. Specifically, the data robot can pre-configure the priority order of multiple intent recognition models, and then, based on the priority order of the intent recognition models corresponding to the matching evaluation indicators in the second matching evaluation indicator set, determine the intent recognition model with the highest priority as the target intent recognition model.

[0062] Table 2 shows the priority of an intent recognition model, where P0 represents the highest priority. When a preset slot in the intent recognition model matches a slot in the initial data processing data, if the intent recognition model lacks a corresponding slot, the intent recognition model has the lowest priority.

[0063] Table 2

[0064] Optionally, when multiple initial intent recognition results are recalled in multiple ways, the target intent recognition model determined by the data robot may be biased due to factors such as errors, or the matching evaluation indicators and priority order of the target intent recognition model are relatively close to those of other intent recognition models. Based on this, in order to provide users with more comprehensive and accurate data, after determining the target intent recognition model, a candidate intent recognition model can also be determined. In response to the user's operation of selecting the candidate intent recognition model, the initial processing data is processed based on the candidate intent recognition model to determine the candidate data model, so as to obtain candidate target data according to the candidate data model. Optionally, the candidate intent recognition model can be determined in the following manner: after determining the second matching evaluation index set, based on the priority order of the intent recognition models corresponding to the respective matching evaluation indicators in the second matching evaluation index set, the highest priority intent recognition model can be determined as the target intent recognition model, and then the second highest priority intent recognition model can be determined as the candidate intent recognition model. In addition, a preset number of candidate intent recognition models can be set, and the individual intent recognition models can be arranged in order of priority from highest to lowest. After excluding the highest-priority intent recognition model, a preset number of intent recognition models can be selected in order from highest to lowest as candidate intent recognition models. After determining the candidate intent recognition model, the intent recognition model can be displayed on the data robot's page as a button module. When the user clicks the button, the data robot can process the data based on the candidate intent recognition model and retrieve candidate target data for the user. Alternatively, a button for the intent recognition model can be displayed on the page that sends the target data to the user for selection. This provides users with more comprehensive and accurate data, and users can select data through buttons, improving data acquisition efficiency. Figure 2 shows a schematic diagram of a data display page. When the user enters the phrase "user number trend", the matching target intent recognition model is the intent template, and the candidate intent recognition model is the data query. The display page can use the intent template to push the user's query user number trend to the user in the form of a data dashboard or card, and the data query can be displayed as a button on the data dashboard or card to facilitate user selection.

[0065] Based on the above method embodiment, the present disclosure provides a method for obtaining an intent recognition model. Referring to FIG3 , FIG3 is a schematic diagram of obtaining an intent recognition model provided by the present disclosure embodiment.

[0066] After obtaining the user's input, the sentence can be processed through natural language processing (NLP), including semantic analysis, slot extraction, and entity linking, to obtain initial processed data. Then, a preset intent recognition model is used to identify the intent of the initial processed data, obtaining multiple initial intent recognition results. These multiple initial intent recognition results are then recalled in multiple ways, including filtering based on the user's data permissions and then filtering based on preset evaluation indicators. Finally, based on the priority order of the filtered intent recognition models, a target intent recognition model and candidate intent recognition models are obtained.

[0067] It should be noted that the specific process of obtaining the intention recognition model can be found in the above method embodiment and will not be repeated here.

[0068] S105: Process the initial processing data based on the target intention recognition model to determine the target data model.

[0069] After the target intent recognition model is obtained, the initial processing data can be processed based on the target intent recognition model. In specific implementation, the slots in the initial processing data can be filled into the corresponding preset slot set in the target intent recognition model based on the slot type corresponding to the preset slot set in the target intent recognition model and the slot type corresponding to the slot in the initial processing data to obtain the initial data model. That is, for any slot in the initial processing data, the slot is filled into the preset slot of the same type in the target intent recognition model. The initial data model is then converted using the target data structure to obtain the target data model. Among them, the target data structure is a data structure type that can be recognized by the data robot, and the various parameters in the target data structure can be predefined. Then, based on the target data structure, the data in the initial data model is converted to obtain the target data model. For example, the target data structure can be a parameter defined using the JSON format. As shown in Table 3, this is a schematic diagram of a target data structure.

[0070] Table 3

[0071] Taking the user input sentence "the amount of paid orders for xx store" as an example, the target data model obtained by converting the target data structure defined in JSON format is as follows:

[0072] Optionally, when the slots in the initial processed data are filled into the corresponding preset slot set in the target intent recognition model, if there are required slots in the preset slot set that are not filled, that is, the required slots are missing in the initial processed data, then the user can be asked about the slots based on the required slots that are not filled in the preset slot set to obtain the corresponding slot results. For example, if the required slot "indicator" is missing in the target intent recognition model, the user can be asked "What is the indicator" to obtain the corresponding indicator.

[0073] In one possible implementation, when the target intent recognition model is a system instruction intent recognition model, an intent template recognition model, or a data analysis intent recognition model, the above-mentioned intent recognition model has only one intent recognition type, so the slots in the initial processing data can be matched with the preset slots in the intent recognition model to determine the initial data model.

[0074] When the target intent recognition model is a data query intent recognition model, the data query intent recognition model includes multiple intent recognition types, each intent recognition type corresponds to a different slot combination, and different slot combinations correspond to different priorities. Based on this, the slots in the initial processing data are filled into the preset slots of the data query intent recognition model. When determining the initial data model, it can be achieved in the following way: based on the slots in the initial processing data, at least one candidate slot combination is determined, that is, the slots in the initial processing data are arbitrarily combined as candidate slot combinations. Then, based on the priority order corresponding to the determined candidate slot combinations, the target intent recognition type is determined. That is, the intent recognition type corresponding to the candidate slot combination with the highest priority is determined to be the target intent recognition type, so that the slots in the initial processing data can be filled into the preset slot set of the target intent recognition type to obtain the initial data model.

[0075] As shown in Table 4, the first column displays multiple intent recognition types for the data query model, including data table queries, drill-down queries, indicator queries, indicator filter condition queries, and dimension / dimension member value queries. Each intent type corresponds to a different slot combination, including required and optional slots. Each slot combination corresponds to a priority, with priority P0 being the highest. For example, when the initial processing data includes the slots "indicator" and "dimension," the slot combinations "indicator," "dimension," and "indicator and dimension" can be formed. Since the priority corresponding to the slot combination "indicator and dimension" is higher than the priority corresponding to the slot combination "indicator and dimension," the drill-down query corresponding to the slot combination "indicator and dimension" can be determined to be the target intent recognition type.

[0076] Table 4

[0077] S106: Acquire target data based on the target data model.

[0078] Once the target data model is determined, the data robot can use the target data model to process the data set and obtain the target data.

[0079] In one possible implementation, after a user obtains target data, the data robot can proactively send new target data to the user at preset intervals. This reduces the number of times the user has to repeatedly review data and improves data acquisition efficiency. Alternatively, the target data can be sent to the user when it meets a warning condition. This warning condition can be pre-set based on the user's needs. For example, a warning condition for order volume could be set such as "order volume is less than a preset value." Order data below the preset value can then be sent to the user, allowing the user to promptly retrieve the data for processing.

[0080] In one possible implementation, after obtaining target data based on the user's input, the system can also obtain related candidate slots based on the slot type in the initial processed data after natural language processing, and proactively recommend these candidate slots to the user. The candidate slots associated with this slot type can be semantically similar slots, for example, a slot similar to "paid order volume" could be "return order volume." After obtaining the associated candidate slots, the user can continue to query the data robot for data related to these candidate slots.

[0081] When a user needs to process their own data, they can provide it to a data robot, which then processes the user-provided data. Alternatively, after acquiring new data from a third-party device, the data robot can assemble a query statement based on the newly acquired data and recommend it to the user to facilitate timely access to the new data. Specifically, the data robot can acquire data to be processed, which can be user data or data from a third-party device, i.e., newly acquired data. The data robot can then process the data to be processed based on a preset query statement, obtaining a preset query statement. The preset query statement can be a query statement determined by the data robot based on historical user input, such as "Query the order payment amount for a certain store." The data robot then uses the data to fill the corresponding slots in the preset query statement. The data robot can determine the slot types for different data in the data to be processed based on the natural language processing steps described in the above embodiments, thereby filling the preset query statement and obtaining the preset query statement. The preset query statement can then be sent to the user, who can directly use it to process the newly acquired data. This helps users quickly understand the data stored by the data robot and improves data acquisition efficiency. Alternatively, you can generate a guidance report for each preset query statement and send the guidance report to the user to help the user use the data robot to obtain data.

[0082] Optionally, when the data robot cannot query the target data based on the statement input by the user, it can query whether the sentence pattern of the slot is included in the preset query sentence pattern based on the slot in the input sentence, and then send the queried preset query sentence pattern to the user to help the user obtain the target data faster using the preset query sentence pattern.

[0083] In one possible implementation, the data robot can also compile statistics on historical user input to identify popular questions, or frequently used query statements. These can then be recommended to users, guiding them to more quickly utilize the data robot to retrieve the data they need. Alternatively, commonly used shortcuts can be set as system commands, allowing users to retrieve target data by simply entering them. Alternatively, pre-set query statements and popular questions can be displayed as buttons on the data robot's display page for easier user operation.

[0084] Optionally, after the data robot recommends a query statement to a user, it can count the number of recommendations for any query statement and the number of times the user selects the query statement, and then determine a recommendation evaluation index based on the number of recommendations and the number of selections. The recommendation evaluation index can be used to evaluate whether the data robot's recommendation behavior is accurate. When the recommendation evaluation index does not meet the requirements, the query statement may no longer be recommended to the user. In addition, the number of recommendations and the number of selections for a certain user can also be counted, that is, the number of times each query statement is recommended to the user and the number of times the user selects the query statement, and then determine a recommendation evaluation index based on the number of recommendations for the user and the number of times the user selects the query statement. When the recommendation evaluation index does not meet the requirements, it indicates that the user is not interested in the recommended behavior, and the data robot can reduce the number of times it recommends query statements to the user, thereby reducing the data robot's data recommendation process.

[0085] Based on the above method embodiments, the embodiments of the present disclosure also provide a data analysis scenario. Optionally, when the target intent recognition model is a data analysis model, that is, when the user needs to analyze the data, the data robot can use the data analysis model to provide two types of data analysis capabilities, namely, fixed analysis and dynamic analysis. Among them, fixed analysis is suitable for fixed business analysis scenarios. For example, when the "native volume" indicator of the business fluctuates abnormally, the data analysis model can automatically perform data analysis through the "first-level category + third-level category" drill-down approach. That is, the data analysis model can be an analysis factor for abnormal indicators in the pre-set fixed analysis. Dynamic analysis refers to the need to perform attribution analysis on indicators from multiple dimensions. When the user needs to analyze a certain indicator, the data analysis model can provide the user with multiple dimensional indicators that cause the change of the indicator. The user can select the dimensional indicators of interest, and thus perform data analysis on the indicator based on the dimensional indicators selected by the user.

[0086] Based on the above method embodiment, the present disclosure also provides a data processing device. Referring to FIG4 , FIG4 is a schematic diagram of a data processing device provided by the present disclosure embodiment.

[0087] The apparatus 400 may include:

[0088] A first acquiring unit 401 is configured to acquire a statement input by a user, where the statement is used to instruct acquisition of target data required by the user;

[0089] A first processing unit 402 is configured to perform natural language processing on the sentence to obtain initial processing data;

[0090] The recognition unit 403 is configured to perform intent recognition on the initial processed data based on a preset intent recognition model to obtain at least one initial intent recognition result;

[0091] a determination unit 404, configured to perform multi-way recall on the at least one initial intent recognition result to determine a target intent recognition model;

[0092] The second processing unit 405 is configured to process the initial processing data based on the target intention recognition model to determine a target data model;

[0093] The second acquiring unit 406 is configured to acquire the target data based on the target data model.

[0094] In one possible implementation, the device 400 further includes: a sending unit; the sending unit is configured to send target data to the user at preset intervals; or, when the target data meets a warning condition, send the target data to the user, and the warning condition is pre-set according to the needs of the user.

[0095] In a possible implementation, the determining unit 404 is further configured to determine a candidate intent recognition model;

[0096] After determining the candidate intent recognition model, the second processing unit 405 is further configured to process the initial processing data based on the candidate intent recognition model to determine a candidate data model in response to the user selecting the candidate intent recognition model;

[0097] The second acquiring unit 406 is further configured to acquire candidate target data based on the candidate data model.

[0098] In one possible implementation, the first processing unit 402 is specifically used to perform semantic analysis on the sentence based on a text classification model to obtain intent information of the sentence; based on the intent information, use a sequence labeling model to label at least one slot in the sentence, and the at least one slot has a corresponding slot type; map the slot to a real dimension value through entity linking, and replace the slot with the real dimension value to obtain the initial processing data.

[0099] In one possible implementation, the preset intent recognition model includes multiple intent recognition models, the intent recognition model includes a preset slot set, the preset slot set has a corresponding slot type, and the recognition unit 403 is specifically used to match the preset slot set with the at least one slot for any intent recognition model among the multiple intent recognition models based on the slot type corresponding to the preset slot set and the slot type corresponding to at least one slot in the initial processing data, and determine a matching evaluation index.

[0100] In one possible implementation, the determination unit 404 is specifically used to filter the multiple intent recognition models and the corresponding multiple matching evaluation indicators based on the user's data permissions to obtain a first matching evaluation indicator set; filter the first matching evaluation indicator set based on preset evaluation indicators to obtain a second matching evaluation indicator set; and determine the target intent recognition model based on the priority order of the intent recognition models corresponding to the second matching evaluation indicator set.

[0101] In one possible implementation, the second processing unit 405 is specifically used to fill the at least one slot into the corresponding preset slot set based on the slot type corresponding to the preset slot set and the slot type corresponding to the at least one slot, and determine the initial data model; convert the initial data model based on the target data structure to obtain the target data model.

[0102] In one possible implementation, the second processing unit 405 is specifically used to fill the at least one slot into the corresponding preset slot set based on the slot type corresponding to the preset slot set and the slot type corresponding to the at least one slot; when there are unfilled slots in the preset slot set, perform slot tracing on the user based on the unfilled slots to obtain slot results; fill the unfilled slots with the slot results to obtain the initial data model.

[0103] In one possible implementation, when the target intent recognition model is a data query intent recognition model, the data query intent recognition model includes multiple intent recognition types, the multiple intent recognition types include multiple slot combinations, and the multiple slot combinations have a priority order. The second processing unit 405 is specifically used to determine at least one candidate slot combination based on the at least one slot; determine the target intent recognition type based on the priority order corresponding to the at least one candidate slot combination; fill the at least one slot into the preset slot set of the target intent recognition type to obtain the initial data model.

[0104] In a possible implementation, the apparatus 400 further includes: a third acquisition unit; the third acquisition unit is configured to acquire a candidate slot associated with a slot type in the initial processing data; and recommend the candidate slot to the user.

[0105] In one possible implementation, the device 400 also includes: a third processing unit; the third processing unit is used to process the data to be processed based on a preset query sentence pattern to obtain a preset query statement, the data to be processed is the user's data or the data of a third-party device, and the preset query sentence pattern is predetermined based on historical sentences; and the preset query statement is sent to the user.

[0106] The beneficial effects of the data processing device provided by the embodiments of the present disclosure can be found in the above-mentioned method embodiments and will not be described in detail here.

[0107] It should be noted that the specific implementation of each unit in this embodiment can refer to the relevant description in the above-mentioned method embodiment. The division of units in the embodiment of the present disclosure is schematic and is only a logical function division. There may be other division methods in actual implementation. The functional units in the embodiment of the present disclosure can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. For example, in the above-mentioned embodiment, the processing unit and the sending unit can be the same unit or different units. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

[0108] Referring to FIG5 , a schematic diagram of the structure of an electronic device 500 suitable for implementing embodiments of the present disclosure is shown. Terminal devices in embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG5 is merely an example and should not limit the functionality or scope of use of embodiments of the present disclosure.

[0109] As shown in Figure 5, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. Various programs and data required for the operation of the electronic device 500 are also stored in the RAM 503. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0110] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although FIG5 shows the electronic device 500 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.

[0111] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0112] The electronic device provided by the embodiment of the present disclosure and the method provided by the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0113] An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon. When the program is executed by a processor, the method provided in the above embodiment is implemented.

[0114] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0115] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (Hypertext Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.

[0116] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0117] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device can perform the method.

[0118] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0119] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0120] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit / module does not, in some cases, limit the unit itself.

[0121] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0122] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0123] According to one or more embodiments of the present disclosure, a data processing method is provided, the method comprising:

[0124] Obtaining a statement input by a user, wherein the statement is used to instruct acquisition of target data required by the user;

[0125] Performing natural language processing on the sentence to obtain initial processing data;

[0126] Performing intent recognition on the initial processed data based on a preset intent recognition model to obtain at least one initial intent recognition result;

[0127] Performing multi-way recall on the at least one initial intent recognition result to determine a target intent recognition model;

[0128] Processing the initial processing data based on the target intention recognition model to determine a target data model;

[0129] The target data is acquired based on the target data model.

[0130] According to one or more embodiments of the present disclosure, the method further includes:

[0131] Sending target data to the user at preset intervals; or,

[0132] When the target data meets the warning condition, the target data is sent to the user, and the warning condition is pre-set according to the needs of the user.

[0133] According to one or more embodiments of the present disclosure, performing multi-way recall on the at least one initial intent recognition result to determine the target intent recognition model further includes:

[0134] Determine candidate intent recognition models;

[0135] After determining the candidate intent recognition model, the method further includes:

[0136] In response to the user selecting the candidate intent recognition model, processing the initial processing data based on the candidate intent recognition model to determine a candidate data model;

[0137] Candidate target data is acquired based on the candidate data model.

[0138] According to one or more embodiments of the present disclosure, performing natural language processing on the sentence to obtain initial processing data includes:

[0139] Performing semantic analysis on the sentence based on a text classification model to obtain intent information of the sentence;

[0140] Based on the intent information, labeling at least one slot in the sentence using a sequence labeling model, wherein the at least one slot has a corresponding slot type;

[0141] The slot is mapped to a real dimension value through entity linking, and the slot is replaced with the real dimension value to obtain the initial processing data.

[0142] According to one or more embodiments of the present disclosure, the preset intent recognition model includes multiple intent recognition models, the intent recognition model includes a preset slot set, the preset slot set has a corresponding slot type, and performing intent recognition on the initial processed data based on the preset intent recognition model to obtain at least one initial intent recognition result includes:

[0143] For any intent recognition model among the multiple intent recognition models, based on the slot type corresponding to the preset slot set and the slot type corresponding to at least one slot in the initial processing data, the preset slot set is matched with the at least one slot to determine the matching evaluation index.

[0144] According to one or more embodiments of the present disclosure, performing multi-way recall on the at least one initial intent recognition result to determine a target intent recognition model includes:

[0145] Filtering the multiple intent recognition models and the corresponding multiple matching evaluation indicators based on the data permission of the user to obtain a first matching evaluation indicator set;

[0146] Filtering the first matching evaluation indicator set based on preset evaluation indicators to obtain a second matching evaluation indicator set;

[0147] Determine the target intent recognition model based on the priority order of the intent recognition models corresponding to the second matching evaluation indicator set.

[0148] According to one or more embodiments of the present disclosure, processing the initial processing data based on the target intent recognition model to determine the target data model includes:

[0149] Based on the slot type corresponding to the preset slot set and the slot type corresponding to the at least one slot, filling the at least one slot into the corresponding preset slot set to determine an initial data model;

[0150] The initial data model is converted based on the target data structure to obtain the target data model.

[0151] According to one or more embodiments of the present disclosure, the step of filling the at least one slot into the corresponding preset slot set based on the slot type corresponding to the preset slot set and the slot type corresponding to the at least one slot, and determining the initial data model includes:

[0152] Based on the slot type corresponding to the preset slot set and the slot type corresponding to the at least one slot, filling the at least one slot into the corresponding preset slot set;

[0153] When there are unfilled slots in the preset slot set, performing slot inquiry on the user based on the unfilled slots to obtain slot results;

[0154] Fill the unfilled slots with the slot results to obtain the initial data model.

[0155] According to one or more embodiments of the present disclosure, when the target intent recognition model is a data query intent recognition model, the data query intent recognition model includes multiple intent recognition types, the multiple intent recognition types include multiple slot combinations, the multiple slot combinations have a priority order, and based on the slot type set corresponding to the preset slot set and the slot type corresponding to the at least one slot, the at least one slot is filled into the corresponding preset slot set to determine the initial data model, including:

[0156] determining at least one candidate slot combination based on the at least one slot;

[0157] Determining a target intent recognition type based on a priority order corresponding to the at least one candidate slot combination;

[0158] Fill the at least one slot into the preset slot set of the target intent recognition type to obtain the initial data model.

[0159] According to one or more embodiments of the present disclosure, the method further includes:

[0160] Obtaining a candidate slot associated with a slot type in the initial processing data;

[0161] The candidate slot is recommended to the user.

[0162] According to one or more embodiments of the present disclosure, the method further includes:

[0163] Processing the data to be processed based on a preset query sentence to obtain a preset query sentence, wherein the data to be processed is the user's data or data of a third-party device, and the preset query sentence is predetermined based on historical sentences;

[0164] Send the preset query statement to the user.

[0165] According to one or more embodiments of the present disclosure, a data processing device is provided, the device including:

[0166] A first acquiring unit is configured to acquire a statement input by a user, wherein the statement is used to instruct acquisition of target data required by the user;

[0167] a first processing unit, configured to perform natural language processing on the sentence to obtain initial processing data;

[0168] an identification unit, configured to perform intent identification on the initial processed data based on a preset intent identification model, and obtain at least one initial intent identification result;

[0169] a determination unit, configured to perform multi-way recall on the at least one initial intent recognition result to determine a target intent recognition model;

[0170] a second processing unit, configured to process the initial processing data based on the target intention recognition model to determine a target data model;

[0171] A second acquiring unit is configured to acquire the target data based on the target data model.

[0172] In one or more embodiments of the present disclosure, the device further includes: a sending unit; the sending unit is used to send target data to the user at preset time intervals; or, when the target data meets the warning condition, the target data is sent to the user, and the warning condition is pre-set according to the needs of the user.

[0173] In one or more embodiments of the present disclosure, the determining unit is further configured to determine a candidate intent recognition model;

[0174] After determining the candidate intent recognition model, the second processing unit is further configured to, in response to the user selecting the candidate intent recognition model, process the initial processing data based on the candidate intent recognition model to determine a candidate data model;

[0175] The second acquiring unit is further configured to acquire candidate target data based on the candidate data model.

[0176] In one or more embodiments of the present disclosure, the first processing unit is specifically used to perform semantic analysis on the sentence based on a text classification model to obtain intent information of the sentence; based on the intent information, label at least one slot in the sentence using a sequence labeling model, and the at least one slot has a corresponding slot type; map the slot to a real dimension value through entity linking, replace the slot with the real dimension value, and obtain the initial processing data.

[0177] In one or more embodiments of the present disclosure, the preset intent recognition model includes multiple intent recognition models, the intent recognition model includes a preset slot set, the preset slot set has a corresponding slot type, and the recognition unit is specifically used to match the preset slot set with the at least one slot for any intent recognition model among the multiple intent recognition models based on the slot type corresponding to the preset slot set and the slot type corresponding to at least one slot in the initial processing data, and determine a matching evaluation index.

[0178] In one or more embodiments of the present disclosure, the determination unit is specifically used to filter the multiple intent recognition models and the corresponding multiple matching evaluation indicators based on the user's data permissions to obtain a first matching evaluation indicator set; filter the first matching evaluation indicator set based on preset evaluation indicators to obtain a second matching evaluation indicator set; and determine the target intent recognition model based on the priority order of the intent recognition models corresponding to the second matching evaluation indicator set.

[0179] In one or more embodiments of the present disclosure, the second processing unit is specifically used to fill the at least one slot into the corresponding preset slot set based on the slot type corresponding to the preset slot set and the slot type corresponding to the at least one slot, and determine the initial data model; convert the initial data model based on the target data structure to obtain the target data model.

[0180] In one or more embodiments of the present disclosure, the second processing unit is specifically used to fill the at least one slot into the corresponding preset slot set based on the slot type corresponding to the preset slot set and the slot type corresponding to the at least one slot; when there are unfilled slots in the preset slot set, perform slot tracing on the user based on the unfilled slots to obtain slot results; fill the unfilled slots with the slot results to obtain the initial data model.

[0181] In one or more embodiments of the present disclosure, when the target intent recognition model is a data query intent recognition model, the data query intent recognition model includes multiple intent recognition types, the multiple intent recognition types include multiple slot combinations, and the multiple slot combinations have a priority order. The second processing unit is specifically used to determine at least one candidate slot combination based on the at least one slot; determine the target intent recognition type based on the priority order corresponding to the at least one candidate slot combination; fill the at least one slot into the preset slot set of the target intent recognition type to obtain the initial data model.

[0182] In one or more embodiments of the present disclosure, the apparatus further includes: a third acquisition unit; the third acquisition unit is configured to acquire a candidate slot associated with a slot type in the initial processing data; and recommend the candidate slot to the user.

[0183] In one or more embodiments of the present disclosure, the device also includes: a third processing unit; the third processing unit is used to process the data to be processed based on a preset query sentence pattern and obtain a preset query statement, the data to be processed is the user's data or the data of a third-party device, and the preset query sentence pattern is predetermined based on historical sentences; and the preset query statement is sent to the user.

[0184] According to one or more embodiments of the present disclosure, there is provided an electronic device, the device comprising: a processor and a memory;

[0185] The memory is used to store instructions or computer programs;

[0186] The processor is configured to execute the instructions or computer program in the memory so that the electronic device executes the data processing method.

[0187] According to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which instructions are stored. When the instructions are executed on a device, the device executes the data processing method.

[0188] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Reference can be made to the common and similar parts between the various embodiments. For the systems or devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method description.

[0189] It should be understood that in the present disclosure, "at least one (item)" refers to one or more, and "plurality" refers to two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0190] It should also be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.

[0191] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0192] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present disclosure. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not limited to the embodiments shown herein, but is intended to be construed in the widest manner consistent with the principles and novel features disclosed herein.

Claims

1. A data processing method, comprising: Acquire a statement input by a user, wherein the statement is used to instruct acquisition of target data required by the user; Performing natural language processing on the sentence to obtain initial processing data; Performing intent recognition on the initial processed data based on a preset intent recognition model to obtain at least one initial intent recognition result; Performing multi-way recall on the at least one initial intent recognition result to determine a target intent recognition model; Processing the initial processing data based on the target intention recognition model to determine a target data model; The target data is acquired based on the target data model.

2. The method according to claim 1, further comprising: Sending target data to the user at preset intervals; or, When the target data meets the warning condition, the target data is sent to the user, and the warning condition is preset according to the needs of the user.

3. The method according to claim 1, wherein: The performing multi-way recall on the at least one initial intent recognition result to determine the target intent recognition model further includes: Determine candidate intent recognition models; After determining the candidate intent recognition model, the method further includes: In response to the user selecting the candidate intent recognition model, processing the initial processing data based on the candidate intent recognition model to determine a candidate data model; Candidate target data is acquired based on the candidate data model.

4. The method according to any one of claims 1 to 3, wherein: The performing natural language processing on the sentence to obtain initial processing data includes: Performing semantic analysis on the sentence based on a text classification model to obtain intent information of the sentence; Based on the intent information, label at least one slot in the sentence using a sequence labeling model, wherein the at least one slot has a corresponding slot type; The slot is mapped to a real dimension value through entity linking, and the real dimension value is used to replace the slot to obtain the initial processing data.

5. The method according to claim 4, wherein: The preset intent recognition model includes a plurality of intent recognition models, the intent recognition model includes a preset slot set, the preset slot set has a corresponding slot type, and performing intent recognition on the initial processing data based on the preset intent recognition model to obtain at least one initial intent recognition result includes: For any intent recognition model among the multiple intent recognition models, based on the slot type corresponding to the preset slot set and the slot type corresponding to at least one slot in the initial processing data, the preset slot set is matched with the at least one slot to determine the matching evaluation index.

6. The method according to claim 5, wherein: The multi-way recall of the at least one initial intent recognition result to determine the target intent recognition model includes: Filtering the multiple intent recognition models and the corresponding multiple matching evaluation indicators based on the data permission of the user to obtain a first matching evaluation indicator set; Filtering the first matching evaluation indicator set based on preset evaluation indicators to obtain a second matching evaluation indicator set; Based on the priority order of the intent recognition models corresponding to the second matching evaluation indicator set, a target intent recognition model is determined.

7. The method according to claim 5, wherein: The processing of the initial processing data based on the target intention recognition model to determine the target data model includes: Based on the slot type corresponding to the preset slot set and the slot type corresponding to the at least one slot, filling the at least one slot into the corresponding preset slot set to determine the initial data model; The initial data model is converted based on the target data structure to obtain the target data model.

8. The method according to claim 7, wherein: The step of filling the at least one slot into the corresponding preset slot set based on the slot type corresponding to the preset slot set and the slot type corresponding to the at least one slot, and determining the initial data model includes: Based on the slot type corresponding to the preset slot set and the slot type corresponding to the at least one slot, filling the at least one slot into the corresponding preset slot set; When there are unfilled slots in the preset slot set, performing slot inquiry on the user based on the unfilled slots to obtain slot results; Fill the unfilled slots with the slot results to obtain the initial data model.

9. The method according to claim 7, wherein: When the target intent recognition model is a data query intent recognition model, the data query intent recognition model includes multiple intent recognition types, the multiple intent recognition types include multiple slot combinations, the multiple slot combinations have a priority order, the slot type set corresponding to the preset slot set and the slot type corresponding to the at least one slot are filled into the corresponding preset slot set, and the initial data model is determined, including: determining at least one candidate slot combination based on the at least one slot; Determining a target intent recognition type based on a priority order corresponding to the at least one candidate slot combination; Fill the at least one slot into a preset slot set of the target intent recognition type to obtain the initial data model.

10. The method according to claim 4, further comprising: Obtaining a candidate slot associated with a slot type in the initial processing data; The candidate slot is recommended to the user.

11. The method according to any one of claims 1 to 10, further comprising: Processing the data to be processed based on a preset query sentence pattern to obtain a preset query sentence, wherein the data to be processed is data of the user or data of a third-party device, and the preset query sentence pattern is predetermined based on historical sentences; The preset query statement is sent to the user.

12. A data processing device, comprising: A first acquisition unit, used to acquire a sentence input by a user, wherein the sentence is used to instruct to acquire target data required by the user; A first processing unit, configured to perform natural language processing on the sentence to obtain initial processing data; an identification unit, configured to perform intent identification on the initial processing data based on a preset intent identification model, and obtain at least one initial intent identification result; a determination unit, configured to perform multi-way recall on the at least one initial intent recognition result to determine a target intent recognition model; A second processing unit, configured to process the initial processing data based on the target intention recognition model to determine a target data model; A second acquisition unit is configured to acquire the target data based on the target data model.

13. An electronic device comprising: Processor and memory; The memory is used to store instructions or computer programs; The processor is used to execute the instructions or computer programs in the memory so that the electronic device executes the method according to any one of claims 1 to 11.

14. A computer-readable storage medium, wherein: The computer-readable storage medium stores instructions, and when the instructions are executed on a device, the device executes the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Intention recognition method and device, electronic equipment and readable storage medium

    CN113064984A

  • Structured query language statement obtaining method and device based on natural language

    CN113495900A

  • User intention recognition method and device, and computer equipment

    CN113569578A

  • Method and device for determining user intention

    CN114694645A

  • Data processing method and device, equipment and medium

    CN116955395A

Cited By

  • Multi-source data fusion method and device and medium

    CN119026087A

  • Assessment method and device of large language model, electronic equipment and readable storage medium

    CN119377622A

  • Water conservancy professional model and large language model coupling method based on intention recognition

    CN119514688A

  • Data display method and device, electronic equipment, medium and product

    CN119621807A

  • Table-based query method and device, computer equipment, readable storage medium and program product

    CN120316147A