Data processing method, device, equipment, storage medium and computer program product

By extracting and fusing the features of query objects and knowledge graphs, the problem of insufficient semantic information due to the short duration of query objects in intent recognition is solved, and the accuracy of intent recognition and search tasks is significantly improved.

CN113641797BActive Publication Date: 2024-09-24TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111010441.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-30
Publication Date
2024-09-24
Estimated Expiration
2041-08-30

AI Technical Summary

Technical Problem

In the existing technology, in intent recognition, the query object input by the user is too short, resulting in the distributed expression being too sparse and unable to provide effective semantic information, resulting in low accuracy of intent recognition.

Method used

By obtaining the query object and the associated target knowledge graph, extract the characteristics of the query object and the knowledge graph, and fuse them to provide more effective semantic information, thereby improving the accuracy of intent recognition.

Benefits of technology

By combining the contextual information of the knowledge graph, more effective semantic information is provided, which significantly improves the accuracy of intent recognition and enhances the accuracy of search tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113641797B
    Figure CN113641797B
Patent Text Reader

Abstract

The present application proposes a data processing method, device, equipment, storage medium and computer program product, which can be applied to various fields or scenarios such as cloud technology, artificial intelligence, blockchain, smart transportation, and vehicle-mounted. The method includes: obtaining a query object, and obtaining a target knowledge graph associated with the query object; performing feature extraction on the query object to obtain query object features, and performing feature extraction on the target knowledge graph to obtain knowledge graph features; fusing the query object features with the knowledge graph features to obtain fused features; processing the fused features to obtain the intent recognition result of the query object. Through the embodiments of the present application, the accuracy of intent recognition can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Intent recognition is mainly to identify the user's potential goals. For example, there are popular science introductions, cooking method introductions, videos and pictures related to "potatoes". Through intent recognition, when a user searches for "potatoes", it can be identified that the user wants to know how to cook "potatoes", and the relevant information about cooking methods can be returned to the user as a result.

[0003] Currently, intent recognition is usually achieved by using distributed expressions of query objects. For example, the distributed expressions are text features extracted using convolutional neural networks. However, since the query objects input by users are often very short, the distributed expressions are too sparse and cannot provide effective semantic information, resulting in low accuracy of intent recognition. Summary of the invention

[0004] The embodiments of the present application provide a data processing method, apparatus, device, storage medium and computer program product, which can effectively improve the accuracy of intent recognition.

[0005] On the one hand, an embodiment of the present application provides a data processing method, the method comprising:

[0006] Obtaining a query object and a target knowledge graph associated with the query object;

[0007] Performing feature extraction on the query object to obtain query object features, and performing feature extraction on the target knowledge graph to obtain knowledge graph features;

[0008] Fusing the query object feature with the knowledge graph feature to obtain a fused feature;

[0009] The fused features are processed to obtain an intent recognition result of the query object.

[0010] On the other hand, an embodiment of the present application provides a data processing device, the device comprising:

[0011] An acquisition module, used to acquire a query object and a target knowledge graph associated with the query object;

[0012] A processing module, used to extract features from the query object to obtain query object features, and to extract features from the target knowledge graph to obtain knowledge graph features;

[0013] The processing module is further used to fuse the query object feature and the knowledge graph feature to obtain a fused feature;

[0014] The processing module is further used to process the fused features to obtain the intent recognition result of the query object.

[0015] Accordingly, an embodiment of the present application provides a computer device, which includes a processor, a communication interface and a memory, wherein the processor, the communication interface and the memory are interconnected, wherein the memory stores a computer program, and the processor is used to call the computer program to execute the data processing method of any possible implementation method described above.

[0016] Accordingly, an embodiment of the present application provides a computer-readable storage medium storing a computer program, and a processor executes the computer program involved in the data processing method of any possible implementation manner described above.

[0017] Accordingly, an embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the data processing method of any possible implementation manner described above.

[0018] In an embodiment of the present application, feature extraction can be performed on the query object to obtain query object features, and feature extraction can be performed on the target knowledge graph associated with the query object to obtain knowledge graph features, the query object features and the knowledge graph features can be fused to obtain fused features, and the fused features can be processed to obtain intent recognition results of the query object; through the above-mentioned data processing method, the context information provided by the knowledge graph can be combined, so that the fused features used for intent recognition can provide more effective semantic information, thereby effectively improving the accuracy of intent recognition. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0020] Figure 1 A schematic diagram of an application scenario of a data processing method provided in an embodiment of the present application;

[0021] Figure 2 A schematic diagram of a processing flow of a search task provided in an embodiment of the present application;

[0022] Figure 3 A flowchart of a data processing method provided in an embodiment of the present application;

[0023] Figure 4 A schematic diagram of a target knowledge graph provided in an embodiment of the present application;

[0024] Figure 5 A flowchart of another data processing method provided in an embodiment of the present application;

[0025] Figure 6 A schematic diagram of the model structure of an original model provided in an embodiment of the present application;

[0026] Figure 7 A flowchart of another data processing method provided in an embodiment of the present application;

[0027] Figure 8 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application;

[0028] Fig. 9 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0030] It should be noted that the descriptions of "first", "second", etc. involved in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the technical features defined as "first", "second", etc. may explicitly or implicitly include at least one of the features.

[0031] In order to effectively improve the accuracy of intent recognition, an embodiment of the present application proposes a data processing method.

[0032] A data processing method proposed in the embodiment of the present application can be implemented based on artificial intelligence technology. Artificial Intelligence (AI) technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level technology and software-level technology. Basic artificial intelligence technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, cloud storage, big data processing technology, operating / interactive systems, and mechatronics. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0033] Natural language processing (NLP) is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language people use in daily life, so it is closely related to the study of linguistics. Natural language processing technology usually includes text processing, semantic understanding, machine translation, robot question answering, knowledge graph and other technologies.

[0034] With the research and progress of artificial intelligence technology, artificial intelligence technology has been studied and applied in many fields. The embodiments of the present application may specifically involve technologies such as natural language processing technology in artificial intelligence technology when implementing the data processing method.

[0035] In a feasible embodiment, the data processing method provided in the embodiment of the present application can also be implemented based on cloud technology and / or blockchain technology. Blockchain: (blockchain or block chain) is a series of text records (also known as blocks) that are connected and protected by cryptography. Each block contains the encrypted hash of the previous block, the corresponding timestamp, and the transaction data (usually represented by the hash value calculated by the Merkle tree algorithm). This design makes the block content difficult to tamper with. The distributed ledger connected in series with blockchain technology allows both parties to effectively record transactions and can permanently check the transaction. The data processing method provided in the embodiment of the present application may specifically involve one or more of cloud storage, cloud database, big data, and user portraits in cloud technology. For example, the data required to execute the data processing method (such as text data, image data, knowledge graph, etc.) is obtained from the cloud database. For another example, the data required to execute the data processing method can be stored in the form of blocks on the blockchain; the data generated by executing the data processing method (such as query object features, knowledge graph features, fusion features) can be stored in the form of blocks on the blockchain; in addition, the computer device that executes the data processing method can be a node device in the blockchain network.

[0036] In search tasks, effective search can be achieved by identifying the user's intention. When identifying the intention, the context is often a very important corpus environment, but the query objects entered by users when searching are often very short. For example, the user only enters "potatoes". At this time, due to the lack of context, it is impossible to know whether the user wants to watch videos or pictures of "potatoes" or want to learn how to cook "potatoes". If only "potatoes" are processed, the search system cannot obtain sufficient corpus environment, which may lead to low accuracy of intent recognition. Knowledge graph is an important way to organize knowledge information. All knowledge is organized and managed in the form of triples <entity 1-relationship-entity 2> or <entity-attribute-attribute value>. For example, <potato, subject, Solanaceae> is a triple of <entity 1-relationship-entity 2>, and <potato, nutrient content, vitamin C> is a triple of <entity-attribute-attribute value>. Therefore, the knowledge graph can describe various entities and concepts that exist in the real world, as well as describe the relationship between them. Based on this, this application can use the knowledge graph to understand user intentions from a semantic level, and can understand the complex association information between the query object and other entities, so as to effectively improve the accuracy of intent recognition by combining the contextual information provided by the knowledge graph. For the convenience of subsequent explanations, entities and attribute values ​​are collectively referred to as entities, and relationships and attributes are collectively referred to as relationships.

[0037] See also Figure 1 , Figure 1 1 is a schematic diagram of an application scenario of a data processing method provided in an embodiment of the present application. The application scenario may include a terminal device 101 and a server 102, and the terminal device 101 and the server 102 are connected via a network, such as a wireless network connection.

[0038] The terminal device 101 is also referred to as a terminal, user equipment (UE), access terminal, user unit, mobile device, user terminal, wireless communication device, user agent or user device. The terminal device may be a smart TV, a handheld device with wireless communication function (such as a smart phone, a tablet computer), a computing device (such as a personal computer (PC), an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, a wearable device or other smart device, but is not limited thereto.

[0039] Server 102 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.

[0040] In the application scenario of this embodiment, the server 102 can be used to perform search tasks. Optionally, the server 102 can store an index library 104 including one or more index objects, and an intent recognition model 103. The intent recognition model 103 can be used to obtain the intent recognition result of the query object. The server 102 can use the intent recognition result to search for index objects that match the query object from the index library 104 as the result of the search task.

[0041] In one embodiment, a user can input a query object on the terminal device 101 and send the input query object to the server 102. After the server 102 obtains the query object, it can obtain the target knowledge graph associated with the query object, and use the intent recognition model 103 to obtain the query object features of the query object, obtain the knowledge graph features of the target knowledge graph, and fuse the query object features with the knowledge graph features to obtain fused features, and process the fused features to obtain the intent recognition result of the query object. The server 102 can search for the index object matching the query object from the index library 104 based on the intent recognition result. Through this embodiment, the context information provided by the knowledge graph can be combined, so that the fused features used for intent recognition can provide more effective semantic information, effectively improve the accuracy of intent recognition, and thus improve the accuracy of the search task.

[0042] like Figure 2 As shown, each index object included in the index library may have its corresponding intent label. For example, the intent label of an index object may be "TV series", "recipe collection", etc. When the server searches for an index object matching the query object from the index library based on the intent recognition result, it may match the intent recognition result of the query object with the intent labels of each index object included in the index library. For example, when the query object is "potato" and the server obtains the intent recognition result of "potato" as "recipe collection", it may recall the index objects related to "potato" from the index library and match the index objects with the intent label "recipe collection" in the related index objects. The object is used as a matching index object to realize the coarse sorting and recall of the search task. Furthermore, the intent recognition model can be used to obtain the fusion features of each matching index object, calculate the similarity between the fusion features of each matching index object and the fusion features of the query object, and sort the matching index objects from large to small according to the similarity to realize the fine sorting of the search task, and return the final fine sorting result to the terminal device to complete the search task. By using the intent recognition result to realize the coarse sorting of the search task and then using the fusion features to realize the fine sorting of the search task, the accuracy of the search task can be improved, the intent recognition can be made more accurate, and the satisfaction can be improved.

[0043] It can be understood that the application scenario diagram described in the embodiment of the present application is for more clearly illustrating the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. Ordinary technicians in this field can know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.

[0044] See also Figure 3 , Figure 3 A flow chart of a data processing method is provided, and the method is applied to Figure 1 Taking the server 102 in the example as an example, the method may include the following steps:

[0045] S301. Obtain a query object, and obtain a target knowledge graph associated with the query object.

[0046] The query object is the object that needs to be identified for intent recognition and can be used as a clue for the search task. The specific form of the query object can be text, image, etc. For example, the query object obtained by the server can be the text "potato" or an image containing "potato". The target knowledge graph associated with the query object describes the relationship between the query object and its associated entities. The associated entity can be an entity with a direct connection relationship with the query object or an entity with an indirect connection relationship. The relationship between each entity described by the target knowledge graph (direct connection relationship or indirect connection relationship) can provide effective context information.

[0047] In one embodiment, when the query object is text, after obtaining the query object, the server can extract the entity included in the query object, which is an atomic information element, and can be a person's name, a place name, an organization name, a proper noun, etc. For example, if the query object is "what is potato", the server can use an entity recognition tool to obtain the entity "potato" included in "what is potato". The entity recognition tool is based on entity recognition technology, and can be TexSmart (a text understanding tool and service) or other entity recognition tools, which are not limited in this application.

[0048] In one embodiment, when the query object is an image, the server can perform image classification and recognition on the query object after acquiring the query object, identify the objects included in the query object, for example, identify that the animal included in the image is a cat, the plant is a sunflower, etc., and use the recognition result as an entity.

[0049] After obtaining the entities included in the query object, the server can obtain a pre-established knowledge graph, which includes the entities in the query object. The server can use entity linking technology to link the entities included in the query object to the corresponding entities in the pre-established knowledge graph. It should be noted that the corresponding entities in the pre-established knowledge graph are not required to be completely consistent with the entities in the query object. For example, "potato" and "potato" can be said to be the same entity. The server can obtain the entities and relationships around the corresponding entity in the pre-established knowledge graph, thereby obtaining a target knowledge graph associated with the query object. For example, if the entity included in the query object is "potato", the server can obtain the following: Figure 4The target knowledge graph shown includes: triples <potato, subject, Solanaceae>, triples <potato, nutrient composition, vitamin C>, triples <Solanaceae, kingdom, plant kingdom>, so using the target knowledge graph can solve the problem of missing context of the query object.

[0050] S302: extract features from the query object to obtain query object features, and extract features from the target knowledge graph to obtain knowledge graph features.

[0051] The query object feature is a high-dimensional feature of the query object. The server can use a neural network, such as a convolutional neural network, a residual neural network, etc., to extract features of the query object to obtain the query object feature. For example, when the query object is text, the query object feature can be the word encoding of each word included in the query object, or the text encoding (sentence encoding) of the query object; when the query object is an image, the query object feature can be the image encoding of the query object.

[0052] The knowledge graph features are high-dimensional features of the target knowledge graph. The server can extract features from the target knowledge graph to obtain the knowledge graph features.

[0053] In one embodiment, considering that the graph included in the target knowledge graph is a structure composed of nodes and edges (nodes refer to entities, and edges refer to relationships), and the graph network (GN) has a powerful function of modeling the dependency relationship between graph nodes, the graph network can be used to perform feature extraction on the target knowledge graph to obtain knowledge graph features, so that the knowledge graph features can preserve the topological relationship between structured input data.

[0054] The framework of graph networks defines a class of functions for relational reasoning represented by graph structures. Graph networks can be graph neural networks (GNN), message passing neural networks (MPNN), non-local neural networks (NLNN), and so on.

[0055] S303: Fuse the query object feature and the knowledge graph feature to obtain a fused feature.

[0056] After obtaining the query object features and the knowledge graph features, the server can adopt a variety of methods to fuse the query object features and the knowledge graph features. For example, the query object features and the knowledge graph features can be spliced ​​to achieve feature-level fusion, or the query object features and the knowledge graph features can be input into a neural network model, and the neural network model can be used to fuse the query object features and the knowledge graph features at the semantic level. This application does not limit the form of fusion.

[0057] S304: Process the fused features to obtain an intent recognition result of the query object.

[0058] The server can use the fusion features to perform classification processing to obtain the intent recognition result of the query object, which includes the probability values ​​between the query object and each intent label. For example, the intent recognition result is [0.2, 0.5, 0.3], which can indicate that the probability value of the query object belonging to the intent label "TV series" is 0.2, the probability value of belonging to the intent label "game" is 0.5, and the probability of belonging to the intent label "movie" is 0.3. The server can use the intent label with a probability value greater than the probability threshold (which can be set manually as a positive number) as the intent recognition result of the query object, or use the intent label with the maximum probability value as the intent recognition result of the query object.

[0059] Classification processing refers to the use of a multi-classification algorithm to determine the probability value of the fused feature belonging to each intent label. For example, the multi-classification algorithm can be a softmax classification layer. The softmax classification layer includes a fully connected layer, that is, the fused feature can be input into the fully connected layer, and multi-classification processing can be performed through the fully connected layer; the multi-classification algorithm can also use a neural network, such as a convolutional neural network or a long short-term memory network, to build a classification model, and perform multi-classification processing on the fused feature through the classification model. In addition, the multi-classification algorithm can also be a machine learning model, such as a support vector machine for multi-classification tasks.

[0060] In an embodiment of the present application, feature extraction can be performed on the query object to obtain query object features, and feature extraction can be performed on the target knowledge graph associated with the query object to obtain knowledge graph features, the query object features and the knowledge graph features can be fused to obtain fused features, and the fused features can be processed to obtain intent recognition results of the query object; through the above-mentioned data processing method, the context information provided by the knowledge graph can be combined, so that the fused features used for intent recognition can provide more effective semantic information, thereby effectively improving the accuracy of intent recognition.

[0061] See also Figure 5 , Figure 5A flow chart of a data processing method is provided. By using this method, the original model can be trained to obtain an intent recognition model, so that the server can complete the intent recognition task by calling the intent recognition model. Figure 1 Taking the server 102 in the example as an example, the following steps may be included:

[0062] S501. Obtain a training sample set, where the training sample set includes multiple training query objects, a knowledge graph associated with each training query object, and a true intent label of each training query object.

[0063] The training sample set includes multiple training query objects, a knowledge graph associated with each of the multiple training query objects, and a true intent label of each training query object.

[0064] The multiple training query objects in the training sample set may include text, or include images, or include text and images, and this application does not limit this. The knowledge graph associated with each training query object describes the relationship between the training query object and its associated entity, and the associated entity may be an entity that has a direct connection relationship with the training query object, or an entity that has an indirect connection relationship. The true intent label can be used to indicate the true intent of the training query object. For example, the true intent label can be [0, 0, 1], which can indicate that the probability value of the training query object belonging to the intent label "TV series" is 0, the probability value of belonging to the intent label "game" is 0, and the probability of belonging to the intent label "movie" is 1.

[0065] In one embodiment, the server may annotate the training query object with an intent label, thereby obtaining the true intent label of the training query object. For example, for the training query object "potato", its intent label may be annotated as "vegetable", and a training sample {"training query object": potato, "intent label": vegetable} may be obtained. The server may obtain the entities included in the training query object in the training sample, and use entity linking technology to link the entities included in the training query object to corresponding entities in a pre-established knowledge graph, and obtain entities and relationships around the corresponding entity in the pre-established knowledge graph, thereby obtaining a knowledge graph associated with each training query object. The entities around the corresponding entity may be separated from the entities included in the training query object by multiple intermediate entities.

[0066] S502. Call the original model to process each training query object included in the training sample set and the knowledge graph associated with each training query object to obtain a predicted intent recognition result for each training query object; wherein the original model includes an object feature extraction unit, a graph feature extraction unit, a fusion unit and a classification unit.

[0067] See also Figure 6 , Figure 6 It is a schematic diagram of the model structure of the original model, which includes an object feature extraction unit, a graph feature extraction unit, a fusion unit and a classification unit.

[0068] In one embodiment, the server may call the object feature extraction unit included in the original model to extract features from each training query object included in the training sample set, that is, input each training query object included in the training sample set into the object feature extraction unit included in the original model to obtain training object features. The object feature extraction unit may be a convolutional neural network, a long short-term memory (LSTM) network, or the like. When the training query object included in the training sample set is text, preferably, a convolutional neural network, word2vec, LSTM network, or the like may be used to better extract features belonging to the text.

[0069] In one embodiment, the server may call the graph feature extraction unit included in the original model to extract features from the knowledge graph associated with each training query object in the training sample set, that is, input the knowledge graph associated with each training query object in the training sample set into the graph feature extraction unit included in the original model to obtain training graph features. Since the graph included in the knowledge graph is a structure composed of nodes and edges (nodes refer to entities, and edges refer to relationships), and the graph network (GNN) has a powerful function of modeling the dependency relationship between graph nodes, the graph feature extraction unit can be a graph network, so that the obtained training graph features can preserve the topological relationship between structured input data.

[0070] Optionally, the present application uses the graph feature extraction unit as a graph neural network in a graph network for illustration. Assume that the knowledge graph G associated with each training query object includes N nodes, which can be understood as an entity. The features of each node can be obtained, and its dimension size is 1×D. The server can combine the features of these nodes into an N×D-dimensional matrix X, and can obtain the features of the relationship between each node, and its dimension size is 1×N. Then, the relationship between each node is combined into an N×N-dimensional matrix A. The matrix X and the matrix A can be used as input to obtain the propagation formula of the graph neural network between layers:

[0071]

[0072] in, I is the unit matrix, and A contains the connection information between each node in the knowledge graph G and its adjacent nodes (entities with direct connection relationships). After adding I, the operation contains both the information of the node itself and the information of the adjacent nodes. It is the degree matrix of the node. The element values ​​on the diagonal are the degrees of each node, and the values ​​of the elements outside the diagonal are 0. W is the trainable weight matrix. H is the feature of each layer, that is, the training graph feature. For the input layer, H is X, and σ is the nonlinear activation function.

[0073] In one embodiment, the server can call the fusion unit included in the original model to fuse the training object features and the training graph features to obtain training fusion features. The fusion unit can be a unit that concatenates the training object features and the training graph features, or it can be a neural network. The neural network is used to extract high-dimensional features that fuse the query object features and the knowledge graph features, and the high-dimensional features are used as training fusion features. For example, the query object features and the knowledge graph features are input into a neural network (such as a self-attention network) to obtain high-dimensional features as training fusion features.

[0074] In one embodiment, in order to make the training fusion features have more accurate and rich semantic information, the present application introduces a more powerful tensor fusion mechanism in the fusion unit to fuse the training object features and the training graph features.

[0075] Optionally, in order to execute the tensor fusion mechanism, the server can obtain initial tensor parameters, which are M-dimensional tensor parameters, where M is a positive integer greater than or equal to 2. For example, the initial tensor parameters can be a three-dimensional tensor with a dimension size of m×n×k. The parameters in the initial tensor parameters are obtained by random initialization. Therefore, the initial tensor parameters have not yet been learned by the tensor fusion mechanism, and effective training fusion features cannot be extracted.

[0076] It should be noted that when M is 2, the initial tensor parameter is actually a matrix. Preferably, M can be selected as a positive integer greater than 2. At this time, the initial tensor parameter is a multidimensional tensor. The use of a multidimensional tensor fusion unit can effectively strengthen the fusion process of the training object features and the training graph features, and can obtain deeper fusion features.

[0077] In one embodiment, the server may use the initial tensor parameter to fuse the training object feature and the training graph feature to obtain the training fusion feature. For example, the training object feature, the initial tensor parameter and the training graph feature are multiplied, and the fusion method is shown in the following formula (2).

[0078] V lOgit =V1W 【1:k】 V2 (2)

[0079] Among them, V1 is the training object feature, its dimension size is n×1, n is a positive integer, V2 is the training graph feature, its dimension size is m×1, m is a positive integer, W 【1:k】is the initial tensor parameter, which can be a three-dimensional tensor with a dimension size of m×n×k. [1:k] means that the dimension size of the fusion unit output is 1×k, then V logit The dimension size is 1×k.

[0080] The tensor fusion mechanism can fully realize the information fusion between the training object features and the training graph features, solve the problem of missing contextual information, and make the obtained training fusion features have stronger feature expression capabilities.

[0081] In one embodiment, the server may call the classification unit included in the original model to process the training fusion features to obtain a predicted intent recognition result. The classification unit may be a softmax classification layer. The softmax classification layer includes a fully connected layer, that is, the training fusion features may be input into the fully connected layer, and the predicted intent recognition result may be obtained by performing multi-classification processing through the fully connected layer; the multi-classification algorithm may also construct a classification model through a neural network, such as a convolutional neural network or a long short-term memory network, and perform multi-classification processing on the training fusion features through the classification model to obtain a predicted intent recognition result. The predicted intent recognition result outputted therefrom is shown in the following formula (3).

[0082] Prob cls =classifier(V logit ) (3)

[0083] Among them, Prob cls To predict the intent recognition result, it is a z×1-dimensional probability distribution vector, which describes the probability that the training query object belongs to each intent label. z is the number of intent labels, and classifier represents the classification unit, which can be a neural network for multi-classification or a machine learning model for multi-classification, etc.

[0084] S503. Determine a prediction loss parameter according to the predicted intent recognition result and the true intent label of each training query object.

[0085] The server may determine a prediction loss parameter based on the predicted intent recognition result of each training query object and the true intent label of each training query object, where the prediction loss parameter may measure the difference between the predicted intent recognition result and the true intent label.

[0086] In one embodiment, in order to obtain the prediction loss parameter, the server may obtain the loss function of the original model, and input the predicted intent recognition result of each training query object and the true intent label of each training query object into the loss function of the original model to obtain the prediction loss parameter. Optionally, the loss function of the original model may be a negative logarithmic loss function, and the negative logarithmic loss function is shown in the following formula (4).

[0087]

[0088] Among them, Loss cls is the prediction loss parameter, y i is the true intent label of the training query object, y i 0 means it belongs to the i-th intent label, y i 1 means it does not belong to the i-th intent label, a i Identify results for predictive intent.

[0089] S504: Adjust the original model according to the predicted loss parameter, and determine the intent recognition model according to the adjusted original model.

[0090] The server can adjust the model parameters of the original model according to the predicted loss parameters. When the number of adjustments to the model parameters of the original model reaches a preset number (which can be set manually), or the loss function converges, or the predicted loss parameter is 0, the difference between the predicted intent recognition result and the true intent label is gradually reduced through back propagation. When the difference between them is small enough to meet the requirements, the adjustment of the model parameters of the original model is stopped, and the adjusted original model is used as the intent recognition model. At this time, the intent recognition model can accurately identify the intent of the query object.

[0091] It should be noted that when the fusion unit of the original model adopts the tensor fusion mechanism, the adjustment of the model parameters of the original model includes the adjustment of the initial tensor parameters. By continuously adjusting the parameters of the initial tensor parameters, the initial tensor parameters can be better integrated with the training object features and the training graph features to obtain better training fusion features, so that the loss function can become smaller and smaller until convergence. The adjusted initial tensor parameters can be used as fusion tensor parameters, and the fusion tensor parameters are used to fuse the query object features corresponding to the query object obtained above and the knowledge graph features corresponding to the target knowledge graph associated with the query object obtained above, so as to obtain the above fusion features with stronger expression ability.

[0092] Through this embodiment, the server can use the training sample set to train the original model so that the trained intent recognition model can be used for intent recognition tasks. At the same time, since the trained intent recognition model can use the context information provided by the fusion unit learning knowledge graph, the intent recognition model can use more complementary information to improve the accuracy of intent recognition.

[0093] See also Figure 7 , Figure 7 A flow chart of a data processing method is provided, and the method is applied to Figure 1Taking the server 102 in the example as an example, the following steps may be included:

[0094] S701. Obtain a query object, and obtain a target knowledge graph associated with the query object.

[0095] After obtaining the query object, the server can use the query object to obtain the target knowledge graph associated with the query object.

[0096] In one embodiment, the server obtains the target knowledge graph associated with the query object, which may include the following steps:

[0097] (1) Get the query entity from the query object.

[0098] (2) Determine the target associated entity that has an associated relationship with the query entity from the fused knowledge graph, and determine the connection relationship between any two entities in the query entity and the target associated entity.

[0099] (3) Determine the target knowledge graph associated with the query object based on the query entity, target related entities and connection relationships.

[0100] In one embodiment, when the query object is text, after obtaining the query object, the server can use an entity recognition tool to extract entities included in the query object, which may be names of people, places, organizations, proper nouns, etc., and use the entities included in the query object as query entities.

[0101] The entity recognition tool is implemented based on entity recognition technology. The first step of entity recognition technology is to identify the entity word boundaries, that is, the starting and ending positions of the entity; the second step is to identify the type of entity, such as personal names, place names, organization names and other specific entity types.

[0102] In one embodiment, when the query object is an image, the server can perform image classification and recognition on the query object after acquiring the query object, identify the objects included in the query object, such as identifying the animals, plants, people, etc. included in the image, and use the recognition result of the object as an entity.

[0103] In one embodiment, the query object may include multiple entities. The server may use all the entities included in the query object as query entities. For example, the query object "How to play game character D in online game C" includes query entities: "online game C", "game character D". The confidence of each entity in the query object may also be obtained, that is, the importance of each entity in the query object is evaluated, and the entity with the highest confidence may be used as the query entity.

[0104] In one embodiment, the server can determine the target associated entity that has an associated relationship with the query entity from the fused knowledge graph, and determine the connection relationship between the query entity and any two entities in the target associated entity, and determine the target knowledge graph associated with the query object based on the query entity, the target associated entity and the connection relationship, that is, the connection relationship between the query entity and any two entities in the target associated entity can be used to form a new knowledge graph as the target knowledge graph associated with the query object.

[0105] In one embodiment, in order to obtain the target knowledge graph associated with the query object, the server may obtain an entity that has a connection relationship with the query entity and the number of intermediate entities on the connection path is less than the first number from the fused knowledge graph as a target associated entity, and then determine the connection relationship between the query entity and any two entities in the target associated entity, and use the query entity, the target associated entity and the connection relationship to obtain the target knowledge graph associated with the query object.

[0106] The fused knowledge graph is a pre-established knowledge graph, and the fused knowledge graph includes query entities. It should be noted that the query entities included in the fused knowledge graph are not required to be completely consistent with the query entities in the query object. For example, "potatoes" and "potatoes" can refer to the same query entity. The server can use the query entity in the query object to link to the query entity in the fused knowledge graph, and obtain an entity in the fused knowledge graph that has a connection relationship with the query entity and the number of intermediate entities on the connection path is less than the first number as the query entity. The connection relationship includes a direct connection relationship and an indirect connection relationship. When the entity and the query entity are in a direct connection relationship, the number of intermediate entities on the connection path is 0, for example Figure 4 The entities "potato" and "Solanaceae" shown are directly connected; when it is an indirect connection, the number of intermediate entities on the connection path needs to be less than the first number, and the first number can be manually set as a positive integer. For example, the first number can be 1. When the first number is 1, it indicates that an intermediate entity can be included between the entity and the query entity. Figure 4 For example, when the query entity is "potato", there is an intermediate entity "Solanaceae" between it and the entity "Plant Kingdom". By utilizing the entities and relationships associated with the query entity, the target knowledge graph can contain contextual information.

[0107] In one embodiment, when the query object includes multiple query entities, the server can obtain entities and relationships associated with each query entity to construct a target knowledge graph corresponding to each query entity, that is, obtain entities that have a connection relationship with each query entity and the number of intermediate entities on the connection path is less than the first number from the fused knowledge graph as target associated entities, determine the connection relationship between each query entity and any two entities in the target associated entities, and use each query entity, target associated entity and connection relationship to obtain the target knowledge graph corresponding to each query entity. Then, the target knowledge graph associated with the query object actually includes the target knowledge graphs corresponding to each query entity in the multiple query entities.

[0108] In one embodiment, after the server obtains the target knowledge graphs corresponding to each query entity, it can combine the target knowledge graphs corresponding to each query entity to obtain the target knowledge graph associated with the query object. For example, the target knowledge graph 1 of the query entity "potato" includes: triples <potato, subject, Solanaceae>, triples <potato, nutrient content, vitamin C>, and the target knowledge graph 2 of the query entity "Solanaceae" includes: triples <Solanaceae, kingdom, plant kingdom>, then the triples <potato, subject, Solanaceae> and the triples <Solanaceae, kingdom, plant kingdom> have the same entity "Solanaceae", then the target knowledge graph 1 and the target knowledge graph 2 can be combined into Figure 4 The target knowledge graph shown is the target knowledge graph associated with the query object.

[0109] In one embodiment, when the query object also includes a relationship object of the query entity (which can be understood as a direct connection relationship), the target associated entity obtained includes a first-class associated entity and a second-class associated entity. The first-class associated entity is an entity in the fused knowledge graph that has a direct connection relationship with the query entity, and the direct connection relationship matches the relationship object. For example, the query object is "what is the subject of potatoes", where "subject" is a relationship object. Figure 4It can be seen that there is a direct connection relationship "Subject" that matches the relationship object "Subject", then the entity that has a direct connection relationship ("Subject") with the query entity is "Solanaceae", then "Solanaceae" is the first type of associated entity; since the relationship objects included in the query object are already known, considering other direct connections outside the relationship objects will instead cause the context information provided by the target knowledge graph to be confusing and inefficient. Therefore, the second type of associated entity is an entity that has a connection relationship with the first type of associated entity in the fused knowledge graph, and the number of intermediate entities on the connection path is less than the second number. The number of intermediate entities between the first type of associated entities and the second type of associated entities needs to be less than the second number. The second number can be set artificially, for example, the second number can be 1. Therefore, the second type of associated entity is actually an entity extended based on the path of the relationship object, and the connection between the second type of associated entity and the query entity is an indirect connection. The server can use the obtained first associated entity, the second associated entity, and the connection relationship between each entity to construct a target knowledge graph associated with the query object.

[0110] In one embodiment, when the query object includes multiple relationship objects, the server can, according to the above embodiment, obtain, for each relationship object, an entity that has a direct connection relationship with the query entity and the direct connection relationship matches each relationship object (i.e., obtain the first associated entity of each query object), and obtain an entity that has a connection relationship with the first type of associated entity and the number of intermediate entities on the connection path is less than the second number (i.e., obtain the second associated entity of each query object), thereby constructing a target knowledge graph corresponding to each relationship object based on the first associated entity, the second associated entity, and the connection relationship between each entity. The target knowledge graph associated with the query object can be obtained by combining the target knowledge graphs corresponding to each relationship object.

[0111] S702: Perform feature extraction on the query object to obtain query object features, and perform feature extraction on the target knowledge graph to obtain knowledge graph features.

[0112] In one embodiment, the server may input the query object into the object feature extraction unit of the intent recognition network for processing to obtain the query object feature, and input the target knowledge graph into the graph feature extraction unit of the intent recognition network for processing to obtain the knowledge graph feature.

[0113] Optionally, the intent recognition model can be obtained by using the training sample set to perform classification training on the original model including the object feature extraction unit, the graph feature extraction unit, the fusion unit and the classification unit. Preferably, the fusion unit can adopt a tensor fusion mechanism, and the fusion unit in the intent recognition model includes fusion tensor parameters obtained by adjusting the parameters of the initial tensor parameters.

[0114] In one embodiment, when the target knowledge graph associated with the query object includes multiple query entities, and the target knowledge graph includes sub-knowledge graphs corresponding to each of the multiple query entities, that is, when the target knowledge graph associated with the query object includes target knowledge graphs corresponding to each of the multiple query entities, the server can perform feature extraction on the sub-knowledge graphs corresponding to each query entity to obtain sub-graph features corresponding to each query entity, and aggregate the sub-graph features corresponding to each query entity to obtain knowledge graph features.

[0115] In one embodiment, when multiple query entities are included, for each query entity, the server can obtain a target associated entity that has an associated relationship with each query entity from the fused knowledge graph, and determine the connection relationship between each query entity and any two entities in the target associated entity, and obtain a sub-knowledge graph corresponding to each query entity based on each query entity, the target associated entity and the connection relationship.

[0116] Furthermore, the graph feature extraction unit of the intent recognition network can be used to extract features from the sub-knowledge graph corresponding to each query entity to obtain the sub-graph features corresponding to each query entity. The server can average or concatenate the obtained sub-graph features corresponding to each query entity to obtain the knowledge graph features.

[0117] S703: Fuse the query object feature and the knowledge graph feature to obtain a fused feature.

[0118] In one embodiment, the server may use a fusion unit of the intent recognition network to fuse the query object features and the knowledge graph features to obtain fused features. The fusion unit of the intent recognition network may be to splice the query object features and the knowledge graph features, or to input the query object features and the knowledge graph features into a neural network, and use the neural network to extract high-dimensional features that fuse the query object features and the knowledge graph features, and so on.

[0119] Preferably, when the fusion unit in the intent recognition network adopts a tensor fusion mechanism, the server can obtain a fusion tensor parameter, which is an M-dimensional tensor parameter, where M is a positive integer greater than or equal to 2.

[0120] In one embodiment, in order to obtain fused tensor parameters, the server can use the initial tensor parameters to fuse the training object features and the training graph features to obtain training fused features, process the training fused features to obtain predicted intent recognition results, determine the prediction loss parameters based on the predicted intent recognition results and the true intent label of the training query object, adjust the parameters of the initial tensor parameters based on the prediction loss parameters, and determine the fused tensor parameters based on the adjusted initial tensor parameters. Among them, the training object features are the features of the training query object, and the training graph features are the features of the knowledge graph associated with the training query object. The detailed implementation process of obtaining the fused tensor parameters can be found in steps S501-S504, which will not be repeated in this embodiment.

[0121] In one embodiment, the server may use the fusion tensor parameter to fuse the query object feature and the knowledge graph feature to obtain the fusion feature. For example, the query object feature, the fusion tensor parameter, and the knowledge graph feature are multiplied, and the fusion method is shown in the following formula (5).

[0122] V′ logit =V′1W′ 【1:k】 V′2 (5)

[0123] Among them, V′1 is the query object feature, its dimension is n×1, n is a positive integer, V′2 is the knowledge graph feature, its dimension is m×1, m is a positive integer, and W′ 【1:k】 is the fusion tensor parameter, which can be a three-dimensional tensor with a dimension of m×n×k. [1:k] means that the dimension of the fusion unit output is 1×k. V′ logit The dimension is 1×k.

[0124] When M is 2, the fusion tensor parameter is actually a matrix. Preferably, M can be selected as a positive integer greater than 2. At this time, the fusion tensor parameter is a multidimensional tensor. The use of multi-dimensional fusion tensor parameters can effectively enhance the fusion process of query object features and knowledge graph features, and obtain deeper fusion features.

[0125] S704: Process the fused features to obtain an intent recognition result of the query object.

[0126] The server can use the classification unit in the intent recognition model to process the fused features to obtain the intent recognition result of the query object. The intent recognition result of the query object includes the probability value between the query object and each intent label. The intent label with a probability value greater than the probability threshold can be used as the intent recognition result of the query object, or the intent label with the maximum probability value can be used as the intent recognition result of the query object.

[0127] Through this embodiment, the server can use the intent recognition model to process the query object and the target knowledge graph associated with the query object, thereby obtaining query object features and knowledge graph features. The tensor fusion mechanism can be used to enhance the fusion of query object features and knowledge graph features, thereby compensating for the lack of contextual information and making the obtained fused features have richer semantic information, which can effectively improve the accuracy of intent recognition.

[0128] The above describes in detail the method of the embodiment of the present application. In order to facilitate the implementation of the above solution of the embodiment of the present application, the following provides a device of the embodiment of the present application. Figure 8 , Figure 8 80 is a schematic diagram of a data processing device provided by an embodiment of the present application. The device 80 may include:

[0129] An acquisition module 801 is used to acquire a query object and a target knowledge graph associated with the query object;

[0130] The processing module 802 is used to extract features from the query object to obtain query object features, and to extract features from the target knowledge graph to obtain knowledge graph features;

[0131] The processing module 802 is further used to fuse the query object feature and the knowledge graph feature to obtain a fused feature;

[0132] The processing module 802 is further used to process the fused features to obtain the intent recognition result of the query object.

[0133] In one embodiment, the acquisition module 801 is specifically used to:

[0134] Obtaining a query entity from the query object;

[0135] The processing module 802 is specifically used for:

[0136] Determine a target associated entity having an associated relationship with the query entity from the fused knowledge graph, and determine a connection relationship between any two entities among the query entity and the target associated entity;

[0137] A target knowledge graph associated with the query object is determined according to the query entity, the target associated entity and the connection relationship.

[0138] The target associated entity is an entity in the fused knowledge graph that has a connection relationship with the query entity, and the number of intermediate entities on the connection path is less than the first number; or,

[0139] In one embodiment, when the query object also includes a relationship object of the query entity, the target associated entity includes a first type of associated entity and a second type of associated entity, the first type of associated entity being an entity in the fused knowledge graph that has a direct connection relationship with the query entity, and the direct connection relationship matches the relationship object; the second type of associated entity is an entity in the fused knowledge graph that has a connection relationship with the first type of associated entity, and the number of intermediate entities on the connection path is less than a second number.

[0140] In one embodiment, the acquisition module 801 is specifically used to:

[0141] Obtain a fused tensor parameter, wherein the fused tensor parameter is an M-dimensional tensor parameter, and M is a positive integer greater than or equal to 2;

[0142] The processing module 802 is specifically used for:

[0143] The query object feature and the knowledge graph feature are fused using the fusion tensor parameter to obtain a fusion feature.

[0144] In one embodiment, the processing module 802 is specifically configured to:

[0145] The training object feature and the training graph feature are fused using the initial tensor parameter to obtain a training fusion feature, wherein the training object feature is a feature of the training query object, and the training graph feature is a feature of the knowledge graph associated with the training query object;

[0146] Processing the training fusion features to obtain a predicted intent recognition result;

[0147] Determining a prediction loss parameter according to the predicted intent recognition result and the true intent label of the training query object;

[0148] The parameters of the initial tensor parameters are adjusted according to the predicted loss parameters, and the fused tensor parameters are determined according to the adjusted initial tensor parameters.

[0149] In one embodiment, when the query object includes multiple query entities, the target knowledge graph includes a sub-knowledge graph corresponding to each query entity in the multiple query entities; the processing module 802 is specifically used to:

[0150] Perform feature extraction on the sub-knowledge graphs corresponding to each query entity to obtain sub-graph features corresponding to each query entity;

[0151] The sub-graph features corresponding to each query entity are aggregated to obtain knowledge graph features.

[0152] In one embodiment, the processing module 802 is specifically configured to:

[0153] Inputting the query object into the object feature extraction unit of the intent recognition network for processing to obtain query object features;

[0154] The target knowledge graph is input into the graph feature extraction unit of the intent recognition network for processing to obtain knowledge graph features.

[0155] In an embodiment of the present application, feature extraction can be performed on the query object to obtain query object features, and feature extraction can be performed on the target knowledge graph associated with the query object to obtain knowledge graph features. The query object features and the knowledge graph features can be fused to obtain fused features, and the fused features can be processed to obtain intent recognition results of the query object. The context information provided by the knowledge graph can be combined so that the fused features used for intent recognition can provide more effective semantic information, thereby effectively improving the accuracy of intent recognition.

[0156] like Fig. 9 As shown, Fig. 9 is a schematic diagram of a computer device provided by an embodiment of the present application. The internal structure of the computer device 90 is as follows Fig. 9 As shown, it includes: one or more processors 901, memory 902, and communication interface 903. The processor 901, memory 902, and communication interface 903 may be connected via a bus 904 or other methods. The embodiment of the present application takes the connection via the bus 904 as an example.

[0157] Among them, the processor 901 (or CPU (Central Processing Unit)) is the computing core and control core of the computer device 90, which can parse various instructions in the computer device 90 and process various data of the computer device 90. For example, the CPU can be used to parse the power on and off instructions sent by the user to the computer device 90, and control the computer device 90 to perform power on and off operations; for another example, the CPU can transmit various interactive data between the internal structures of the computer device 90, and so on. The communication interface 903 can optionally include a standard wired interface, a wireless interface (such as Wi-Fi, a mobile communication interface, etc.), which is controlled by the processor 901 to send and receive data. The memory 902 (Memory) is a memory device in the computer device 90 for storing programs and data. It can be understood that the memory 902 here can include both the built-in memory of the computer device 90 and the extended memory supported by the computer device 90. The memory 902 provides a storage space, which stores the operating system of the computer device 90, which may include but is not limited to: Windows system, Linux system, etc., and this application does not limit this.

[0158] In one embodiment, the processor 901 is specifically configured to:

[0159] Obtaining a query object and a target knowledge graph associated with the query object;

[0160] Performing feature extraction on the query object to obtain query object features, and performing feature extraction on the target knowledge graph to obtain knowledge graph features;

[0161] Fusing the query object feature with the knowledge graph feature to obtain a fused feature;

[0162] The fused features are processed to obtain an intent recognition result of the query object.

[0163] In one embodiment, the processor 901 is specifically configured to:

[0164] Obtaining a query entity from the query object;

[0165] Determine a target associated entity having an associated relationship with the query entity from the fused knowledge graph, and determine a connection relationship between any two entities among the query entity and the target associated entity;

[0166] A target knowledge graph associated with the query object is determined according to the query entity, the target associated entity and the connection relationship.

[0167] In one embodiment, the target associated entity is an entity in the fused knowledge graph that has a connection relationship with the query entity, and the number of intermediate entities on the connection path is less than the first number; or,

[0168] When the query object also includes a relationship object of the query entity, the target associated entity includes a first type of associated entity and a second type of associated entity, the first type of associated entity being an entity in the fused knowledge graph that has a direct connection relationship with the query entity, and the direct connection relationship matches the relationship object; the second type of associated entity is an entity in the fused knowledge graph that has a connection relationship with the first type of associated entity, and the number of intermediate entities on the connection path is less than the second number.

[0169] In one embodiment, the processor 901 is specifically configured to:

[0170] Obtain a fused tensor parameter, wherein the fused tensor parameter is an M-dimensional tensor parameter, and M is a positive integer greater than or equal to 2;

[0171] The query object feature and the knowledge graph feature are fused using the fusion tensor parameter to obtain a fusion feature.

[0172] In one embodiment, the processor 901 is specifically configured to:

[0173] The training object feature and the training graph feature are fused using the initial tensor parameter to obtain a training fusion feature, wherein the training object feature is a feature of the training query object, and the training graph feature is a feature of the knowledge graph associated with the training query object;

[0174] Processing the training fusion features to obtain a predicted intent recognition result;

[0175] Determining a prediction loss parameter according to the predicted intent recognition result and the true intent label of the training query object;

[0176] The parameters of the initial tensor parameters are adjusted according to the predicted loss parameters, and the fused tensor parameters are determined according to the adjusted initial tensor parameters.

[0177] In one embodiment, when the query object includes multiple query entities, the target knowledge graph includes a sub-knowledge graph corresponding to each query entity in the multiple query entities; the processor 901 is specifically configured to:

[0178] Perform feature extraction on the sub-knowledge graphs corresponding to each query entity to obtain sub-graph features corresponding to each query entity;

[0179] The sub-graph features corresponding to each query entity are aggregated to obtain knowledge graph features.

[0180] In one embodiment, the processor 901 is specifically configured to:

[0181] Inputting the query object into the object feature extraction unit of the intent recognition network for processing to obtain query object features;

[0182] The target knowledge graph is input into the graph feature extraction unit of the intent recognition network for processing to obtain knowledge graph features.

[0183] In an embodiment of the present application, feature extraction can be performed on the query object to obtain query object features, and feature extraction can be performed on the target knowledge graph associated with the query object to obtain knowledge graph features. The query object features and the knowledge graph features can be fused to obtain fused features, and the fused features can be processed to obtain intent recognition results of the query object. The context information provided by the knowledge graph can be combined so that the fused features used for intent recognition can provide more effective semantic information, thereby effectively improving the accuracy of intent recognition.

[0184] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned data processing method embodiment. Among them, the readable storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0185] One or more embodiments of the present application also provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps performed in the embodiments of the above-mentioned methods.

[0186] One or more embodiments of the present application also provide another computer program product, which includes a computer program or computer instructions, and when the computer program or computer instructions are executed by a processor, the steps of the data processing method provided in the embodiments of the present application are implemented.

[0187] The above 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 patent 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 patent application shall be subject to the attached claims.

Claims

1. A data processing method, characterized in that: The method comprises: Obtain a query object, obtain a query entity from the query object, and determine a target associated entity having an associated relationship with the query entity from a fused knowledge graph, wherein the fused knowledge graph is a pre-established knowledge graph; when the query object includes a relationship object of the query entity, the target associated entity includes a first type of associated entity and a second type of associated entity, wherein the first type of associated entity is an entity in the fused knowledge graph that has a direct connection relationship with the query entity, and the direct connection relationship matches the relationship object, and the second type of associated entity is an entity in the fused knowledge graph that has a connection relationship with the first type of associated entity, and the number of intermediate entities on the connection path is less than a second number; Determine a connection relationship between any two entities among the query entity and the target associated entity, and determine a target knowledge graph associated with the query object according to the query entity, the target associated entity and the connection relationship; Performing feature extraction on the query object to obtain query object features, and using the graph network GN to perform feature extraction on the target knowledge graph to obtain knowledge graph features; wherein, when the query object includes multiple query entities, the target knowledge graph includes sub-knowledge graphs corresponding to each query entity in the multiple query entities, performing feature extraction on the sub-knowledge graphs corresponding to each query entity to obtain sub-graph features corresponding to each query entity, and aggregating the sub-graph features corresponding to each query entity to obtain knowledge graph features; Fusing the query object feature and the knowledge graph feature to obtain a fused feature, including: obtaining a fused tensor parameter, wherein the fused tensor parameter is an M-dimensional tensor parameter, M is a positive integer greater than or equal to 2, and using the fused tensor parameter to fuse the query object feature and the knowledge graph feature to obtain a fused feature; The fused features are classified and processed, and a multi-classification algorithm is used to determine the probability value of the fused features belonging to each intent label, so as to obtain the intent recognition result of the query object.

2. The method according to claim 1, characterized in that The method further comprises: The training object feature and the training graph feature are fused using the initial tensor parameter to obtain a training fusion feature, wherein the training object feature is a feature of the training query object, and the training graph feature is a feature of the knowledge graph associated with the training query object; Processing the training fusion features to obtain a predicted intent recognition result; Determining a prediction loss parameter according to the predicted intent recognition result and the true intent label of the training query object; The parameters of the initial tensor parameters are adjusted according to the predicted loss parameters, and the fused tensor parameters are determined according to the adjusted initial tensor parameters.

3. The method according to claim 1, characterized in that The extracting features of the query object to obtain query object features, and extracting features of the target knowledge graph to obtain knowledge graph features, include: Inputting the query object into the object feature extraction unit of the intent recognition network for processing to obtain query object features; The target knowledge graph is input into the graph feature extraction unit of the intent recognition network for processing to obtain knowledge graph features.

4. A data processing device, characterized in that: The device comprises: An acquisition module is used to acquire a query object, acquire a query entity from the query object, determine a target associated entity having an associated relationship with the query entity from a fused knowledge graph, wherein the fused knowledge graph is a pre-established knowledge graph; determine a connection relationship between any two entities in the query entity and the target associated entity, and determine a target knowledge graph associated with the query object based on the query entity, the target associated entity and the connection relationship; when the query object includes a relationship object of the query entity, the target associated entity includes a first type of associated entity and a second type of associated entity, wherein the first type of associated entity is an entity in the fused knowledge graph that has a direct connection relationship with the query entity, and the direct connection relationship matches the relationship object, and the second type of associated entity is an entity in the fused knowledge graph that has a connection relationship with the first type of associated entity, and the number of intermediate entities on the connection path is less than a second number of entities; A processing module, used to extract features from the query object to obtain query object features, and to extract features from the target knowledge graph using a graph network GN to obtain knowledge graph features; wherein, when the query object includes multiple query entities, the target knowledge graph includes sub-knowledge graphs corresponding to each of the multiple query entities, extract features from the sub-knowledge graphs corresponding to each query entity, obtain sub-graph features corresponding to each query entity, and aggregate the sub-graph features corresponding to each query entity to obtain knowledge graph features; The processing module is further used to fuse the query object feature and the knowledge graph feature to obtain a fused feature, including: obtaining a fused tensor parameter, wherein the fused tensor parameter is an M-dimensional tensor parameter, M is a positive integer greater than or equal to 2, and using the fused tensor parameter to fuse the query object feature and the knowledge graph feature to obtain a fused feature; The processing module is further used to classify the fused features, and use a multi-classification algorithm to determine the probability value of the fused features belonging to each intent label, so as to obtain the intent recognition result of the query object.

5. A computer device, characterized in that: It comprises a memory, a communication interface and a processor, wherein the memory, the communication interface and the processor are connected to each other, the memory stores a computer program, and the processor calls the computer program stored in the memory to execute the data processing method according to any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the data processing method according to any one of claims 1 to 3 is implemented.

7. A computer program product, characterized in that The computer program product comprises a computer program or computer instructions, and when the computer program or computer instructions are executed by a processor, the steps of the data processing method according to any one of claims 1 to 3 are implemented.