Information processing method and device, electronic equipment and storage medium

By detecting question information in a chat application, obtaining a set of feature information from consecutive chat messages sent by the same user, determining their sequential relationship, and combining and arranging them, the problem of missing or redundant answer information in chat messages is solved, and high-quality answer extraction is achieved.

CN117474015BActive Publication Date: 2026-11-24VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311247555.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-25
Publication Date
2026-11-24
Estimated Expiration
2043-09-25

AI Technical Summary

Technical Problem

In existing technologies, the extraction of question and answer information from chat messages is prone to omissions or redundancy, resulting in poor extraction quality.

Method used

By detecting question information in chat applications, obtaining chat messages within the first time interval after the message was sent, identifying multiple consecutive chat messages sent by the same user, using a set of feature information to determine whether there is a sequential relationship between these messages, and combining and formatting them to generate complete answer information.

Benefits of technology

It improves the quality of extracting answers from chat messages, avoids omissions or redundancy in answer information, and ensures the accuracy and completeness of the answers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117474015B_ABST
    Figure CN117474015B_ABST
Patent Text Reader

Abstract

This application discloses an information processing method, apparatus, electronic device, and storage medium, belonging to the field of information processing. The method includes: when a first chat message in a first session interface of a chat application is detected to contain first question information, obtaining chat messages within a first duration after the sending time of the first chat message from the first session interface; when N consecutive second chat messages sent by the same user are detected in the chat messages within the first duration, and the matching degree between the first second chat message and the first question information is greater than a preset first threshold, obtaining a set of feature information of the N second chat messages; N is an integer greater than or equal to 2; determining whether there is a sequential relationship among the N second chat messages based on the feature information set; and when there is a sequential relationship among the N second chat messages, performing combination and layout processing on the N second chat messages to obtain first answer information corresponding to the first question information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of information processing technology, and specifically relates to an information processing method, apparatus, electronic device and storage medium. Background Technology

[0002] With the continuous development of mobile internet technology, the types and functions of online applications are becoming increasingly diverse. Taking chat applications as an example, users can engage in one-on-one chats and group chats. At the same time, with the development of information technology, the demand for information transmission and sharing is increasing, leading to more and more user scenarios for group chats. Users can ask or answer questions in group chats, facilitating the transmission, exchange, and sharing of information.

[0003] Extracting and storing questions and answers from chat messages would undoubtedly facilitate users' access to answer information later on. However, current technologies often suffer from omissions or redundancy in answer information extraction, resulting in poor quality of the extracted answers. Summary of the Invention

[0004] The purpose of this application is to provide an information processing method, apparatus, electronic device, and storage medium that can improve the quality of extracting answers to questions from chat messages.

[0005] In a first aspect, embodiments of this application provide an information processing method, the method comprising:

[0006] If the first chat message in the first session interface of the chat application contains the first question information, the chat messages within the first duration after the sending time of the first chat message are obtained from the first session interface.

[0007] If the first chat message within the first duration includes N consecutive second chat messages sent by the same user, and the matching degree between the first second chat message and the first question information is greater than a preset first threshold, then the feature information set of the N second chat messages is obtained; N is an integer greater than or equal to 2.

[0008] Based on the set of feature information, determine whether there is a sequential relationship among the N second chat messages;

[0009] If there is a sequential relationship among the N second chat messages, the N second chat messages are combined and formatted to obtain the first answer information corresponding to the first question information.

[0010] Secondly, embodiments of this application provide an information processing apparatus, the apparatus comprising:

[0011] The first acquisition module is used to acquire chat messages within a first duration after the sending time of the first chat message from the first session interface when the first chat message of the first session interface of the chat application is detected to contain first question information.

[0012] The second acquisition module is used to acquire a set of feature information of the N second chat messages when it is detected that the chat messages within the first duration include N consecutive second chat messages sent by the same user, and the matching degree between the first second chat message and the first question information is greater than a preset first threshold; N is an integer greater than or equal to 2.

[0013] The determining module is used to determine whether there is a sequential relationship among the N second chat messages based on the set of feature information.

[0014] The combination module is used to combine and arrange the N second chat messages in a sequential manner to obtain the first answer information corresponding to the first question information, when there is a sequential relationship between the N second chat messages.

[0015] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0016] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0017] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0018] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.

[0019] In this embodiment, when it is detected that the first chat message in the first session interface of the chat application contains the first question information, the chat messages within a first duration after the sending time of the first chat message are obtained from the first session interface; when it is detected that the chat messages within the first duration include N consecutive second chat messages sent by the same user, and the matching degree between the first second chat message and the first question information is greater than a preset first threshold, a feature information set of N second chat messages is obtained; N is an integer greater than or equal to 2; since the feature information set contains the sentence form, semantic and other feature information of each second chat message, it can be accurately determined whether there is a sequential relationship between the N second chat messages according to the feature information set. If there is a sequential relationship between the N second chat messages, it means that the information contained in the N second chat messages belongs to the answer information of a question. Combining and formatting these N second chat messages to obtain the first answer information corresponding to the first question information can avoid the omission or redundancy of answer information and improve the quality of extracting the question answer from the chat message. Attached Figure Description

[0020] Figure 1 This is one of the flowcharts of an information processing method provided in the embodiments of this application;

[0021] Figure 2 This is one of the interface diagrams of the first session interface provided in the embodiments of this application;

[0022] Figure 3 This is a second schematic diagram of the first session interface provided in the embodiments of this application;

[0023] Figure 4 This is a second flowchart of an information processing method provided in an embodiment of this application;

[0024] Figure 5 This is a structural block diagram of an information processing device provided in an embodiment of this application;

[0025] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0026] Figure 7 This is a schematic diagram of the hardware structure of an electronic device that implements the various embodiments of this application. Detailed Implementation

[0027] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0028] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0029] This application provides an information processing method, apparatus, electronic device, and storage medium.

[0030] The information processing method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0031] It should be noted that the information processing method provided in this application is applicable to electronic devices. In practical applications, the electronic device may include mobile terminals such as smartphones, tablets, and personal digital assistants, or computer equipment, servers, etc. This application does not limit the scope of the application.

[0032] Figure 1 This is one of the flowcharts of an information processing method provided in the embodiments of this application, such as... Figure 1 As shown, the method may include the following steps: step 101, step 102, step 103, and step 104, wherein,

[0033] In step 101, if the first chat message of the first session interface of the chat application is found to contain the first question information, the chat messages within the first duration after the sending time of the first chat message are obtained from the first session interface.

[0034] In this embodiment of the application, the chat application can be an instant messaging application.

[0035] In this embodiment of the application, the information processing method can be adapted to a chat scenario between two users. In this case, the first conversation interface is a one-to-one chat conversation interface.

[0036] In this embodiment of the application, the information processing method can be adapted to chat scenarios between multiple users. In this case, the first conversation interface is a group chat conversation interface between multiple users.

[0037] In this embodiment of the application, the first chat message can be input into the question-and-answer intent model for processing to detect whether the first chat message contains the first question information. The question-and-answer intent model can be a BERT binary classification model.

[0038] In this embodiment of the application, when the first chat message in the first conversation interface contains the first question information, there are usually other chat messages that reply to the first question message. Therefore, based on the time when the first chat message is sent, according to a preset first duration (e.g., 10 minutes), all chat messages within the first duration after the time when the first chat message is sent are collected into a set, and the first answer information corresponding to the first question information is filtered from the chat messages in the set.

[0039] In this embodiment, for chat messages within a set, if there is exactly one chat message in the set, this chat message and the first chat message can be simultaneously input into the question-answer matching model for processing to obtain the matching degree between the first question information of this chat message and the first chat message. If the matching degree is greater than a preset threshold (e.g., 0.9), the information contained in this chat message is determined as the first answer information corresponding to the first question information. If there are multiple chat messages in the set, then for each user, it is determined whether all the multiple chat messages sent by the user are answer information in response to the first question information. If so, the multiple chat messages are combined and formatted to generate a complete answer information, and this answer information is determined as the first answer information corresponding to the first question information.

[0040] In step 102, if the chat messages within the first time period include N consecutive second chat messages sent by the same user, and the matching degree between the first second chat message and the first question information is greater than a preset first threshold, the feature information set of the N second chat messages is obtained; where N is an integer greater than or equal to 2.

[0041] In this embodiment of the application, if the chat messages within a first time period include N consecutive second chat messages sent by the same user, and the matching degree between the first second chat message and the first question information is greater than a preset first threshold, it indicates that the first answer information corresponding to the first question information is likely composed of the aforementioned N second chat messages. In order to determine whether the first answer information is composed of the aforementioned N second chat messages, it is necessary to obtain the feature information set of these N second chat messages. If it is determined from the feature information set that there is a sequential relationship between these N second chat messages, then it is considered that the first answer information is composed of the aforementioned N second chat messages. The aforementioned N second chat messages are combined and arranged to obtain the first answer information corresponding to the first question information.

[0042] In this embodiment of the application, the first second chat message and the first chat message can be simultaneously input into the question-answer matching model for processing to obtain the matching degree of the first question information between the first second chat message and the first chat message. The matching degree is a probability value between 0 and 1, which can measure whether an answer can answer the question well. The higher the value, the better the answer can answer the question.

[0043] In this embodiment of the application, the feature information set includes feature information of multiple dimensions such as the statement form and semantics of the above N second chat messages.

[0044] In step 103, based on the feature information set, it is determined whether there is a sequential relationship among the N second chat messages.

[0045] In this embodiment of the application, each feature in the feature information set can be used individually to determine whether there is a sequential relationship between the above N second chat messages; or, they can be used in combination to determine whether there is a sequential relationship between the above N second chat messages. This embodiment of the application does not limit this.

[0046] In step 104, if there is a sequential relationship among the N second chat messages, the N second chat messages are combined and formatted to obtain the first answer information corresponding to the first question information.

[0047] In this embodiment of the application, the combined typesetting process may include at least one of the following: merging, processing, and combining multiple chat messages into a coherent sentence.

[0048] As can be seen from the above embodiments, in this embodiment, when it is detected that the first chat message of the first session interface of the chat application contains the first question information, the chat messages within a first duration after the sending time of the first chat message are obtained from the first session interface; when it is detected that the chat messages within the first duration include N consecutive second chat messages sent by the same user, and the matching degree between the first second chat message and the first question information is greater than a preset first threshold, the feature information set of the N second chat messages is obtained; N is an integer greater than or equal to 2; since the feature information set contains the sentence form, semantic and other feature information of each second chat message, it can be accurately determined whether there is a sequential relationship between the N second chat messages according to the feature information set. If there is a sequential relationship between the N second chat messages, it means that the information contained in the N second chat messages belongs to the answer information of a question. Combining and formatting these N second chat messages to obtain the first answer information corresponding to the first question information can avoid the omission or redundancy of answer information and improve the quality of extracting the question answer from the chat message.

[0049] In some embodiments provided in this application, the above-mentioned feature information set may include at least one of the following feature information:

[0050] First feature information used to characterize whether there is a referencing relationship between second chat messages;

[0051] Second feature information used to characterize whether the statements in the second chat message are complete;

[0052] The third feature information used to characterize whether there are other chat messages sent by other users between the second chat messages;

[0053] The fourth feature information is used to characterize the matching degree between the second chat message and the first question information; wherein, the second chat message and the first chat message can be simultaneously input into the question-answer matching model for processing to obtain the matching degree between the second chat message and the first question information of the first chat message. The matching degree is a probability value between 0 and 1, which can measure whether an answer can answer the question well. The higher the value, the better the answer can answer the question.

[0054] The fifth feature information is used to characterize the fluency of each concatenated message after the first second chat message is concatenated with other second chat messages; wherein, the concatenated messages can be input into a language model for processing to obtain the fluency of the concatenated messages;

[0055] The sixth feature information is used to characterize the matching degree between each concatenated message and the first question information; wherein, the concatenated message and the first chat message can be simultaneously input into the question-answer matching model for processing to obtain the matching degree between the concatenated message and the first question information of the first chat message, and the matching degree is a probability value between 0 and 1;

[0056] The seventh feature information used to characterize the time difference between the sending time of the first second chat message and the sending time of the last second chat message;

[0057] The eighth feature information used to characterize the time difference between the sending time of the first second chat message and the sending time of the first chat message;

[0058] The ninth feature information used to characterize the overlap between words in the second chat message and words in the first chat message.

[0059] In this embodiment of the application, when determining the sequential relationship between N second chat messages, the importance of the above nine feature information in the feature information set is different, and the order of importance is as follows: first feature information > second feature information > third feature information = fourth feature information = fifth feature information = sixth feature information > seventh feature information = eighth feature information = ninth feature information.

[0060] Based on the importance of the feature information, it can be divided into three levels: Level 1, Level 2 and Level 3. Among them, Level 1 includes the first feature information and the second feature information. When one feature in Level 1 is stronger, it can be considered that there is a sequential relationship between N second chat messages.

[0061] Level 2 contains third, fourth, fifth, and sixth feature information. When at least two features in Level 2 are strong, it can be considered that there is a sequential relationship between N second chat messages.

[0062] Level 3 includes the seventh, eighth, and ninth feature information. The strength of each feature in Level 3 cannot be used to determine the presence or absence of a sequential relationship on its own. It needs to be combined with features from other levels and used in a weighted fusion method to determine the sequential relationship.

[0063] As can be seen, in this embodiment of the application, the feature information set may include feature information of multiple dimensions. When judging the sequential relationship between N second chat messages, one or more feature information can be selected from the feature information set for judgment. The judgment methods are diverse and highly flexible.

[0064] In some embodiments provided in this application, the feature information set includes: first feature information, and correspondingly, step 103 above may include the following steps: step 1031;

[0065] In step 1031, based on the first feature information, it is determined whether there is a reference relationship among the N second chat messages. If there is a reference relationship among the N second chat messages, it is determined that there is a sequential relationship among the N second chat messages.

[0066] In this embodiment, the system can detect whether a user has referenced a previous message based on the first feature information. If a user has referenced a previous message, it is assumed that there is a sequential relationship between the current second chat message and the referenced second chat message. The referenced operation is as follows: Figure 2 As shown, the first conversation interface 20 includes: a second chat message sent by user B, “You can try XXX, sometimes there may be a queue” 22, which quotes a previous second chat message sent by user B, “There are many, many themed restaurants” 21.

[0067] In one example, N is 3, and the N second chat messages are M1, M2, and M3, with M1 being the first second chat message. If M1, M2, and M3 have a reference relationship with each other, then it is determined that M1, M2, and M3 have a sequential relationship, satisfying the first-level judgment rule.

[0068] As can be seen, in this embodiment of the application, since the first feature information contains explicit reference relationships between chat messages, it is possible to accurately determine whether there is a sequential relationship between the N second chat messages based on the first feature information.

[0069] In some embodiments provided in this application, the feature information set includes: second feature information; correspondingly, step 103 above may include the following step: step 1032;

[0070] In step 1032, based on the second feature information, it is determined whether all other second chat messages besides the first second chat message are incomplete statements. If all other second chat messages besides the first second chat message are incomplete statements, then it is determined that there is a sequential relationship between the N second chat messages.

[0071] In this embodiment of the application, the sequential relationship can be determined first based on the first feature information. If the determination result is negative, the sequential relationship can be determined based on the second feature information. Alternatively, the sequential relationship can be determined directly based on the second feature information. This embodiment of the application does not limit this approach.

[0072] In this embodiment, it can be determined whether a chat message is an incomplete sentence by judging whether it lacks key components such as subject, predicate, or object. If it is missing, the chat message is determined to be an incomplete sentence. Alternatively, the chat message can be tagged with parts of speech. If the tagging results show that the key components such as subject, object, and modifier in the chat message are pronouns, it indicates that the chat message is highly likely to be related to the preceding information, and thus the chat message is determined to be an incomplete sentence.

[0073] In one example, such as Figure 3 As shown, the first conversation interface 30 includes: the first chat message 31 sent by A, denoted as Q1; and three second chat messages 32, 33, and 34 sent by B, denoted as M1, M2, and M3 respectively. Q1 contains the first question information, M2 lacks a subject, and M3 has a pronoun as its subject. All three are related to the preceding information, therefore, a sequential relationship exists between M1, M2, and M3. Corresponding to the previously mentioned method of using the Level 1 feature, it is assumed that a sequential relationship exists between the three second chat messages.

[0074] As can be seen, in this embodiment of the application, since the second feature information contains a relatively direct implicit reference relationship between chat messages, it is possible to accurately determine whether there is a sequential relationship between the above N second chat messages based on the second feature information.

[0075] In some embodiments provided in this application, the feature information set includes: third feature information and fourth feature information. Accordingly, step 103 above may include the following step: step 1033;

[0076] In step 1033, based on the third feature information, it is determined whether there are other chat messages sent by other users among the N second chat messages; and based on the fourth feature information, it is determined whether the matching degree between each second chat message and the first question information is greater than their respective threshold.

[0077] If there are no other chat messages sent by other users between the N second chat messages, and the matching degree between each second chat message and the first question information is greater than its corresponding threshold, then it is determined that there is a sequential relationship between the N second chat messages.

[0078] In this embodiment, the sequential relationship can be determined first based on the first feature information or the second feature information. If the determination results are both negative, the sequential relationship can be determined based on the third feature information and the fourth feature information. Alternatively, the sequential relationship can be determined directly based on the third feature information and the fourth feature information. This embodiment does not limit this approach.

[0079] In one example, the first chat message is Q1, N is 3, and the N second chat messages are M1, M2, and M3, with M1 being the first second chat message. If the analysis result of M2 shows that the second chat message is a complete expression, without missing key sentence components or with key components that are not pronouns, the difficulty of judging the sequential relationship between the second chat messages increases, requiring a strategy combination. Specifically, if no other users' chat messages are inserted between the three second chat messages, it is considered that these three second chat messages are coherent and have a high probability of having a sequential relationship. In this case, further judgment can be made: combine the second chat messages with the first chat messages to form question-answer pairs, denoted as Q1+M1, Q2+M2, and Q3+M3. Input the combined question-answer pairs into the question-answer matching model for processing. If the scores of these three question-answer pairs are all higher than their respective preset thresholds, it is considered that there is a sequential relationship between M1, M2, and M3. Since the scenario is relatively simple and no other users' messages are inserted between the messages, the preset threshold value can be uniformly lowered to below 0.8 points. Generally, messages further removed from the problem contain less information. Therefore, the preset thresholds for different messages are different, decreasing in order of distance from the problem; the closer the message is to the problem, the higher the threshold, and vice versa (preset threshold order: M1>M2>M3). Corresponding to the usage of the level two features mentioned earlier, it is assumed that there is a sequential relationship between the three second chat messages mentioned above.

[0080] As can be seen, in this embodiment of the application, since the combination of the third feature information and the fourth feature information contains implicit reference relationships between chat messages, it is possible to accurately determine whether there is a sequential relationship between the above N second chat messages based on the third feature information and the fourth feature information.

[0081] In some embodiments provided in this application, the feature information set includes: fifth feature information and sixth feature information. Accordingly, step 103 above may include the following step: step 1034;

[0082] In step 1034, based on the fifth feature information, it is determined whether the fluency of each concatenated message after the first second chat message is concatenated with other second chat messages is distributed within the same range; and based on the sixth feature information, it is determined whether the matching degree between each concatenated message and the first question information is greater than the preset second threshold.

[0083] If the fluency of each concatenated message after the first second chat message is concatenated with other second chat messages is distributed within the same preset range, and the matching degree between each concatenated message and the first question information is greater than the preset second threshold, then it is determined that there is a sequential relationship between the N second chat messages.

[0084] In this embodiment, the sequential relationship can be determined first based on the first feature information or the second feature information. If the determination result is negative, the sequential relationship can be determined based on the third feature information and the fourth feature information. If the determination result is still negative, the sequential relationship can be determined based on the fifth feature information and the sixth feature information. Alternatively, the sequential relationship can be determined directly based on the fifth feature information and the sixth feature information. This embodiment does not limit this approach.

[0085] In one example, the first chat message is Q1, N is 3, and the N second chat messages are M1, M2, and M3, with M1 being the first second chat message. If other chat messages are inserted between the three second chat messages, the judgment of the sequence relationship becomes more stringent, requiring the association of features between M1, M2, and M3. The judgment of the sequence relationship is carried out in two steps. First, it is calculated whether the fluency of the combination of the three second chat messages is distributed in the same interval. Specifically, M1 and M2 are concatenated end to end to obtain the concatenated message, denoted as M1-2, and M1, M2, and M3 are concatenated end to end to obtain the concatenated message, denoted as M1-3. Fluency is calculated for M1, M1-2, and M1-3 respectively. The fluency calculation is performed through a language model. The input of the language model is a sentence, and the output is the fluency, which is a probability value of 0-1, reflecting whether a sentence is fluent. The higher the value, the more fluent the sentence is.

[0086] Using the fluency result of M1 as a benchmark, for example, if the fluency result of M1 is r1, set the result range [r1-0.2, 1], with the value of the left interval being r1-0.2 and the value of the right interval being 1. If the fluency results of M1-2 and M1-3 fluctuate within this range, it means that M1-2 and M1-3 are similar in fluency to M1. It is very likely that M2 and M3 are continuations or supplements to M1, expressing the same thing. Therefore, it is believed that M2 and M3 are likely to have a sequential relationship with M1. At this time, the next step is to input Q1+M1, Q1+M1-2, and Q1+M1-3 into the question-answer matching model for processing. Since the fluency has already been calculated, the preset threshold for the question-answer matching model result can be relatively lowered to below 0.6 points. If the matching degree of Q1+M1, Q1+M1-2, and Q1+M1-3 is higher than the unified preset threshold, then it is finally believed that M1, M2, and M3 have a sequential relationship. Based on the usage of the Level 2 feature mentioned earlier, it is believed that there is a sequential relationship between the above three chat messages.

[0087] As can be seen, in this embodiment of the application, since the combination of the fifth feature information and the sixth feature information contains an implicit reference relationship between chat messages, it is possible to accurately determine whether there is a sequential relationship between the above N second chat messages based on the fifth feature information and the sixth feature information.

[0088] In some embodiments provided in this application, the feature information set includes: first feature information, second feature information, third feature information, fourth feature information, fifth feature information, sixth feature information, seventh feature information, eighth feature information and ninth feature information. Accordingly, the above step 103 may include the following steps: step 1035, step 1036 and step 1037.

[0089] In step 1035, based on the correspondence between feature information, feature values ​​and weight coefficients, the following are determined: the first feature value and first weight coefficient corresponding to the first feature information; the second feature value and second weight coefficient corresponding to the second feature information; the third feature value and third weight coefficient corresponding to the third feature information; the fourth feature value and fourth weight coefficient corresponding to the fourth feature information; the fifth feature value and fifth weight coefficient corresponding to the fifth feature information; the sixth feature value and sixth weight coefficient corresponding to the sixth feature information; the seventh feature value and seventh weight coefficient corresponding to the seventh feature information; the eighth feature value and eighth weight coefficient corresponding to the eighth feature information; and the ninth feature value and ninth weight coefficient corresponding to the ninth feature information.

[0090] In this embodiment, the sequential relationship can be determined first based on the first feature information or the second feature information. If the determination result is negative, the sequential relationship can be determined based on the third feature information and the fourth feature information. If the determination result is still negative, the sequential relationship can be determined based on the fifth feature information and the sixth feature information. If the determination result is still negative, the sequential relationship can be determined by combining the first feature information to the ninth feature information. Alternatively, the sequential relationship can be determined by directly combining the first feature information to the ninth feature information. This embodiment does not limit this approach.

[0091] For example, the correspondence between feature information and feature values ​​and weight coefficients can be as follows:

[0092] Based on the first feature information, the first feature value can be determined and denoted as t1. When there is no reference relationship between the second chat messages, t1 takes the value of 0, otherwise, t1 takes the value of 1. The weight coefficient of t1 is w1.

[0093] Based on the second feature information, the second feature value can be determined and denoted as t2. When the second chat message that is not the first one is a relatively complete sentence, t2 takes the value of 0, otherwise t2 takes the value of 0. The weight coefficient of t2 is w2.

[0094] Based on the third feature information, the third feature value can be determined and denoted as t3. When there are no other users' chat messages in the second chat message, t3 takes the value of 1, otherwise t3 takes the value of 0. The weight coefficient of t3 is w3.

[0095] Based on the fourth feature information, the fourth feature value can be determined, denoted as t4 and t5. When the matching degree between each second chat message and the first question information is higher than their respective thresholds, t4 takes the value of 1; otherwise, t4 takes the value of 0. The weight coefficient of t4 is w4. t5 is the maximum value among the matching degrees between each second chat message and the first question information. The weight coefficient of t5 is w5.

[0096] Based on the fifth feature information, the fifth feature values ​​can be determined, denoted as t6 and t7. When the fluency of the sentences combined between the second chat messages is distributed in the same interval, t6 takes the value of 1, otherwise t6 takes the value of 0, and the weight coefficient of t6 is w6; t7 is the normalized value of the maximum fluency of the sentences combined between the second chat messages, and the weight coefficient of t7 is w7.

[0097] Based on the sixth feature information, the sixth feature value can be determined and denoted as t8. When the matching degree between each spliced ​​message and the first problem information is higher than the corresponding threshold, t8 takes the value of 1; otherwise, t8 takes the value of 0. The weight coefficient of t8 is w8.

[0098] Based on the seventh feature information, the seventh feature value can be determined and denoted as t9. The value of t9 is the normalized value of the time difference between the sending time of the first second chat message and the sending time of the last second chat message. The weight coefficient of t9 is w9.

[0099] Based on the eighth feature information, the eighth feature value can be determined and denoted as t10. Here, t10 is the normalized value of the time difference between the sending time of the first second chat message and the sending time of the first chat message, and the weight coefficient of t10 is w10.

[0100] Based on the ninth feature information, the ninth feature value can be determined, denoted as t11. Here, t11 is the normalized value of the number of words in the second chat message that overlap with the number of words in the first chat message, and the weight coefficient of t11 is w11.

[0101] In step 1036, the first to ninth feature values ​​are weighted and summed according to the first to ninth weight coefficients to obtain the comprehensive score value.

[0102] In step 1037, it is determined whether the comprehensive score value is greater than the preset third threshold. If the comprehensive score value is greater than the preset third threshold, it is determined that there is a sequential relationship between the N second chat messages.

[0103] As can be seen, in this embodiment of the application, multiple dimensions of feature information of the second chat messages can be combined to determine whether there is a sequential relationship between the second chat messages, which can avoid misjudgment and the judgment result is more accurate.

[0104] In some embodiments provided in this application, considering that multiple chat messages sent by the same user in a short period of time may be multimodal, that is, chat messages may not only consist of text information, but may also contain images, videos and voice information. Accordingly, when the second chat message contains non-text format information, the non-text format information in the second chat message can be converted into text information first, and then the sequential relationship can be determined.

[0105] In this embodiment of the application, when the second chat message consists of text and images, text can be extracted from the image using optical character recognition technology, and the subject in the image can be identified using image recognition technology. The outputs of the two tasks are then fused, and the image information is converted into text information.

[0106] In this embodiment of the application, when the second chat message consists of text and voice, it can be converted into text information through voice recognition technology.

[0107] As can be seen, the embodiments of this application are applicable to multimodal chat message scenarios, which can make full use of various types of chat messages and avoid wasting chat message resources.

[0108] In some embodiments provided in this application, when a chat message containing a multi-turn question-and-answer dialogue is detected in the first session interface of a chat application, the multi-turn questions can be rewritten to improve the question information.

[0109] In this embodiment of the application, chat messages within a first time period can be identified in multiple rounds. When it is detected that the questioners of consecutive question-answer pairs are all associated with the same user, it is considered that multiple rounds of question-answering have been triggered.

[0110] In this embodiment of the application, for chat messages with multiple rounds of question-and-answer sessions, if the chat message contains question information and meets preset conditions, it is determined that the chat message needs to be rewritten with multiple rounds of questions. The preset conditions may include at least one of the following: statements in the message begin with a pronoun, statements in the message end with a pronoun, and statements in the message are incomplete.

[0111] In this embodiment of the application, the rewrite operation may include at least one of the following: referential resolution or slot filling.

[0112] As can be seen, in this embodiment of the application, the question information in multi-turn chat messages can be rewritten to improve the question information.

[0113] In some embodiments provided in this application, the following methods may be used: Figure 1 The information processing method in the illustrated embodiment determines the question and answer information in the historical chat messages of the chat application, combines the question and answer information into "question-answer pairs", and finally obtains multiple question-answer pairs. A question-answer pair retrieval library containing the above multiple question-answer pairs is constructed, so that when using the chat application, users can search for answer information based on the question-answer pair retrieval library.

[0114] Specifically, when storing question-answer pairs in the question-answer pair retrieval library, the number of question-answer pairs constructed in the group chat can be detected in real time. Based on the size of the number of question-answer pairs, it can be selected whether an index needs to be built. If the number of question-answer pairs is small, no index needs to be built. If the number of question-answer pairs is large, an index is built to speed up the retrieval and sorting process.

[0115] For example, if the index is an Elasticsearch (ES) index with a preset threshold of 1000, when the number of question-answer pairs is greater than or equal to 1000, an ES index is created for the question-answer pairs retrieved from the database; when the number of question-answer pairs is less than 1000, no ES index is created for the question-answer pairs retrieved from the database, and they are stored as key-value pairs.

[0116] Figure 4 This is a second flowchart of an information processing method provided in this application embodiment, used for searching answer information based on a question-and-answer pair retrieval database. The question-and-answer pair retrieval database is based on... Figure 1 The question-answer information determined by the question-answer information determination method in the illustrated embodiment is constructed as follows: Figure 4 As shown, the method may include the following steps: step 401, step 402, and step 403, wherein,

[0117] In step 401, when it is detected that the user has entered the second question information in the input box of the second session interface of the chat application, the second question information is encoded to obtain the first text vector.

[0118] In this embodiment of the application, the second chat interface and the first chat interface can be the same chat interface, or the second chat interface and the first chat interface can be two different chat interface.

[0119] In this embodiment of the application, when the second conversation interface and the first conversation interface are two different chat conversation interfaces, the first conversation interface can be a one-to-one chat conversation interface, or the first conversation interface can be a group chat conversation interface between multiple users.

[0120] In this embodiment of the application, when a user has a question that needs to be asked on the second conversation interface, the user can enter the second question information they want to ask in the input box of the second conversation interface. The user only needs to enter the second question information, without having to send the second question information to the second conversation interface for display.

[0121] In this embodiment, considering that chat applications contain a wealth of historical chat messages, which may include a large number of question-and-answer pairs, when a user wants to ask a question in the chat session, it is very likely that the question has already been answered in historical chat messages. Therefore, it is possible to adopt... Figure 1 The information processing method in the illustrated embodiment identifies and extracts question-and-answer pairs in real time based on the dialogue content in historical chat messages, and establishes a question-and-answer pair retrieval library for question-and-answer pair storage. In addition, the question information in the question-and-answer pairs to be added to the library is encoded and stored using a bertencoding model. That is, when storing question-and-answer pairs, the question information will additionally store its vectorized content to facilitate subsequent retrieval of the question-and-answer pair retrieval library.

[0122] In this embodiment of the application, since the question-and-answer pair retrieval library contains text vectors of questions, it is also necessary to encode the second question information input by the user and convert the second question information into a first text vector. The encoding method can adopt a vectorization (bertencoding) model to facilitate retrieval of the question-and-answer pair retrieval library.

[0123] In step 402, based on the second question information and the first text vector, the question-answer pair retrieval database is traversed to obtain the second answer information corresponding to the second question information.

[0124] Unlike the usual approach of searching a question-and-answer pair retrieval database based solely on question information, this embodiment of the application, when searching the question-and-answer pair retrieval database, not only considers the question information but also combines the text vector of that question information to perform a semantic-level retrieval of the question-and-answer pair retrieval database. Since semantic-level retrieval can solve the problem of not being able to find relevant content in chat records due to different wording, the retrieval results are more comprehensive and accurate.

[0125] In step 403, the second answer information is displayed.

[0126] In this embodiment of the application, after finding the second answer information corresponding to the second question information from the question-answer pair retrieval database, the second answer information can be displayed to the user.

[0127] In some embodiments, step 403 above may include the following step: step 4031;

[0128] In step 4031, a first floating window is overlaid on the second session interface, wherein the first floating window contains the second answer information.

[0129] In this embodiment, the second answer information is displayed to the user in the form of a floating window. The user can choose to ignore it and continue asking questions, or choose to stop asking questions.

[0130] In some embodiments, step 403 above may include the following step: step 4032;

[0131] In step 4032, if the electronic device includes multiple displays and the second session interface is displayed on the first display of the electronic device, a second floating window is displayed on the second display; wherein the second floating window contains second answer information, and the electronic device is a foldable screen device or a retractable screen device.

[0132] In this embodiment of the application, when the amount of data of the second answer information is large, the second answer information can be fully displayed to the user through another display screen, such as another display screen of a foldable screen device, or the telescopic screen of a telescopic screen device.

[0133] As can be seen, in this embodiment of the application, the output method of the second answer information can be selected according to the amount of data of the second answer information, which provides high flexibility.

[0134] As can be seen, in this embodiment of the application, when a user has a question to ask in the chat session interface, they can enter the question in the input box of the chat session interface. The system will combine the text information and vector information of the question to perform a semantic-level search of the question-and-answer pair retrieval library and output the search results to the user. On the one hand, since the user only needs to enter the specific question information and does not need to manually search the historical chat history, the search operation is relatively simple. On the other hand, since the text information and vector information of the question contain the multi-dimensional semantic features of the question, and the semantic-level search can solve the situation where the relevant content cannot be found in the search of chat history due to different wording, it can avoid information omission, improve information search efficiency, and improve the utilization rate of historical chat messages.

[0135] In some embodiments provided in this application, when the first session interface and the second session interface are the same chat session interface, the question-answer pairs in the question-answer pair retrieval library are generated based on historical chat messages in the second session interface; the provided information retrieval method may also include the following steps: when the message sending frequency of the second session interface is detected to be lower than a preset frequency threshold, the question-answer pair retrieval library is deleted.

[0136] In this embodiment of the application, when it is detected that the user chat status corresponding to the second conversation interface is inactive within a certain period of time, the question-and-answer pair retrieval database may not be useful because the question-and-answer pair has a certain time sensitivity. Therefore, the question-and-answer pair retrieval database can be deleted to free up a certain amount of storage space.

[0137] In some embodiments provided in this application, step 402 may include the following steps: step 4021, step 4022 and step 4023;

[0138] In step 4021, it is determined whether the question-answer pairs in the question-answer pair retrieval library are stored based on an index. If so, multiple candidate question information are selected from the question-answer pair retrieval library based on the second question information and the index; otherwise, all question information in the question-answer pair retrieval library is determined as candidate question information.

[0139] In this embodiment, when a user inputs question information in a chat scenario, the user's question information is obtained in real time, and a semantic-level search is performed in the question-and-answer pair retrieval library. If the question-and-answer pairs in the retrieval library are stored based on an index, that is, if the number of question-and-answer pairs in the retrieval library is very large, in order to reduce the amount of data retrieved and thus improve retrieval efficiency, multiple candidate question information is first filtered from the question-and-answer pair retrieval library based on the second question information and the index. In other words, the question-and-answer pair retrieval library is coarsely filtered. For example, if the question-and-answer pair retrieval library contains 10,000 question-and-answer pairs, corresponding to 10,000 question information, 1,000 question information are first filtered from the question-and-answer pair retrieval library as candidate question information based on the second question information and the index.

[0140] In this embodiment of the application, if the question-answer pairs in the question-answer pair retrieval library are not stored based on an index, that is, if the number of question-answer pairs in the question-answer pair retrieval library is relatively small, then all the question information in the question-answer pair retrieval library is directly determined as candidate question information. For example, if the question-answer pair retrieval library contains 800 question-answer pairs, corresponding to 800 question information entries, these 800 question information entries are used as candidate question information entries.

[0141] In step 4022, based on the second question information and the first text vector, a third question information that matches the second question information is determined from multiple candidate question information.

[0142] In this embodiment of the application, based on the second question information and the first text vector, multiple candidate question information are finely searched, and the third question information that matches the second question information is accurately determined from the candidate question information.

[0143] In step 4023, the answer information corresponding to the third question information in the question-answer pair retrieval database is determined as the second answer information corresponding to the second question information.

[0144] As can be seen, in this embodiment of the application, the retrieval method of the question-answer pair retrieval library can be determined according to the number of question-answer pairs in the question-answer pair retrieval library. If there are many question-answer pairs in the question-answer pair retrieval library, the question information is first coarsely filtered based on the index, and then the candidate question information selected by coarse filtering is finely retrieved. If there are few question-answer pairs in the question-answer pair retrieval library, the question-answer pair retrieval library is directly finely retrieved, thereby improving the retrieval efficiency.

[0145] In some embodiments provided in this application, in order to improve the flexibility of retrieval and sorting, a two-way sorting method can be adopted, one way is to sort based on question information and the other way is to sort based on vector information. Accordingly, the above step 4022 may include the following steps: step 40221, step 40222 and step 40223.

[0146] In step 40221, the text similarity value between the second question information and each candidate question information is calculated.

[0147] In this embodiment, a semantic similarity model can be used to calculate the text similarity value between the second question information and each candidate question information. The semantic similarity model is an end-to-end model, meaning the model input is a question pair, which consists of a user question and candidate historical questions from a database. After traversing all candidate questions, several question pairs are formed and input into the semantic similarity model. The semantic similarity model directly outputs the text similarity value of the question pair. This text similarity value is used to rank all candidate questions. The higher the text similarity value, the higher the matching degree between the user question and the candidate questions in the database, and the closer the semantics of the two questions.

[0148] In this embodiment of the application, considering the special characteristics of group chat scenarios, the question-answer pair retrieval database is relatively small, and the semantic similarity model can adopt a BERT model with fewer layers after distillation to improve retrieval speed and performance.

[0149] In step 40222, the vector similarity value between the first text vector of the second question information and the text vector of each candidate question information is calculated.

[0150] In this embodiment, a vector similarity model can be used to calculate the cosine similarity value between the first text vector of the second question information and the text vectors of each candidate question information, and use the cosine similarity value as the vector similarity value. The vector similarity value is used to rank all candidate questions; the larger the vector similarity value, the higher the matching degree between the user's question and the candidate questions in the database, and the closer the semantics of the two questions.

[0151] In this embodiment of the application, considering the special nature of the chat scenario, the question-and-answer dialogue is relatively standardized and the requirement for model capacity is low. The vector similarity model can adopt a distilled four-layer transformer model, which saves computing resources and improves performance with almost no loss of effect.

[0152] In step 40223, based on the text similarity values ​​and vector similarity values, a third question information that matches the second question information is determined from multiple candidate question information.

[0153] In some embodiments, the similarity values ​​of both text similarity and vector similarity can be combined to determine the third question information that matches the second question information from multiple candidate question information.

[0154] For example, based on the text similarity values, all candidate question information is sorted in descending order to obtain the first sorting result; based on the vector similarity values, all candidate question information is sorted in descending order to obtain the second sorting result; combining the first and second sorting results, the third question information that matches the second question information is determined from multiple candidate question information.

[0155] In some embodiments, in order to improve the response speed to user-submitted questions and answers, two sorting operations can be performed concurrently, and the sorting result of the one with faster computation speed can be determined as the final sorting result.

[0156] For example, based on the text similarity values, all candidate question information is sorted in descending order to obtain the first sorting result; based on the vector similarity values, all candidate question information is sorted in descending order to obtain the second sorting result; the first sorting result is calculated faster, so it is determined as the final sorting result, and the question information ranked first in the first sorting result is determined as the third question information that matches the second question information.

[0157] As can be seen, in this embodiment of the application, the similarity values ​​of text similarity and vector similarity can be referenced to determine the third question information that matches the second question information from multiple candidate question information, thereby improving the accuracy of the retrieval results.

[0158] In summary, the embodiments of this application can help users improve their chat experience and increase the efficiency and utilization of information transmission. When there are many chat messages with varying information quality, the system extracts question-and-answer pairs from the chat messages, processes and combines the information into text, and provides users with a semantic-level retrieval method. This allows users to easily search for the content they need in historical chat messages, bringing convenience, maximizing information utilization, and reducing communication costs.

[0159] The information processing method provided in this application can be executed by an information processing device. This application uses an information processing device executing the information processing method as an example to illustrate the information processing device provided in this application.

[0160] Figure 5 This is a structural block diagram of an information processing device provided in an embodiment of this application, such as... Figure 5 As shown, the information processing device 500 may include: a first acquisition module 501, a second acquisition module 502, a determination module 503, and a combination module 504;

[0161] The first acquisition module 501 is used to acquire chat messages within a first duration after the sending time of the first chat message from the first session interface when the first chat message of the first session interface of the chat application is detected to contain first question information.

[0162] The second acquisition module 502 is used to acquire a set of feature information of the N second chat messages when it is detected that the chat messages within the first duration include N consecutive second chat messages sent by the same user, and the matching degree between the first second chat message and the first question information is greater than a preset first threshold; N is an integer greater than or equal to 2.

[0163] The determining module 503 is used to determine whether there is a sequential relationship among the N second chat messages based on the set of feature information.

[0164] The combination module 504 is used to combine and arrange the N second chat messages in a sequential manner to obtain the first answer information corresponding to the first question information, when there is a sequential relationship between the N second chat messages.

[0165] As can be seen from the above embodiments, in this embodiment, when it is detected that the first chat message of the first session interface of the chat application contains the first question information, the chat messages within a first duration after the sending time of the first chat message are obtained from the first session interface; when it is detected that the chat messages within the first duration include N consecutive second chat messages sent by the same user, and the matching degree between the first second chat message and the first question information is greater than a preset first threshold, the feature information set of the N second chat messages is obtained; N is an integer greater than or equal to 2; since the feature information set contains the sentence form, semantic and other feature information of each second chat message, it can be accurately determined whether there is a sequential relationship between the N second chat messages according to the feature information set. If there is a sequential relationship between the N second chat messages, it means that the information contained in the N second chat messages belongs to the answer information of a question. Combining and formatting these N second chat messages to obtain the first answer information corresponding to the first question information can avoid the omission or redundancy of answer information and improve the quality of extracting the question answer from the chat message.

[0166] Optionally, as an embodiment, the feature information set may include at least one of the following:

[0167] First feature information used to characterize whether there is a referencing relationship between second chat messages;

[0168] Second feature information used to characterize whether the statements in the second chat message are complete;

[0169] Third feature information used to characterize whether there are other user messages between the second chat messages;

[0170] Fourth feature information used to characterize the matching degree between the second chat message and the first question information;

[0171] The fifth feature information used to characterize the fluency of each concatenated message after the first second chat message is concatenated with other second chat messages;

[0172] The sixth feature information used to characterize the matching degree between each spliced ​​message and the first problem information;

[0173] The seventh feature information used to characterize the time difference between the sending time of the first second chat message and the sending time of the last second chat message;

[0174] The eighth feature information used to characterize the time difference between the sending time of the first second chat message and the sending time of the first chat message;

[0175] The ninth feature information used to characterize the overlap between words in the second chat message and words in the first chat message.

[0176] Optionally, as an embodiment, the feature information set includes: the first feature information;

[0177] The determining module 503 may include:

[0178] The first determining submodule is used to determine whether there is a reference relationship among the N second chat messages based on the first feature information. If there is a reference relationship among the N second chat messages, then it is determined that there is a sequential relationship among the N second chat messages.

[0179] Optionally, as an embodiment, the feature information set includes: the second feature information;

[0180] The determining module 503 may include:

[0181] The second determining submodule is used to determine, based on the second feature information, whether all other second chat messages besides the first second chat message are incomplete statements. If all other second chat messages besides the first second chat message are incomplete statements, then it is determined that there is a sequential relationship among the N second chat messages.

[0182] Optionally, as an embodiment, the feature information set includes: the third feature information and the fourth feature information.

[0183] The determining module 503 may include:

[0184] The third determining submodule is used to determine, based on the third feature information, whether there are other chat messages sent by other users among the N second chat messages; and based on the fourth feature information, whether the matching degree between each second chat message and the first question information is greater than their respective corresponding threshold.

[0185] If there are no other chat messages sent by other users between the N second chat messages, and the matching degree between each second chat message and the first question information is greater than its corresponding threshold, then it is determined that there is a sequential relationship between the N second chat messages.

[0186] Optionally, as an embodiment, the feature information set includes: the fifth feature information and the sixth feature information;

[0187] The determining module 503 may include:

[0188] The fourth determining submodule is used to determine, based on the fifth feature information, whether the fluency of each concatenated message after the first second chat message is concatenated with other second chat messages is distributed within the same range; and based on the sixth feature information, whether the matching degree between each concatenated message and the first question information is greater than a preset second threshold.

[0189] If the fluency of each concatenated message after the first second chat message is concatenated with other second chat messages is distributed within the same preset range, and the matching degree between each concatenated message and the first question information is greater than a preset second threshold, then it is determined that there is a sequential relationship between the N second chat messages.

[0190] Optionally, as an embodiment, the feature information set includes: the first feature information, the second feature information, the third feature information, the fourth feature information, the fifth feature information, the sixth feature information, the seventh feature information, the eighth feature information, and the ninth feature information;

[0191] The determining module 503 may include:

[0192] The fifth determining submodule is used to determine, based on the correspondence between feature information, feature value and weight coefficient, the first feature value and first weight coefficient corresponding to the first feature information, the second feature value and second weight coefficient corresponding to the second feature information, the third feature value and third weight coefficient corresponding to the third feature information, the fourth feature value and fourth weight coefficient corresponding to the fourth feature information, the fifth feature value and fifth weight coefficient corresponding to the fifth feature information, the sixth feature value and sixth weight coefficient corresponding to the sixth feature information, the seventh feature value and seventh weight coefficient corresponding to the seventh feature information, the eighth feature value and eighth weight coefficient corresponding to the eighth feature information, and the ninth feature value and ninth weight coefficient corresponding to the ninth feature information.

[0193] Based on the first weight coefficient to the ninth weight coefficient, the first feature value to the ninth feature value are weighted and summed to obtain the comprehensive score value;

[0194] Determine whether the comprehensive score value is greater than a preset third threshold. If so, determine whether there is a sequential relationship among the N second chat messages.

[0195] The information processing device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.

[0196] The information processing device in this application embodiment can be a device with an operating system. The operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system.

[0197] The information processing apparatus provided in this application embodiment can implement the various processes implemented in the above information processing method embodiment, and will not be described again here to avoid repetition.

[0198] Optionally, such as Figure 6 As shown, this application embodiment also provides an electronic device 600, including a processor 601 and a memory 602. The memory 602 stores a program or instructions that can run on the processor 601. When the program or instructions are executed by the processor 601, they implement the various steps of the above-described information processing method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0199] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0200] Figure 7 This is a schematic diagram of the hardware structure of an electronic device that implements the various embodiments of this application.

[0201] The electronic device 700 includes, but is not limited to, components such as: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, and processor 710.

[0202] Those skilled in the art will understand that the electronic device 700 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 710 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 7 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0203] The processor 710 is configured to, when detecting that a first chat message in a first chat interface of a chat application contains first question information, obtain chat messages within a first duration after the sending time of the first chat message from the first chat interface; when detecting that the chat messages within the first duration include N consecutive second chat messages sent by the same user, and the matching degree between the first second chat message and the first question information is greater than a preset first threshold, obtain a set of feature information of the N second chat messages; N is an integer greater than or equal to 2; determine whether there is a sequential relationship among the N second chat messages based on the set of feature information; and, if there is a sequential relationship among the N second chat messages, perform combination and layout processing on the N second chat messages to obtain first answer information corresponding to the first question information.

[0204] As can be seen, in this embodiment of the application, when it is detected that the first chat message of the first session interface of the chat application contains the first question information, the chat messages within a first duration after the sending time of the first chat message are obtained from the first session interface; when it is detected that the chat messages within the first duration include N consecutive second chat messages sent by the same user, and the matching degree between the first second chat message and the first question information is greater than a preset first threshold, the feature information set of the N second chat messages is obtained; N is an integer greater than or equal to 2; since the feature information set contains the sentence form, semantic and other feature information of each second chat message, it can be accurately determined whether there is a sequential relationship between the N second chat messages according to the feature information set. If there is a sequential relationship between the N second chat messages, it means that the information contained in the N second chat messages belongs to the answer information of a question. By combining and formatting these N second chat messages, the first answer information corresponding to the first question information can be obtained, which can avoid the omission or redundancy of answer information and improve the quality of extracting the question answer from the chat message.

[0205] Optionally, as an embodiment, the feature information set includes at least one of the following features:

[0206] First feature information used to characterize whether there is a referencing relationship between second chat messages;

[0207] Second feature information used to characterize whether the statements in the second chat message are complete;

[0208] The third feature information used to characterize whether there are other chat messages sent by other users between the second chat messages;

[0209] Fourth feature information used to characterize the matching degree between the second chat message and the first question information;

[0210] The fifth feature information used to characterize the fluency of each concatenated message after the first second chat message is concatenated with other second chat messages;

[0211] The sixth feature information used to characterize the matching degree between each spliced ​​message and the first problem information;

[0212] The seventh feature information used to characterize the time difference between the sending time of the first second chat message and the sending time of the last second chat message;

[0213] The eighth feature information used to characterize the time difference between the sending time of the first second chat message and the sending time of the first chat message;

[0214] The ninth feature information used to characterize the overlap between words in the second chat message and words in the first chat message.

[0215] Optionally, as an embodiment, the feature information set includes: the first feature information;

[0216] The processor 710 is further configured to determine, based on the first feature information, whether there is a reference relationship among the N second chat messages, and if there is a reference relationship among the N second chat messages, then determine that there is a sequential relationship among the N second chat messages.

[0217] Optionally, as an embodiment, the feature information set includes: the second feature information;

[0218] The processor 710 is further configured to determine, based on the second feature information, whether all other second chat messages besides the first second chat message are incomplete statements; if all other second chat messages besides the first second chat message are incomplete statements, then it is determined that there is a sequential relationship among the N second chat messages.

[0219] Optionally, as an embodiment, the feature information set includes: the third feature information and the fourth feature information.

[0220] The processor 710 is further configured to determine, based on the third feature information, whether there are other chat messages sent by other users among the N second chat messages; and based on the fourth feature information, whether the matching degree between each second chat message and the first question information is greater than their respective corresponding threshold.

[0221] If there are no other chat messages sent by other users between the N second chat messages, and the matching degree between each second chat message and the first question information is greater than its corresponding threshold, then it is determined that there is a sequential relationship between the N second chat messages.

[0222] Optionally, as an embodiment, the feature information set includes: the fifth feature information and the sixth feature information;

[0223] The processor 710 is further configured to determine, based on the fifth feature information, whether the fluency of each concatenated message after the first second chat message is concatenated with other second chat messages is distributed within the same range; and based on the sixth feature information, whether the matching degree between each concatenated message and the first question information is greater than a preset second threshold.

[0224] If the fluency of each concatenated message after the first second chat message is concatenated with other second chat messages is distributed within the same preset range, and the matching degree between each concatenated message and the first question information is greater than a preset second threshold, then it is determined that there is a sequential relationship between the N second chat messages.

[0225] Optionally, as an embodiment, the feature information set includes: the first feature information, the second feature information, the third feature information, the fourth feature information, the fifth feature information, the sixth feature information, the seventh feature information, the eighth feature information, and the ninth feature information;

[0226] The processor 710 is further configured to determine, based on the correspondence between the feature information, the feature value, and the weight coefficient, the first feature value and the first weight coefficient corresponding to the first feature information, the second feature value and the second weight coefficient corresponding to the second feature information, the third feature value and the third weight coefficient corresponding to the third feature information, the fourth feature value and the fourth weight coefficient corresponding to the fourth feature information, the fifth feature value and the fifth weight coefficient corresponding to the fifth feature information, the sixth feature value and the sixth weight coefficient corresponding to the sixth feature information, the seventh feature value and the seventh weight coefficient corresponding to the seventh feature information, the eighth feature value and the eighth weight coefficient corresponding to the eighth feature information, and the ninth feature value and the ninth weight coefficient corresponding to the ninth feature information;

[0227] Based on the first weight coefficient to the ninth weight coefficient, the first feature value to the ninth feature value are weighted and summed to obtain the comprehensive score value;

[0228] Determine whether the comprehensive score value is greater than a preset third threshold. If the comprehensive score value is greater than the preset third threshold, then determine that there is a sequential relationship among the N second chat messages.

[0229] It should be understood that, in this embodiment, the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042. The GPU 7041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.

[0230] The memory 709 can be used to store software programs and various data. The memory 709 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 709 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 709 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0231] Processor 710 may include one or more processing units; optionally, processor 710 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 710.

[0232] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described information processing method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.

[0233] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0234] This application also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described information processing method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0235] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0236] This application also provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the information processing method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0237] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0238] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0239] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. An information processing method characterized by comprising: The method includes: If the first chat message in the first session interface of the chat application contains the first question information, the chat messages within the first duration after the sending time of the first chat message are obtained from the first session interface. If the first chat message within the first duration includes N consecutive second chat messages sent by the same user, and the matching degree between the first second chat message and the first question information is greater than a preset first threshold, then the feature information set of the N second chat messages is obtained; N is an integer greater than or equal to 2. Based on the set of feature information, determine whether there is a sequential relationship among the N second chat messages; If there is a sequential relationship among the N second chat messages, the N second chat messages are combined and formatted to obtain the first answer information corresponding to the first question information.

2. The method of claim 1, wherein, The feature information set includes at least one of the following features: First feature information used to characterize whether there is a referencing relationship between second chat messages; Second feature information used to characterize whether the statements in the second chat message are complete; The third feature information used to characterize whether there are other chat messages sent by other users between the second chat messages; Fourth feature information used to characterize the matching degree between the second chat message and the first question information; The fifth feature information used to characterize the fluency of each concatenated message after the first second chat message is concatenated with other second chat messages; The sixth feature information used to characterize the matching degree between each spliced ​​message and the first problem information; The seventh feature information used to characterize the time difference between the sending time of the first second chat message and the sending time of the last second chat message; The eighth feature information used to characterize the time difference between the sending time of the first second chat message and the sending time of the first chat message; The ninth feature information used to characterize the overlap between words in the second chat message and words in the first chat message.

3. The method of claim 2, wherein, The feature information set includes: the first feature information; Determining whether there is a sequential relationship among the N second chat messages based on the feature information set includes: Based on the first feature information, it is determined whether there is a reference relationship among the N second chat messages. If there is a reference relationship among the N second chat messages, it is determined that there is a sequential relationship among the N second chat messages.

4. The method according to claim 2, characterized in that, The feature information set includes: the second feature information; Determining whether there is a sequential relationship among the N second chat messages based on the feature information set includes: Based on the second feature information, it is determined whether all other second chat messages besides the first second chat message are incomplete statements. If all other second chat messages besides the first second chat message are incomplete statements, it is determined that there is a sequential relationship among the N second chat messages.

5. The method according to claim 2, characterized in that, The feature information set includes: the third feature information and the fourth feature information. Determining whether there is a sequential relationship among the N second chat messages based on the feature information set includes: Based on the third feature information, determine whether there are other chat messages sent by other users among the N second chat messages; and based on the fourth feature information, determine whether the matching degree between each second chat message and the first question information is greater than their respective threshold. If there are no other chat messages sent by other users between the N second chat messages, and the matching degree between each second chat message and the first question information is greater than its corresponding threshold, then it is determined that there is a sequential relationship between the N second chat messages.

6. The method according to claim 2, characterized in that, The feature information set includes: the fifth feature information and the sixth feature information; Determining whether there is a sequential relationship among the N second chat messages based on the feature information set includes: Based on the fifth feature information, determine whether the fluency of each concatenated message after the first second chat message is concatenated with other second chat messages is distributed within the same range; and based on the sixth feature information, determine whether the matching degree between each concatenated message and the first question information is greater than a preset second threshold. If the fluency of each concatenated message after the first second chat message is concatenated with other second chat messages is distributed within the same preset range, and the matching degree between each concatenated message and the first question information is greater than a preset second threshold, then it is determined that there is a sequential relationship between the N second chat messages.

7. The method according to claim 2, characterized in that, The feature information set includes: the first feature information, the second feature information, the third feature information, the fourth feature information, the fifth feature information, the sixth feature information, the seventh feature information, the eighth feature information, and the ninth feature information; Determining whether there is a sequential relationship among the N second chat messages based on the feature information set includes: Based on the correspondence between feature information, feature values, and weight coefficients, determine the first feature value and first weight coefficient corresponding to the first feature information, the second feature value and second weight coefficient corresponding to the second feature information, the third feature value and third weight coefficient corresponding to the third feature information, the fourth feature value and fourth weight coefficient corresponding to the fourth feature information, the fifth feature value and fifth weight coefficient corresponding to the fifth feature information, the sixth feature value and sixth weight coefficient corresponding to the sixth feature information, the seventh feature value and seventh weight coefficient corresponding to the seventh feature information, the eighth feature value and eighth weight coefficient corresponding to the eighth feature information, and the ninth feature value and ninth weight coefficient corresponding to the ninth feature information. Based on the first weight coefficient to the ninth weight coefficient, the first feature value to the ninth feature value are weighted and summed to obtain the comprehensive score value; Determine whether the comprehensive score value is greater than a preset third threshold. If the comprehensive score value is greater than the preset third threshold, then determine that there is a sequential relationship among the N second chat messages.

8. An information processing device, characterized in that, The device includes: The first acquisition module is used to acquire chat messages within a first duration after the sending time of the first chat message from the first session interface when the first chat message of the first session interface of the chat application is detected to contain first question information. The second acquisition module is used to acquire a set of feature information of the N second chat messages when it is detected that the chat messages within the first duration include N consecutive second chat messages sent by the same user, and the matching degree between the first second chat message and the first question information is greater than a preset first threshold; N is an integer greater than or equal to 2. The determining module is used to determine whether there is a sequential relationship among the N second chat messages based on the set of feature information. The combination module is used to combine and arrange the N second chat messages in a sequential manner to obtain the first answer information corresponding to the first question information, when there is a sequential relationship between the N second chat messages.

9. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the steps of the information processing method as described in any one of claims 1 to 7.

10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the information processing method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method for extracting session pairs from session contents

    CN106657157A

  • Crowd-sourcing-oriented problem and solution automatic extraction method, corresponding storage medium and electronic device

    CN114398905A