WO2021147930A1 - 一种拼接消息的方法与设备 - Google Patents

一种拼接消息的方法与设备 Download PDF

Info

Publication number
WO2021147930A1
WO2021147930A1 PCT/CN2021/072986 CN2021072986W WO2021147930A1 WO 2021147930 A1 WO2021147930 A1 WO 2021147930A1 CN 2021072986 W CN2021072986 W CN 2021072986W WO 2021147930 A1 WO2021147930 A1 WO 2021147930A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
session
conversation
messages
similarity
Prior art date
Application number
PCT/CN2021/072986
Other languages
English (en)
French (fr)
Inventor
陈大年
胡晨鹏
王雨婷
Original Assignee
上海掌门科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海掌门科技有限公司 filed Critical 上海掌门科技有限公司
Publication of WO2021147930A1 publication Critical patent/WO2021147930A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Definitions

  • This application relates to the field of communications, and in particular to a technology for splicing messages.
  • One purpose of this application is to provide a method and device for splicing messages.
  • a method for splicing messages applied to user equipment including:
  • a joint conversation message corresponding to the first conversation message is generated, and the joint conversation message is presented in the application window of the application information.
  • a method for splicing messages applied to user equipment includes:
  • the target session identification information corresponding to the target session to which the first session message belongs and the first session message identification information corresponding to the first session message are sent to the Application corresponding server;
  • a method for splicing messages applied to a server includes:
  • a joint session message corresponding to the first session message is generated, and the joint session message is sent to the user equipment.
  • a user equipment for splicing messages includes:
  • the one-two module is used to generate a joint conversation message corresponding to the first conversation message by performing a splicing operation on the first conversation message and the one or more second conversation messages, and display the joint conversation message in the application window of the application
  • the joint session message is presented in.
  • a user equipment for splicing messages includes:
  • the two-one module is used to respond to the splicing and triggering operation of the first conversation message in the application, and combine the target conversation identification information corresponding to the target conversation to which the first conversation message belongs and the first conversation message corresponding to the first conversation message
  • the identification information is sent to the server corresponding to the application;
  • the second and second module is used to receive the joint session message corresponding to the first session message sent by the server, and present the joint session message in the application window of the application, where the joint session message is the joint session message.
  • the server is generated by performing a splicing operation on the first conversation message and one or more second conversation messages associated with the first conversation message.
  • a server for splicing messages includes:
  • the three-one module is used to receive the target session identification information corresponding to the target session to which the first session message belongs and the first session message identification information corresponding to the first session message sent by the user equipment, from the target session identification information corresponding to Determine one or more second conversation messages associated with the first conversation message in the target conversation;
  • the 32nd module is used to generate a joint session message corresponding to the first session message by performing a splicing operation on the first session message and the one or more second session messages, and send the joint session message To the user equipment.
  • a device for splicing messages wherein the device includes:
  • a memory arranged to store computer-executable instructions that, when executed, cause the processor to perform the following operations:
  • a joint conversation message corresponding to the first conversation message is generated, and the joint conversation message is presented in the application window of the application information.
  • a device for splicing messages wherein the device includes:
  • a memory arranged to store computer-executable instructions that, when executed, cause the processor to perform the following operations:
  • the target session identification information corresponding to the target session to which the first session message belongs and the first session message identification information corresponding to the first session message are sent to the Application corresponding server;
  • a device for splicing messages wherein the device includes:
  • a memory arranged to store computer-executable instructions that, when executed, cause the processor to perform the following operations:
  • a joint session message corresponding to the first session message is generated, and the joint session message is sent to the user equipment.
  • a computer-readable medium storing instructions, which when executed, cause the system to perform the following operations:
  • a joint conversation message corresponding to the first conversation message is generated, and the joint conversation message is presented in the application window of the application information.
  • a computer-readable medium storing instructions, which when executed, cause the system to perform the following operations:
  • the target session identification information corresponding to the target session to which the first session message belongs and the first session message identification information corresponding to the first session message are sent to the Application corresponding server;
  • a computer-readable medium storing instructions, which when executed, cause the system to perform the following operations:
  • a joint session message corresponding to the first session message is generated, and the joint session message is sent to the user equipment.
  • the present application can automatically determine one or more second conversation messages associated with the first conversation message, and automatically splice the first conversation message and the one or more second conversation messages Display together, that is, multiple pieces of text that the user expects to see can be automatically spliced and displayed together, so that the user only needs to perform a predetermined splicing trigger operation for the first conversation message, and it can automatically display the first message in the application window.
  • the session message is combined with session messages, which can greatly reduce user operations, provide users with great convenience, and can greatly improve user experience.
  • Fig. 1 shows a flowchart of a method for splicing messages applied to user equipment according to an embodiment of the present application
  • Fig. 2 shows a flow chart of a method for splicing messages applied to user equipment according to an embodiment of the present application
  • Fig. 3 shows a flowchart of a method for splicing messages applied to a server according to an embodiment of the present application
  • Fig. 4 shows a flowchart of a system method for splicing messages according to an embodiment of the present application
  • Fig. 5 shows a structure diagram of a user equipment for splicing messages according to an embodiment of the present application
  • Fig. 6 shows a structure diagram of a user equipment for splicing messages according to an embodiment of the present application
  • Fig. 7 shows a structure diagram of a server for splicing messages according to an embodiment of the present application
  • Figure 8 shows an exemplary system that can be used to implement the various embodiments described in this application.
  • the terminal, the equipment of the service network, and the trusted party all include one or more processors (for example, a central processing unit (CPU)), input/output interfaces, network interfaces, and RAM.
  • processors for example, a central processing unit (CPU)
  • Memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read only memory (ROM) or flash memory (Read Only Memory). Flash Memory). Memory is an example of computer readable media.
  • RAM random access memory
  • ROM read only memory
  • Flash Memory Flash Memory
  • Computer-readable media includes permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • Information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, Phase-Change Memory (PCM), Programmable Random Access Memory (PRAM), Static Random-Access Memory, SRAM), dynamic random access memory (Dynamic Random Access Memory, DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically-erasable programmable read-only memory (Electrically-Erasable Programmable Read -Only Memory, EEPROM), flash memory or other memory technologies, CD-ROM (Compact Disc Read-Only Memory, CD-ROM), Digital Versatile Disc (DVD) or other optical storage , Magnetic cassette tape, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by computing devices.
  • PCM Phase-Change Memory
  • the equipment referred to in this application includes but is not limited to user equipment, network equipment, or equipment formed by the integration of user equipment and network equipment through a network.
  • the user equipment includes, but is not limited to, any mobile electronic product that can perform human-computer interaction with the user (for example, human-computer interaction through a touch panel), such as a smart phone, a tablet computer, etc., and the mobile electronic product can adopt any operation System, such as Android operating system, iOS operating system, etc.
  • the network device includes an electronic device that can automatically perform numerical calculation and information processing in accordance with pre-set or stored instructions, and its hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC) ), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), Digital Signal Processor (DSP), embedded devices, etc.
  • the network device includes, but is not limited to, a computer, a network host, a single network server, a set of multiple network servers, or a cloud composed of multiple servers; here, the cloud is composed of a large number of computers or network servers based on Cloud Computing, Among them, cloud computing is a type of distributed computing, a virtual supercomputer composed of a group of loosely coupled computer sets.
  • the network includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, and a wireless ad-hoc network (Ad Hoc network).
  • the device may also be a program running on the user equipment, network equipment, or user equipment and network equipment, network equipment, touch terminal, or a device formed by integrating network equipment and touch terminal through a network.
  • Fig. 1 shows a flowchart of a method for splicing messages applied to a user equipment according to an embodiment of the present application.
  • the method includes step S11 and step S12.
  • step S11 in response to the splicing trigger operation of the first conversation message in the application, the user equipment determines from the target conversation to which the first conversation message belongs, one or more second conversation messages associated with the first conversation message. Session message; in step S12, the user equipment generates a joint session message corresponding to the first session message by performing a splicing operation on the first session message and the one or more second session messages, and sends it in the The joint session message is presented in the application window of the application.
  • step S11 in response to the splicing trigger operation of the first conversation message in the application, the user equipment determines from the target conversation to which the first conversation message belongs, one or more second conversation messages associated with the first conversation message. Conversation message.
  • the splicing trigger operation can be manually triggered by the user, or can be automatically triggered by the application. For example, the user double-clicks the first conversation message on the conversation page of the chat application.
  • one or more second conversation messages associated with the first conversation message are determined from the target conversation to which the first conversation message belongs.
  • the second conversation message may be related to the first conversation in time.
  • the message is associated (for example, the time interval with the first conversation message is less than or equal to a predetermined time interval threshold), preferably, it may also be semantically associated with the first conversation message (for example, the semantics of the first conversation message is similar The degree is greater than or equal to a predetermined similarity threshold).
  • the second conversation message may only include the same conversation message as the sender of the first conversation message, but may also include conversation messages of multiple senders (for example, conversation messages of multiple senders may semantically form a conversation).
  • step S12 the user equipment generates a joint session message corresponding to the first session message by performing a splicing operation on the first session message and the one or more second session messages, and generates a joint session message corresponding to the first session message.
  • the joint session message is presented in the window.
  • a splicing operation is performed on the first conversation message and one or more conversation messages to generate a federation message and present it in the application window.
  • the joint conversation message is enlarged and presented in the application window in full screen.
  • the splicing can be carried out in the order of the sending time, or the splicing can be carried out in the order of the sender, and the conversation messages of the same sender are spliced together first.
  • the presenting the joint session message in the application window of the application includes: presenting the joint session message in a full screen and zooming in the application window of the application.
  • the user equipment enlarges the joint session message and presents it in the application window in full screen.
  • determining one or more second session messages associated with the first session message from the target session to which the first session message belongs includes step S111 (not shown) and step S112 ( Not shown).
  • step S111 the user equipment determines a session message set associated with the first session message from the target session to which the first session belongs; One or more second conversation messages associated with the first conversation message.
  • the session message set may include the first session message itself, or may not include the first session message.
  • the conversation message itself is then compared with semantic similarity to accurately determine one or more second conversation messages associated with the first conversation message from the conversation message set.
  • the step S111 includes step S1111 (not shown) and step S1112 (not shown).
  • the user equipment obtains at least one tenth session message within a first predetermined time interval before the first session message and a second predetermined time interval after the first session message in the target session
  • the user equipment determines a set of session messages associated with the first session message according to the at least one tenth session message and the at least one third session message.
  • the first predetermined time interval may be the same as the second predetermined time interval
  • the set of conversation messages may include all or part of the conversation messages in at least one tenth conversation message and at least one third conversation message. For example, all or part of the conversation messages within 10 minutes before and after the sending time corresponding to the first conversation message is formed into a conversation message set.
  • the step S1112 includes: the user equipment uses the set of the at least one tenth session message and the at least one third session message as the session message set. In some embodiments, all messages in the at least one tenth session message and the at least one third session message form a session message set.
  • the step S1112 includes: the user equipment obtains one or more tenth session messages that are the same as the message sender of the first session message from the at least one tenth session message, and obtains from the at least one tenth session message.
  • the set of conversation messages serves as the set of conversation messages. For example, among all the session messages within 10 minutes before and after the sending time corresponding to the first session message, a set of session messages of the same message sender corresponding to the first session message is selected as the session message set.
  • the step S1112 includes: the user equipment obtains, from the at least one tenth session message, one that is the same as the message sender of the first session message and has continuity with the first session message. Or multiple tenth session messages, from the at least one third session message, one or more third sessions that are the same as the message sender of the first session message and have continuity with the first session message are obtained from the at least one third session message Message; the set of the one or more tenth session messages and the one or more third session messages is used as the session message set.
  • the step S111 includes step S1113 (not shown) and step S1114 (not shown).
  • the user equipment obtains a first predetermined number of fourth conversation messages before the first conversation message and a second predetermined number of fifth conversation messages after the first conversation message in the target conversation.
  • the user equipment determines a set of session messages associated with the first session message according to the at least one fourth session message and the at least one fifth session message.
  • the first predetermined number may be the same as or different from the second predetermined number. For example, all or part of the conversation messages among the 10 conversation messages before and after the first conversation message are formed into a conversation message set.
  • the step S1114 includes: the user equipment uses the set of the at least one fourth session message and the at least one fifth session message as the session message set. In some embodiments, all messages in the at least one fourth conversation message and the at least one fifth conversation message form a conversation message set.
  • the step S1114 includes: the user equipment obtains one or more fourth session messages that are the same as the message sender of the first session message from the at least one fourth session message, and obtains from the at least one fourth session message. Obtain one or more fifth conversation messages that are the same as the message sender of the first conversation message from at least one fifth conversation message; combine the one or more fourth conversation messages with the one or more fifth conversation messages.
  • the set of conversation messages serves as the set of conversation messages. For example, among 10 session messages before and after the first session message, a set of session messages of the same message sender corresponding to the first session message is selected as the session message set.
  • the step S1114 includes: the user equipment obtains, from the at least one fourth session message, one that is the same as the message sender of the first session message and has continuity with the first session message. Or a plurality of fourth conversation messages, one or more fifth conversations that are the same as the message sender of the first conversation message and have continuity with the first conversation message are obtained from the at least one fifth conversation message Message; the set of the one or more fourth session messages and the one or more fifth session messages is used as the set of session messages. For example, among 10 session messages before and after the first session message, a set of consecutive session messages corresponding to the same message sender as the first session message and no other message sender inserted between the first session message and the first session message is selected as the session message set .
  • the step S111 includes: the user equipment obtains a first predetermined number of sixth conversation messages before the first conversation message and a second second conversation message after the first conversation message in the target conversation.
  • a predetermined number of seventh conversation messages wherein the at least one sixth conversation message and the at least one seventh conversation message are the same as the message sender of the first conversation message; and the at least one sixth conversation message and The set of the at least one seventh session message serves as the set of session messages. For example, a set of 10 session messages corresponding to the same message sender of the first session message before and after the first session message is taken as the session message set.
  • the step S111 includes: the user equipment obtains at least one eighth conversation message before the first conversation message and at least one ninth conversation message after the first conversation message in the target conversation.
  • the at least one eighth session message and the at least one ninth session message are the same as the message sender of the first session message and have continuity with the first session message; and the at least one A set of the eighth session message and the at least one ninth session message serves as the set of session messages.
  • a set of consecutive session messages that correspond to the same message sender before and after the first session message and the first session message and that no other message sender inserts between the first session message and the first session message is used as the session message set.
  • the step S112 includes step S1121 (not shown), step S1122 (not shown), step S1123 (not shown), and step S1124 (not shown).
  • step S1121 the user equipment performs an entity extraction operation for each session message in the session message set to obtain the entity sequence corresponding to the session message;
  • step S1122 the user equipment performs an entity extraction operation for the session message;
  • the entity sequence corresponding to each conversation message in the set is generated to generate the conversation message matrix corresponding to the conversation message set, wherein each row or each column of the conversation message matrix corresponds to one conversation message in the conversation message set.
  • Entity sequence in step S1123, the user equipment determines the similarity between different rows or columns of the conversation message matrix; in step S1124, the user equipment determines the similarity between different rows or columns of the conversation message matrix
  • the degree of similarity is to determine one or more second session messages associated with the first session message from the set of session messages.
  • basic entity extraction can be performed on each conversation message in the conversation message set according to natural language rules.
  • the entities include but are not limited to event type (the grammatical category of conversation messages, for example, whether the conversation message is a statement sentence or a question sentence), Event execution subject (subject of conversation message), event trigger word (predicate of conversation message), event entity (object of conversation message), event entity description (attribute of conversation message), etc.
  • the entity sequence can be a row vector or a column vector.
  • the session message matrix corresponding to the session message set can be generated, and each row or column of the session message matrix corresponds to the session message set According to the similarity between different rows or columns of the conversation message matrix in the sequence of entities corresponding to a conversation message in the conversation message matrix, if the conversation message matrix does not include the first conversation message itself, additional entity extraction of the first conversation message is required Obtain the first entity sequence corresponding to the first conversation message, and then compare different rows or columns of the conversation message matrix with the first entity sequence to determine the similarity between different conversation messages, and thus determine from the message conversation set and One or more second conversation messages associated with the first conversation message, where the second conversation message may be a conversation message whose similarity between the first conversation message and the first conversation message in the message conversation set is greater than or equal to a predetermined similarity threshold.
  • the method before the step S1123, the method further includes: the user equipment adds a similarity tag to one or more entities in the conversation message matrix according to a dictionary algorithm, wherein the similarity corresponding to one entity
  • the label includes one or more other entities whose similarity with the entity meets a predetermined similarity threshold and the similarity between the entity and each other entity.
  • the dictionary algorithm for example, the Lesk algorithm
  • the two entities can be obtained according to the similarity of the word meaning interpretation of the two entities in the dictionary (for example, the number of the same text or words in the word meaning interpretation). The similarity between the two entities, so as to add a similarity label to one or more entities in the conversation message set.
  • the similarity label of an entity includes one or more other entities whose similarity with the entity meets the predetermined similarity threshold and the The similarity between the entity and each other entity can provide a reference for the subsequent semantic similarity comparison, and eliminate the influence of the ambiguity caused by polysemous words and the semantic changes brought by buzzwords on the subsequent semantic similarity analysis.
  • one or more conversation messages associated with conversation similarity can be determined according to the similarity tag of each entity. The more entities that are included in the similarity tags corresponding to two entities, the two The stronger the relevance of an entity, the higher the similarity between an entity and other entities in its corresponding similarity label, and the stronger the relevance of the entity to other entities shown.
  • entities with the same or similar similarity tags are considered to be related.
  • the step S1123 includes: the user equipment obtains the language type similarity between different rows or columns of the conversation message matrix, and according to the language type similarity between the different rows or columns Degree, to determine the similarity between the different rows or different columns.
  • the language type includes, but is not limited to, language type, language family, language family, language branch, and the like.
  • the step S1123 includes: the user equipment obtains the language feature similarity between different rows or columns of the conversation message matrix, and according to the language feature similarity between the different rows or columns , To determine the similarity between the different rows or different columns.
  • the language feature may be a specific and representative language phenomenon in the conversation message, including but not limited to prompt phrases, new word appearances, named entities, prosodic features, pause marks, repetitive features, referential use , Syntax and morphological assimilation of vocabulary, etc.
  • the step S1123 includes: the user equipment obtains the semantic similarity between different rows or columns of the conversation message matrix, and determines according to the semantic similarity between the different rows or columns The degree of similarity between the different rows or different columns.
  • semantic analysis is performed on different rows or different columns of the conversation message matrix, and the semantic similarity between different rows or different columns is regarded as the similarity between different rows or different columns.
  • Including the first conversation message itself it is also necessary to perform semantic analysis on the first conversation message to obtain the semantic similarity between different rows or columns in the conversation message matrix and the first conversation message, so as to further determine the differences in the conversation message set. The similarity between conversation messages.
  • the step S1123 includes: the user equipment converts each entity in the conversation message matrix into a corresponding word vector according to the word vector algorithm; and obtains information between different rows or columns of the conversation message matrix.
  • the word vector similarity, and the similarity between the different rows or different columns is determined according to the word vector similarity between the different rows or different columns.
  • each entity in the conversation message matrix is converted into a corresponding word vector in a high-dimensional space, and then the words of all entities in each row or column are The vector average is obtained to obtain the sentence vector, and then the similarity between different sentence vectors is directly measured through the word shift distance, so that the word vector similarity between different rows or columns of the conversation message matrix can be determined, and the conversation message can be further determined The similarity between different conversation messages in the set.
  • a word vector algorithm for example, the Word2Vec algorithm
  • the step S1124 includes: according to the similarity between different rows or columns of the conversation message matrix, the user equipment determines from the conversation message set the information associated with the first conversation message. One or more second conversation messages, wherein the similarity between each second conversation message in the one or more second conversation messages and the first conversation message is greater than or equal to a predetermined similarity threshold. In some embodiments, if the conversation message matrix includes the first conversation message itself, the similarity between the rows or columns corresponding to the first conversation message in the conversation message matrix is greater than or equal to the predetermined similarity threshold.
  • the conversation message matrix is combined with the first conversation message.
  • the conversation message corresponding to the row or column whose similarity of the first entity sequence corresponding to the message is greater than or equal to the predetermined similarity threshold is used as one or more second conversation messages associated with the first conversation message in the conversation message set.
  • the step S1124 includes steps S11241 (not shown), S11242 (not shown), S11243 (not shown), and S11244 (not shown).
  • the user equipment calculates the similarity between each conversation message in the conversation message set and the first conversation message, and calculates the similarity between each conversation message and the first conversation message. Similarity, selecting from the conversation message matrix at least one row or column whose similarity with the first conversation message is greater than or equal to the first similarity threshold; in step S11242, the user equipment selects each row or column that has been selected.
  • step S11243 the user equipment repeats step S11242 until there is no row or column in the conversation message matrix whose similarity with the selected row or column is greater than or equal to the second similarity threshold
  • step S11244 the user equipment will select all the conversation messages corresponding to all rows or columns from the conversation message matrix as one or more second conversation messages associated with the first conversation message.
  • the first similarity threshold is the same as the second similarity threshold; in some embodiments, the first similarity threshold is less than the second similarity threshold.
  • the second similarity threshold may be fixed or dynamically adjusted. For example, for each row or column that has been selected, the row or column is related in time to the sending time of the first conversation message. The closer, the greater the second similarity threshold used when judging whether there is a row or column whose similarity with the row or column is greater than or equal to the second similarity threshold.
  • the conversation message set includes 10 rows, denoted as P 0 , P 1 , P 2 , ..., P 9 , and each row corresponds to a conversation message.
  • the conversation message set does not include the first conversation message
  • the user equipment first Calculate the similarity between each conversation message in the conversation message set and the first conversation message, and then select from the conversation message set that the similarity with the first conversation message is greater than or equal to
  • the row P 3 whose similarity is greater than or equal to the second similarity threshold, and for P 5 , according to the similarity between different rows of the conversation message matrix, select the similarity to P 2 from the conversation message matrix
  • the user equipment uses P 2 , P 3 , P 5 , and P 6 as one or more second conversation messages associated with the first conversation message.
  • the step S12 includes: the user equipment performs a splicing operation on the first conversation message and the one or more second conversation messages according to the message sending time sequence, and generates the corresponding first conversation message. And present the joint session message in the application window of the application.
  • the first conversation message and one or more second conversation messages may be spliced according to the sequence of the message sending time.
  • the step S12 includes: the user equipment generates the first conversation message correspondence by performing a splicing operation on the first conversation message and the one or more second conversation messages in the order of the message sender. And present the joint session message in the application window of the application.
  • the first conversation message and one or more second conversation messages may be spliced in the order of the sender, and the conversation messages of the same sender may be spliced together first.
  • Fig. 2 shows a flowchart of a method for splicing messages applied to user equipment according to an embodiment of the present application.
  • the method includes step S21 and step S22.
  • step S21 the user equipment responds to the splicing trigger operation on the first conversation message in the application, and combines the target conversation identification information corresponding to the target conversation to which the first conversation message belongs and the first conversation corresponding to the first conversation message.
  • the message identification information is sent to the server corresponding to the application; in step S22, the user equipment receives the joint session message corresponding to the first session message sent by the server, and presents the joint session message in the application window of the application.
  • a joint session message wherein the joint session message is generated by the server by performing a splicing operation on the first session message and one or more second session messages associated with the first session message.
  • step S21 the user equipment responds to the splicing trigger operation on the first conversation message in the application, and combines the target conversation identification information corresponding to the target conversation to which the first conversation message belongs and the first conversation corresponding to the first conversation message.
  • the message identification information is sent to the server corresponding to the application.
  • the splicing trigger operation can be manually triggered and executed by the user, or automatically triggered by the application, for example, the user double-clicks the first conversation message in the conversation page of the chat application.
  • the target session identification information corresponding to the target session to which the first session message belongs, the first session message itself, or the first session message identification information corresponding to the first session message is sent to the server.
  • step S22 the user equipment receives a joint session message corresponding to the first session message sent by the server, and presents the joint session message in the application window of the application, where the joint session message is
  • the server is generated by performing a splicing operation on the first conversation message and one or more second conversation messages associated with the first conversation message.
  • the server after the server receives the target session identification information corresponding to the target session to which the first session message belongs, the first session message itself, or the first session message identification information corresponding to the first session message, it corresponds to the target session identification information Determine one or more second conversation messages associated with the first conversation message in the target conversation, then perform a splicing operation on the first conversation message and one or more second conversation messages, and send the joint conversation message generated by splicing
  • the user equipment can be spliced in the order of sending time, or spliced in the order of the sender, and the conversation messages of the same sender are spliced together first. Here, it is not limited to splicing in any order.
  • the second conversation message may be associated with the first conversation message in time (for example, the time interval with the first conversation message is less than or equal to a predetermined time interval threshold), preferably, it may also be semantically related to the first conversation message.
  • a conversation message is associated (for example, the semantic similarity with the first conversation message is greater than or equal to a predetermined similarity threshold).
  • the second conversation message may only include the same conversation message as the sender of the first conversation message, but may also include conversation messages of multiple senders (for example, conversation messages of multiple senders may semantically form a conversation).
  • the joint session message after receiving the joint session message sent by the server, the joint session message is presented in the application window. Preferably, the joint session message is enlarged and presented in the application window in full screen.
  • Fig. 3 shows a flowchart of a method for splicing messages applied to a server according to an embodiment of the present application.
  • the method includes step S31 and step S32.
  • step S31 the server receives the target session identification information corresponding to the target session to which the first session message belongs and the first session message identification information corresponding to the first session message sent by the user equipment, and corresponds to the target session identification information from the user equipment.
  • One or more second session messages associated with the first session message is determined in the target session of the target session; in step S32, the server executes the first session message and the one or more second session messages
  • the splicing operation generates a joint session message corresponding to the first session message, and sends the joint session message to the user equipment.
  • step S31 the server receives the target session identification information corresponding to the target session to which the first session message belongs and the first session message identification information corresponding to the first session message sent by the user equipment, and corresponds to the target session identification information from the user equipment.
  • One or more second conversation messages associated with the first conversation message are determined in the target conversation of.
  • the server after the server receives the target session identification information corresponding to the target session to which the first session message belongs, the first session message itself, or the first session message identification information corresponding to the first session message, it corresponds to the target session identification information
  • One or more second conversation messages associated with the first conversation message are determined in the target conversation.
  • the second conversation message may be associated with the first conversation message in time (for example, the time interval with the first conversation message is less than or equal to a predetermined time interval threshold), preferably, it may also be semantically related to the first conversation message.
  • a conversation message is associated (for example, the semantic similarity with the first conversation message is greater than or equal to a predetermined similarity threshold).
  • the second conversation message may only include the same conversation message as the sender of the first conversation message, but may also include conversation messages of multiple senders (for example, conversation messages of multiple senders may semantically form a conversation).
  • step S32 the server generates a joint session message corresponding to the first session message by performing a splicing operation on the first session message and the one or more second session messages, and sends the joint session message To the user equipment.
  • the splicing operation is performed on the first conversation message and one or more second conversation messages, and then the joint conversation message generated by the splicing is sent to the user equipment.
  • the splicing can be performed in the order of sending time, or according to The order of the sender is spliced, and the conversation messages of the same sender are spliced together first. Here, it is not limited to splicing in any order.
  • Fig. 4 shows a flowchart of a system method for splicing messages according to an embodiment of the present application.
  • step S41 the user equipment responds to the splicing and triggering operation of the first conversation message in the application, and combines the target conversation identification information corresponding to the target conversation to which the first conversation message belongs and the first conversation
  • the first session message identification information corresponding to the message is sent to the server corresponding to the application, and step S41 is the same as or similar to the foregoing step S11, and will not be repeated here
  • step S42 the server receives the The target session identification information and the first session message identification information determine one or more second session messages associated with the first session message from the target session corresponding to the target session identification information, step S42 It is the same as or similar to the foregoing step S21, and will not be repeated here
  • step S43 the server generates the first session message by performing a splicing operation on the first session message and the one or more second session messages.
  • the session message corresponds to a joint session message, and the joint session message is sent to the user equipment.
  • Step S43 is the same as or similar to the aforementioned step S22, and will not be repeated here;
  • step S44 the user equipment receives the For the joint session message sent by the server, and the joint session message is presented in the application window of the application, step S44 is the same as or similar to the foregoing step S12, and will not be repeated here.
  • FIG. 5 shows a structure diagram of a user equipment for splicing messages according to an embodiment of the present application.
  • the equipment includes a one-to-one module 11 and a one-to-two module 12.
  • the one-to-one module 11 is configured to determine one or more second session messages associated with the first session message from the target session to which the first session message belongs in response to the splicing trigger operation of the first session message in the application Session message; a two-module 12, used to generate a joint session message corresponding to the first session message by performing a splicing operation on the first session message and the one or more second session messages, and in the The joint session message is presented in the application window of the application.
  • the one-to-one module 11 is configured to determine one or more second session messages associated with the first session message from the target session to which the first session message belongs in response to the splicing trigger operation of the first session message in the application Conversation message.
  • the splicing trigger operation can be manually triggered by the user, or can be automatically triggered by the application. For example, the user double-clicks the first conversation message on the conversation page of the chat application.
  • one or more second conversation messages associated with the first conversation message are determined from the target conversation to which the first conversation message belongs.
  • the second conversation message may be related to the first conversation in time.
  • the message is associated (for example, the time interval with the first conversation message is less than or equal to a predetermined time interval threshold), preferably, it may also be semantically associated with the first conversation message (for example, the semantics of the first conversation message is similar The degree is greater than or equal to a predetermined similarity threshold).
  • the second conversation message may only include the same conversation message as the sender of the first conversation message, but may also include conversation messages of multiple senders (for example, conversation messages of multiple senders may semantically form a conversation).
  • the one-two module 12 is configured to generate a joint session message corresponding to the first session message by performing a splicing operation on the first session message and the one or more second session messages, and to use it in the application of the application
  • the joint session message is presented in the window.
  • a splicing operation is performed on the first conversation message and one or more conversation messages to generate a federation message and present it in the application window.
  • the joint conversation message is enlarged and presented in the application window in full screen.
  • the splicing can be carried out in the order of the sending time, or the splicing can be carried out in the order of the sender, and the conversation messages of the same sender are spliced together first.
  • the presenting the joint session message in the application window of the application includes: presenting the joint session message in a full screen and magnified in the application window of the application.
  • the related operations are the same as or similar to those in the embodiment shown in FIG. 1, so they will not be repeated here, and they are included here by reference.
  • determining one or more second session messages associated with the first session message from the target session to which the first session message belongs includes a one-to-one module 111 (not shown) and A one-two module 112 (not shown).
  • the one-to-one module 111 is used to determine the session message set associated with the first session message from the target session to which the first session belongs; the one-to-two module 112 is used to determine the session message set from the session message set One or more second conversation messages associated with the first conversation message.
  • the specific implementation of the one-to-one module 111 and the one-to-two module 112 is the same as or similar to the embodiment of steps S111 and S112 in FIG.
  • the one-to-one module 111 includes a one-to-one module 1111 (not shown) and a one-to-two module 1112 (not shown).
  • a one-to-one module 1111 configured to obtain at least one tenth session message in a first predetermined time interval before the first session message and a second predetermined session message after the first session message in the target session At least one third session message within the time interval;
  • a one-to-two module 1112 configured to determine the session associated with the first session message according to the at least one tenth session message and the at least one third session message Message collection.
  • the specific implementation of the one-to-one module 1111 and the one-to-two module 1112 are the same as or similar to the embodiment of steps S1111 and S1112 in FIG.
  • the one-to-two module 1112 is configured to use the set of the at least one tenth session message and the at least one third session message as the session message set.
  • the related operations are the same as or similar to those in the embodiment shown in FIG. 1, so they will not be repeated here, and they are included here by reference.
  • the one-to-two module 1112 is configured to: obtain one or more tenth session messages that are the same as the message sender of the first session message from the at least one tenth session message, Obtain one or more third conversation messages that are the same as the message sender of the first conversation message from the at least one third conversation message; combine the one or more tenth conversation messages with the one or more A set of three third session messages is used as the set of session messages.
  • the related operations are the same as or similar to those of the embodiment shown in FIG.
  • the one-to-two module 1112 is configured to: obtain from the at least one tenth session message the same as the message sender of the first session message and have the same continuity with the first session message.
  • Sexual one or more tenth session messages, from the at least one third session message, one or more ones that are the same as the message sender of the first session message and have continuity with the first session message are obtained from the at least one third session message.
  • the third session message; a set of the one or more tenth session messages and the one or more third session messages is used as the session message set.
  • the related operations are the same as or similar to those in the embodiment shown in FIG. 1, so they will not be repeated here, and they are included here by reference.
  • the one-to-one module 111 includes a one-to-three module 1113 (not shown) and a one-to-four module 1114 (not shown).
  • a one-to-three module 1113 configured to obtain a first predetermined number of fourth conversation messages before the first conversation message and a second predetermined number of fifth conversation messages after the first conversation message in the target conversation Session message;
  • a one-to-four module 1114 configured to determine a set of session messages associated with the first session message according to the at least one fourth session message and the at least one fifth session message.
  • the specific implementation of the one-to-one-three module 1113 and the one-to-four module 1114 is the same as or similar to the embodiment of steps S1113 and S1114 in FIG.
  • the one-to-four module 1114 is configured to use a set of the at least one fourth conversation message and the at least one fifth conversation message as the conversation message set.
  • the related operations are the same as or similar to those in the embodiment shown in FIG. 1, so they will not be repeated here, and they are included here by reference.
  • the one-to-four module 1114 is configured to: obtain, from the at least one fourth conversation message, one or more fourth conversation messages that are the same as the message sender of the first conversation message, Obtain one or more fifth conversation messages that are the same as the message sender of the first conversation message from the at least one fifth conversation message; combine the one or more fourth conversation messages with the one or more The set of the fifth session messages is used as the set of session messages.
  • the related operations are the same as or similar to those in the embodiment shown in FIG. 1, so they will not be repeated here, and they are included here by reference.
  • the one-to-four module 1114 is configured to: obtain from the at least one fourth conversation message the same as the message sender of the first conversation message and have continuity with the first conversation message.
  • Sexual one or more fourth session messages, from the at least one fifth session message, one or more ones that are the same as the message sender of the first session message and have continuity with the first session message are obtained from the at least one fifth session message Fifth session message; a set of the one or more fourth session messages and the one or more fifth session messages is used as the session message set.
  • the related operations are the same as or similar to those of the embodiment shown in FIG.
  • the one-to-one module 111 is configured to obtain a first predetermined number of sixth conversation messages before the first conversation message in the target conversation and the sixth conversation message after the first conversation message in the target conversation.
  • a second predetermined number of seventh conversation messages wherein the at least one sixth conversation message and the at least one seventh conversation message are the same as the message sender of the first conversation message; and the at least one sixth conversation message A set of messages and the at least one seventh conversation message is used as the conversation message set.
  • the related operations are the same as or similar to those of the embodiment shown in FIG.
  • the one-to-one module 111 is configured to obtain at least one eighth session message located before the first session message and at least one first session message located after the first session message in the target session.
  • a set of at least one eighth session message and the at least one ninth session message serves as the session message set.
  • the related operations are the same as or similar to those in the embodiment shown in FIG. 1, so they will not be repeated here, and they are included here by reference.
  • the one-to-two module 112 includes a one-two-one module 1121 (not shown), a one-two-two module 1122 (not shown), a one-two-three module 1123 (not shown), and One, two, four modules 1124 (not shown).
  • the one-two-one module 1121 is used to perform an entity extraction operation for each session message in the session message set to obtain the entity sequence corresponding to the session message; the one-two-two module 1122 is used to perform an entity extraction operation for the session message;
  • the entity sequence corresponding to each conversation message in the conversation message set is generated to generate a conversation message matrix corresponding to the conversation message set, wherein each row or each column of the conversation message matrix corresponds to one of the conversation message sets
  • the specific implementation of the one-to-two-one module 1121, the one-two-two module 1122, the one-two-three module 1123, and the one-two-four module 1124 are the same as the embodiment of steps S1121, S1122, S1123, and S1124 in FIG. They are the same or similar, so they will not be repeated here, and they are included here by reference.
  • the device is further configured to: add a similarity label to one or more entities in the conversation message matrix according to a dictionary algorithm, wherein the similarity label corresponding to an entity includes the similarity to the entity One or more other entities whose degree meets a predetermined similarity threshold and the degree of similarity between the entity and each other entity.
  • the related operations are the same as or similar to those of the embodiment shown in FIG.
  • the one-two-three module 1123 is configured to: obtain the language type similarity between different rows or columns of the conversation message matrix, and according to the difference between the different rows or columns The language type similarity determines the similarity between the different rows or different columns.
  • the related operations are the same as or similar to those in the embodiment shown in FIG. 1, so they will not be repeated here, and they are included here by reference.
  • the one-two-three module 1123 is used to: obtain the language feature similarity between different rows or columns of the conversation message matrix, and according to the language feature between the different rows or columns The feature similarity determines the similarity between the different rows or different columns.
  • the related operations are the same as or similar to those of the embodiment shown in FIG.
  • the one-two-three module 1123 is used to obtain the semantic similarity between different rows or columns of the conversation message matrix, and according to the semantic similarity between the different rows or columns Degree, to determine the similarity between the different rows or different columns.
  • the related operations are the same as or similar to those in the embodiment shown in FIG. 1, so they will not be repeated here, and they are included here by reference.
  • the one-two-three module 1123 is used to: convert each entity in the conversation message matrix into a corresponding word vector according to a word vector algorithm; obtain different rows or columns of the conversation message matrix And determine the similarity between the different rows or columns according to the similarity of the word vectors between the different rows or columns.
  • the related operations are the same as or similar to those in the embodiment shown in FIG. 1, so they will not be repeated here, and they are included here by reference.
  • the one-two-four module 1124 is configured to: according to the similarity between different rows or columns of the conversation message matrix, determine from the conversation message set that it is related to the first conversation message Associated one or more second conversation messages, wherein the similarity between each second conversation message in the one or more second conversation messages and the first conversation message is greater than or equal to a predetermined similarity Threshold.
  • the related operations are the same as or similar to those in the embodiment shown in FIG. 1, so they will not be repeated here, and they are included here by reference.
  • the one, two, four modules 1124 include one, two, four, one module 11241 (not shown), one, two, four, two module 11242 (not shown), and one, two, four, three module 11243 (not shown) (Shown) and one-two-four-four modules 11244 (not shown).
  • the one-two-four-one module 11241 is used to calculate the similarity between each conversation message in the conversation message set and the first conversation message, and to calculate the similarity between each conversation message and the first conversation message Select from the conversation message matrix at least one row or column whose similarity with the first conversation message is greater than or equal to the first similarity threshold; the one-two-four-two module 11242 is used to For each row or column that has been selected, according to the similarity between different rows or columns of the conversation message matrix, the similarity between the row or column selected from the conversation message matrix is greater than or equal to the first At least one row or column of the second similarity threshold; a one-two-four-three module 11243 for repeating the one-two-four-two module 11242 until there is no difference between the selected row or column in the conversation message matrix A row or column whose similarity is greater than or equal to the second similarity threshold; a one-two-four module 11244, which is used to treat all the rows or columns selected from the conversation message matrix as conversation messages corresponding to
  • the specific implementation of the one-two-four-one module 11241, the one-two-four-two module 11242, the one-two-four-three module 11243, and the one-two-four-four module 11244 are related to the steps S11241, S11242, S11243 and FIG. 1
  • the embodiments of S11244 are the same or similar, so they will not be described again, and are included here by reference.
  • the one-two module 12 is configured to: generate the first conversation message by performing a splicing operation on the first conversation message and the one or more second conversation messages according to the message sending time sequence. Corresponding joint session message, and present the joint session message in the application window of the application.
  • the related operations are the same as or similar to those of the embodiment shown in FIG.
  • the one-two module 12 is configured to: generate the first conversation message by performing a splicing operation on the first conversation message and the one or more second conversation messages in the order of the message sender Corresponding joint session message, and present the joint session message in the application window of the application.
  • the related operations are the same as or similar to those in the embodiment shown in FIG. 1, so they will not be repeated here, and they are included here by reference.
  • FIG. 6 shows a structure diagram of a user equipment for splicing messages according to an embodiment of the present application.
  • the equipment includes a two-one module 21 and a two-two module 22.
  • the two-to-one module 21 is configured to respond to the splicing trigger operation on the first conversation message in the application, and combine the target conversation identification information corresponding to the target conversation to which the first conversation message belongs and the first conversation corresponding to the first conversation message
  • the message identification information is sent to the server corresponding to the application;
  • the second-two module 22 is configured to receive the joint session message corresponding to the first session message sent by the server, and present the joint session message in the application window of the application.
  • a joint session message wherein the joint session message is generated by the server by performing a splicing operation on the first session message and one or more second session messages associated with the first session message.
  • the two-to-one module 21 is configured to respond to the splicing trigger operation on the first conversation message in the application, and combine the target conversation identification information corresponding to the target conversation to which the first conversation message belongs and the first conversation corresponding to the first conversation message
  • the message identification information is sent to the server corresponding to the application.
  • the splicing trigger operation can be manually triggered and executed by the user, or automatically triggered by the application, for example, the user double-clicks the first conversation message in the conversation page of the chat application.
  • the target session identification information corresponding to the target session to which the first session message belongs, the first session message itself, or the first session message identification information corresponding to the first session message is sent to the server.
  • the second-two module 22 is configured to receive a joint session message corresponding to the first session message sent by the server, and present the joint session message in the application window of the application, where the joint session message is
  • the server is generated by performing a splicing operation on the first conversation message and one or more second conversation messages associated with the first conversation message.
  • the server after the server receives the target session identification information corresponding to the target session to which the first session message belongs, the first session message itself, or the first session message identification information corresponding to the first session message, it corresponds to the target session identification information Determine one or more second conversation messages associated with the first conversation message in the target conversation, then perform a splicing operation on the first conversation message and one or more second conversation messages, and send the joint conversation message generated by splicing
  • the user equipment can be spliced in the order of sending time, or spliced in the order of the sender, and the conversation messages of the same sender are spliced together first. Here, it is not limited to splicing in any order.
  • the second conversation message may be associated with the first conversation message in time (for example, the time interval with the first conversation message is less than or equal to a predetermined time interval threshold), preferably, it may also be semantically related to the first conversation message.
  • a conversation message is associated (for example, the semantic similarity with the first conversation message is greater than or equal to a predetermined similarity threshold).
  • the second conversation message may only include the same conversation message as the sender of the first conversation message, but may also include conversation messages of multiple senders (for example, conversation messages of multiple senders may semantically form a conversation).
  • the joint session message after receiving the joint session message sent by the server, the joint session message is presented in the application window. Preferably, the joint session message is enlarged and presented in the application window in full screen.
  • FIG. 7 shows a structure diagram of a server for splicing messages according to an embodiment of the present application.
  • the server includes a three-one module 31 and a three-two module 32.
  • the three-in-one module 31 is configured to receive the target session identification information corresponding to the target session to which the first session message belongs and the first session message identification information corresponding to the first session message sent by the user equipment, from the target session identification information
  • One or more second session messages that are associated with the first session message are determined in the corresponding target session
  • the three-two module 32 is configured to compare the first session message and the one or more second session messages
  • the message performs a splicing operation, generates a joint session message corresponding to the first session message, and sends the joint session message to the user equipment.
  • the three-in-one module 31 is configured to receive the target session identification information corresponding to the target session to which the first session message belongs and the first session message identification information corresponding to the first session message sent by the user equipment, from the target session identification information One or more second session messages associated with the first session message are determined in the corresponding target session.
  • the server receives the target session identification information corresponding to the target session to which the first session message belongs, the first session message itself, or the first session message identification information corresponding to the first session message, it corresponds to the target session identification information
  • One or more second conversation messages associated with the first conversation message are determined in the target conversation.
  • the second conversation message may be associated with the first conversation message in time (for example, the time interval with the first conversation message is less than or equal to a predetermined time interval threshold), preferably, it may also be semantically related to the first conversation message.
  • a conversation message is associated (for example, the semantic similarity with the first conversation message is greater than or equal to a predetermined similarity threshold).
  • the second conversation message may only include the same conversation message as the sender of the first conversation message, but may also include conversation messages of multiple senders (for example, conversation messages of multiple senders may semantically form a conversation).
  • the three-two module 32 is configured to generate a joint session message corresponding to the first session message by performing a splicing operation on the first session message and the one or more second session messages, and combine the joint session message Sent to the user equipment.
  • the splicing operation is performed on the first conversation message and one or more second conversation messages, and then the joint conversation message generated by the splicing is sent to the user equipment.
  • the splicing can be performed in the order of sending time, or according to The order of the sender is spliced, and the conversation messages of the same sender are spliced together first. Here, it is not limited to splicing in any order.
  • Figure 8 shows an exemplary system that can be used to implement the various embodiments described in this application.
  • the system 300 can be used as any device in each of the described embodiments.
  • the system 300 may include one or more computer-readable media having instructions (for example, system memory or NVM/storage device 320) and be coupled with the one or more computer-readable media and configured to execute Instructions are one or more processors (eg, processor(s) 305) that implement modules to perform the actions described in this application.
  • processors eg, processor(s) 305
  • system control module 310 may include any suitable interface controller to provide at least one of the processor(s) 305 and/or any suitable device or component in communication with the system control module 310 Any appropriate interface.
  • the system control module 310 may include a memory controller module 330 to provide an interface to the system memory 315.
  • the memory controller module 330 may be a hardware module, a software module, and/or a firmware module.
  • the system memory 315 may be used to load and store data and/or instructions for the system 300, for example.
  • the system memory 315 may include any suitable volatile memory, such as a suitable DRAM.
  • the system memory 315 may include a double data rate type quad synchronous dynamic random access memory (DDR4 SDRAM).
  • DDR4 SDRAM double data rate type quad synchronous dynamic random access memory
  • system control module 310 may include one or more input/output (I/O) controllers to provide an interface to the NVM/storage device 320 and the communication interface(s) 325.
  • I/O input/output
  • NVM/storage device 320 may be used to store data and/or instructions.
  • the NVM/storage device 320 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more hard drives (HDD), one or more compact disc (CD) drives and/or one or more digital versatile disc (DVD) drives).
  • suitable non-volatile memory e.g., flash memory
  • suitable non-volatile storage device(s) e.g., one or more hard drives (HDD), one or more compact disc (CD) drives and/or one or more digital versatile disc (DVD) drives.
  • HDD hard drives
  • CD compact disc
  • DVD digital versatile disc
  • the NVM/storage device 320 may include storage resources that are physically part of the device on which the system 300 is installed, or it may be accessed by the device without necessarily being a part of the device.
  • the NVM/storage device 320 may be accessed via the communication interface(s) 325 through the network.
  • the communication interface(s) 325 may provide an interface for the system 300 to communicate through one or more networks and/or with any other suitable devices.
  • the system 300 can wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and/or protocols.
  • At least one of the processor(s) 305 may be packaged with the logic of one or more controllers of the system control module 310 (eg, the memory controller module 330). For one embodiment, at least one of the processor(s) 305 may be packaged with the logic of one or more controllers of the system control module 310 to form a system in package (SiP). For one embodiment, at least one of the processor(s) 305 may be integrated with the logic of one or more controllers of the system control module 310 on the same mold. For one embodiment, at least one of the processor(s) 305 may be integrated with the logic of one or more controllers of the system control module 310 on the same mold to form a system on chip (SoC).
  • SoC system on chip
  • the system 300 may be, but is not limited to: a server, a workstation, a desktop computing device, or a mobile computing device (for example, a laptop computing device, a holding computing device, a tablet computer, a netbook, etc.).
  • the system 300 may have more or fewer components and/or different architectures.
  • the system 300 includes one or more cameras, keyboards, liquid crystal display (LCD) screens (including touchscreen displays), non-volatile memory ports, multiple antennas, graphics chips, application specific integrated circuits ( ASIC) and speakers.
  • LCD liquid crystal display
  • ASIC application specific integrated circuits
  • the present application also provides a computer-readable storage medium, the computer-readable storage medium stores computer code, and when the computer code is executed, the method described in any one of the preceding items is executed.
  • This application also provides a computer program product.
  • the computer program product is executed by a computer device, the method described in any one of the preceding items is executed.
  • This application also provides a computer device, which includes:
  • One or more processors are One or more processors;
  • Memory used to store one or more computer programs
  • the one or more processors When the one or more computer programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any one of the preceding items.
  • this application can be implemented in software and/or a combination of software and hardware.
  • it can be implemented using an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device.
  • ASIC application specific integrated circuit
  • the software program of the present application can be executed by a processor to realize the steps or functions described above.
  • the software program (including related data structures) of the present application can be stored in a computer-readable recording medium, for example, RAM memory, magnetic or optical drives or floppy disks and similar devices.
  • some steps or functions of the present application may be implemented by hardware, for example, as a circuit that cooperates with a processor to execute each step or function.
  • a part of this application can be applied as a computer program product, such as a computer program instruction, when it is executed by a computer, through the operation of the computer, the method and/or technical solution according to this application can be invoked or provided.
  • computer program instructions in computer-readable media includes but is not limited to source files, executable files, installation package files, etc.
  • the manner in which computer program instructions are executed by the computer includes but not Limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding post-installation program.
  • the computer-readable medium may be any available computer-readable storage medium or communication medium that can be accessed by a computer.
  • Communication media includes media by which communication signals containing, for example, computer-readable instructions, data structures, program modules, or other data are transmitted from one system to another system.
  • Communication media can include conductive transmission media (such as cables and wires (for example, optical fiber, coaxial, etc.)) and wireless (unguided transmission) media that can propagate energy waves, such as sound, electromagnetic, RF, microwave, and infrared .
  • Computer readable instructions, data structures, program modules or other data may be embodied as, for example, a modulated data signal in a wireless medium such as a carrier wave or similar mechanism such as embodied as part of spread spectrum technology.
  • modulated data signal refers to a signal whose one or more characteristics have been altered or set in such a way as to encode information in the signal. Modulation can be analog, digital or mixed modulation techniques.
  • a computer-readable storage medium may include volatile, non-volatile, and nonvolatile, nonvolatile, and nonvolatile, and may be implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Removable and non-removable media.
  • computer-readable storage media include, but are not limited to, volatile memory, such as random access memory (RAM, DRAM, SRAM); and non-volatile memory, such as flash memory, various read-only memories (ROM, PROM, EPROM) , EEPROM), magnetic and ferromagnetic/ferroelectric memory (MRAM, FeRAM); and magnetic and optical storage devices (hard disks, tapes, CDs, DVDs); or other currently known media or future developments that can be stored for computer systems Computer readable information/data used.
  • volatile memory such as random access memory (RAM, DRAM, SRAM
  • non-volatile memory such as flash memory, various read-only memories (ROM, PROM, EPROM) , EEPROM), magnetic and ferromagnetic/ferroelectric memory (MRAM, FeRAM); and magnetic and optical storage devices (hard disks, tapes, CDs, DVDs); or other currently known media or future developments that can be stored for computer systems Computer readable information/data used.
  • volatile memory such as random access memory (RAM, DRAM,
  • an embodiment according to the present application includes a device that includes a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the device triggers
  • the operation of the device is based on the aforementioned methods and/or technical solutions according to multiple embodiments of the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

本申请的目的是提供一种拼接消息的方法与设备,该方法包括:响应于应用中关于第一会话消息的拼接触发操作,从所述第一会话消息所属的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息;通过对所述第一会话消息与所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息。本申请能够极大地减少用户操作,为用户提供了极大的便利,能够极大地提高用户体验。

Description

一种拼接消息的方法与设备
本申请是以CN申请号为202010071821.X,申请日为2020.01.21的申请为基础,并主张其优先权,该CN申请的公开内容在此作为整体引入本申请中
技术领域
本申请涉及通信领域,尤其涉及一种用于拼接消息的技术。
背景技术
随着时代的发展,网络社交拉近了人与人之间的距离,为人们提供了很多的便利,社交应用早已成为最受人们欢迎的移动应用之一。现有技术中,在社交应用中的聊天会话中,若用户双击某个文本消息,会单独地将该文本消息中的文本放大并显示。
发明内容
本申请的一个目的是提供一种拼接消息的方法与设备。
根据本申请的一个方面,提供了一种应用于用户设备的拼接消息的方法,该方法包括:
响应于应用中关于第一会话消息的拼接触发操作,从所述第一会话消息所属的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息;
通过对所述第一会话消息与所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息。
根据本申请的另一个方面,提供了一种应用于用户设备的拼接消息的方法,该方法包括:
响应于应用中关于第一会话消息的拼接触发操作,将所述第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第一会话消息标识信息发送至所述应用对应的服务器;
接收所述服务器发送的、所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息,其中,所述联合会话消息是所述服务器通过对所述第一会话消息以及与所述第一会话消息相关联的一个或多个第二会话消息执行拼接操作生成的。
根据本申请的另一个方面,提供了一种应用于服务器的拼接消息的方法,该方法包括:
接收用户设备发送的、第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第一会话消息标识信息,从所述目标会话标识信息对应的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息;
通过对所述第一会话消息以及所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并将所述联合会话消息发送至所述用户设备。
根据本申请的一个方面,提供了一种拼接消息的用户设备,该设备包括:
一一模块,用于响应于应用中关于第一会话消息的拼接触发操作,从所述第一会话消息所属的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息;
一二模块,用于通过对所述第一会话消息与所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息。
根据本申请的另一个方面,提供了一种拼接消息的用户设备,该设备包括:
二一模块,用于响应于应用中关于第一会话消息的拼接触发操作,将所述第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第一会话消息标识信息发送至所述应用对应的服务器;
二二模块,用于接收所述服务器发送的、所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息,其中,所述联合会话消息是所述服务器通过对所述第一会话消息以及与所述第一会话消息相关联的一个或多个第二会话消息执行拼接操作生成的。
根据本申请的另一个方面,提供了一种拼接消息的服务器,该服务器包括:
三一模块,用于接收用户设备发送的、第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第一会话消息标识信息,从所述目标会话标识信息对应的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息;
三二模块,用于通过对所述第一会话消息以及所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并将所述联合会话消息发送至所述用户设备。
根据本申请的另一个方面,提供了一种拼接消息的设备,其中,该设备包括:
处理器;以及
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行如下操作:
响应于应用中关于第一会话消息的拼接触发操作,从所述第一会话消息所属的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息;
通过对所述第一会话消息与所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息。
根据本申请的另一个方面,提供了一种拼接消息的设备,其中,该设备包括:
处理器;以及
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行如下操作:
响应于应用中关于第一会话消息的拼接触发操作,将所述第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第一会话消息标识信息发送至所述应用对应的服务器;
接收所述服务器发送的、所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息,其中,所述联合会话消息是所述服务器通过对所述第一会话消息以及与所述第一会话消息相关联的一个或多个第二会话消息执行拼接操作生成的。
根据本申请的另一个方面,提供了一种拼接消息的设备,其中,该设备包括:
处理器;以及
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行如下操作:
接收用户设备发送的、第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第一会话消息标识信息,从所述目标会话标识信息对应的目标 会话中确定与所述第一会话消息相关联的一个或多个第二会话消息;
通过对所述第一会话消息以及所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并将所述联合会话消息发送至所述用户设备。
根据本申请的一个方面,提供了一种存储指令的计算机可读介质,所述指令在被执行时使得系统进行如下操作:
响应于应用中关于第一会话消息的拼接触发操作,从所述第一会话消息所属的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息;
通过对所述第一会话消息与所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息。
根据本申请的一个方面,提供了一种存储指令的计算机可读介质,所述指令在被执行时使得系统进行如下操作:
响应于应用中关于第一会话消息的拼接触发操作,将所述第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第一会话消息标识信息发送至所述应用对应的服务器;
接收所述服务器发送的、所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息,其中,所述联合会话消息是所述服务器通过对所述第一会话消息以及与所述第一会话消息相关联的一个或多个第二会话消息执行拼接操作生成的。
根据本申请的一个方面,提供了一种存储指令的计算机可读介质,所述指令在被执行时使得系统进行如下操作:
接收用户设备发送的、第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第一会话消息标识信息,从所述目标会话标识信息对应的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息;
通过对所述第一会话消息以及所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并将所述联合会话消息发送至所述用户设备。
与现有技术相比,本申请能够自动判断与第一会话消息相关联的一个或多个第二会话消息,并将所述第一会话消息和所述一个或多个第二会话消息自动拼接到一起显示,也即能够将用户期望看到的多条文本自动拼接并一起显示,从而使得用户 仅需针对第一会话消息执行预定的拼接触发操作,便能自动在应用窗口中呈现包含第一会话消息的联合会话消息,这能够极大地减少用户操作,为用户提供了极大的便利,能够极大地提高用户体验。
附图说明
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:
图1示出根据本申请一个实施例的一种应用于用户设备的拼接消息的方法流程图;
图2示出根据本申请一个实施例的一种应用于用户设备的拼接消息的方法流程图;
图3示出根据本申请一个实施例的一种应用于服务器的拼接消息的方法流程图;
图4示出根据本申请一个实施例的一种拼接消息的系统方法流程图;
图5示出根据本申请一个实施例的一种拼接消息的用户设备结构图;
图6示出根据本申请一个实施例的一种拼接消息的用户设备结构图;
图7示出根据本申请一个实施例的一种拼接消息的服务器结构图;
图8示出可被用于实施本申请中所述的各个实施例的示例性系统。
附图中相同或相似的附图标记代表相同或相似的部件。
具体实施方式
下面结合附图对本申请作进一步详细描述。
在本申请一个典型的配置中,终端、服务网络的设备和可信方均包括一个或多个处理器(例如,中央处理器(Central Processing Unit,CPU))、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(Random Access Memory,RAM)和/或非易失性内存等形式,如只读存储器(Read Only Memory,ROM)或闪存(Flash Memory)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或 其他数据。计算机的存储介质的例子包括,但不限于相变内存(Phase-Change Memory,PCM)、可编程随机存取存储器(Programmable Random Access Memory,PRAM)、静态随机存取存储器(Static Random-Access Memory,SRAM)、动态随机存取存储器(Dynamic Random Access Memory,DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、数字多功能光盘(Digital Versatile Disc,DVD)或其他光学存储、磁盒式磁带,磁带磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。
本申请所指设备包括但不限于用户设备、网络设备、或用户设备与网络设备通过网络相集成所构成的设备。所述用户设备包括但不限于任何一种可与用户进行人机交互(例如通过触摸板进行人机交互)的移动电子产品,例如智能手机、平板电脑等,所述移动电子产品可以采用任意操作系统,如Android操作系统、iOS操作系统等。其中,所述网络设备包括一种能够按照事先设定或存储的指令,自动进行数值计算和信息处理的电子设备,其硬件包括但不限于微处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑器件(Programmable Logic Device,PLD)、现场可编程门阵列(Field Programmable Gate Array,FPGA)、数字信号处理器(Digital Signal Processor,DSP)、嵌入式设备等。所述网络设备包括但不限于计算机、网络主机、单个网络服务器、多个网络服务器集或多个服务器构成的云;在此,云由基于云计算(Cloud Computing)的大量计算机或网络服务器构成,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个虚拟超级计算机。所述网络包括但不限于互联网、广域网、城域网、局域网、VPN网络、无线自组织网络(Ad Hoc网络)等。优选地,所述设备还可以是运行于所述用户设备、网络设备、或用户设备与网络设备、网络设备、触摸终端或网络设备与触摸终端通过网络相集成所构成的设备上的程序。
当然,本领域技术人员应能理解上述设备仅为举例,其他现有的或今后可能出现的设备如可适用于本申请,也应包含在本申请保护范围以内,并在此以引用方式包含于此。
在本申请的描述中,“多个”的含义是两个或者更多,除非另有明确具体的限定。
图1示出了根据本申请一个实施例的一种应用于用户设备的拼接消息的方法流程图,该方法包括步骤S11和步骤S12。在步骤S11中,用户设备响应于应用中关于第 一会话消息的拼接触发操作,从所述第一会话消息所属的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息;在步骤S12中,用户设备通过对所述第一会话消息与所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息。
在步骤S11中,用户设备响应于应用中关于第一会话消息的拼接触发操作,从所述第一会话消息所属的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息。在一些实施例中,拼接触发操作可由用户手动触发执行,也可由应用自动触发执行。例如,用户在聊天应用的会话页面中双击第一会话消息。响应于拼接触发操作,从第一会话消息所属的目标会话中确定与第一会话消息相关联的一个或多个第二会话消息,在此,第二会话消息可以是在时间上与第一会话消息相关联(例如,与第一会话消息的时间间隔小于或等于预定的时间间隔阈值),优选地,还可以是语义上与第一会话消息相关联(例如,与第一会话消息的语义相似度大于或等于预定的相似度阈值)。第二会话消息可以仅包括与第一会话消息的发送方相同的会话消息,但也可能包括多个发送方的会话消息(例如,多个发送方的会话消息在语义上可以形成对话)。
在步骤S12中,用户设备通过对所述第一会话消息与所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息。在一些实施例中,对第一会话消息与一个或多个会话消息执行拼接操作,生成联合会消息,并呈现在应用窗口中,优选地,将联合会话消息放大并全屏呈现在应用窗口中。在此,可以按发送时间的先后顺序进行拼接,也可以按发送方的顺序进行拼接,将相同发送方的会话消息优先拼接在一起,在此,不限于按任何顺序进行拼接。
在一些实施例中,所述在所述应用的应用窗口中呈现所述联合会话消息,包括:在所述应用的应用窗口中全屏并放大呈现所述联合会话消息。在一些实施例中,用户设备会将联合会话消息放大并全屏呈现在应用窗口中。
在一些实施例中,从所述第一会话消息所属的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息,包括步骤S111(未示出)和步骤S112(未示出)。在步骤S111中,用户设备从所述第一会话所属的目标会话中确定与所述第一会话消息相关联的会话消息集合;在步骤S112中,用户设备从所述会话消息集合中确定与所述第一会话消息相关联的一个或多个第二会话消息。在一些实施例中,先粗略地从第一会 话所属的目标会话中确定与第一会话消息相关联的会话消息集合,该会话消息集合中可以包括第一会话消息自身,也可以不包括第一会话消息自身,然后再通过语义相似度比较,精确地从会话消息集合中确定与第一会话消息相关联的一个或多个第二会话消息。
在一些实施例中,所述步骤S111包括步骤S1111(未示出)和步骤S1112(未示出)。在步骤S1111中,用户设备获得所述目标会话中在所述第一会话消息之前的第一预定时间间隔内的至少一个第十会话消息以及在所述第一会话消息之后的第二预定时间间隔内的至少一个第三会话消息;在步骤S1112中,用户设备根据所述至少一个第十会话消息和所述至少一个第三会话消息确定与所述第一会话消息相关联的会话消息集合。在一些实施例中,第一预定时间间隔可以与第二预定时间间隔相同,会话消息集合可以包括至少一个第十会话消息和至少一个第三会话消息中的全部或部分会话消息。例如,将第一会话消息对应的发送时间前后10分钟内的全部或部分会话消息组成会话消息集合。
在一些实施例中,所述步骤S1112包括:用户设备将所述至少一个第十会话消息和所述至少一个第三会话消息的集合作为所述会话消息集合。在一些实施例中,将至少一个第十会话消息和至少一个第三会话消息中的全部消息组成会话消息集合。
在一些实施例中,所述步骤S1112包括:用户设备从所述至少一个第十会话消息中获得与所述第一会话消息的消息发送方相同的一个或多个第十会话消息,从所述至少一个第三会话消息中获得与所述第一会话消息的消息发送方相同的一个或多个第三会话消息;将所述一个或多个第十会话消息和所述一个或多个第三会话消息的集合作为所述会话消息集合。例如,在第一会话消息对应的发送时间前后10分内的所有会话消息中选择与第一会话消息对应同一个消息发送方的会话消息的集合作为会话消息集合。
在一些实施例中,所述步骤S1112包括:用户设备从所述至少一个第十会话消息中获得与所述第一会话消息的消息发送方相同且与所述第一会话消息具备连续性的一个或多个第十会话消息,从所述至少一个第三会话消息中获得与所述第一会话消息的消息发送方相同且与所述第一会话消息具备连续性的一个或多个第三会话消息;将所述一个或多个第十会话消息和所述一个或多个第三会话消息的集合作为所述会话消息集合。例如,在第一会话消息对应的发送时间前后10分内的所有会话消息中选择与第一会话消息对应同一个消息发送方且与第一会话消息之间没有其他消息发送方插入的连贯会话消息的集合作为会话消息集合。
在一些实施例中,所述步骤S111包括步骤S1113(未示出)和步骤S1114(未示出)。 在步骤S1113中,用户设备获得所述目标会话中位于所述第一会话消息之前的第一预定数量的第四会话消息以及位于所述第一会话消息之后的第二预定数量的第五会话消息;在步骤S1114中,用户设备根据所述至少一个第四会话消息和所述至少一个第五会话消息确定与所述第一会话消息相关联的会话消息集合。在一些实施例中,第一预定数量可以与第二预定数量相同,也可以与第二预定数量不同。例如,将第一会话消息前后各10条会话消息中的全部或部分会话消息组成会话消息集合。
在一些实施例中,所述步骤S1114包括:用户设备将所述至少一个第四会话消息和所述至少一个第五会话消息的集合作为所述会话消息集合。在一些实施例中,将至少一个第四会话消息和至少一个第五会话消息中的全部消息组成会话消息集合。
在一些实施例中,所述步骤S1114包括:用户设备从所述至少一个第四会话消息中获得与所述第一会话消息的消息发送方相同的一个或多个第四会话消息,从所述至少一个第五会话消息中获得与所述第一会话消息的消息发送方相同的一个或多个第五会话消息;将所述一个或多个第四会话消息和所述一个或多个第五会话消息的集合作为所述会话消息集合。例如,在第一会话消息前后各10条会话消息中选择与第一会话消息对应同一个消息发送方的会话消息的集合作为会话消息集合。
在一些实施例中,所述步骤S1114包括:用户设备从所述至少一个第四会话消息中获得与所述第一会话消息的消息发送方相同且与所述第一会话消息具备连续性的一个或多个第四会话消息,从所述至少一个第五会话消息中获得与所述第一会话消息的消息发送方相同且与所述第一会话消息具备连续性的一个或多个第五会话消息;将所述一个或多个第四会话消息和所述一个或多个第五会话消息的集合作为所述会话消息集合。例如,在第一会话消息前后各10条会话消息中选择与第一会话消息对应同一个消息发送方且与第一会话消息之间没有其他消息发送方插入的连贯会话消息的集合作为会话消息集合。
在一些实施例中,所述步骤S111包括:用户设备获得所述目标会话中位于所述第一会话消息之前的第一预定数量的第六会话消息以及位于所述第一会话消息之后的第二预定数量的第七会话消息,其中,所述至少一个第六会话消息及所述至少一个第七会话消息与所述第一会话消息的消息发送方相同;将所述至少一个第六会话消息和所述至少一个第七会话消息的集合作为所述会话消息集合。例如,将第一会话消息前后各10条与第一会话消息对应同一个消息发送方的会话消息的集合作为会话消息集合。
在一些实施例中,所述步骤S111包括:用户设备获得所述目标会话中位于所述第一会话消息之前的至少一个第八会话消息以及位于所述第一会话消息之后的至少一个第九会话消息,其中,所述至少一个第八会话消息及所述至少一个第九会话消息与所述第一会话消息的消息发送方相同且与所述第一会话消息具备连续性;将所述至少一个第八会话消息和所述至少一个第九会话消息的集合作为所述会话消息集合。例如,将第一会话消息前后与第一会话消息对应同一个消息发送方且与第一会话消息之间没有其他消息发送方插入的连贯会话消息的集合作为会话消息集合。
在一些实施例中,所述步骤S112包括步骤S1121(未示出)、步骤S1122(未示出)、步骤S1123(未示出)和步骤S1124(未示出)。在步骤S1121中,用户设备对于所述会话消息集合中的每个会话消息,针对该会话消息执行实体抽取操作,得到该会话消息对应的实体序列;在步骤S1122中,用户设备根据所述会话消息集合中的每个会话消息对应的实体序列,生成所述会话消息集合对应的会话消息矩阵,其中,所述会话消息矩阵的每一行或每一列对应所述会话消息集合中的一个会话消息对应的实体序列;在步骤S1123中,用户设备确定所述会话消息矩阵的不同行或不同列之间的相似度;在步骤S1124中,用户设备根据所述会话消息矩阵的不同行或不同列之间的相似度,从所述会话消息集合中确定与所述第一会话消息相关联的一个或多个第二会话消息。在一些实施例中,可以按照自然语言规则对会话消息集合中的每个会话消息进行基本实体抽取,实体包括但不限于事件类型(会话消息的语法范畴,例如,会话消息是陈述句还是疑问句)、事件执行主体(会话消息的主语)、事件触发词(会话消息的谓语)、事件实体(会话消息的宾语)、事件实体描述(会话消息的定语)等,对于每个会话消息,最终可以得到由多个实体组成的实体序列,实体序列可以是行向量,也可以列向量。在针对会话消息集合中的每个会话消息进行实体抽取得到每个会话消息对应的实体序列后,可以生成该会话消息集合对应的会话消息矩阵,会话消息矩阵的每一行或每一列对应会话消息集合中的一个会话消息对应的实体序列,根据会话消息矩阵的不同行或不同列之间的相似度,若会话消息矩阵中不包括第一会话消息自身,则需要另外对第一会话消息进行实体抽取得到第一会话消息对应的第一实体序列,然后将会话消息矩阵的不同行或不同列与第一实体序列进行比较,可以确定不同会话消息之间的相似度,从而从消息会话集合中确定与第一会话消息相关联的一个或多个第二会话消息,其中,第二会话消息是可以是消息会话集合中与第一会话消息之间的相似度大于或等于预定相似度阈值的会话消息。
在一些实施例中,所述方法在所述步骤S1123之前还包括:用户设备根据词典算法,对所述会话消息矩阵中的一个或多个实体添加相似度标签,其中,一个实体对应的相似度标签包括与该实体的相似度满足预定的相似度阈值的一个或多个其他实体及该实体与每个其他实体之间的相似度。在一些实施例中,根据词典算法(例如,Lesk算法),可以根据两个实体在词典中的词义解释的相似度(例如,词义解释中相同文字或词语的个数),来得到两个实体之间的相似度,从而给会话消息集合中的一个或多个实体添加相似度标签,一个实体的相似度标签包括与该实体的相似度满足预定相似度阈值的一个或多个其他实体以及该实体与每个其他实体之间的相似度,从而可以给后续的语义相似度比较提供参考,消除多义词带来的歧义以及流行语带来的语义变化对后续语义相似度分析的影响。在一些实施例中,可根据每个实体的相似度标签来确定与会话相似相关联的一个或多个会话消息,两个实体所对应的相似度标签中共同包括的实体越多,该两个实体的关联性越强,一个实体与其所对应的相似度标签中的其他实体之间的相似度越高,该实体对所示其他实体的关联性越强。在一些实施例中,相似度标签相同或相近的实体被视为具有关联性。
在一些实施例中,所述步骤S1123包括:用户设备获取所述述会话消息矩阵的不同行或不同列之间的语言类型相似度,并根据所述不同行或不同列之间的语言类型相似度,确定所述不同行或不同列之间的相似度。在一些实施例中,语言类型包括但不限于语种、语系、语族、语支等类型。
在一些实施例中,所述步骤S1123包括:用户设备获取所述会话消息矩阵的不同行或不同列之间的语言特征相似度,并根据所述不同行或不同列之间的语言特征相似度,确定所述不同行或不同列之间的相似度。在一些实施例中,语言特征可以是会话消息中的特定的、具有代表性的语言现象,包括但不限于提示短语、新词出现、命名实体、韵律特征、停顿标记、重复特征、指代使用、句法以及词汇的形态同化等。
在一些实施例中,所述步骤S1123包括:用户设备获取所述会话消息矩阵的不同行或不同列之间的语义相似度,并根据所述不同行或不同列之间的语义相似度,确定所述不同行或不同列之间的相似度。在一些实施例中,对于会话消息矩阵的不同行或不同列进行语义分析,将不同行或不同列之间的语义相似度作为不同行或不同列之间的相似度,若会话消息矩阵中不包括第一会话消息自身,则还需要另外对第一会话消息进行语义分析,得到会话消息矩阵中不同行或不同列与第一会话消息之间的语义相似度,从而 进一步确定会话消息集合中不同会话消息之间的相似度。
在一些实施例中,所述步骤S1123包括:用户设备根据词向量算法,将会话消息矩阵中的每个实体转化为对应的词向量;获取所述会话消息矩阵的不同行或不同列之间的词向量相似度,并根据所述不同行或不同列之间的词向量相似度,确定所述不同行或不同列之间的相似度。在一些实施例中,根据词向量算法(例如,Word2Vec算法),将会话消息矩阵中的每个实体转化为高维空间中对应的词向量,然后对每一行或每一列中的所有实体的词向量求平均,获得句向量,然后通过词移距离,直接度量不同句向量之间的相似度,从而可以确定会话消息矩阵额不同行或不同列之间的词向量相似度,并进一步确定会话消息集合中不同会话消息之间的相似度。
在一些实施例中,所述步骤S1124包括:用户设备根据所述会话消息矩阵的不同行或不同列之间的相似度,从所述会话消息集合中确定与所述第一会话消息相关联的一个或多个第二会话消息,其中,所述一个或多个第二会话消息中的每个第二会话消息与所述第一会话消息之间的相似度大于或等于预定相似度阈值。在一些实施例中,若会话消息矩阵包括第一会话消息自身,将会话消息矩阵中与第一会话消息对应的行或列之间的相似度大于或等于预定相似度阈值的行或列所对应的会话消息,作为会话消息集合中与第一会话消息相关联的一个或多个第二会话消息,或者,若会话消息矩阵中不包括第一会话消息自身,将会话消息矩阵中与第一会话消息对应的第一实体序列的相似度大于或等于预定相似度阈值的行或列所对应的会话消息,作为会话消息集合中与第一会话消息相关联的一个或多个第二会话消息。
在一些实施例中,所述步骤S1124包括步骤S11241(未示出)、S11242(未示出)、S11243(未示出)和S11244(未示出)。在步骤S11241中,用户设备计算所述会话消息集合中的每个会话消息与所述第一会话消息之间的相似度,并根据所述每个会话消息与所述第一会话消息之间的相似度,从所述会话消息矩阵中选择与第一会话消息之间的相似度大于或等于第一相似度阈值的至少一个行或列;在步骤S11242中,用户设备对于已选择的每行或每列,根据所述会话消息矩阵的不同行或不同列之间的相似度,从所述会话消息矩阵中选择与该行或该列之间的相似度大于或等于第二相似度阈值的至少一个行或列;在步骤S11243中,用户设备重复所述步骤S11242直至所述会话消息矩阵中不存在与已选择的行或列之间的相似度大于或等于第二相似度阈值的行或列;在步骤S11244中,用户设备将从所述会话消息矩阵中选择出的全部行或列对应的会话消息作 为与所述第一会话消息相关联的一个或多个第二会话消息。在一些实施例中,第一相似度阈值与第二相似度阈值相同;在一些实施例中,第一相似度阈值小于第二相似度阈值。在一些实施例中,第二相似度阈值可能是固定的,也可能是动态调整的,例如,对于已选择的每个行或列,该行或列在时间上与第一会话消息的发送时间越接近,判断是否存在与该行或列之间的相似度大于或等于第二相似度阈值的行或列时所使用的第二相似度阈值越大。例如,会话消息集合中包括10行,分别记为P 0、P 1、P 2、…、P 9,每行对应一个会话消息,该会话消息集合中并不包含第一会话消息,用户设备先计算所述会话消息集合中的每个会话消息与所述第一会话消息之间的相似度,之后从所述会话消息集合中选择出与所述第一会话消息之间的相似度大于或等于第一相似度阈值的如下行:P 2、P 5,之后,针对P 2,根据所述会话消息矩阵的不同行之间的相似度,从所述会话消息矩阵中选择与P 2之间的相似度大于或等于第二相似度阈值的行P 3,且针对P 5,根据所述会话消息矩阵的不同行之间的相似度,从所述会话消息矩阵中选择与P 2之间的相似度大于或等于第二相似度阈值的行P 6,用户设备将P 2、P 3、P 5、P 6作为与所述第一会话消息相关联的一个或多个第二会话消息。
在一些实施例中,所述步骤S12包括:用户设备通过对所述第一会话消息与所述一个或多个第二会话消息按照消息发送时间顺序执行拼接操作,生成所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息。在一些实施例中,可以按照消息发送时间的先后顺序对第一会话消息与一个或多个第二会话消息进行拼接。
在一些实施例中,所述步骤S12包括:用户设备通过对所述第一会话消息与所述一个或多个第二会话消息按照消息发送方顺序执行拼接操作,生成所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息。在一些实施例中,可以按发送方的顺序对第一会话消息与一个或多个第二会话消息进行拼接,将相同发送方的会话消息优先拼接在一起。
图2示出了根据本申请一个实施例的一种应用于用户设备的拼接消息的方法流程图,该方法包括步骤S21和步骤S22。在步骤S21中,用户设备响应于应用中关于第一会话消息的拼接触发操作,将所述第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第一会话消息标识信息发送至所述应用对应的服务器;在步骤S22中,用户设备接收所述服务器发送的、所述第一会话消息对应的联合会 话消息,并在所述应用的应用窗口中呈现所述联合会话消息,其中,所述联合会话消息是所述服务器通过对所述第一会话消息以及与所述第一会话消息相关联的一个或多个第二会话消息执行拼接操作生成的。
在步骤S21中,用户设备响应于应用中关于第一会话消息的拼接触发操作,将所述第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第一会话消息标识信息发送至所述应用对应的服务器。在一些实施例中,拼接触发操作可由用户手动触发执行,也可由应用自动触发执行,例如,用户在聊天应用的会话页面中双击第一会话消息。在一些实施例中,将第一会话消息所属的目标会话对应的目标会话标识信息、第一会话消息自身或第一会话消息对应的第一会话消息标识信息发送至服务器。
在步骤S22中,用户设备接收所述服务器发送的、所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息,其中,所述联合会话消息是所述服务器通过对所述第一会话消息以及与所述第一会话消息相关联的一个或多个第二会话消息执行拼接操作生成的。在一些实施例中,服务器接收到第一会话消息所属的目标会话对应的目标会话标识信息、第一会话消息自身或第一会话消息对应的第一会话消息标识信息后,从目标会话标识信息对应的目标会话中确定与第一会话消息相关联的一个或多个第二会话消息,然后对第一会话消息与一个或多个第二会话消息执行拼接操作,并将拼接生成的联合会话消息发送至用户设备,可以按发送时间的先后顺序进行拼接,也可以按发送方的顺序进行拼接,将相同发送方的会话消息优先拼接在一起,在此,不限于按任何顺序进行拼接。在此,第二会话消息可以是在时间上与第一会话消息相关联(例如,与第一会话消息的时间间隔小于或等于预定的时间间隔阈值),优选地,还可以是语义上与第一会话消息相关联(例如,与第一会话消息的语义相似度大于或等于预定的相似度阈值)。第二会话消息可以仅包括与第一会话消息的发送方相同的会话消息,但也可能包括多个发送方的会话消息(例如,多个发送方的会话消息在语义上可以形成对话)。在一些实施例中,接收到服务器发送的联合会话消息后,将联合会话消息呈现在应用窗口中,优选地,将联合会话消息放大并全屏呈现在应用窗口中。
图3示出了根据本申请一个实施例的一种应用于服务器的拼接消息的方法流程图,该方法包括步骤S31和步骤S32。在步骤S31中,服务器接收用户设备发送的、第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第 一会话消息标识信息,从所述目标会话标识信息对应的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息;在步骤S32中,服务器通过对所述第一会话消息以及所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并将所述联合会话消息发送至所述用户设备。
在步骤S31中,服务器接收用户设备发送的、第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第一会话消息标识信息,从所述目标会话标识信息对应的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息。在一些实施例中,服务器接收到第一会话消息所属的目标会话对应的目标会话标识信息、第一会话消息自身或第一会话消息对应的第一会话消息标识信息后,从目标会话标识信息对应的目标会话中确定与第一会话消息相关联的一个或多个第二会话消息。在此,第二会话消息可以是在时间上与第一会话消息相关联(例如,与第一会话消息的时间间隔小于或等于预定的时间间隔阈值),优选地,还可以是语义上与第一会话消息相关联(例如,与第一会话消息的语义相似度大于或等于预定的相似度阈值)。第二会话消息可以仅包括与第一会话消息的发送方相同的会话消息,但也可能包括多个发送方的会话消息(例如,多个发送方的会话消息在语义上可以形成对话)。
在步骤S32中,服务器通过对所述第一会话消息以及所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并将所述联合会话消息发送至所述用户设备。在一些实施例中,对第一会话消息与一个或多个第二会话消息执行拼接操作,然后将拼接生成的联合会话消息发送至用户设备,可以按发送时间的先后顺序进行拼接,也可以按发送方的顺序进行拼接,将相同发送方的会话消息优先拼接在一起,在此,不限于按任何顺序进行拼接。
图4示出根据本申请一个实施例的一种拼接消息的系统方法流程图。
如图4所示,在步骤S41中,用户设备响应于应用中关于第一会话消息的拼接触发操作,将所述第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第一会话消息标识信息发送至所述应用对应的服务器,步骤S41和前述步骤S11相同或者相似,在此不再赘述;在步骤S42中,所述服务器接收所述用户设备发送的、所述目标会话标识信息以及所述第一会话消息标识信息,从所述目标会话标识信息对应的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息,步骤S42和前述步骤S21相同或者相似,在此不再赘述;在步骤S43中,所述服务器通过对 所述第一会话消息以及所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并将所述联合会话消息发送至所述用户设备,步骤S43和前述步骤S22相同或者相似,在此不再赘述;在步骤S44中,所述用户设备接收所述服务器发送的所述联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息,步骤S44和前述步骤S12相同或者相似,在此不再赘述。
图5示出了根据本申请一个实施例的一种拼接消息的用户设备结构图,该设备包括一一模块11和一二模块12。一一模块11,用于响应于应用中关于第一会话消息的拼接触发操作,从所述第一会话消息所属的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息;一二模块12,用于通过对所述第一会话消息与所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息。
一一模块11,用于响应于应用中关于第一会话消息的拼接触发操作,从所述第一会话消息所属的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息。在一些实施例中,拼接触发操作可由用户手动触发执行,也可由应用自动触发执行。例如,用户在聊天应用的会话页面中双击第一会话消息。响应于拼接触发操作,从第一会话消息所属的目标会话中确定与第一会话消息相关联的一个或多个第二会话消息,在此,第二会话消息可以是在时间上与第一会话消息相关联(例如,与第一会话消息的时间间隔小于或等于预定的时间间隔阈值),优选地,还可以是语义上与第一会话消息相关联(例如,与第一会话消息的语义相似度大于或等于预定的相似度阈值)。第二会话消息可以仅包括与第一会话消息的发送方相同的会话消息,但也可能包括多个发送方的会话消息(例如,多个发送方的会话消息在语义上可以形成对话)。
一二模块12,用于通过对所述第一会话消息与所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息。在一些实施例中,对第一会话消息与一个或多个会话消息执行拼接操作,生成联合会消息,并呈现在应用窗口中,优选地,将联合会话消息放大并全屏呈现在应用窗口中。在此,可以按发送时间的先后顺序进行拼接,也可以按发送方的顺序进行拼接,将相同发送方的会话消息优先拼接在一起,在此,不限于按任何顺序进行拼接。
在一些实施例中,所述在所述应用的应用窗口中呈现所述联合会话消息,包括:在 所述应用的应用窗口中全屏并放大呈现所述联合会话消息。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,从所述第一会话消息所属的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息,包括一一一模块111(未示出)和一一二模块112(未示出)。一一一模块111,用于从所述第一会话所属的目标会话中确定与所述第一会话消息相关联的会话消息集合;一一二模块112,用于从所述会话消息集合中确定与所述第一会话消息相关联的一个或多个第二会话消息。在此,一一一模块111和一一二模块112的具体实现方式与图1中有关步骤S111和S112的实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述一一一模块111包括一一一一一模块1111(未示出)和一一一二模块1112(未示出)。一一一一模块1111,用于获得所述目标会话中在所述第一会话消息之前的第一预定时间间隔内的至少一个第十会话消息以及在所述第一会话消息之后的第二预定时间间隔内的至少一个第三会话消息;一一一二模块1112,用于根据所述至少一个第十会话消息和所述至少一个第三会话消息确定与所述第一会话消息相关联的会话消息集合。在此,一一一一模块1111和一一一二模块1112的具体实现方式与图1中有关步骤S1111和S1112的实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述一一一二模块1112用于:将所述至少一个第十会话消息和所述至少一个第三会话消息的集合作为所述会话消息集合。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述一一一二模块1112用于:从所述至少一个第十会话消息中获得与所述第一会话消息的消息发送方相同的一个或多个第十会话消息,从所述至少一个第三会话消息中获得与所述第一会话消息的消息发送方相同的一个或多个第三会话消息;将所述一个或多个第十会话消息和所述一个或多个第三会话消息的集合作为所述会话消息集合。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述一一一二模块1112用于:从所述至少一个第十会话消息中获得与所述第一会话消息的消息发送方相同且与所述第一会话消息具备连续性的一个或多个第十会话消息,从所述至少一个第三会话消息中获得与所述第一会话消息的消息 发送方相同且与所述第一会话消息具备连续性的一个或多个第三会话消息;将所述一个或多个第十会话消息和所述一个或多个第三会话消息的集合作为所述会话消息集合。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述一一一模块111包括一一一三模块1113(未示出)和一一一四模块1114(未示出)。一一一三模块1113,用于获得所述目标会话中位于所述第一会话消息之前的第一预定数量的第四会话消息以及位于所述第一会话消息之后的第二预定数量的第五会话消息;一一一四模块1114,用于根据所述至少一个第四会话消息和所述至少一个第五会话消息确定与所述第一会话消息相关联的会话消息集合。在此,一一一三模块1113和一一一四模块1114的具体实现方式与图1中有关步骤S1113和S1114的实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述一一一四模块1114用于:将所述至少一个第四会话消息和所述至少一个第五会话消息的集合作为所述会话消息集合。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述一一一四模块1114用于:从所述至少一个第四会话消息中获得与所述第一会话消息的消息发送方相同的一个或多个第四会话消息,从所述至少一个第五会话消息中获得与所述第一会话消息的消息发送方相同的一个或多个第五会话消息;将所述一个或多个第四会话消息和所述一个或多个第五会话消息的集合作为所述会话消息集合。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述一一一四模块1114用于:从所述至少一个第四会话消息中获得与所述第一会话消息的消息发送方相同且与所述第一会话消息具备连续性的一个或多个第四会话消息,从所述至少一个第五会话消息中获得与所述第一会话消息的消息发送方相同且与所述第一会话消息具备连续性的一个或多个第五会话消息;将所述一个或多个第四会话消息和所述一个或多个第五会话消息的集合作为所述会话消息集合。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述一一一模块111用于:获得所述目标会话中位于所述第一会话消息之前的第一预定数量的第六会话消息以及位于所述第一会话消息之后的第二预定数量的第七会话消息,其中,所述至少一个第六会话消息及所述至少一个第七会话消息与所述第一会话消息的消息发送方相同;将所述至少一个第六会话消息和所述至少一 个第七会话消息的集合作为所述会话消息集合。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述一一一模块111用于:获得所述目标会话中位于所述第一会话消息之前的至少一个第八会话消息以及位于所述第一会话消息之后的至少一个第九会话消息,其中,所述至少一个第八会话消息及所述至少一个第九会话消息与所述第一会话消息的消息发送方相同且与所述第一会话消息具备连续性;将所述至少一个第八会话消息和所述至少一个第九会话消息的集合作为所述会话消息集合。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述一一二模块112包括一一二一模块1121(未示出)、一一二二模块1122(未示出)、一一二三模块1123(未示出)和一一二四模块1124(未示出)。一一二一模块1121,用于对于所述会话消息集合中的每个会话消息,针对该会话消息执行实体抽取操作,得到该会话消息对应的实体序列;一一二二模块1122,用于根据所述会话消息集合中的每个会话消息对应的实体序列,生成所述会话消息集合对应的会话消息矩阵,其中,所述会话消息矩阵的每一行或每一列对应所述会话消息集合中的一个会话消息对应的实体序列;一一二三模块1123,用于确定所述会话消息矩阵的不同行或不同列之间的相似度;一一二四模块1124,用于根据所述会话消息矩阵的不同行或不同列之间的相似度,从所述会话消息集合中确定与所述第一会话消息相关联的一个或多个第二会话消息。在此,一一二一模块1121、一一二二模块1122、一一二三模块1123和一一二四模块1124的具体实现方式与图1中有关步骤S1121、S1122、S1123和S1124的实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述设备还用于:根据词典算法,对所述会话消息矩阵中的一个或多个实体添加相似度标签,其中,一个实体对应的相似度标签包括与该实体的相似度满足预定的相似度阈值的一个或多个其他实体及该实体与每个其他实体之间的相似度。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述一一二三模块1123用于:获取所述述会话消息矩阵的不同行或不同列之间的语言类型相似度,并根据所述不同行或不同列之间的语言类型相似度,确定所述不同行或不同列之间的相似度。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述一一二三模块1123用于:获取所述会话消息矩阵的不同行 或不同列之间的语言特征相似度,并根据所述不同行或不同列之间的语言特征相似度,确定所述不同行或不同列之间的相似度。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述一一二三模块1123用于:获取所述会话消息矩阵的不同行或不同列之间的语义相似度,并根据所述不同行或不同列之间的语义相似度,确定所述不同行或不同列之间的相似度。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述一一二三模块1123用于:根据词向量算法,将会话消息矩阵中的每个实体转化为对应的词向量;获取所述会话消息矩阵的不同行或不同列之间的词向量相似度,并根据所述不同行或不同列之间的词向量相似度,确定所述不同行或不同列之间的相似度。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述一一二四模块1124用于:根据所述会话消息矩阵的不同行或不同列之间的相似度,从所述会话消息集合中确定与所述第一会话消息相关联的一个或多个第二会话消息,其中,所述一个或多个第二会话消息中的每个第二会话消息与所述第一会话消息之间的相似度大于或等于预定相似度阈值。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述一一二四模块1124包括一一二四一模块11241(未示出)、一一二四二模块11242(未示出)、一一二四三模块11243(未示出)和一一二四四模块11244(未示出)。一一二四一模块11241,用于计算所述会话消息集合中的每个会话消息与所述第一会话消息之间的相似度,并根据所述每个会话消息与所述第一会话消息之间的相似度,从所述会话消息矩阵中选择与第一会话消息之间的相似度大于或等于第一相似度阈值的至少一个行或列;一一二四二模块11242,用于对于已选择的每行或每列,根据所述会话消息矩阵的不同行或不同列之间的相似度,从所述会话消息矩阵中选择与该行或该列之间的相似度大于或等于第二相似度阈值的至少一个行或列;一一二四三模块11243,用于重复所述一一二四二模块11242直至所述会话消息矩阵中不存在与已选择的行或列之间的相似度大于或等于第二相似度阈值的行或列;一一二四四模块11244,用于将从所述会话消息矩阵中选择出的全部行或列对应的会话消息作为与所述第一会话消息相关联的一个或多个第二会话消息。在此,一一二四一模块11241、一一 二四二模块11242、一一二四三模块11243和一一二四四模块11244的具体实现方式与图1中有关步骤S11241、S11242、S11243和S11244的实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述一二模块12用于:通过对所述第一会话消息与所述一个或多个第二会话消息按照消息发送时间顺序执行拼接操作,生成所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。
在一些实施例中,所述一二模块12用于:通过对所述第一会话消息与所述一个或多个第二会话消息按照消息发送方顺序执行拼接操作,生成所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息。在此,相关操作与图1所示实施例相同或相近,故不再赘述,在此以引用方式包含于此。
图6示出了根据本申请一个实施例的一种拼接消息的用户设备结构图,该设备包括二一模块21和二二模块22。二一模块21,用于响应于应用中关于第一会话消息的拼接触发操作,将所述第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第一会话消息标识信息发送至所述应用对应的服务器;二二模块22,用于接收所述服务器发送的、所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息,其中,所述联合会话消息是所述服务器通过对所述第一会话消息以及与所述第一会话消息相关联的一个或多个第二会话消息执行拼接操作生成的。
二一模块21,用于响应于应用中关于第一会话消息的拼接触发操作,将所述第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第一会话消息标识信息发送至所述应用对应的服务器。在一些实施例中,拼接触发操作可由用户手动触发执行,也可由应用自动触发执行,例如,用户在聊天应用的会话页面中双击第一会话消息。在一些实施例中,将第一会话消息所属的目标会话对应的目标会话标识信息、第一会话消息自身或第一会话消息对应的第一会话消息标识信息发送至服务器。
二二模块22,用于接收所述服务器发送的、所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息,其中,所述联合会话消息是所述服务器通过对所述第一会话消息以及与所述第一会话消息相关联的一个或多个第二会话消息执行拼接操作生成的。在一些实施例中,服务器接收到第一会话消息所属的目标会 话对应的目标会话标识信息、第一会话消息自身或第一会话消息对应的第一会话消息标识信息后,从目标会话标识信息对应的目标会话中确定与第一会话消息相关联的一个或多个第二会话消息,然后对第一会话消息与一个或多个第二会话消息执行拼接操作,并将拼接生成的联合会话消息发送至用户设备,可以按发送时间的先后顺序进行拼接,也可以按发送方的顺序进行拼接,将相同发送方的会话消息优先拼接在一起,在此,不限于按任何顺序进行拼接。在此,第二会话消息可以是在时间上与第一会话消息相关联(例如,与第一会话消息的时间间隔小于或等于预定的时间间隔阈值),优选地,还可以是语义上与第一会话消息相关联(例如,与第一会话消息的语义相似度大于或等于预定的相似度阈值)。第二会话消息可以仅包括与第一会话消息的发送方相同的会话消息,但也可能包括多个发送方的会话消息(例如,多个发送方的会话消息在语义上可以形成对话)。在一些实施例中,接收到服务器发送的联合会话消息后,将联合会话消息呈现在应用窗口中,优选地,将联合会话消息放大并全屏呈现在应用窗口中。
图7示出了根据本申请一个实施例的一种拼接消息的服务器结构图,该服务器包括三一模块31和三二模块32。三一模块31,用于接收用户设备发送的、第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第一会话消息标识信息,从所述目标会话标识信息对应的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息;三二模块32,用于通过对所述第一会话消息以及所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并将所述联合会话消息发送至所述用户设备。
三一模块31,用于接收用户设备发送的、第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第一会话消息标识信息,从所述目标会话标识信息对应的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息。在一些实施例中,服务器接收到第一会话消息所属的目标会话对应的目标会话标识信息、第一会话消息自身或第一会话消息对应的第一会话消息标识信息后,从目标会话标识信息对应的目标会话中确定与第一会话消息相关联的一个或多个第二会话消息。在此,第二会话消息可以是在时间上与第一会话消息相关联(例如,与第一会话消息的时间间隔小于或等于预定的时间间隔阈值),优选地,还可以是语义上与第一会话消息相关联(例如,与第一会话消息的语义相似度大于或等于预定的相似度阈值)。第二会话消息可以仅包括与第一会话消息的发送方相同的会话消息,但也可能包括多个发送方的 会话消息(例如,多个发送方的会话消息在语义上可以形成对话)。
三二模块32,用于通过对所述第一会话消息以及所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并将所述联合会话消息发送至所述用户设备。在一些实施例中,对第一会话消息与一个或多个第二会话消息执行拼接操作,然后将拼接生成的联合会话消息发送至用户设备,可以按发送时间的先后顺序进行拼接,也可以按发送方的顺序进行拼接,将相同发送方的会话消息优先拼接在一起,在此,不限于按任何顺序进行拼接。
图8示出了可被用于实施本申请中所述的各个实施例的示例性系统。
如图8所示在一些实施例中,系统300能够作为各所述实施例中的任意一个设备。在一些实施例中,系统300可包括具有指令的一个或多个计算机可读介质(例如,系统存储器或NVM/存储设备320)以及与该一个或多个计算机可读介质耦合并被配置为执行指令以实现模块从而执行本申请中所述的动作的一个或多个处理器(例如,(一个或多个)处理器305)。
对于一个实施例,系统控制模块310可包括任意适当的接口控制器,以向(一个或多个)处理器305中的至少一个和/或与系统控制模块310通信的任意适当的设备或组件提供任意适当的接口。
系统控制模块310可包括存储器控制器模块330,以向系统存储器315提供接口。存储器控制器模块330可以是硬件模块、软件模块和/或固件模块。
系统存储器315可被用于例如为系统300加载和存储数据和/或指令。对于一个实施例,系统存储器315可包括任意适当的易失性存储器,例如,适当的DRAM。在一些实施例中,系统存储器315可包括双倍数据速率类型四同步动态随机存取存储器(DDR4SDRAM)。
对于一个实施例,系统控制模块310可包括一个或多个输入/输出(I/O)控制器,以向NVM/存储设备320及(一个或多个)通信接口325提供接口。
例如,NVM/存储设备320可被用于存储数据和/或指令。NVM/存储设备320可包括任意适当的非易失性存储器(例如,闪存)和/或可包括任意适当的(一个或多个)非易失性存储设备(例如,一个或多个硬盘驱动器(HDD)、一个或多个光盘(CD)驱动器和/或一个或多个数字通用光盘(DVD)驱动器)。
NVM/存储设备320可包括在物理上作为系统300被安装在其上的设备的一部 分的存储资源,或者其可被该设备访问而不必作为该设备的一部分。例如,NVM/存储设备320可通过网络经由(一个或多个)通信接口325进行访问。
(一个或多个)通信接口325可为系统300提供接口以通过一个或多个网络和/或与任意其他适当的设备通信。系统300可根据一个或多个无线网络标准和/或协议中的任意标准和/或协议来与无线网络的一个或多个组件进行无线通信。
对于一个实施例,(一个或多个)处理器305中的至少一个可与系统控制模块310的一个或多个控制器(例如,存储器控制器模块330)的逻辑封装在一起。对于一个实施例,(一个或多个)处理器305中的至少一个可与系统控制模块310的一个或多个控制器的逻辑封装在一起以形成系统级封装(SiP)。对于一个实施例,(一个或多个)处理器305中的至少一个可与系统控制模块310的一个或多个控制器的逻辑集成在同一模具上。对于一个实施例,(一个或多个)处理器305中的至少一个可与系统控制模块310的一个或多个控制器的逻辑集成在同一模具上以形成片上系统(SoC)。
在各个实施例中,系统300可以但不限于是:服务器、工作站、台式计算设备或移动计算设备(例如,膝上型计算设备、持有计算设备、平板电脑、上网本等)。在各个实施例中,系统300可具有更多或更少的组件和/或不同的架构。例如,在一些实施例中,系统300包括一个或多个摄像机、键盘、液晶显示器(LCD)屏幕(包括触屏显示器)、非易失性存储器端口、多个天线、图形芯片、专用集成电路(ASIC)和扬声器。
本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机代码,当所述计算机代码被执行时,如前任一项所述的方法被执行。
本申请还提供了一种计算机程序产品,当所述计算机程序产品被计算机设备执行时,如前任一项所述的方法被执行。
本申请还提供了一种计算机设备,所述计算机设备包括:
一个或多个处理器;
存储器,用于存储一个或多个计算机程序;
当所述一个或多个计算机程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如前任一项所述的方法。
需要注意的是,本申请可在软件和/或软件与硬件的组合体中被实施,例如,可采用专用集成电路(ASIC)、通用目的计算机或任何其他类似硬件设备来实现。在 一个实施例中,本申请的软件程序可以通过处理器执行以实现上文所述步骤或功能。同样地,本申请的软件程序(包括相关的数据结构)可以被存储到计算机可读记录介质中,例如,RAM存储器,磁或光驱动器或软磁盘及类似设备。另外,本申请的一些步骤或功能可采用硬件来实现,例如,作为与处理器配合从而执行各个步骤或功能的电路。
另外,本申请的一部分可被应用为计算机程序产品,例如计算机程序指令,当其被计算机执行时,通过该计算机的操作,可以调用或提供根据本申请的方法和/或技术方案。本领域技术人员应能理解,计算机程序指令在计算机可读介质中的存在形式包括但不限于源文件、可执行文件、安装包文件等,相应地,计算机程序指令被计算机执行的方式包括但不限于:该计算机直接执行该指令,或者该计算机编译该指令后再执行对应的编译后程序,或者该计算机读取并执行该指令,或者该计算机读取并安装该指令后再执行对应的安装后程序。在此,计算机可读介质可以是可供计算机访问的任意可用的计算机可读存储介质或通信介质。
通信介质包括藉此包含例如计算机可读指令、数据结构、程序模块或其他数据的通信信号被从一个系统传送到另一系统的介质。通信介质可包括有导的传输介质(诸如电缆和线(例如,光纤、同轴等))和能传播能量波的无线(未有导的传输)介质,诸如声音、电磁、RF、微波和红外。计算机可读指令、数据结构、程序模块或其他数据可被体现为例如无线介质(诸如载波或诸如被体现为扩展频谱技术的一部分的类似机制)中的已调制数据信号。术语“已调制数据信号”指的是其一个或多个特征以在信号中编码信息的方式被更改或设定的信号。调制可以是模拟的、数字的或混合调制技术。
作为示例而非限制,计算机可读存储介质可包括以用于存储诸如计算机可读指令、数据结构、程序模块或其它数据的信息的任何方法或技术实现的易失性和非易失性、可移动和不可移动的介质。例如,计算机可读存储介质包括,但不限于,易失性存储器,诸如随机存储器(RAM,DRAM,SRAM);以及非易失性存储器,诸如闪存、各种只读存储器(ROM,PROM,EPROM,EEPROM)、磁性和铁磁/铁电存储器(MRAM,FeRAM);以及磁性和光学存储设备(硬盘、磁带、CD、DVD);或其它现在已知的介质或今后开发的能够存储供计算机系统使用的计算机可读信息/数据。
在此,根据本申请的一个实施例包括一个装置,该装置包括用于存储计算机程 序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发该装置运行基于前述根据本申请的多个实施例的方法和/或技术方案。
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。装置权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。

Claims (28)

  1. 一种拼接消息的方法,应用于用户设备,其中,所述方法包括:
    响应于应用中关于第一会话消息的拼接触发操作,从所述第一会话消息所属的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息;
    通过对所述第一会话消息与所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息。
  2. 根据权利要求1所述的方法,其中,所述在所述应用的应用窗口中呈现所述联合会话消息,包括:
    在所述应用的应用窗口中全屏并放大呈现所述联合会话消息。
  3. 根据权利要求1或2中所述的方法,其中,从所述第一会话消息所属的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息,包括:
    从所述第一会话所属的目标会话中确定与所述第一会话消息相关联的会话消息集合;
    从所述会话消息集合中确定与所述第一会话消息相关联的一个或多个第二会话消息。
  4. 根据权利要求3所述的方法,其中,所述从所述第一会话所属的目标会话中确定与所述第一会话消息相关联的会话消息集合,包括:
    获得所述目标会话中在所述第一会话消息之前的第一预定时间间隔内的至少一个第十会话消息以及在所述第一会话消息之后的第二预定时间间隔内的至少一个第三会话消息;
    根据所述至少一个第十会话消息和所述至少一个第三会话消息确定与所述第一会话消息相关联的会话消息集合。
  5. 根据权利要求4所述的方法,其中,所述根据所述至少一个第十会话消息和所述至少一个第三会话消息确定与所述第一会话消息相关联的会话消息集合,包括;
    将所述至少一个第十会话消息和所述至少一个第三会话消息的集合作为所述会话消息集合。
  6. 根据权利要求4所述的方法,其中,所述根据所述至少一个第十会话消息和所述 至少一个第三会话消息确定与所述第一会话消息相关联的会话消息集合,包括:
    从所述至少一个第十会话消息中获得与所述第一会话消息的消息发送方相同的一个或多个第十会话消息,从所述至少一个第三会话消息中获得与所述第一会话消息的消息发送方相同的一个或多个第三会话消息;
    将所述一个或多个第十会话消息和所述一个或多个第三会话消息的集合作为所述会话消息集合。
  7. 根据权利要求4所述的方法,其中,所述根据所述至少一个第十会话消息和所述至少一个第三会话消息确定与所述第一会话消息相关联的会话消息集合,包括:
    从所述至少一个第十会话消息中获得与所述第一会话消息的消息发送方相同且与所述第一会话消息具备连续性的一个或多个第十会话消息,从所述至少一个第三会话消息中获得与所述第一会话消息的消息发送方相同且与所述第一会话消息具备连续性的一个或多个第三会话消息;
    将所述一个或多个第十会话消息和所述一个或多个第三会话消息的集合作为所述会话消息集合。
  8. 根据权利要求3所述的方法,其中,所述从所述第一会话所属的目标会话中确定与所述第一会话消息相关联的会话消息集合,包括:
    获得所述目标会话中位于所述第一会话消息之前的第一预定数量的第四会话消息以及位于所述第一会话消息之后的第二预定数量的第五会话消息;
    根据所述至少一个第四会话消息和所述至少一个第五会话消息确定与所述第一会话消息相关联的会话消息集合。
  9. 根据权利要求8所述的方法,其中,所述根据所述至少一个第四会话消息和所述至少一个第五会话消息确定与所述第一会话消息相关联的会话消息集合,包括:
    将所述至少一个第四会话消息和所述至少一个第五会话消息的集合作为所述会话消息集合。
  10. 根据权利要求8所述的方法,其中,所述根据所述至少一个第四会话消息和所述至少一个第五会话消息确定与所述第一会话消息相关联的会话消息集合,包括:
    从所述至少一个第四会话消息中获得与所述第一会话消息的消息发送方相同的一个或多个第四会话消息,从所述至少一个第五会话消息中获得与所述第一会话消息的消息发送方相同的一个或多个第五会话消息;
    将所述一个或多个第四会话消息和所述一个或多个第五会话消息的集合作为所述会话消息集合。
  11. 根据权利要求8所述的方法,其中,所述根据所述至少一个第四会话消息和所述至少一个第五会话消息确定与所述第一会话消息相关联的会话消息集合,包括:
    从所述至少一个第四会话消息中获得与所述第一会话消息的消息发送方相同且与所述第一会话消息具备连续性的一个或多个第四会话消息,从所述至少一个第五会话消息中获得与所述第一会话消息的消息发送方相同且与所述第一会话消息具备连续性的一个或多个第五会话消息;
    将所述一个或多个第四会话消息和所述一个或多个第五会话消息的集合作为所述会话消息集合。
  12. 根据权利要求3所述的方法,其中,所述从所述第一会话所属的目标会话中确定与所述第一会话消息相关联的会话消息集合,包括:
    获得所述目标会话中位于所述第一会话消息之前的第一预定数量的第六会话消息以及位于所述第一会话消息之后的第二预定数量的第七会话消息,其中,所述至少一个第六会话消息及所述至少一个第七会话消息与所述第一会话消息的消息发送方相同;
    将所述至少一个第六会话消息和所述至少一个第七会话消息的集合作为所述会话消息集合。
  13. 根据权利要求3所述的方法,其中,所述从所述第一会话所属的目标会话中确定与所述第一会话消息相关联的会话消息集合,包括:
    获得所述目标会话中位于所述第一会话消息之前的至少一个第八会话消息以及位于所述第一会话消息之后的至少一个第九会话消息,其中,所述至少一个第八会话消息及所述至少一个第九会话消息与所述第一会话消息的消息发送方相同且与所述第一会话消息具备连续性;
    将所述至少一个第八会话消息和所述至少一个第九会话消息的集合作为所述会话消息集合。
  14. 根据权利要求3所述的方法,其中,所述从所述会话消息集合中确定与所述第一会话消息相关联的一个或多个第二会话消息,包括:
    对于所述会话消息集合中的每个会话消息,针对该会话消息执行实体抽取操作,得到该会话消息对应的实体序列;
    根据所述会话消息集合中的每个会话消息对应的实体序列,生成所述会话消息集合对应的会话消息矩阵,其中,所述会话消息矩阵的每一行或每一列对应所述会话消息集合中的一个会话消息对应的实体序列;
    确定所述会话消息矩阵的不同行或不同列之间的相似度;
    根据所述会话消息矩阵的不同行或不同列之间的相似度,从所述会话消息集合中确定与所述第一会话消息相关联的一个或多个第二会话消息。
  15. 根据权利要求14所述的方法,其中,所述方法在所述确定所述会话消息矩阵的不同行或不同列之间的相似度,之前还包括:
    根据词典算法,对所述会话消息矩阵中的一个或多个实体添加相似度标签,其中,一个实体对应的相似度标签包括与该实体的相似度满足预定的相似度阈值的一个或多个其他实体及该实体与每个其他实体之间的相似度。
  16. 根据权利要求14所述的方法,其中,所述确定所述会话消息矩阵的不同行或不同列之间的相似度,包括:
    获取所述述会话消息矩阵的不同行或不同列之间的语言类型相似度,并根据所述不同行或不同列之间的语言类型相似度,确定所述不同行或不同列之间的相似度。
  17. 根据权利要求14所述的方法,其中,所述确定所述会话消息矩阵的不同行或不同列之间的相似度,包括:
    获取所述会话消息矩阵的不同行或不同列之间的语言特征相似度,并根据所述不同行或不同列之间的语言特征相似度,确定所述不同行或不同列之间的相似度。
  18. 根据权利要求14所述的方法,其中,所述确定所述会话消息矩阵的不同行或不同列之间的相似度,包括:
    获取所述会话消息矩阵的不同行或不同列之间的语义相似度,并根据所述不同行或不同列之间的语义相似度,确定所述不同行或不同列之间的相似度。
  19. 根据权利要求14所述的方法,其中,所述确定所述会话消息矩阵的不同行或不同列之间的相似度,包括:
    根据词向量算法,将会话消息矩阵中的每个实体转化为对应的词向量;
    获取所述会话消息矩阵的不同行或不同列之间的词向量相似度,并根据所述不同行或不同列之间的词向量相似度,确定所述不同行或不同列之间的相似度。
  20. 根据权利要求14所述的方法,其中,所述根据所述会话消息矩阵的不同行或不 同列之间的相似度,从所述会话消息集合中确定与所述第一会话消息相关联的一个或多个第二会话消息,包括:
    根据所述会话消息矩阵的不同行或不同列之间的相似度,从所述会话消息集合中确定与所述第一会话消息相关联的一个或多个第二会话消息,其中,所述一个或多个第二会话消息中的每个第二会话消息与所述第一会话消息之间的相似度大于或等于预定相似度阈值。
  21. 根据权利要求14所述的方法,其中,所述根据所述会话消息矩阵的不同行或不同列之间的相似度,从所述会话消息集合中确定与所述第一会话消息相关联的一个或多个第二会话消息,包括:
    计算所述会话消息集合中的每个会话消息与所述第一会话消息之间的相似度,并根据所述每个会话消息与所述第一会话消息之间的相似度,从所述会话消息矩阵中选择与第一会话消息之间的相似度大于或等于第一相似度阈值的至少一个行或列;
    对于已选择的每行或每列,根据所述会话消息矩阵的不同行或不同列之间的相似度,从所述会话消息矩阵中选择与该行或该列之间的相似度大于或等于第二相似度阈值的至少一个行或列;
    对于新选择的每个行和列,重复所述会话消息矩阵的不同行或不同列之间的相似度,从所述会话消息矩阵中选择与该行或该列之间的相似度大于或等于第二相似度阈值的至少一个行或列的操作,直至所述会话消息矩阵中不存在与已选择的行或列之间的相似度大于或等于第二相似度阈值的行或列;
    将从所述会话消息矩阵中选择出的全部行或列对应的会话消息作为与所述第一会话消息相关联的一个或多个第二会话消息。
  22. 根据权利要求1至21中任一项所述的方法,其中,所述通过对所述第一会话消息与所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息,包括:
    通过对所述第一会话消息与所述一个或多个第二会话消息按照消息发送时间顺序执行拼接操作,生成所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息。
  23. 根据权利要求1至21中任一项所述的方法,其中,所述通过对所述第一会话消息与所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会 话消息,并在所述应用的应用窗口中呈现所述联合会话消息,包括:
    通过对所述第一会话消息与所述一个或多个第二会话消息按照消息发送方顺序执行拼接操作,生成所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息。
  24. 一种拼接消息的方法,应用于用户设备,其中,所述方法包括:
    响应于应用中关于第一会话消息的拼接触发操作,将所述第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第一会话消息标识信息发送至所述应用对应的服务器;
    接收所述服务器发送的、所述第一会话消息对应的联合会话消息,并在所述应用的应用窗口中呈现所述联合会话消息,其中,所述联合会话消息是所述服务器通过对所述第一会话消息以及与所述第一会话消息相关联的一个或多个第二会话消息执行拼接操作生成的。
  25. 一种拼接消息的方法,应用于服务器,其中,所述方法包括:
    接收用户设备发送的、第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第一会话消息标识信息,从所述目标会话标识信息对应的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息;
    通过对所述第一会话消息以及所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并将所述联合会话消息发送至所述用户设备。
  26. 一种拼接消息的方法,其中,所述方法包括:
    用户设备响应于应用中关于第一会话消息的拼接触发操作,将所述第一会话消息所属的目标会话对应的目标会话标识信息以及所述第一会话消息对应的第一会话消息标识信息发送至所述应用对应的服务器;
    所述服务器接收所述用户设备发送的、所述目标会话标识信息以及所述第一会话消息标识信息,从所述目标会话标识信息对应的目标会话中确定与所述第一会话消息相关联的一个或多个第二会话消息;
    所述服务器通过对所述第一会话消息以及所述一个或多个第二会话消息执行拼接操作,生成所述第一会话消息对应的联合会话消息,并将所述联合会话消息发送至所述用户设备;
    所述用户设备接收所述服务器发送的所述联合会话消息,并在所述应用的应用窗口 中呈现所述联合会话消息。
  27. 一种拼接消息的设备,其特征在于,所述设备包括:
    处理器;以及
    被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行如权利要求1至26中任一项所述的方法。
  28. 一种存储指令的计算机可读介质,所述指令在被执行时使得系统进行如权利要求1至26中任一项所述方法的操作。
PCT/CN2021/072986 2020-01-21 2021-01-21 一种拼接消息的方法与设备 WO2021147930A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010071821.XA CN111327518B (zh) 2020-01-21 2020-01-21 一种拼接消息的方法与设备
CN202010071821.X 2020-01-21

Publications (1)

Publication Number Publication Date
WO2021147930A1 true WO2021147930A1 (zh) 2021-07-29

Family

ID=71171022

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/072986 WO2021147930A1 (zh) 2020-01-21 2021-01-21 一种拼接消息的方法与设备

Country Status (2)

Country Link
CN (1) CN111327518B (zh)
WO (1) WO2021147930A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422468A (zh) * 2020-10-12 2022-04-29 腾讯科技(深圳)有限公司 消息处理方法、装置、终端及存储介质
CN117499356A (zh) * 2022-07-25 2024-02-02 腾讯科技(深圳)有限公司 会话消息的处理方法、装置、设备、存储介质及程序产品

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202473A (zh) * 2014-08-25 2014-12-10 华为技术有限公司 合并会话的方法及移动终端
CN104219639A (zh) * 2013-05-30 2014-12-17 腾讯科技(深圳)有限公司 一种显示短信记录的方法和装置
CN107241258A (zh) * 2017-05-27 2017-10-10 维沃移动通信有限公司 一种即时消息发送及显示方法、发送端及接收端
US20190087491A1 (en) * 2017-09-15 2019-03-21 Yahoo Holdings, Inc. Conversation summary
CN110138645A (zh) * 2019-03-29 2019-08-16 腾讯科技(深圳)有限公司 会话消息的显示方法、装置、设备及存储介质
CN110620846A (zh) * 2019-09-26 2019-12-27 Oppo广东移动通信有限公司 消息合并方法、装置、设备及存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119326B (zh) * 2006-08-04 2010-07-28 腾讯科技(深圳)有限公司 一种即时通信会话记录的管理方法及装置
US9749277B1 (en) * 2014-12-17 2017-08-29 Google Inc. Systems and methods for estimating sender similarity based on user labels
CN108037869B (zh) * 2017-12-07 2022-04-26 北京小米移动软件有限公司 消息显示方法、装置及终端
CN110149265B (zh) * 2018-03-14 2021-10-26 腾讯科技(深圳)有限公司 消息展现方法、装置和计算机设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219639A (zh) * 2013-05-30 2014-12-17 腾讯科技(深圳)有限公司 一种显示短信记录的方法和装置
CN104202473A (zh) * 2014-08-25 2014-12-10 华为技术有限公司 合并会话的方法及移动终端
CN107241258A (zh) * 2017-05-27 2017-10-10 维沃移动通信有限公司 一种即时消息发送及显示方法、发送端及接收端
US20190087491A1 (en) * 2017-09-15 2019-03-21 Yahoo Holdings, Inc. Conversation summary
CN110138645A (zh) * 2019-03-29 2019-08-16 腾讯科技(深圳)有限公司 会话消息的显示方法、装置、设备及存储介质
CN110620846A (zh) * 2019-09-26 2019-12-27 Oppo广东移动通信有限公司 消息合并方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN111327518B (zh) 2022-10-11
CN111327518A (zh) 2020-06-23

Similar Documents

Publication Publication Date Title
WO2020221159A1 (zh) 一种用于发送提醒消息的方法与设备
WO2020221158A1 (zh) 一种在社交应用中分享信息的方法与设备
WO2020063846A1 (zh) 一种用于呈现寄宿程序的更新信息的方法与设备
CN110266505B (zh) 一种管理会话群的方法与设备
WO2021147930A1 (zh) 一种拼接消息的方法与设备
CN110827061B (zh) 一种用于在小说阅读过程中提供呈现信息的方法与设备
WO2020221189A1 (zh) 一种管理寄宿程序的方法与设备
CN110336733B (zh) 一种呈现表情包的方法与设备
CN110321189B (zh) 一种在宿主程序中呈现寄宿程序的方法与设备
CN110768894B (zh) 一种删除会话消息的方法与设备
CN112799733A (zh) 一种用于呈现应用页面的方法与设备
JP2023057543A (ja) アプリケーションマイクロサービスのための異種グラフ作成のための方法、装置、コンピュータプログラム製品(アプリケーションマイクロサービスのための異種グラフ作成)
CN110780955A (zh) 一种用于处理表情消息的方法与设备
WO2020052060A1 (zh) 用于生成修正语句的方法和装置
CN111817945B (zh) 一种在即时通信应用中回复通信信息的方法与设备
CN112685534B (zh) 在创作过程中生成已创作内容的脉络信息的方法与设备
CN111506233B (zh) 一种用于在阅读应用中提供书籍信息的方法与设备
CN111796741B (zh) 一种用于提供推荐书籍的方法与设备
US11366973B2 (en) Method and apparatus for determining a topic
CN111680250B (zh) 一种召回呈现信息的方法与设备
CN111680249B (zh) 一种推送呈现信息的方法与设备
CN111385353B (zh) 一种提供应用呈现信息的方法与设备
CN115134325A (zh) 一种用于信息推送的方法、设备及介质
CN113918897A (zh) 用于在应用开放平台中显示应用的方法、设备、介质
CN113157162A (zh) 一种用于撤回会话消息的方法、设备、介质及程序产品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21744684

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21744684

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21744684

Country of ref document: EP

Kind code of ref document: A1