Data processing method and device, computer equipment and storage medium

By obtaining intent categories and corpus samples, and selecting matching intents from the preset intent system, the problem of slow generation of intent recognition models is solved, and the rapid generation of intent recognition models that match business needs is achieved.

CN118657153APending Publication Date: 2024-09-17MASHANG CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410286396.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-13
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In the existing technology, the generation of intent recognition models requires a large number of samples, causing the sample acquisition speed to become a bottleneck in the generation speed, making it difficult to quickly match intent recognition models with different business requirements.

Method used

By obtaining the intent category that matches the business requirements, selecting the matching intent from the preset intent system, and determining the training sample set based on the intent and corpus samples, an intent recognition model that matches the business requirements is quickly generated.

Benefits of technology

There is no need to specifically build intentions each time. Intents and training sample sets related to business needs can be quickly obtained, which significantly improves the speed of generating intention recognition models and ensures the matching of the model with business needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657153A
    Figure CN118657153A
Patent Text Reader

Abstract

The invention relates to a data processing method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring a first intention category matched with a service demand; determining a first intention in a preset intention system, wherein the second intention category of the first intention is matched with the first intention category; a corpus sample matched with the first intention is determined, a training sample set is determined based on the first intention and the corpus sample, and the training sample set is used for training an intention recognition model matched with the service demand. By adopting the method, the generation speed of the intention recognition model can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a data processing method, apparatus, computer equipment and storage medium. Background Art

[0002] In response to different business needs, it is necessary to build additional intents that match them and collect corpus samples of these intents for the generation of intent recognition models. Since the generation of intent recognition models often requires a large number of samples, the speed of obtaining samples greatly limits the generation speed of intent recognition models. Summary of the invention

[0003] The present application provides a data processing method, apparatus, computer device and computer-readable storage medium.

[0004] In a first aspect, the present application provides a data processing method, comprising:

[0005] Get the first intent category that matches the business needs;

[0006] Determine a first intention in a preset intention system, wherein a second intention category of the first intention matches the first intention category;

[0007] A corpus sample matching the first intent is determined, and a training sample set is determined based on the first intent and the corpus sample, where the training sample set is used to train an intent recognition model matching the business requirement.

[0008] In a second aspect, the present application further provides a data processing device, comprising:

[0009] An acquisition module, used to acquire a first intent category matching the business requirement;

[0010] A first determination module is used to determine a first intention in a preset intention system, and a second intention category of the first intention matches the first intention category;

[0011] The second determination module is used to determine the corpus sample that matches the first intent, and to determine a training sample set based on the first intent and the corpus sample, where the training sample set is used to train an intent recognition model that matches the business requirements.

[0012] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method described in the first aspect are implemented.

[0013] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0014] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which implements the steps of the method described in the first aspect when executed by a processor.

[0015] It can be seen that in the embodiment of the present application, when it is necessary to train an intent recognition model that matches the business needs, the first intent category that matches the business needs can be obtained first, and then the first intent can be selected from the preset intent system based on the first intent category, wherein the second intent category of the first intent matches the first intent category. Since the preset intent system is pre-constructed, in actual use, only the preset intent system needs to be selected to quickly obtain the first intent associated with the business needs. Further, a corpus sample matching the first intent is determined, and a training sample set is determined based on the first intent and the corpus sample, and the training sample set is used to train the intent recognition model. Since the intent category of the first intent in the training sample set matches the business needs, the intent recognition model obtained by training is also a model that matches the business needs. That is to say, when facing different business needs, the present application does not need to construct an additional intent each time, but can select the first intent whose intent category matches the business needs from the preset intent system, and can quickly obtain the first intent, so that the training sample set can be quickly obtained based on the first intent and the corpus sample of the first intent. In this way, the generation speed of the intent recognition model that matches the business needs can be greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 An application environment diagram of a data processing method in an embodiment;

[0018] Figure 2 is a flow chart of a data processing method in one embodiment;

[0019] Figure 3 is a flow chart of a data processing method in another embodiment;

[0020] Figure 4 1 is a schematic diagram of the overall flow of a data processing method in one embodiment;

[0021] Figure 5 is a structural block diagram of a data processing device in one embodiment;

[0022] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0023] For ease of understanding, the following professional terms are explained here and will not be repeated later.

[0024] BERT (Bidirectional Encoder Representation from Transformers) is a pre-trained language representation model. It emphasizes that it no longer uses the traditional unidirectional language model or the shallow concatenation of two unidirectional language models for pre-training as in the past, but uses the new MLM (masked language model) to generate deep bidirectional language representation.

[0025] In order to better understand a data processing method, apparatus, computer device and storage medium provided in an embodiment of the present application, an application environment applicable to an embodiment of the present application is first described below.

[0026] In order to generate an intent recognition model with high intent recognition accuracy, it is often necessary to develop intent recognition models that match business needs for different business needs. However, for scenarios with different business needs, corpora with different meanings may be labeled with the same intent. For example, in a telephone sales scenario, "definitely it is me" is labeled as a positive intent. In a debt collection scenario, "definitely includes me" is also labeled as a positive intent. Using this intent and the corpus corresponding to the intent, it is difficult to construct a sample that matches the business needs, and therefore it is difficult to generate an intent recognition model that matches the business needs.

[0027] In traditional methods, it is necessary to build intents that match business needs and collect corpus samples of these intents for the generation of intent recognition models. Since the generation of intent recognition models often requires a large number of samples, the speed of obtaining samples greatly limits the generation speed of intent recognition models.

[0028] In view of this, in order to improve the generation speed of the intent recognition model, when it is necessary to train the intent recognition model that matches the business needs, the first intent category that matches the business needs can be obtained first, and then the first intent category can be selected from the preset intent system based on the first intent category, wherein the second intent category of the first intent matches the first intent category. Since the preset intent system is pre-constructed, in actual use, only the preset intent system needs to be selected to quickly obtain the first intent associated with the business needs. Further, a corpus sample matching the first intent is determined, and a training sample set is determined based on the first intent and the corpus sample, and the training sample set is used to train the intent recognition model. Since the intent category of the first intent in the training sample set matches the business needs, the intent recognition model obtained by training is also a model that matches the business needs. That is to say, when facing different business needs, the present application does not need to construct an additional intent each time, but can select the first intent whose intent category matches the business needs from the preset intent system, and can quickly obtain the first intent, so that the training sample set can be quickly obtained based on the first intent and the corpus sample of the first intent. In this way, the generation speed of the intent recognition model that matches the business needs can be greatly improved.

[0029] See also Figure 1 , Figure 1 A schematic diagram of an application environment of the data processing method provided in an embodiment of the present application is shown. As an implementation mode, the data processing method provided in the embodiment of the present application can be applied to a computer device. The computer device can be Figure 1 The server 110 shown in the figure can be connected to the terminal device 120 through a network. The network is used to provide a medium for a communication link between the server 110 and the terminal device 120. The network can include various connection types, such as a wired communication link, a wireless communication link, etc., which is not limited in the embodiment of the present application. Optionally, in other embodiments, it can also be a smart phone, a laptop computer, etc.

[0030] It should be understood that Figure 1 The server 110, network and terminal device 120 are merely illustrative. Depending on the implementation requirements, there may be any number of servers, networks and terminal devices. For example, the server 110 may be a physical server or a server cluster composed of multiple servers, and the terminal device 120 may be a mobile phone, a tablet, a desktop computer, a laptop computer, and the like. It is understood that the embodiments of the present application may also allow multiple terminal devices 120 to access the server 110 at the same time.

[0031] In some embodiments, the terminal device 120 may obtain a first intent category that matches the business requirement. Further, the terminal device 120 sends the first intent category to the server 110 via the network, and after the server 110 receives the first intent category, the first intent category may be processed by the data processing method described in the embodiment of the present application.

[0032] As another implementation method, the data processing method provided in the embodiment of the present application can be applied to different computer devices. For example, computer device A obtains a first intent category that matches the business needs, computer device B determines the first intent in the preset intent system, the second intent category of the first intent matches the first intent category, computer device C determines the corpus sample that matches the first intent, and determines a training sample set based on the first intent and the corpus sample, and the training sample set is used to train an intent recognition model that matches the business needs, etc. The embodiment of the present application does not limit this.

[0033] In one embodiment, Figure 2 As shown, a data processing method is provided, which is applied to Figure 1 The terminal device 120 in the example is used as an example to illustrate, and the following steps are included:

[0034] Step 202: Obtain a first intent category that matches the business requirement.

[0035] Among them, business needs refer to the need to generate an intent recognition model for a specific business scenario. For example, business scenarios can be collection scenarios, telemarketing scenarios, customer service scenarios, etc. Taking the customer service scenario as an example, the business needs can be to generate an intent recognition model for handling customer objections, to generate an intent recognition model for third-party information verification, or to generate an intent recognition model for business operation guidance.

[0036] The intent category refers to the functional category to which the intent belongs. For example, the intent category includes objection raising category, objection handling category, third-party information verification category, etc.

[0037] For different business needs, the corpus involved and the intent of the corpus are usually closely related to the business scenario. In order to quickly and accurately identify the intent of the corpus, different intents are usually classified according to specific rules. Classification methods can include: based on keywords matched by intent, based on clustering methods, based on the meaning represented by intent, based on artificial rules, etc. For example, clustering methods include K-means clustering, density-based noise application space clustering, and expectation maximization clustering using Gaussian mixture models.

[0038] In some embodiments, the correspondence between business requirements and intent categories is pre-stored in the terminal device. For different business scenarios, the terminal device can filter out the first intent category that matches the business requirement from multiple intent categories and use it for data processing in the business scenario. For example, for the business requirement of handling customer objections, the first intent categories that match the business requirement include: objection raising category and objection handling category. For the business requirement of the third-party information verification category, the first intent categories that match the business requirement include: third-party information verification category.

[0039] Step 204 , determining a first intent in a preset intent system, wherein a second intent category of the first intent matches the first intent category.

[0040] Among them, a pre-built preset intent system is stored in the terminal device, and the preset intent system includes multiple intents. In some embodiments, each intent has a corresponding intent category label, and the intent category label is used to characterize the intent category to which the intent belongs. The terminal device determines the intent category to which the intent belongs according to the intent category label corresponding to each intent. In other embodiments, the terminal device classifies the intents in the preset intent system according to specific rules to obtain the intent category to which each intent in the preset intent system belongs. The category classification method can refer to the category classification method in step 202.

[0041] The first intention is an intention in the preset intention system, and the first intention can be screened from the preset intention system through the second intention category.

[0042] The second intent category is the intent category to which the first intent belongs, and the second intent category matches the first intent category. For example, the second intent category is the same as the first intent category, or the second intent category and the first intent category meet a preset similarity condition. The preset similarity condition may be that the similarity between the second intent category and the first intent category exceeds a preset value, or is within a preset similarity range.

[0043] The terminal device selects the intent whose intent category matches the first intent category from the preset intent system and uses it as the first intent. Since the preset intent system is pre-built, in actual use, you only need to select the preset intent system to quickly get the first intent associated with the business needs. For example, the first intent category is the objection handling category. The intents belonging to the objection handling category in the preset intent system include the intent to record the objection content, the intent to provide objection solutions, etc. The terminal device uses these intents belonging to the objection handling category as the first intent.

[0044] Step 206, determining a corpus sample that matches the first intent, and determining a training sample set based on the first intent and the corpus sample, where the training sample set is used to train an intent recognition model that matches the business requirement.

[0045] The corpus sample is the corpus matched with the first intent, and is used together with the first intent as a training sample, so as to train an intent recognition model that matches the business needs.

[0046] The terminal device obtains a corpus sample matching the first intention from a preset corpus. The preset corpus can be stored in the terminal device, or in a data storage device connected to the terminal device.

[0047] The corpus samples matched by the first intent include corpus marked as the first intent and corpus of intents associated with the first intent.

[0048] The preset corpus also stores the intent corresponding to each corpus. Exemplarily, the terminal device can filter out the corpus marked as the first intent in the preset corpus and use it as a corpus sample. In some embodiments, the intent corresponding to the corpus can be manually marked. In other embodiments, the corpus has a marked intent.

[0049] Exemplarily, the terminal device stores associations between multiple intents, and the corpus of intents that are associated with the first intent can be screened out from the preset corpus and used as a corpus sample.

[0050] Since the training sample set consists of the first intent and the corpus samples matching the first intent, and the intent category of the first intent matches the business needs, an intent recognition model is obtained based on the training sample set, and the intent recognition model can be used to perform intent recognition on the corpus in business scenarios related to business needs.

[0051] At the same time, since the first intent is selected from the preset intent system based on the first intent category matching the business needs, the first intent can be quickly obtained for different business needs, thereby quickly obtaining the training sample set, which is conducive to improving the generation speed of the intent recognition model matching the business needs.

[0052] Exemplarily, the training steps of the intent recognition model include: the terminal device inputs the corpus sample in the training sample set into the initial model for intent recognition to obtain the predicted intent; based on the difference between the predicted intent and the first intent, the model loss is calculated, the initial model is trained based on the model loss, and the training is terminated when the preset training end condition is met to obtain the intent recognition model. The initial model can be a classification model, for example, a BERT model.

[0053] In some embodiments, the training sample set can be divided into a training set and a test set according to a preset ratio. The terminal device inputs the training set into the initial model for training to obtain an intent recognition model, and uses the test set to perform a performance test on the intent recognition model, thereby continuously adjusting the model parameters of the intent recognition model, so that the final intent recognition model has a higher intent recognition accuracy.

[0054] In the above data processing method, when it is necessary to train an intent recognition model that matches the business needs, the first intent category that matches the business needs can be obtained first, and then the first intent category can be selected from the preset intent system based on the first intent category, wherein the second intent category of the first intent matches the first intent category. Since the preset intent system is pre-constructed, in actual use, only the preset intent system needs to be selected to quickly obtain the first intent associated with the business needs. Further, a corpus sample matching the first intent is determined, and a training sample set is determined based on the first intent and the corpus sample, and the training sample set is used to train the intent recognition model. Since the intent category of the first intent in the training sample set matches the business needs, the intent recognition model obtained by training is also a model that matches the business needs. That is to say, when facing different business needs, the present application does not need to construct an additional intent each time, but can select the first intent whose intent category matches the business needs from the preset intent system, and can quickly obtain the first intent, so that the training sample set can be quickly obtained based on the first intent and the corpus sample of the first intent. In this way, the generation speed of the intent recognition model matching the business needs can be greatly improved.

[0055] In an exemplary embodiment, Figure 3 As shown, the data processing method also includes:

[0056] Step 302: Obtain the business content associated with each process node associated with the first business.

[0057] The first business may include at least one business in a business scenario. For example, the first business may include a collection business in a collection scenario, a product marketing business in a telemarketing scenario, a third-party information verification business in a customer service scenario, etc. The terminal device pre-builds a preset intent system based on the first business. When the terminal device receives a business demand for a specific business scenario, it can quickly generate an intent recognition model that matches the business demand based on the pre-built preset intent system, thereby performing intent recognition on the corpus in the specific business scenario. The specific business scenario is any business scenario in the business scenario used when building the preset intent system.

[0058] A process node refers to a key process point that plays a decisive role in a business. Generally speaking, a process node can represent the business status achieved by the user. For example, in a conversational business, since user feedback can determine the possibility of business success to a certain extent, the process node can be based on the user's feedback after the information reaches the user.

[0059] For example, in a telephone sales business, the user's feedback is "making a loan request", so "making a loan request" can be used as a process node, which represents that the business status reached by the user is willing to take out a loan.

[0060] For example, in the collection business, the user's feedback is "promise to repay", so "promise to repay" can be used as a process node, which represents that the business status reached by the user is willing to repay.

[0061] For example, the user's feedback is "understanding the repayment channels and processes", so "understanding the repayment channels and processes" can be used as a process node, which represents that the business status reached by the user is possible to repay.

[0062] The first business includes multiple process nodes, and the process nodes associated with the first business may include process nodes in the first business, or process nodes in a business associated with the first business. For example, the first business is the M product marketing business, and for the N product marketing business, both the M product and the N product are audio acquisition products, and the N product marketing business can be used as an associated business of the M product marketing business.

[0063] The business content associated with a process node is the business text in the process node. For example, if the process node is "promise to repay", its associated business content includes "remind to repay", "promise to repay within the deadline", "promise to repay when conditions are met", etc.

[0064] Step 304 , based on the business content associated with each process node, determine the intent of the business object associated with each process node.

[0065] The business objects are objects involved in the first business. For example, the first business is a debt collection business, and the business objects include seats and users. The business objects associated with each process node may be all or part of the objects involved in the first business.

[0066] For each process node, the terminal device splits the intent of the business content associated with the process node to obtain the intent of the business object associated with the process node.

[0067] In some embodiments, the terminal device may use an intent splitting model to perform intent splitting. The intent splitting model may be a deep learning model. Exemplarily, the business objects associated with the process node include seats and users, and the business content associated with the process node is input into the intent splitting model to obtain the intention of the seat and the intention of the user in the process node.

[0068] For example, the process node is "commitment to repay" and its associated business content is "the agent asks you to complete the repayment within the deadline, and the user indicates that he will repay within the deadline". After the intention is split, the agent's repayment reminder intention and the user's commitment to repay intention are obtained.

[0069] In some embodiments, the training steps of the intent splitting model include: obtaining business content samples and training labels corresponding to the business content samples, the training labels are used to characterize the intentions of multiple objects in the business content samples, inputting the business content samples into the initial model to obtain predicted classification results; based on the difference between the predicted classification results and the training labels, calculating the model loss, training the initial model based on the model loss, and stopping the model training until the preset training stop condition is met to obtain the intent splitting model.

[0070] Step 306, constructing a preset intent system based on the intent of each business object.

[0071] Among them, the preset intent system is constructed based on the intent of the business object. Each intent in the preset intent system often has a certain arrangement order, which can be obtained based on the order in which the intent of the business object is added to the preset intent system, based on the generation sequence of the intent of each business object, and based on the execution sequence of the process node where the intent is located.

[0072] The terminal device combines the intent of each business object in the above order to obtain a preset intent system.

[0073] In this embodiment, the process node associated with the first business is obtained, and then the business content associated with the process node is obtained, thereby splitting the business content to obtain the intent of the business object associated with the process node, and combining the intents to obtain a preset intent system. Since the preset intent system is constructed based on the intent of the business object in the first business, the first business can be selected according to actual needs. As the business scenarios involved in the first business continue to increase, the richness and completeness of the intent in the preset intent system can be continuously improved, which is conducive to providing intent samples for business needs in various business scenarios.

[0074] In an exemplary embodiment, a preset intent system is constructed based on the intent of each business object, including: sorting the intents of the business objects according to the execution sequence of the process nodes and the generation sequence of the intents to obtain an intent sequence; supplementing the missing intents in the intent sequence to obtain a preset intent system.

[0075] The execution sequence refers to the time sequence of the execution of the process nodes. For example, the execution sequence of the process node "Repayment Reminder" is earlier than the execution sequence of the process node "Promise to Repay".

[0076] Generation sequence refers to the time sequence in which the intent of a business object is generated. For example, the generation sequence of the agent's "repayment reminder intent" is earlier than the generation sequence of the user's "commitment repayment intent".

[0077] An intent sequence refers to a sequence of intents with a certain order. The terminal device can sort each process node according to the execution sequence of the process node, and for each process node, sort the intent corresponding to the process node according to the generation sequence of the intent of the business object associated with the process node, so as to obtain an intent sequence. For example, the process nodes include X, Y, and Z, which are X, Y, and Z after being sorted according to the execution sequence. The intents associated with process node X include x1 and x2, which are x1 and x2 after being sorted according to the generation sequence. The intents associated with process node Y include y1 and y2, which are y1 and y2 after being sorted according to the generation sequence. The intents associated with process node Z include z1 and z2, which are z1 and z2 after being sorted according to the generation sequence. The resulting intent sequence is: x1, x2, y1, y2, z1, z2.

[0078] Since the intent sequence is constructed based on the intent associated with the first business, the intent in the intent sequence cannot cover all relevant intents for the first business. In order to further improve the completeness and richness of the intent in the preset intent system, the intent sequence can be further supplemented.

[0079] The missing intention refers to the intention that causes the logical loss of the intention sequence. After the missing intention in the intention sequence is supplemented, a logically complete preset intention system will be obtained.

[0080] For example, two adjacent intentions in the intent sequence are "repayment reminder intention" and "repayment process guidance intention". Before generating the "repayment process guidance intention", the user's repayment commitment is often required. Therefore, there is a missing intent between the "repayment reminder intention" and the "repayment process guidance intention". The terminal device adds the "repayment commitment intention" between the "repayment reminder intention" and the "repayment process guidance intention" to obtain a logically complete preset intention system.

[0081] In this embodiment, by sorting the intentions of business objects according to the execution sequence of process nodes and the generation sequence of intentions, an intention sequence with an intention flow relationship can be obtained, and the missing intentions can be supplemented in the intention sequence, thereby continuously enriching and improving the preset intention system, which is conducive to improving the completeness and richness of the intentions in the preset intention system.

[0082] In an exemplary embodiment, missing intentions in an intention sequence are supplemented to obtain a preset intention system, including: if there is a missing intention between the i-th intention and the i+1-th intention in the intention sequence, a candidate intention is added between the i-th intention and the i+1-th intention to obtain a preset intention system; the intention series includes N intentions, N is an integer greater than 1, and i is an integer from 1 to N.

[0083] The missing intent exists between two adjacent intents in the intent sequence. The terminal device performs an intent missing detection on the intent sequence to determine whether there is a missing intent between any two adjacent intents.

[0084] Intent gap detection is used to infer whether two adjacent intents have an adjacent relationship from a logical level. Intent gap detection can be performed serially on the intents in the intent sequence according to the order of intents, or in parallel on the intents in the intent sequence.

[0085] Among them, serial detection means starting from the first intent, and testing each intent in sequence in the order of intents in the intent sequence, until all intents in the intent sequence are tested. Parallel detection means testing all intents at the same time.

[0086] The ith intention and the i+1th intention can represent any two adjacent intentions in the intention sequence. If the result of the missing intention detection indicates that there is a missing intention between the ith intention and the i+1th intention, the terminal device adds the candidate intention between the ith intention and the i+1th intention to obtain a preset intention system.

[0087] The candidate intent may be a preset intent, or an intent determined based on the i-th intent.

[0088] In this embodiment, when there is a missing intent between two adjacent intents in the intent sequence, a candidate intent is added between the two intents, which is helpful to obtain a logically complete preset intent system.

[0089] In an exemplary embodiment, the data processing method further includes: determining a candidate intent based on the i-th intent; if the candidate intent does not match the i+1-th intent, determining that there is a missing intent between the i-th intent and the i+1-th intent.

[0090] The candidate intent is an intent that is adjacent to the ith intent, and the corpus corresponding to the candidate intent has a contextual relationship with the corpus corresponding to the ith intent.

[0091] In some embodiments, the terminal device inputs the i-th intent into a vacancy detection model to obtain a candidate intent. The vacancy detection model may be a deep learning model for classification. For example, it may be a BERT model.

[0092] In some embodiments, the training steps of the vacancy detection model include: obtaining a first intent sample of a first text sample and a second intent sample of a second text sample; the second text sample is the context of the first text sample; inputting the first intent sample into an initial model, and outputting a predicted intent through the initial model; constructing a loss function based on the difference between the second intent sample and the predicted intent, and training the initial model through the loss function until the training stop condition is reached to obtain an intent vacancy detection model.

[0093] Since the samples are texts with contextual relationships and the intents corresponding to the texts when the vacancy detection model is trained, after the i-th intent is input into the vacancy detection model, the candidate intent output by the vacancy detection model has an adjacent relationship with the i-th intent. In the intention sequence, the i+1th intent has an adjacent relationship with the i-th intent, so the terminal device compares the candidate intent with the i+1th intent to determine whether the candidate intent matches the i+1th intent.

[0094] In some embodiments, the terminal device adopts a similarity comparison method. If the candidate intent and the i+1th intention meet a preset similarity condition, for example, the candidate intent is the same as the i+1th intention, or the similarity between the two is greater than or equal to a preset value, it indicates that the candidate intent is determined to match the i+1th intention, and the terminal device determines that there is no missing intention between the i-th intention and the i+1-th intention.

[0095] If the candidate intent and the i+1th intent do not meet the preset similarity condition, for example, the candidate intent is not the same as the i+1th intent, or the similarity between the two is less than the preset value, it indicates that the candidate intent is determined to not match the i+1th intention, and the terminal device determines that there is a missing intent between the i-th intention and the i+1-th intention.

[0096] In this embodiment, by determining a candidate intention that has an adjacent relationship with the i-th intention, when the candidate intention does not match the i+1-th intention in the intention sequence, it is determined that there is a missing intention. This method is conducive to detecting the missing intention in the intention sequence, thereby facilitating the supplementation and expansion of the intention sequence to obtain a logically complete preset intention system.

[0097] In an exemplary embodiment, determining a candidate intent based on the i-th intent includes: determining multiple initial intents based on the i-th intent, each initial intent corresponding to a candidate probability, the candidate probability being used to characterize the possibility of an adjacent relationship between the initial intent and the i-th intent; based on the candidate probability of each initial intent, selecting a candidate intent from the multiple initial intents.

[0098] The terminal device inputs the i-th intention into the vacancy detection model to obtain multiple output results. The initial intention is the result output by the vacancy detection model.

[0099] The candidate probability is the ratio of the number of each initial intent to the number of all initial intents. For example, if there are 10 initial intents, including 7 P intents, 2 Q intents, and 1 R intent, then the candidate probability corresponding to P intent is 7 / 10, the candidate probability corresponding to Q intent is 1 / 5, and the candidate probability corresponding to R intent is 1 / 10.

[0100] The candidate probability is used to characterize the possibility that the initial intent has an adjacent relationship with the i-th intent. The larger the candidate probability, the greater the possibility that the corresponding initial intent has an adjacent relationship with the i-th intent.

[0101] The terminal device uses the intents in the initial intents whose candidate probabilities meet the preset conditions as candidate intents. For example, the initial intent with a candidate probability greater than a preset value, the initial intent with the largest candidate probability, or any initial intent can be used as candidate intents, etc.

[0102] In this embodiment, by selecting the multiple initial intentions of the i-th intention output by the vacancy detection model and the intention whose candidate probability meets the preset conditions as the candidate intention, it is beneficial to obtain the candidate intention that has an adjacent relationship with the i-th intention, so as to perform vacancy detection on the intention sequence.

[0103] In an exemplary embodiment, determining a corpus sample that matches a first intent includes: obtaining an initial corpus for the first intent; determining a third intent associated with the first intent from a second intent in a preset intent system; obtaining an initial corpus for the third intent, and determining a corpus sample that matches a first target intent based on the initial corpus for the first intent and the initial corpus for the third intent.

[0104] The initial corpus is the corpus stored in the preset corpus, and each initial corpus has an annotated intent.

[0105] The initial corpus of the first intention refers to the corpus marked as the first intention in the preset corpus. The terminal device selects the corpus marked as the first intention from the preset corpus and uses it as the initial corpus of the first intention.

[0106] The second intention may be all intentions in the preset intention system that are different from the first intention, or may be some intentions in the preset intention system that are different from the first intention. The third intention refers to the intention in the second intention that is associated with the first intention.

[0107] The first intention includes at least one, and each first intention may have an associated third intention.

[0108] Exemplarily, the terminal device stores association relationships between multiple intents, queries the association relationships, and obtains the associated intent corresponding to each second intent. If the associated intent matches the first intent, the corresponding second intent is used as the third intent. Among them, the matching of the associated intent with the first intent means that the associated intent is the same as the first intent, or the similarity between the associated intent and the first intent is greater than a preset value.

[0109] For example, the second intention includes "paying salary and repaying debts" and "not being able to turn around". After querying the association relationship, it is found that the associated intentions corresponding to "paying salary and repaying debts" and "not being able to turn around debts" are both "not being able to repay debts". If "not being able to repay debts" matches the first intention, "paying salary and repaying debts" and "not being able to turn around debts" are both considered as the third intention.

[0110] The terminal device selects the corpus marked as the third intent from the preset corpus as the initial corpus of the third intent, and uses the initial corpus of the first intent and the initial corpus of the third intent as the corpus samples matched by the first intent. Each corpus sample matched by the first intent can be a combination of the initial corpus of the first intent and the initial corpus of the third intent, or can be a synthesis of a part of the data screened and processed in the two, and so on. For example, the first intent is unable to repay, and the third intent includes paying wages to repay, and unable to turn around. Since the third intent is an associated intent of the first intent, the terminal device can use the initial corpus of "unable to repay", the initial corpus of "paying wages to repay", and the initial corpus of "unable to turn around" as the corpus samples matched by the first intent, or use the initial corpus of "unable to repay" and the initial corpus of "unable to turn around" as the corpus samples matched by the first intent.

[0111] If the second intent is inconsistent with each intent in the association relationship, the second intent is updated to the default intent. In some embodiments, the terminal device obtains the initial corpus corresponding to the default intent from a preset corpus. The default intent and the initial corpus corresponding to the default intent are used to construct a training sample set.

[0112] In this embodiment, by determining the third intent associated with the first intent from the second intent, the initial corpus of the second intent that has an association relationship with the first intent is merged into the corpus sample matching the first intent, thereby expanding the corpus sample matching the first intent. This method of determining the corpus sample can quickly obtain the corpus sample matching the first intent, which is conducive to improving the generation speed of the intent recognition model.

[0113] In an exemplary embodiment, there are multiple first intentions, and a training sample set is determined based on the first intentions and corpus samples, including: evaluating each first intention to obtain an evaluation result of each first intention; selecting a target intention from multiple first intentions according to the evaluation result of each first intention, and constructing a training sample set based on the corpus samples matched by the target intention.

[0114] Among them, in actual business scenarios, the logic between the intent of a business object and the corpus of another business object should have a certain rationality. The evaluation method is used to evaluate the logical rationality of the first intent. Since the first intent is used to construct the training sample set, if the first intent is not logically reasonable, it will affect the intent recognition accuracy of the intent recognition model.

[0115] For example, the first intent includes the intents of two business objects, the agent and the user. The agent's intent is to remind the customer to repay the loan, and the user's intent is to remind the customer to repay the loan. Figure 1 Generally, it is a promise to repay or an inability to repay. If the user's corpus is related to the promise to repay or the inability to repay, it is considered that the logic between the agent's intention and the user's corpus is reasonable, and the evaluation result of the first intention is determined to be reasonable. Otherwise, the evaluation result of the first intention is determined to be unreasonable.

[0116] In order to further improve the accuracy of the intent recognition model, the embodiment of the present application proposes to evaluate each first intent and obtain an evaluation result of each first intent, and the evaluation result is used to characterize whether the first intent is logically reasonable. The terminal device screens the first intent according to the evaluation result, removes the first intent whose evaluation result is unreasonable, retains the first intent whose evaluation result is reasonable, and obtains the target intent.

[0117] The training sample set consists of the target intent and the corpus samples that match the target intent.

[0118] In some embodiments, the terminal device also includes a default intent and an initial corpus corresponding to the default intent, and the terminal device can add the default intent and the initial corpus corresponding to the default intent to the training sample set.

[0119] In this embodiment, by evaluating each first intent to obtain an evaluation result, the target intents with reasonable evaluation results are screened out, and the constructed training sample set has a certain logical rationality, which is conducive to improving the intent recognition accuracy of the intent recognition model.

[0120] In an exemplary embodiment, for each first intent, the target intent is evaluated separately to obtain an evaluation result of the first intent, including: determining a first business object corresponding to the first intent, and determining a second business object different from the first business object; obtaining an initial corpus corresponding to the second business object; performing similarity calculation on the initial corpus and the first intent, and determining an evaluation result of the first intent based on the similarity calculation result.

[0121] A real business scenario often includes at least two business objects. An example is given in which a business scenario corresponding to a business requirement includes two business objects, namely a first business object and a second business object.

[0122] Since the first intent is obtained by annotating the corresponding initial corpus, and the business object is the object for generating the initial corpus, each first intent has its own corresponding business object.

[0123] For any first intent, the business object corresponding to the first intent is used as the first business object. For example, the first business object is the seat, and the second business object is the user. The terminal device determines the intent corresponding to the second business object from the intent sequence, and obtains the initial corpus corresponding to the second business object from the preset corpus. The terminal device calculates the similarity between the initial corpus and the first intent, and determines the evaluation result of the first intent according to the similarity calculation result.

[0124] The corpus generated by the first business object that matches the first intent and the corpus generated by the second business object that matches the second intent often have a certain logical relationship. For example, the corpus corresponding to the two business objects have a contextual relationship, or the intent of one business object and the corpus of another business object are business processing logic under the same business scenario. Therefore, the similarity calculation can be performed through the intent of one business object and the initial corpus of another business object to obtain an evaluation result. The evaluation result is used to characterize the rationality of the logic between the first intent of the first business object and the initial corpus of the second business object.

[0125] Exemplarily, when the similarity calculation result is greater than or equal to a preset value, the evaluation result of the first intention is determined to be reasonable. When the similarity calculation result is less than the preset value, the evaluation result of the first intention is determined to be unreasonable.

[0126] For example, the first intent corresponding to the first business object is "asking for repayment card number", and the initial corpus corresponding to the second business object is "repayment card number is 123" or "information verification failed". By calculating the similarity between the initial corpus corresponding to the second business object and the first intent corresponding to the first business object, the similarity calculation result between "asking for repayment card number" and "repayment card number is 123" is greater than a preset value, and the evaluation result of the first intent is determined to be reasonable.

[0127] The calculated similarity result between "asking for repayment card number" and "information verification failed" is less than the preset value, and the evaluation result of the first intention is determined to be unreasonable.

[0128] In this embodiment, the evaluation result of the first intent is determined by calculating the similarity between the first intent of the first business object and the initial corpus of the second business object. This cross-evaluation of the intentions and corpora of different business objects can determine whether the first intent is reasonable as a training sample of the intent recognition model that matches business needs. Model training based on a reasonable first intent is conducive to improving the intent recognition accuracy of the intent recognition model.

[0129] The data processing method provided in the embodiment of the present application can be applied to any scenario where intent recognition is required, such as customer service scenarios, telemarketing scenarios, and debt collection scenarios. The corpus samples targeted by the data processing method and the intent of the corpus samples can be specified according to the needs of the business scenario, and the embodiment of the present application does not limit this. The following is an illustration of the data processing method in the debt collection scenario:

[0130] like Figure 4 The figure shows a schematic diagram of the overall process of a data processing method in one embodiment. The specific process is described as follows:

[0131] 1. Determine multiple process nodes from the key process points associated with the collection business. The process nodes have an execution sequence. For example, "commitment to repay" is an important indicator of loan willingness and can be a process node. "Understanding repayment channels and processes" is an important indicator that provides the possibility for repayment operations and can be a process node.

[0132] 2. Input the business content associated with each process node into the intent splitting model in turn to obtain the intent of at least one business object associated with each process node. For example, the business objects associated with each process node include seats and users. The process node is "commitment to repay", and the intent associated with this process node includes the repayment reminder intent of the seat and the commitment repayment intent of the user. For another example, the process node is "understand the repayment channels and processes", and the intent associated with this process node includes the user's repayment channels and process intent, as well as the seat's intention to inform the repayment channels and processes.

[0133] 3. Sort the intentions of the business objects according to the execution sequence of the process nodes in the collection business and the generation sequence of the intentions to obtain the intention sequence. For example, the execution sequence of the process nodes is: "Promise to repay", "Understand the repayment channels and processes". The generation sequence of the intentions associated with the process node of "Promise to repay" is: the agent's repayment reminder intention, the user's commitment to repay intention. The generation sequence of the intentions associated with the process node of "Understand the repayment channels and processes" is: the user's repayment channels and process intention, and the agent's notification of repayment channels and processes intention. The intention sequence is: the agent's repayment reminder intention, the user's commitment to repay intention, the user's repayment channels and process intention, and the agent's notification of repayment channels and processes intention.

[0134] 4. Supplement the missing intentions in the intention sequence to obtain a preset intention system. Specifically, if there is a missing intention between the i-th intention and the i+1-th intention in the intention sequence, a candidate intention is added between the i-th intention and the i+1-th intention to obtain a preset intention system; the intention series includes N intentions, N is an integer greater than 1, and i is an integer from 1 to N. Among them, the vacancy detection model is used to detect the i-th intention to determine whether there is a missing intention between the i-th intention and the i+1-th intention, and to determine the candidate intention of the i-th intention. The vacancy detection model is used to infer whether two adjacent intentions are adjacent from a logical level.

[0135] Vacancy detection model training steps:

[0136] a. Load the initial model, for example: BERT model.

[0137] b. Perform intent labeling on the first text sample and the second text sample respectively to obtain a first intent sample of the first text sample and a second intent sample of the second text sample, where the second text sample is the context of the first text sample. The first intent sample is used as the model input of the initial model, and the second intent sample is used as the model label of the initial model to train the initial model.

[0138] c. The trained model is used as the vacancy detection model.

[0139] Reasoning process of vacancy detection model:

[0140] a. Input the i-th intent into the gap detection model.

[0141] b. The intent gap detection model outputs multiple initial intentions corresponding to the i-th intention, and the candidate probability corresponding to each initial intention. Based on the candidate probability of each initial intention, a candidate intention is selected from the multiple initial intentions. For example, the intention with the largest candidate probability can be selected from the multiple initial intentions as the candidate intention. If the candidate intention does not match the i+1-th intention, it is determined that there is a gap in the intention between the i-th intention and the i+1-th intention. The candidate intention is added between the i-th intention and the i+1-th intention.

[0142] If it is determined that the i+1th intention is the same as any initial intention, it is determined that there is no missing intention between the i-th intention and the i+1-th intention.

[0143] 5. Repeat the above steps until all missing intents in the intent sequence are filled, forming a complete preset intent system. The preset intent system contains all intents that meet logical integrity and can be used as a complete basic intent system for subsequent use.

[0144] 6. Obtain new business requirements and determine the first intent category that matches the new business requirements. For example, the new business requirement is to generate an intent recognition model that is good at handling customer objections.

[0145] 7. Determine the first intent from the preset intent system, and the second intent category of the first intent matches the first intent category. Determine the corpus sample that matches the first intent, and determine the training sample set based on the first intent and the corpus sample. The training sample set is used to train the intent recognition model that matches the new business needs.

[0146] Among them, the second intent category corresponding to each intent in the preset intent system can be obtained by a manually defined classification method or by a clustering method.

[0147] 8. The method for determining the corpus sample matching the first intention is as follows: obtaining the initial corpus of the first intention; determining the third intention associated with the first intention from the second intention of the preset intention system; obtaining the initial corpus of the third intention, and determining the corpus sample matching the first intention based on the initial corpus of the first intention and the initial corpus of the third intention. The second intention may be all intentions in the preset intention system that are different from the first intention, or may be some intentions in the preset intention system that are different from the first intention. The corpus sample matching the first intention may be a combination of the initial corpus of the first intention and the initial corpus of the third intention, or may be a synthesis of a part of the data screened and processed from the two, and so on.

[0148] The method for determining the third intent is as follows: the terminal device queries the association relationship to obtain the associated intent corresponding to each second intent. If the associated intent matches the first intent, the corresponding second intent is used as the third intent. Matching the associated intent with the first intent means that the associated intent is the same as the first intent, or the similarity between the associated intent and the first intent is greater than a preset value.

[0149] For example, the second intention includes paying wages and repaying loans, and being unable to turn around. After querying the association relationship, it is found that the associated intentions corresponding to paying wages and repaying loans, and being unable to turn around are both unable to repay. Then paying wages and repaying loans, and being unable to turn around are both regarded as the third intention.

[0150] 9. There are multiple first intentions, and each first intention is evaluated to obtain an evaluation result. The evaluation method may be: determining a first business object corresponding to the first intention, and determining a second business object different from the first business object; obtaining an initial corpus corresponding to the second business object; calculating the similarity between the initial corpus and the first intention, and determining the evaluation result of the first intention according to the similarity calculation result.

[0151] 10. Filter the multiple first intentions according to the evaluation results to obtain a target intention. The terminal device obtains the initial corpus corresponding to the target intention from the preset corpus.

[0152] 11. If the second intent is inconsistent with each intent in the association relationship, the second intent is updated to a default intent. In some embodiments, the terminal device obtains an initial corpus corresponding to the default intent from a preset corpus.

[0153] 12. Based on the target intent, the initial corpus corresponding to the target intent, the default intent, and the initial corpus corresponding to the default intent, a training sample set is constructed, and the initial language model is trained based on the training sample set. After the training, an intent recognition model that matches the business needs is obtained.

[0154] The above data processing method, when it is necessary to train an intent recognition model that matches the business needs, can first obtain a first intent category that matches the business needs, and then select the first intent from the preset intent system based on the first intent category, wherein the second intent category of the first intent matches the first intent category. Since the preset intent system is pre-constructed, in actual use, it is only necessary to select the preset intent system to quickly obtain the first intent associated with the business needs. Further, a corpus sample matching the first intent is determined, and a training sample set is determined based on the first intent and the corpus sample, and the training sample set is used to train the intent recognition model. Since the intent category of the first intent in the training sample set matches the business needs, the intent recognition model obtained by training is also a model that matches the business needs. That is to say, when facing different business needs, the present application does not need to construct an additional intent each time, but can select the first intent whose intent category matches the business needs from the preset intent system, and can quickly obtain the first intent, so that the training sample set can be quickly obtained based on the first intent and the corpus sample of the first intent. In this way, the generation speed of the intent recognition model matching the business needs can be greatly improved. At the same time, starting from the process nodes, through text logic analysis, a complete preset intent system is gradually built. Combined with business needs, the preset intent system is tailored through intent relevance and merging possibilities, realizing the rapid incubation of intent recognition models that match business needs.

[0155] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0156] Based on the same inventive concept, the embodiment of the present application also provides a data processing device for implementing the data processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more data processing device embodiments provided below can refer to the limitations on the data processing method above, and will not be repeated here.

[0157] In an exemplary embodiment, Figure 5As shown, a data processing device 500 is provided, comprising: an acquisition module 510, a first determination module 520 and a second determination module 530, wherein:

[0158] An acquisition module 510 is used to acquire a first intent category matching the business requirement;

[0159] A first determination module 520, configured to determine a first intent in a preset intent system, wherein a second intent category of the first intent matches the first intent category;

[0160] The second determination module 530 is used to determine the corpus sample that matches the first intent, and to determine a training sample set based on the first intent and the corpus sample, where the training sample set is used to train an intent recognition model that matches the business requirement.

[0161] The above-mentioned data processing device, when it is necessary to train an intent recognition model that matches the business needs, can first obtain a first intent category that matches the business needs, and then select a first intent from a preset intent system based on the first intent category, wherein the second intent category of the first intent matches the first intent category. Since the preset intent system is pre-constructed, in actual use, it is only necessary to select the preset intent system to quickly obtain the first intent associated with the business needs. Further, a corpus sample matching the first intent is determined, and a training sample set is determined based on the first intent and the corpus sample, and the training sample set is used to train the intent recognition model. Since the intent category of the first intent in the training sample set matches the business needs, the intent recognition model obtained by training is also a model that matches the business needs. That is to say, when facing different business needs, the present application does not need to construct an additional intent each time, but can select a first intent whose intent category matches the business needs from the preset intent system, and can quickly obtain the first intent, so that the training sample set can be quickly obtained based on the first intent and the corpus sample of the first intent. In this way, the generation speed of the intent recognition model that matches the business needs can be greatly improved.

[0162] In one embodiment, the data processing device 500 also includes a construction module, which is used to: obtain the business content associated with each process node associated with the first business; determine the intention of the business object associated with each process node based on the business content associated with each process node; and obtain a preset intention system based on the intention of each business object.

[0163] In one embodiment, a preset intent system is constructed based on the intent of each business object, and the construction module is also used to: sort the intents of the business objects according to the execution sequence of the process nodes and the generation sequence of the intents to obtain an intent sequence; supplement the missing intents in the intent sequence to obtain a preset intent system.

[0164] In one embodiment, the missing intentions in the intention sequence are supplemented to obtain a preset intention system, and the construction module is also used for: if there is a missing intention between the i-th intention and the i+1-th intention in the intention sequence, then the intention to be supplemented is added between the i-th intention and the i+1-th intention to obtain a preset intention system; the intention series includes N intentions, N is an integer greater than 1, and i is an integer from 1 to N.

[0165] In one embodiment, the data processing device 500 also includes a vacancy detection module, which is used to: determine a candidate intent based on the i-th intent; if the candidate intent does not match the i+1-th intent, determine that there is a vacancy intent between the i-th intent and the i+1-th intent.

[0166] In one embodiment, determining a candidate intent based on the i-th intent includes: determining multiple initial intents based on the i-th intent, each initial intent corresponding to a candidate probability, the candidate probability being used to characterize the possibility of an adjacent relationship between the initial intent and the i-th intent; based on the candidate probability of each initial intent, selecting a candidate intent from the multiple initial intents.

[0167] In one embodiment, to determine the corpus sample that matches the first intent, the second determination module 530 is further used to: obtain the initial corpus of the first intent; determine the third intent associated with the first intent from the second intent of the preset intent system; obtain the initial corpus of the third intent, and determine the corpus sample that matches the first intent based on the initial corpus of the first intent and the initial corpus of the third intent.

[0168] In one embodiment, there are multiple first intentions, and a training sample set is determined based on the first intentions and corpus samples. The second determination module 530 is also used to: evaluate each first intention to obtain an evaluation result of each first intention; select a target intention from multiple first intentions based on the evaluation result of each first intention; and construct a training sample set based on the corpus samples matched by the target intention.

[0169] In one embodiment, for each first intent, the first intent is evaluated to obtain an evaluation result of the first intent, and the second determination module 530 is also used to: determine the first business object corresponding to the first intent, and determine the second business object different from the first business object; obtain the initial corpus corresponding to the second business object; calculate the similarity between the initial corpus and the first intent, and determine the evaluation result of the first intent based on the similarity calculation result.

[0170] Each module in the above data processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0171] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a data processing method is implemented.

[0172] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0173] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0174] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0175] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0176] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0177] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0178] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0179] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A data processing method, characterized in that: The method comprises: Get the first intent category that matches the business needs; Determining a first intent in a preset intent system, wherein a second intent category of the first intent matches the first intent category; Determine a corpus sample that matches the first intent, and determine a training sample set based on the first intent and the corpus sample, wherein the training sample set is used to train an intent recognition model that matches the business requirement.

2. The method according to claim 1, characterized in that The method further comprises: Obtaining business content associated with each process node associated with the first business; Determine the intent of the business object associated with each process node based on the business content associated with each process node; The preset intent system is obtained based on the intent construction of each business object.

3. The method according to claim 2, characterized in that The preset intention system is constructed based on the intention of each business object, including: According to the execution sequence of the process nodes and the generation sequence of the intents, the intents of the business objects are sorted to obtain an intent sequence; The missing intentions in the intention sequence are supplemented to obtain a preset intention system.

4. The method according to claim 3, characterized in that The method of supplementing the missing intentions in the intention sequence to obtain a preset intention system includes: If there is a missing intention between the i-th intention and the i+1-th intention in the intention sequence, a candidate intention is added between the i-th intention and the i+1-th intention to obtain a preset intention system; the intention series includes N intentions, N is an integer greater than 1, and i is an integer from 1 to N.

5. The method according to claim 4, characterized in that The method further comprises: Determine a candidate intent based on the i-th intent; If the candidate intent does not match the (i+1)th intent, it is determined that there is a missing intent between the (i)th intent and the (i+1)th intent.

6. The method according to claim 5, characterized in that The determining of a candidate intent based on the i-th intent includes: Determine multiple initial intentions based on the i-th intention, each initial intention corresponds to a candidate probability, and the candidate probability is used to characterize the possibility that the initial intention has an adjacent relationship with the i-th intention; Based on the candidate probability of each initial intent, the candidate intent is selected from the multiple initial intents.

7. The method according to claim 1, characterized in that The determining of the corpus sample matching the first intention includes: Obtaining initial corpus of the first intent; Determining a third intent associated with the first intent from the second intent of the preset intent system; An initial corpus of the third intent is acquired, and a corpus sample matching the first intent is determined based on the initial corpus of the first intent and the initial corpus of the third intent.

8. The method according to claim 1, characterized in that There are multiple first intentions, and determining a training sample set based on the first intentions and the corpus sample includes: Evaluate each of the first intentions to obtain an evaluation result of each of the first intentions; Selecting a target intent from a plurality of the first intents according to an evaluation result of each of the first intents; A training sample set is constructed based on the corpus samples matched by the target intent.

9. The method according to claim 8, characterized in that For each first intention, the evaluating the first intention to obtain an evaluation result of the first intention includes: Determining a first business object corresponding to the first intent, and determining a second business object different from the first business object; Obtaining an initial corpus corresponding to the second business object; A similarity calculation is performed on the initial corpus and the first intent, and an evaluation result of the first intent is determined according to the similarity calculation result.

10. A data processing device, characterized in that: The device comprises: An acquisition module, used to acquire a first intent category matching the business requirement; A first determination module, configured to determine a first intent in a preset intent system, wherein a second intent category of the first intent matches the first intent category; The second determination module is used to determine a corpus sample that matches the first intent, and to determine a training sample set based on the first intent and the corpus sample, wherein the training sample set is used to train an intent recognition model that matches the business requirement.

11. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.