Data processing method, device and equipment based on large model algorithm and storage medium
By determining the central intention of the data and its probability based on a large model algorithm, and screening out similar data sets, the problem of inaccurate data intention classification in the existing technology is solved, and clearer category boundaries and higher quality classification are achieved. result.
Patent Information
- Application Number
- CN202410831372.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-11
AI Technical Summary
In existing data intent classification schemes, the same data may appear in different categories, resulting in low quality classification results. Existing methods use text similarity calculation to eliminate dissimilar data, but this method cannot effectively distinguish data with dissimilar intents. , the optimization effect is not ideal.
Using a data processing method based on a large model algorithm, by determining the central intention and its probability of target data with the same label, the target data set that is the same as the central intention is screened out based on the probability and preset threshold, and the boundaries of the data categories are clearly delineated.
It improves the accuracy of data intent classification and the clarity of category boundaries, ensuring that data with similar intents are correctly classified and data with dissimilar intents are eliminated, improving the quality of classification results.
Smart Images

Figure CN118760735A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of large model technology, and in particular to a data processing method, device, equipment and storage medium based on a large model algorithm. Background Art
[0002] In the results obtained by the existing data intent classification scheme, there is a situation where the same data appears in different categories, so the classification result quality is not high. In view of this situation, it is necessary to optimize the data that has been intent-classified. The specific approach of some existing schemes is to calculate the similarity between each data in this category and the standard data of this category based on the text, and eliminate the data with low similarity. However, this similarity calculation determines the data whose description is not similar to the standard data, rather than the data with different intent, and the optimization effect is not ideal. Summary of the invention
[0003] The present disclosure provides a data processing method, device, equipment and storage medium based on a large model algorithm to at least solve the above technical problems existing in the prior art.
[0004] The first aspect of the present application provides a data processing method based on a large model algorithm, the method comprising:
[0005] According to at least two target data with the same label and the label, using a large model, determine the central intent corresponding to all the target data and the probability that the intent of each target data is the central intent;
[0006] A target data set is determined according to the probability and a preset threshold, wherein the intention of each target data in the target data set is the same as the central intention.
[0007] Wherein, determining the probability that the intention of each of the target data is the central intention includes:
[0008] According to the first description information of the target data, using the large model, obtaining the probability of each character in the second description information of the central intent being associated with the first description information;
[0009] Determining, according to the probabilities of all characters in the second description information, the probability that the intent of the target data is the central intent;
[0010] The second description information consists of at least one character.
[0011] The probability of obtaining the association between each character in the second description information of the central intention and the first description information includes:
[0012] A prompt word is constructed based on the first description information of the target data and the 1st to n-1th characters in the second description information of the central intention. Based on the prompt word and using the large model, a probability that the nth character in the second description information is associated with the first description information is obtained, where n is an integer greater than or equal to 1.
[0013] The method of determining the probability that the intent of the target data is the central intent according to the probabilities of all characters in the second description information includes:
[0014] The average value of the probabilities of all characters in the second description information is taken as the probability that the intent of the target data is the central intent.
[0015] Wherein, the determining the central intent corresponding to all the target data using a large model based on at least two target data having the same label and the label includes:
[0016] Classifying all target data with the same label, wherein the textual expressions of the target data in each classification are similar, and the textual expressions of the target data in different classifications are not similar;
[0017] Target data is selected from each category, and based on all the selected target data and the labels, the central intent corresponding to all the target data with the same label is determined using a large model.
[0018] Wherein, the use of the large model to determine the central intent corresponding to all the target data includes:
[0019] Obtaining first description information of target data;
[0020] Constructing a prompt word according to the first description information of all the target data and the label;
[0021] According to the prompt word, the second description information of the central intent is determined using the large model.
[0022] The second aspect of the present application provides a data processing device based on a large model algorithm, comprising:
[0023] An intention analysis module, used to determine the central intention corresponding to all the target data and the probability that the intention of each target data is the central intention by using a large model according to at least two target data with the same label and the label;
[0024] A data screening module is used to determine a target data set according to the probability and a preset threshold, wherein the intention of each target data in the target data set is the same as the central intention.
[0025] The intention analysis module is further used to obtain the probability of each character in the second description information of the central intention being associated with the first description information by using the large model according to the first description information of the target data, and determine the probability that the intention of the target data is the central intention according to the probabilities of all characters in the second description information;
[0026] The second description information consists of at least one character.
[0027] A third aspect of the present application provides an electronic device, including:
[0028] at least one processor; and
[0029] a memory communicatively connected to the at least one processor; wherein,
[0030] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned data processing method based on the large model algorithm.
[0031] The fourth aspect of the present application provides a non-transitory computer-readable storage medium storing computer instructions, characterized in that the computer instructions are used to enable a computer to execute the above-mentioned data processing method based on the large model algorithm.
[0032] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0034] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0035] Figure 1 The schematic diagram shows the implementation process of the data processing method based on the large model algorithm of the embodiment of the present disclosure. Figure 1 ;
[0036] Figure 2 A schematic diagram of a method for determining the probability of a centric intention of target data according to an embodiment of the present disclosure is shown;
[0037] Figure 3 A schematic diagram of target data classification according to an embodiment of the present disclosure is shown;
[0038] Figure 4 A schematic diagram of determining central intent according to an embodiment of the present disclosure is shown;
[0039] Figure 5 The structure of the data processing device based on the large model algorithm of the embodiment of the present disclosure is shown. Figure 1 ;
[0040] Figure 6 The structure of the data processing device based on the large model algorithm of the embodiment of the present disclosure is shown. Figure 2 ;
[0041] Figure 7 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0042] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, 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 described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0043] In the prior art, the data classification results obtained by the data intent classification scheme are of low quality. Some schemes in the prior art calculate the similarity between each data in this category and the standard data of this category based on the text, and remove the data with low similarity.
[0044] For example, when classifying questions by intent, the boundary between classes is often unclear because some ambiguous questions appear in two different categories at the same time. To improve the quality of data intent classification, it is necessary to identify such data from each category and make the boundaries of each category clear. For example, a method based on vector similarity is generally used to filter out questions with the largest vector distance from the standard question. However, this method filters out questions that are not similar to the standard question description, rather than questions with different intent, which is inconsistent with expectations.
[0045] To this end, this application provides a data processing method based on a large model algorithm, such as Figure 1 As shown, the method includes:
[0046] S101, based on at least two target data with the same label and the label, using a large model, determine the central intent corresponding to all the target data and the probability that the intent of each target data is the central intent.
[0047] First, perform intent classification on the data to obtain multiple categories, then each category corresponds to an intent. For the convenience of description, each category obtained here is called a major category. Then, the data in each major category is the target data. Each major category has at least one label, and the label is used to characterize the category information of the major category. Therefore, the labels corresponding to different target data in a major category (i.e., the category information) are the same. This application does not limit the category information of the major category. In terms of generation method, the category information can be obtained by the above-mentioned intent classification, or it can be manually annotated or annotated by an automatic annotation method. In terms of content, the category information can be the category information of the intent, or it can be any category information that can represent the target data category in the major category, such as data source, data format, etc.
[0048] In order to make the results of intent classification more accurate and to make the boundaries of each major category obtained by intent classification clear, the data processing method of the present application is executed for each major category respectively.
[0049] Taking any major category as an example, part or all of the target data in the major category and the label of the major category are used as the input of the major model to determine the central intent of the major category. In this application, after the data is classified by intent, it can be considered that each major category corresponds to an intent, which is the central intent of the major category. This application does not limit the method of obtaining the central intent, which will be explained in subsequent examples.
[0050] After determining the central intent of a major category, the probability that the intent of each target data in the major category is the central intent can be determined.
[0051] Each target data has an intent corresponding to it, and the probability that the intent is the central intent can represent the distance or similarity between the intent and the central intent. For example, the central intent of the large category determined by the large model is Y, and a certain target data is X1. The probability that the intent of X1 is Y is 99%, which means that the intent of target data X1 is very close to Y or has a very high similarity; for another example, the probability that the intent of target data X2 is Y is 1%, which means that the intent of target data X2 is very far from Y or has a very low similarity.
[0052] S102, determining a target data set according to the probability and a preset threshold, wherein the intention of each target data in the target data set is the same as the central intention.
[0053] For each target data in the category, determine the probability that its intent is the central intent. From the above example, we can see that the greater the probability that the intent is the central intent, the closer the distance between the intent and the central intent or the greater the similarity. Set a probability threshold, that is, the above-mentioned preset threshold, and compare the probability that the intent of each target data is the central intent with the preset threshold. For target data with a probability greater than the preset threshold, it can be considered that the intent of the target data is the same as the central intent.
[0054] The target data whose probability of being the central intention is greater than the preset threshold constitute the target data set, which is equivalent to removing the target data whose probability of being the central intention is less than or equal to the preset threshold from the major category, and obtaining the target data set can make the boundaries of the major categories clear.
[0055] It can be seen that in this scheme, for target data with the same label, a central intent corresponding to these target data is determined, and around the central intent, the probability that the intent of each target data is the central intent is determined. According to the probability and the preset threshold, the target data with the same intent as the central intent can be integrated together, and the data with different intents from the central intent can be excluded from the major category, so that the boundaries of the target data set are clear.
[0056] In one example, the probability that the intent of each target data is the central intent can be determined by the following method: First, based on the first description information of the target data, using the large model, the probability that each character in the second description information of the central intent is associated with the first description information is obtained. Second, based on the probabilities of all characters in the second description information, the probability that the intent of the target data is the central intent is determined.
[0057] In this application, a large model is used to determine the probability that the intent of the target data is the central intent. The target data is used as the input of the large model. In one example, a description information is constructed for each target data. For the convenience of description, it is recorded as the first description information. The first description information is used as the input of the large model to determine the probability that the intent of the target data is the central intent.
[0058] In this application, the target data may be in the form of text, voice, video, code, etc., but no matter what form, the target data has specific content, which can be presented in the above different forms, and the first description information is used to characterize the main content of the target data. The first description information consists of at least one character (token), where the character is extracted from the target data. For example, the target data can be expressed in text form as: Please help me download the graphics card driver of the laptop computer based on the data processing method of the large model algorithm, where the data processing method based on the large model algorithm is the brand name, then the first description information of the target data can be {download, data processing method based on the large model algorithm, graphics card, driver}, which contains 4 characters, namely: "download", "data processing method based on the large model algorithm", "graphics card", "driver".
[0059] In one example, the central intent may be represented by the second description information, which is composed of at least one character. Assume that the second description information of the central intent is Y={y1, y2, y3…ym}, where y1, y2, y3…ym are m characters.
[0060] Determining the probability that the intent of the target data is the central intent is essentially to determine the probability distribution of each character in the central intent Y being associated with the first description information of the target data, that is: based on the first description information of the target data, using the large model, obtain the probability of each character in Y = {y1, y2, y3…ym} being associated with the first description information of the target data.
[0061] According to the probabilities of these m characters, the probability that the intent of the target data to which the associated first description information belongs is the central intent Y can be determined.
[0062] In one example, the probability of each character in the second description information of the central intent being associated with the first description information can be determined in the following manner: construct a prompt word based on the first description information of the target data and the 1st to m-1th characters in the second description information of the central intent, and based on the prompt word, use the large model to obtain the probability of the mth character in the second description information being associated with the first description information, where m is an integer greater than or equal to 1. Figure 2 Provide explanation.
[0063] First, the central intent of a certain category is recorded as Y = {y1, y2, y3…yn}. The category contains q target data: X1, X2…Xq. The process of determining the probability that the intent is the central intent for each target data is the same. In this example, X1 is taken as an example. The first description information of X1 contains n characters, recorded as {x1, x2, x3…xn}, such as Figure 2As shown, the process of determining the probability of each character in the second description information of the central intent Y being associated with the first description information {x1, x2, x3…xn} is:
[0064] Step 1, determine the probability that the first character in the second description information of the central intent Y is associated with the first description information, that is, the probability of y1.
[0065] According to the first description information of X1 {x1, x2, x3…xn}, a prompt is constructed and input into the big model. The big model will output multiple characters and their probabilities. For example, the probability of character z1 is 0.3 (i.e. 30%), the probability of character z2 is 0.25 (i.e. 25%), and the probability of character y1 is 0.22 (i.e. 22%). Only some of the characters and their probabilities output by the big model this time are listed here. In this step, the probability of the first character in the second description information of the central intention Y, that is, the probability of y1, is obtained, which is 0.22 as shown in the figure. It should be pointed out that if the big model does not output y1 this time, the probability of y1 can be determined to be 0.
[0066] Step 2, determining the probability that the second character in the second description information of the central intent is associated with the first description information, that is, the probability of y2.
[0067] A large model of prompt word input is constructed based on the first description information {x1, x2, x3…xn} of X1 and y1. Similarly, for the characters and probabilities output by this large model, only the probability of y2 is obtained, which is 0.81 as shown in the figure.
[0068] Step 3, determining the probability that the third character in the second description information of the central intent is associated with the first description information, that is, the probability of y3.
[0069] According to the first description information {x1, x2, x3…xn} of X1, y1 and y2, a large model of prompt word input is constructed. Similarly, for the characters and probabilities output by this large model, only the probability of y3 is obtained, which is 0.75 as shown in the figure.
[0070] Similarly, in step m, the probability of ym can be obtained using the large model according to the first description information {x1, x2, x3…xn} of X1 and y1 to y(m-1), as follows: Figure 2 Shown is 0.43.
[0071] In this way, the probability of m characters in Y being associated with X1={x1,x2,x3…xn} can be obtained.
[0072] According to the probabilities from y1 to ym, the probability that the intention of the target data X1 is the central intention Y can be obtained.
[0073] In one example, the average value of the probabilities of all characters in the second description information of the central intent may be taken as the probability that the intent of the target data is the central intent.
[0074] In the solution of the present application, if the probability that the intent of the target data is the central intent is to be determined, the central intent of the large category to which the target data belongs needs to be determined first. In one example, the central intent of a large category can be determined by a large model.
[0075] In one example, the central intent may be determined based on all or part of the target data in a large category. If based on part of the target data, the target data may be randomly selected from the large category, or the corresponding target data may be selected according to the needs, and the present disclosure does not limit this.
[0076] Specifically, according to the first description information of all selected target data and the label of the major category, a prompt word is constructed and input into the major model so that the major model outputs the central intention of the major category.
[0077] In this example, the big model can output the central intent itself, or directly output the second description information of the central intent, depending on the capabilities of the big model used, and the present disclosure does not impose any limitations on this.
[0078] In another example, the target data in the large category can be classified first to obtain multiple categories and recorded as subcategories, so that the text representation of all target data in a subcategory is similar, and the text representation of target data in different subcategories is not similar. The text representation here includes but is not limited to: language (for example: Chinese, English, etc.), sentence pattern (for example: question, declarative sentence, etc.), form (for example: vernacular, classical Chinese), etc. In this example, a subcategory can correspond to at least one text representation, for example, subcategory 1 corresponds to Chinese and question, subcategory 2 corresponds to English and declarative sentence, and subcategory 3 corresponds to classical Chinese.
[0079] In this example, a clustering algorithm can be used to classify the target data in the large category, so that the target data with similar text expressions are aggregated together to form multiple small categories. Figure 3 As shown, after clustering the large categories, 4 small categories are obtained.
[0080] After obtaining multiple subcategories, select target data from each subcategory (randomly or according to needs), such as Figure 3 As shown, one target data is selected from each subcategory. Of course, multiple or all target data can also be selected from each subcategory, and there is no restriction on whether the number of target data selected from each subcategory is equal.
[0081] According to all the selected target data (i.e., data selected from all subcategories of the major category) and the labels, the central intent corresponding to all target data (i.e., the major category) with the same label is determined using the major model. A prompt word can be constructed based on the first description information of all target data selected from all subcategories and the label of the major category, and input into the major model so that the major model outputs the central intent of the major category.
[0082] The prompt word contains at least three parts of information: 1. Description information of each target data. 2. Label of the category. 3. Task information (when generating the central intent, the task information represents the central intent that needs to be output by the large model). For example, the prompt word can be: Please determine the central intent based on X1 = {x11, x12, x13…x1n}, X2 = {x21, x22, x23…x2n}, X3 = {x31, x32, x33…x3n}, label 1 (label name) and label 2 (label name).
[0083] In this example, the big model can output the central intent itself, or directly output the second description information of the central intent, depending on the capabilities of the big model used, and the present disclosure does not impose any limitations on this.
[0084] In this example, the major categories are first classified according to the textual expressions to obtain multiple minor categories. Then, target data is selected from each minor category and combined with the labels to generate the central intent. In this way, the major model can learn more comprehensive knowledge about the textual expressions, and the central intent generated is more accurate. Accordingly, based on the central intent, the probability that the intent of each target data in the major category is the central intent is determined. If the probability is less than the preset threshold, it is removed from the corresponding major category. For minor categories, the data with similar textual expressions but different intents in the minor category are actually removed. In existing intent classification schemes, there is a situation where data with similar textual expressions but different intents are classified into one category. For this situation, the scheme of this example has a better recognition effect on such data.
[0085] In an example of the present application, the method for directly outputting the second description information of the central intent for the large model can be: according to the first description information of the target data and the label of the large category, the large model is used to generate each character in the central intent in sequence. Specifically, according to the first description information of the target data, the label of the large category and the 1st to m-1th characters, the large model is used to generate the mth character. Figure 4 To explain:
[0086] Assume that the selected target data includes X1 to XJ, where {x11, x12, x13…x1n} is the first description information of X1, {x21, x22, x23…x2n} is the first description information of X2, and so on, {xJ1, xJ2, xJ3…xJn} is the first description information of XJ.
[0087] Step 1: Determine the first character in the central intention Y, denoted as y1.
[0088] According to the first description information of X1 to XJ and the label of the large category (not shown in the figure), a prompt word is constructed and input into the large model so that the large model outputs multiple characters and their probabilities, such as Figure 4 As shown, among the characters output by this model, t1 has the largest probability. Therefore, t1 is taken as the first character of the central intent and is denoted as y1.
[0089] Step 2: Determine the second character in the central intention Y, expressed as y2.
[0090] According to the first description information of X1 to XJ, the label of the major category (not shown in the figure) and y1, a prompt word is constructed and input into the major model so that the major model outputs multiple characters and their probabilities, such as Figure 4 As shown in the figure, among the characters output by the model this time, t5 has the highest probability, so t5 is taken as the second character of the central intent and recorded as y2. It should be noted that the characters output by the large model each time can be the same or different. Figure 4 The character numbers shown in are only for the convenience of description and are only for all characters output this time. When determining the next central intention character, the characters output by the large model are renumbered. Therefore, Figure 4 The characters corresponding to the same number in different steps may be the same or different.
[0091] Step 3: Determine the third character in the central intention Y, expressed as y3.
[0092] According to the first description information of X1 to XJ, the label of the major category (not shown in the figure), y1 and y2, a prompt word is constructed and input into the large model so that the large model outputs multiple characters and their probabilities, such as Figure 4 As shown, among the characters output by this model, t4 has the highest probability. Therefore, t4 is taken as the third character of the central intent and is recorded as y3.
[0093] Similarly, through step m, the mth character ym in the central intention Y can be determined ( Figure 4 In step m+1, among all the characters output by the large model, if the character representing the termination has the highest probability, the process ends, and y1 to ym constitute the central intent.
[0094] The above process is only an exemplary description of generating the central intent, and is not intended to limit the method of generating the central intent. In other examples of the present application, the central intent itself can be directly output using a large model based on the first description information and labels of the target data, or all characters in the second description information of the central intent can be output at one time. The present disclosure can select a large model with corresponding capabilities to generate the central intent according to the needs.
[0095] In order to implement the above method, Figure 5 As shown, the present application also provides a data processing device based on a large model algorithm, comprising:
[0096] The intention analysis module 10 is used to determine the central intention corresponding to all the target data and the probability that the intention of each target data is the central intention by using a large model according to at least two target data with the same label and the label;
[0097] The data screening module 20 is used to determine a target data set according to the probability and a preset threshold, wherein the intention of each target data in the target data set is the same as the central intention.
[0098] The above-mentioned intention analysis module 10 is also used to obtain the probability of each character in the second description information of the central intention being associated with the first description information by using the large model according to the first description information of the target data, and determine the probability that the intention of the target data is the central intention according to the probabilities of all characters in the second description information;
[0099] The second description information consists of at least one character.
[0100] In one example, the intent analysis module 10 is used to construct a prompt word based on the first description information of the target data and the first to n-1th characters in the second description information of the central intent, and based on the prompt word, using the large model, obtain the probability that the nth character in the second description information is associated with the first description information, where n is an integer greater than or equal to 1. In this way, the probability that each character in the second description information of the central intent is associated with the first description information can be obtained. Figure 2 The contents shown are the same and will not be repeated here.
[0101] After obtaining the probability of each character in the second description information of the central intent being associated with the first description information, the intent analysis module 10 takes the average value of the probabilities of all characters in the second description information as the probability that the intent of the target data is the central intent.
[0102] For the generation of the central intent, in one example, the apparatus further includes a classification module 30, such as Figure 6As shown, the classification module 30 classifies all the target data with the same label, the textual expressions of the target data in each category are similar, and the textual expressions of the target data in different categories are not similar; then the target data is selected from each category, and accordingly, the intent analysis module 10 determines the central intent corresponding to all the target data with the same label based on all the selected target data and the label using a large model.
[0103] When using the big model to determine the central intent corresponding to all the target data, specifically, the intent analysis module 10 first obtains the first description information of the target data, and constructs a prompt word based on the first description information of all the target data and the label; then, based on the prompt word, uses the big model to determine the second description information of the central intent.
[0104] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0105] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0106] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0107] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0108] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as data processing methods based on large model algorithms. For example, in some embodiments, the data processing methods based on large model algorithms may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 803 and executed by the computing unit 701, one or more steps of the data processing methods based on the large model algorithm described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to execute the data processing method based on the large model algorithm in any other appropriate manner (for example, by means of firmware).
[0109] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0110] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0111] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may 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 may 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.
[0112] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0113] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by 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), and the Internet.
[0114] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0115] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0116] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0117] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A data processing method based on a large model algorithm, the method comprising: According to at least two target data with the same label and the label, using a large model, determine the central intent corresponding to all the target data and the probability that the intent of each target data is the central intent; A target data set is determined according to the probability and a preset threshold, wherein the intention of each target data in the target data set is the same as the central intention.
2. The method according to claim 1, determining the probability that the intent of each of the target data is the central intent, comprising: According to the first description information of the target data, using the large model, obtaining the probability of each character in the second description information of the central intent being associated with the first description information; Determining, according to the probabilities of all characters in the second description information, the probability that the intent of the target data is the central intent; The second description information consists of at least one character.
3. The method according to claim 2, wherein the step of obtaining the probability of each character in the second description information of the central intent being associated with the first description information comprises: A prompt word is constructed based on the first description information of the target data and the 1st to n-1th characters in the second description information of the central intention. Based on the prompt word and using the large model, a probability that the nth character in the second description information is associated with the first description information is obtained, where n is an integer greater than or equal to 1.
4. The method according to claim 2, determining the probability that the intent of the target data is the central intent according to the probabilities of all characters in the second description information, comprises: The average value of the probabilities of all characters in the second description information is taken as the probability that the intent of the target data is the central intent.
5. The method according to claim 1, wherein the step of determining the central intent corresponding to all the target data using a large model based on at least two target data having the same label and the label comprises: Classifying all target data with the same label, wherein the textual expressions of the target data in each classification are similar, and the textual expressions of the target data in different classifications are not similar; Target data is selected from each category, and based on all the selected target data and the labels, the central intent corresponding to all the target data with the same label is determined using a large model.
6. The method according to claim 1 or 5, wherein the use of a large model to determine the central intent corresponding to all the target data comprises: Obtaining first description information of target data; Constructing a prompt word according to the first description information of all the target data and the label; According to the prompt word, the second description information of the central intent is determined using the large model.
7. A data processing device based on a large model algorithm, comprising: An intention analysis module, used to determine the central intention corresponding to all the target data and the probability that the intention of each target data is the central intention by using a large model according to at least two target data with the same label and the label; A data screening module is used to determine a target data set according to the probability and a preset threshold, wherein the intention of each target data in the target data set is the same as the central intention.
8. The device according to claim 7, The intention analysis module is further used to obtain, based on the first description information of the target data and using the large model, the probability that each character in the second description information of the central intention is associated with the first description information, and determine the probability that the intention of the target data is the central intention based on the probabilities of all characters in the second description information; in, The second description information consists of at least one character.
9. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable a computer to execute the method according to any one of claims 1-6.
