Relation-aware similarity question identification and evaluation method, system, device and storage medium

Through the similar question recognition model based on the relationship-aware neural network, semantic relationship information is used to identify similar questions, which solves the problem of diversity challenge of similar question recognition in the existing technology and improves the recognition accuracy.

CN114416947BActive Publication Date: 2024-10-18UNIV OF SCI & TECH OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210047822.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-17
Publication Date
2024-10-18
Estimated Expiration
2042-01-17

AI Technical Summary

Technical Problem

Due to the short length of the question and the flexibility and breadth of natural language expression, the existing technology cannot effectively solve the diversity challenge in similar problem recognition, and the use of external knowledge cannot fully improve the recognition accuracy.

Method used

A similar question recognition model based on relationship-aware neural networks is adopted. By extracting question data with semantic relationship matching from the data set, a joint representation model is constructed, and semantic relationship information is used for question recognition evaluation. The recognition evaluation results are used in the training and testing stages to update the model parameters.

Benefits of technology

The prediction accuracy of similar problem recognition is improved, and the accuracy of the recognition results is improved through the utilization of multiple semantic matching relationship information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114416947B_ABST
    Figure CN114416947B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, device and storage medium for evaluating relation-aware similar question recognition. The relevant scheme uses a relation-aware neural network-based similar question recognition model to recognize similar questions of question pairs. Compared with the traditional model, it uses multiple semantically matched semantic relationship related information. For the predicted results, there is a certain improvement in multiple evaluation indicators.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of natural language processing, and in particular to a relationship-aware similarity question recognition and evaluation method, system, device and storage medium. Background Art

[0002] Similar question identification is a core issue in the field of intelligent customer service question and answer research. When a user asks a new question, the intelligent customer service needs to understand the user's new question, find similar questions that may match the user's question, obtain the most matching question through the matching model, and feedback the corresponding answer to the user. Therefore, the user similar question identification task can also be modeled as a similar text matching task. Similar question identification tasks are applied in many fields, such as community question and answer queries, information retrieval, and intelligent customer service systems, all of which regard similar question identification as a core issue in this application field. Therefore, how to solve similar question identification has become a very important basic issue.

[0003] Around this research topic, researchers have proposed a variety of solutions. Most of the related research focuses on the lexical, syntactic or question structure between two questions, and judges the similarity between two questions by modeling the semantic relationship between the two questions.

[0004] However, due to the short length of questions and the flexibility and breadth of natural language expression, similar question matching faces the challenge of diversity. In order to solve the diversity of problems, some studies have introduced external knowledge such as knowledge graphs, question answers, etc. to solve the problem of insufficient diversity. However, these external knowledge covers a wide range of fields or is not very targeted, and cannot fully meet the needs of supplementing the diverse expression of questions. Therefore, the recognition accuracy needs to be improved. Summary of the invention

[0005] The purpose of the present invention is to provide a relationship-aware similar question identification and evaluation method, system, device and storage medium, which can fully utilize the semantic relationship information between multiple question pairs to solve the similar question identification between problems and have high prediction accuracy.

[0006] The objective of the present invention is achieved through the following technical solutions:

[0007] A relation-aware similarity question identification and evaluation method, comprising:

[0008] When multiple semantic relations are extracted from the data set, the matching semantically related question data are all text data, including the verification question pair Q u With Q a , and question Q a Corresponding to multiple semantically related question sets T under different matching relationships;

[0009] Construct a similar question recognition model based on relation-aware neural network, jointly represent each matching semantically related question data, and use the obtained question Q a The relation-aware representation vector of the question Q u The representation vector is used for recognition evaluation. In the training phase, the loss function is constructed using the recognition evaluation results and the recognition labels to update the model parameters.

[0010] In the testing phase, for a given question pair, the trained relationship-aware neural network-based similar question recognition model is used to perform recognition evaluation.

[0011] A relationship-aware similarity problem identification and evaluation system is used to implement the above method, and the system includes:

[0012] The data extraction unit is used to extract the matching semantically related question data under multiple semantic relationships from the data set, and each matching semantically related question data is text data, including the verification question pair Q u With Q a , Question Q a And question Q a Corresponding to multiple semantically related question sets T under different matching relationships;

[0013] The model building and training unit is used to build a similar question recognition model based on a relation-aware neural network, jointly represent each matching semantically related question data, and use the obtained question Q a The relation-aware representation vector of the question Q u The representation vector is used for recognition evaluation. In the training phase, the loss function is constructed using the recognition evaluation results and the recognition labels to update the model parameters.

[0014] The recognition evaluation test unit is used to perform recognition evaluation on a given question pair using a trained similar question recognition model based on a relation-aware neural network.

[0015] A processing device, comprising: one or more processors; a memory for storing one or more programs;

[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the aforementioned method.

[0017] A readable storage medium stores a computer program, characterized in that the aforementioned method is implemented when the computer program is executed by a processor.

[0018] It can be seen from the technical solution provided by the present invention that the similar question recognition model based on the relationship-aware neural network is used to identify similar questions of question pairs. Compared with the traditional model, multiple semantic matching semantic relationship related information is used. For the prediction results, there is a certain improvement in multiple evaluation indicators. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0020] Figure 1 A flowchart of a relationship-aware similarity question identification and evaluation method provided by an embodiment of the present invention;

[0021] Figure 2 A schematic diagram of a relationship-aware similarity question identification and evaluation system provided by an embodiment of the present invention;

[0022] Figure 3 A schematic diagram of a processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0023] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of the present invention.

[0024] First, the terms that may be used in this article are explained as follows.

[0025] The terms "include", "comprises", "contains", "has" or other descriptions with similar semantics should be interpreted as non-exclusive inclusion. For example, including certain technical feature elements (such as raw materials, components, ingredients, carriers, dosage forms, materials, dimensions, parts, components, mechanisms, devices, steps, procedures, methods, reaction conditions, processing conditions, parameters, algorithms, signals, data, products or products, etc.) should be interpreted as including not only certain technical feature elements explicitly listed, but also other technical feature elements known in the art that are not explicitly listed.

[0026] Secondly, the existing similar result records are analyzed and explained.

[0027] After analysis, it is found that the following situations exist in the existing data sets, that is, the same question has semantic relations with multiple questions. For example, as shown in Table 1, there are such semantic relations of multiple matching questions in the customer service question data set of a certain bank. 1 and 4 questions (i.e., Q 2 ~Q 5 ) have a semantic relationship. A classification label of 1 means that the two questions have the same semantics, and a classification label of 0 means that the two questions are similar but have different semantics. Specifically, Q 2 and Q 3 With Q 1 The label is 1. By analyzing the content of the question, we can know that Q 2 and Q 3 Although the sentence structures are different, the basic meanings are the same, which are all about the information of "telephone review time". 2 and Q 3 It's Q 1 Multiple semantic matching problems. 4 and Q 5 With Q 1 The label is 0, analyze Q 4 and Q 5 It can be seen that Q 4 and Q 5 These two questions and Q 1 There are the same keywords, but the semantics of the expressions are different, so Q 4 and Q 5 It's Q 1 There are multiple semantically similar but mismatched questions.

[0028]

[0029] Table 1 Examples of multiple semantic matching problems

[0030] Therefore, by observing the data set, we can find that under the relationship based on label classification, there is a relationship between Q 1 Semantically related problems with multiple semantic matches. The multiple semantic matches under the above two different relationships reflect the semantic influence of multiple semantic matching relationships on this basic problem from a finer granularity. Compared with previous studies in which matching labels are only used to distinguish problems, the matching labels of problems actually reflect the implicit semantic relationship between problem objects. These matching relationships have strong semantic relevance and can help with the semantic understanding of the problem. In order to show the positive role of multiple matching semantic relationships in identifying similar problems, the use of matching semantic relationships to reflect the semantic information between problem pairs is the focus of the research of the method of the present invention.

[0031] The following is a detailed description of a relationship-aware similar question identification and evaluation method provided by the present invention. The contents not described in detail in the embodiments of the present invention belong to the prior art known to professional and technical personnel in the field. If no specific conditions are specified in the embodiments of the present invention, the conventional conditions in the field or the conditions recommended by the manufacturer shall be followed. The instruments used in the embodiments of the present invention, for which the manufacturer is not specified, are all conventional products that can be purchased commercially.

[0032] like Figure 1 As shown in FIG. 1 , a relationship-aware similar question identification and evaluation method mainly includes the following steps:

[0033] Step 1: Extract the matching semantically related question data from the data set under multiple semantic relationships. Each matching semantically related question data is text data, including the verification question pair Q u With Q a , and question Q a Corresponding to multiple semantically related question sets T under different matching relationships.

[0034] The preferred implementation of this step is as follows:

[0035] 1) Look for problems where there are multiple semantic matches.

[0036] In an embodiment of the present invention, matching-related questions are extracted from the collected data, and each question forms a similar question matching relationship with multiple other questions. The similar question matching relationship includes two categories. The first classification label is 1, indicating that the two questions have the same semantics and belong to a semantic matching relationship; the second classification label is 0, indicating that the two questions have the same keywords but different semantics and belong to a semantic similarity relationship.

[0037] 2) Divide the data set.

[0038] In the embodiment of the present invention, in order to further divide multiple semantic matching problem sets and verification model data sets, the existing data is divided into two parts: the first part is used as a matching problem knowledge base; the other part is used as training data for the verification model; wherein the matching problem knowledge base provides Q a With set T, the training data for the validation model, we provide question Q u During training, the verification data finds multiple semantic matching problem sets of corresponding problems from the matching problem knowledge base to achieve a unified semantic representation of the corresponding problems.

[0039] Specifically: Question Q in the training data u and a single question Q in the matching question knowledge base a When matching, for question Q a , if the matching problem knowledge base M=(S1 ,S 2 ,...) and any other problem Q a If the classification label is 1, the corresponding question is put into the set T p Represents question Q a Semantic matching relationship dataset, n is the set T p The number of questions in the set; if the classification label is 0, put it into the set T q Represents question Q a Semantic similarity relationship dataset, m is the set T q The number of problems in the set T = {T p ,T q} is the question Q a Corresponding to multiple sets of semantically related questions under different matching relationships.

[0040] 3) Text content processing.

[0041] In the embodiment of the present invention, each matching semantically related question data obtained in the above process is segmented to obtain the verification question pair Q u With Q a The text content segmentation results of , as well as the text content segmentation results of each question in the question set T, are used as input for model training and for the subsequent evaluation of similar question recognition for each question pair.

[0042] Step 2: Build a similar question recognition model based on relation-aware neural network, jointly represent each matching semantically related question data, and use the obtained question Q a The relation-aware representation vector of the question Q u The representation vector is used for recognition evaluation. In the training phase, the recognition evaluation results and the recognition labels are used to construct the loss function and update the model parameters.

[0043] The preferred implementation of this step is as follows:

[0044] 1) Construct a similar question recognition model based on relationship-aware neural network.

[0045] In the embodiment of the present invention, the similar question recognition model based on the relation-aware neural network mainly includes: a question representation layer, a relation-aware representation layer and a question recognition evaluation layer; wherein: a) the question representation layer is used to extract each verification question for Q u With Q a The representation vector of , and the question Q aThe representation vector of each question in the set of multiple semantically related questions under different matching relationships; for example, the Sentence-BERT model can be used in the processing stage. b) The relationship-aware representation layer is used to combine the question Q a The semantic relationship with each question in the question set T is obtained to obtain question Q a Specifically, this stage integrates multiple semantic matching relationship information into the question Q a The problem recognition and evaluation layer is used to use the problem Q u With question Q a The representation vector of , and the question Q a The relation-aware representation vector of the verification question Q u With Q a The semantic relationship between the two is recognized and evaluated, and similar question recognition labels of the verification question pair are predicted.

[0046] The principles and related processes of each layer are introduced below.

[0047] a) Problem representation layer.

[0048] All questions need to be input into the question representation layer, including the question Q mentioned above. u , the question matches the question Q in the knowledge base a and about question Q a The problem set T = {T p ,T q}. In the question representation layer, the question is represented as a dense vector of d dimensions through the pre-trained initialized word vector. Therefore, for any question, in order to capture the contextual relationship between the question words, the Sentence BERT model is used to encode each question independently and map them to a dense vector to generate the semantic representation of the question.

[0049] h=Sentence-BERT(Q)

[0050] Among them, Sentence-BERT represents the Sentence BERT model, h is the representation vector of question Q, |q| is the length of question Q, d h is the dimension of the output.

[0051] For the verification problem, Q u With Q a Obtain the corresponding representation vector h through the problem representation layer u With h a ; For the problem set T = {T p ,Tq} Obtain the semantic matching relationship vector set through the question representation layer and vector sets of semantic similarity relations

[0052] b) Relationship-aware representation layer.

[0053] In the relation-aware representation layer, multiple semantic relations include semantic matching relations and semantic similarity relations, each of which is about question Q a For multiple semantic matching problems, we first use RNs (relational networks) to capture the relation vectors of two questions, and then expand RNs to explore the integration of multiple relational tags for semantic matching and semantic similarity.

[0054] In order to clarify the relational semantics between the question and its related sentences, the RNs relational network structure is used to represent the relationship between the two objects. a The multi-relation vector h corresponding to the problem k According to the RNs model, the function of model relationship representation is:

[0055] RNs(H r )=f φ (∑g θ (h a ,h k ))

[0056] Among them, g θ and f φ is a multi-layer perceptron network (Multi-Layer Perceptron, MLP), h a For question Q a The representation vector, h k The representation vector of a single question in the question set T; h k ∈H p or H q , H p , H q The set T p 、T q The set of representation vectors for the problem in .

[0057] In order to get h a and h k The interaction features between them are obtained by using the element-wise product method and h a and h k The corresponding position elements are multiplied to perform operations:

[0058]

[0059] Therefore, the function of the relational representation of the problem can be rewritten as:

[0060]

[0061] Among them, H r Get information about question Q through the RNs network a It uses the dot product operation of elements to obtain the similar semantic features of corresponding words between two sentences, and uses the RNs network structure to obtain the core interaction features of multiple relationship representations.

[0062] In order to reflect the implicit semantics of the matching relationship between different labels, this section extends the basic question relationship function to multi-relation semantic matching representation. Combined with the label of each question in the question set T, the following multi-label matching representation function is calculated:

[0063]

[0064] in, o∈|N r |, N r is the semantic vector set of multiple semantic matching problems under the rth relation, |N r | represents the semantic vector set N r The number of vectors in , R represents the category set of labels. Intuitively, the above formula encodes the label feature vectors of multiple sentences in a normalized manner.

[0065] Based on the representation vector set H p With H q Expand the matching representation function under the above multi-label to obtain:

[0066]

[0067] Among them, W pi and W qj are the learning weights under the two relations, b pi and b qj is the bias parameter; Each is a representation vector of the corresponding problem.

[0068] The element-wise product method is used to calculate the h a and Between a and The interaction characteristics between:

[0069]

[0070]

[0071] get:

[0072]

[0073] Among them, v r For question Q a The relationship perception representation vector of Q a The semantic matching representation of multiple relations is obtained through the RNs network.

[0074] c) Problem identification and evaluation layer.

[0075] The goal of the question recognition evaluation layer is to evaluate the language matching of each question pair. u With question Q a The representation vector of , and the question Q a The relation-aware representation vector connection is expressed as:

[0076]

[0077] Among them, h u 、h a 、v r Let Q be the problem u The representation vector of the question Q a The representation vector of the question Q a The relation-aware representation vector of .

[0078] Then, the verification problem pair Q is obtained by operating the RELU activation function and the sigmoid function. u With Q a The semantic relation R(Q u ,Q a ), expressed as:

[0079] o au =ReLU(W 1 z au +b 1 ),

[0080] R(Q u ,Q a )=σ(W 2 o au +b 2 )

[0081] Among them, au is the result of RELU activation function, σ(.) is sigmoid function, W 1 , W 2 , b 1 , b 2is the network parameter. The semantic relation R(Q u ,Q a ) is the recognition evaluation result and is the similarity label of the verification question pair.

[0082] 2) Model training.

[0083] In the embodiment of the present invention, all W and b parameter matrices or vectors (i.e., model parameters) involved in the above introduction in the neural network model based on relationship perception constructed in the previous part are trained, and the cross entropy loss function is used as the final optimization target. The loss function is expressed as:

[0084]

[0085] Among them, θ is the model parameter to be updated, y l is the true recognition label for the lth verification question pair, and N is the number of training instances (i.e., verification question pairs); represents the lth verification question pair, represents the recognition evaluation results of l verification question pairs. Considering the complexity of the model, the l2-norm is added as a training parameter, λ θ is the regularization hyperparameter.

[0086] By optimizing the above loss function, the optimal state can be learned. For example, in the entire training process, Adam is used as the optimizer, and the learning rate is 0.0005; in the training process, the obtained data is first divided into training data and question matching knowledge base according to the principle of 20%, 80%, and then in the training data, the training set, validation set and test set are divided according to the ratio of 60%, 20%, and 20%. The training set and validation set are used to optimize the parameters of the model, and the test set is used to verify the model.

[0087] Step 3: In the testing phase, for a given question pair, the trained similar question recognition model based on relation-aware neural network is used to perform recognition evaluation.

[0088] After completing the model training through the above steps, for a given new question, u’ With Q a’ , similarly, for question Q a’ Through the matching question knowledge base, multiple semantically related question sets T' under different matching relationships are searched, and after text content processing, they are input into the trained similar question recognition model based on relationship-aware neural network, and then processed in the above way. The similarity labels of the new question pairs are obtained, and the similarity recognition evaluation of the question pairs is realized.

[0089] In the above solution of the embodiment of the present invention, the message is based on the relationship-aware neural network similar question recognition model to identify similar questions of question pairs. Compared with the traditional model, it uses multiple semantic matching semantic relationship related information. For the prediction results, there is a certain improvement in multiple evaluation indicators.

[0090] Another embodiment of the present invention further provides a relationship-aware similar question identification and evaluation system, which is mainly used to implement the method provided in the above embodiment, such as Figure 2 As shown, the system mainly includes:

[0091] The data extraction unit is used to extract the matching semantically related question data under multiple semantic relationships from the data set, and each matching semantically related question data is text data, including the verification question pair Q u With Q a , and question Q a Corresponding to multiple semantically related question sets T under different matching relationships;

[0092] The model building and training unit is used to build a similar question recognition model based on a relation-aware neural network, jointly represent each matching semantically related question data, and use the obtained question Q a The relation-aware representation vector of the question Q u The representation vector is used for recognition evaluation. In the training phase, the loss function is constructed using the recognition evaluation results and the recognition labels to update the model parameters.

[0093] The recognition evaluation test unit is used to perform recognition evaluation on a given question pair using a trained similar question recognition model based on a relation-aware neural network.

[0094] Technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the system can be divided into different functional modules to complete all or part of the functions described above.

[0095] In addition, the specific technical details involved in each unit of the system have been introduced in detail in the previous method embodiment, so they will not be repeated here.

[0096] Another embodiment of the present invention further provides a processing device, such as Figure 3 As shown, it mainly includes: one or more processors; a memory for storing one or more programs; wherein, when the one or more programs are executed by the one or more processors, the one or more processors implement the methods provided in the aforementioned embodiments.

[0097] Furthermore, the processing device also includes at least one input device and at least one output device; in the processing device, the processor, memory, input device, and output device are connected via a bus.

[0098] In the embodiment of the present invention, the specific types of the memory, input device and output device are not limited; for example:

[0099] The input device may be a touch screen, an image acquisition device, a physical button or a mouse, etc.;

[0100] The output device may be a display terminal;

[0101] The memory may be a random access memory (RAM) or a non-volatile memory, such as a disk memory.

[0102] Another embodiment of the present invention further provides a readable storage medium storing a computer program, which implements the method provided in the above embodiment when the computer program is executed by a processor.

[0103] In the embodiment of the present invention, the readable storage medium is a computer-readable storage medium and can be set in the aforementioned processing device, for example, as a memory in the processing device. In addition, the readable storage medium can also be a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk, etc., which can store program codes.

[0104] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A relationship-aware similarity problem identification and evaluation method, characterized in that: include: When multiple semantic relations are extracted from the data set, the matching semantically related question data are all text data, including the verification question pair Q u With Q a , and question Q a Corresponding to multiple semantically related question sets T under different matching relationships; Construct a similar question recognition model based on relation-aware neural network, jointly represent each matching semantically related question data, and use the obtained question Q a The relation-aware representation vector of the question Q u The representation vector is used for recognition evaluation. In the training phase, the loss function is constructed using the recognition evaluation results and the recognition labels to update the model parameters. In the testing phase, for a given question pair, the trained similar question recognition model based on relation-aware neural network is used to perform recognition evaluation; The similar question recognition model based on relation-aware neural network includes: a question representation layer, a relation-aware representation layer and a question recognition evaluation layer; wherein: the question representation layer is used to extract each verification question for Q u With Q a The representation vector of , and the question Q a The representation vector of each question in a set of multiple semantically related questions under different matching relationships; the relationship-aware representation layer is used to combine the question Q a The semantic relationship with each question in the question set T is obtained to obtain question Q a The problem recognition evaluation layer is used to utilize the problem Q u With question Q a The representation vector of , and the question Q a The relation-aware representation vector of the verification question Q u With Q a Identify and evaluate the semantic relationship of The utilization problem Q u With question Q a The representation vector of , and the question Q a The relation-aware representation vector of the verification question Q u With Q a The semantic relationship recognition and evaluation includes: Question Q u With question Q a The representation vector of , and the question Q a The relation-aware representation vector connection is expressed as: Among them, h u 、h a 、v r Let Q be the problem u The representation vector of the question Q a The representation vector of the question Q a Relation-aware representation vector of The verification problem pair Q is obtained by operating the RELU activation function and the sigmoid function. u With Q a The semantic relation R(Q u ,Q a ), expressed as: a au =ReLU(W1z au +b1), R(Q u ,Q a )=σ(W2o au +b2) Among them, au is the result of the RELU activation function, σ(.) is the sigmoid function, W1, W2, b1, b2 are network parameters.

2. A relationship-aware similarity problem identification and evaluation method according to claim 1, characterized in that: In the case of extracting multiple semantic relationships from the data set, the matching semantically related question data includes: Extract matching related questions from the collected data. Each question forms a similar question matching relationship with other multiple questions. The similar question matching relationship includes two categories. The first category label is 1, indicating that the two questions have the same semantics and belong to a semantic matching relationship; the second category label is 0, indicating that the two questions have the same keywords but different semantics and belong to a semantic similarity relationship; The extracted questions are divided into two parts: the first part is used as the matching question knowledge base; the other part is used as the training data for the validation model; the question Q in the training data is extracted. u and a single question Q in the matching question knowledge base a Constitute a verification question pair, for question Q a , if any other question in the matching question knowledge base matches Q a If the classification label is 1, it will be put into the set T p , if the classification label is 0, put it into the set T q ; Set T = {T p ,T q } is the question Q a Corresponding to multiple sets of semantically related questions under different matching relationships; After that, each matching semantically related question data is segmented to obtain the verification question pair Q u With Q a The text content segmentation results of and the text content segmentation results of each question in the question set T.

3. The relationship-aware similarity problem identification and evaluation method according to claim 1, characterized in that: The question representation layer encodes each question independently and generates a representation vector for the question: h=Sentence-BERT(Q) Where h is the representation vector of question Q; Sentence-BERT represents the Sentence BERT model; For the verification problem, Q u With Q a Obtain the corresponding representation vector h through the problem representation layer u With h a ; For the problem set T = {T p ,T q } Obtain the semantic matching relationship vector set H through the question representation layer p and the vector set H of semantic similarity relations q ; Among them, the set T p With T q Questions and Q a The classification labels are 1 and 0 respectively. The classification label is 1, which means that the two questions have a semantic matching relationship, and the classification label is 0, which means that the two questions have a semantic similarity relationship.

4. The relationship-aware similarity problem identification and evaluation method according to claim 1, characterized in that: The combined problem Q a The semantic relationship with each question in the question set T is extracted to find the question Q a The steps of constructing a relation-aware representation vector include: Using RNs relational representation network to represent problem Q a The relationship with each problem in the problem set T is expressed as: Among them, g θ is a multi-layer perceptron network, represents h obtained by element-wise product method a With h k The interaction characteristics between a For question Q a The representation vector, h k The representation vector of a single question in the question set T; h k ∈H p or H q , H p , H q The set T p , T q The set of vectors representing the problem in , set T p Each question and question Q a The classification label of is 1, indicating that the two questions belong to a semantic matching relationship; the set T q Each question and question Q a The classification label of is 0, indicating that the two questions are semantically similar; Combined with the label of each question in the question set T, the following matching representation function under multiple labels is calculated: in, N r is the semantic vector set of multiple semantic matching problems under the rth relationship; |N r | represents the semantic vector set N r The number of vectors in, R represents the category set of labels; Based on the representation vector set H p With H q Expand the matching representation function under the above multi-label to obtain: Among them, W pi and W qj are the learning weights under the two relations, b pi and b qj is the bias parameter; Each is a representation vector of the corresponding problem; The element-wise product method is used to calculate the h a and Between a and The interaction characteristics between: get: Among them, v r For question Q a The relation-aware representation vector of .

5. A relationship-aware similarity problem identification and evaluation method according to any one of claims 1 to 4, characterized in that: The loss function is expressed as: Among them, y l is the true recognition label for the lth verification question pair, and N is the number of verification question pairs during training; represents the lth verification question pair, represents the recognition evaluation results of l verification question pairs, λ θ is the regularization hyperparameter, and θ is the model parameter to be updated.

6. A relationship-aware similarity problem identification and evaluation system, characterized in that: For implementing the method described in any one of claims 1 to 5, the system comprises: The data extraction unit is used to extract the matching semantically related question data under multiple semantic relationships from the data set, and each matching semantically related question data is text data, including the verification question pair Q u With Q a , Question Q a And question Q a Corresponding to multiple semantically related question sets T under different matching relationships; The model building and training unit is used to build a similar question recognition model based on a relation-aware neural network, jointly represent each matching semantically related question data, and use the obtained question Q a The relation-aware representation vector of the question Q u The representation vector is used for recognition evaluation. In the training phase, the loss function is constructed using the recognition evaluation results and the recognition labels to update the model parameters. The recognition evaluation test unit is used to perform recognition evaluation on a given question pair using a trained similar question recognition model based on a relation-aware neural network.

7. A processing device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.

8. A readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Semantic matching evaluation method for multiple related sentence pairs

    CN110765240A

  • Knowledge graph question-answering method and device

    CN111639171A