Message processing method and related equipment

By dividing the message into multiple data fragments and generating description tags, the problem that messages in the prior art only support one data type is solved, and message display of multiple data types is realized, which improves the consistency and display flexibility of messages. .

CN119109897APending Publication Date: 2024-12-10KINGDEE SOFTWARE(CHINA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411508119.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2024-12-10

Smart Images

  • Figure CN119109897A_ABST
    Figure CN119109897A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a message processing method and related equipment, which are used for simultaneously setting messages of different data types in one message and allowing low-cost message display. The method is applied to a producer and comprises the steps that a plurality of data fragments forming a message are determined, each data fragment has a one-to-one corresponding data type, and the data types corresponding to the data fragments are not completely the same; generating a description label corresponding to each data slot, wherein the description label comprises content indication information of the corresponding data slot and a data type of the corresponding data slot; the description label corresponding to each data slot is sent to a consumer, so that the consumer obtains the corresponding data slot according to the content indication information, and the data type is used for indicating the display mode of the corresponding data slot in the message.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of message sending and receiving, and in particular, to a message processing method and related equipment. Background Art

[0002] The message in a conversation is composed of a message type + message content. The display format of a message content is directly determined by the message type. In the existing solution, a message only supports one data type, such as a message is either text or picture, and does not support text + picture messages, which makes the message coherence poor. Summary of the invention

[0003] The embodiments of the present application provide a message processing method and related devices for simultaneously setting messages of different data types in one message and allowing low-cost message display.

[0004] A first aspect of an embodiment of the present application provides a message processing method, which is applied to a production side, including:

[0005] Determine a plurality of data fragments constituting a message, each of the data fragments having a one-to-one corresponding data type, and the data types corresponding to the plurality of data fragments are not completely the same;

[0006] Generate a description tag corresponding to each of the data segments, wherein the description tag includes content indication information of the corresponding data segment and a data type of the corresponding data segment;

[0007] A description tag corresponding to each of the data segments is sent to a consumer so that the consumer obtains the corresponding data segment according to the content indication information, and the data type is used to indicate the display mode of the corresponding data segment in the message.

[0008] In a specific implementation, generating a description tag corresponding to each of the data segments includes:

[0009] For each of the data segments, if the data type corresponding to the data segment belongs to the preset first type, determine the data identifier of the data segment, and store the data segment and the data identifier in a message repository in association with each other;

[0010] If the data identifier exists in any of the data segments, a description tag corresponding to the data segment is generated, and the content indication information corresponding to the data segment includes the data identifier of the data segment;

[0011] Before the consumer obtains the corresponding data segment according to the content indication information, the method further includes:

[0012] If the target description tag contains a target data identifier of the target data segment, a temporary access address of the target data segment in the message warehouse is generated, and the target description tag is any of the description tags;

[0013] Constructing a corresponding relationship including the temporary access address and the target data identifier;

[0014] The corresponding relationship is sent to the consumer, so that the consumer also obtains the target data segment from the temporary access address according to the corresponding relationship.

[0015] In a specific implementation, generating a description tag corresponding to each of the data segments includes:

[0016] For each of the data segments, if the data type corresponding to the data segment belongs to a preset second type, determining a summary of the data segment;

[0017] If the summary exists in any of the data fragments, a description tag corresponding to the data fragment is generated, and the description tag corresponding to the data fragment also includes a summary of the data fragment. In the display page of the message, the summary of the data fragment is located in the display area of ​​the data fragment.

[0018] In a specific implementation, before determining the multiple data fragments constituting the message, the method further includes:

[0019] Receiving question information sent by the consumer;

[0020] enabling the question-answering robot to generate the message as a reply based on the question information;

[0021] The determining the digest of the data segment comprises:

[0022] The question information and / or the data fragment are provided to the question-answering robot to obtain the summary.

[0023] A second aspect of an embodiment of the present application provides a message processing method, which is applied to a consumer, including:

[0024] receiving a plurality of description tags sent by a producer, each of the description tags having a corresponding data segment, the description tags including content indication information of the corresponding data segment and a data type of the corresponding data segment, and the data types corresponding to the plurality of data segments are not completely the same;

[0025] For each of the description tags, the data segment corresponding to the description tag is obtained according to the content indication information in the description tag, and multiple data segments are used to form a message. The data type in the description tag is used to indicate the display method of the corresponding data segment in the message.

[0026] In a specific implementation, the method further includes:

[0027] receiving a corresponding relationship sent by the producer, wherein the corresponding relationship includes a temporary access address and a data identifier;

[0028] The acquiring the data segment corresponding to the description tag according to the content indication information in the description tag includes:

[0029] If the data type in the description tag belongs to the preset first type, the data identifier of the data fragment is determined from the description tag, and the temporary access address of the data fragment is obtained in the corresponding relationship including the data identifier, and the data fragment is obtained from the temporary access address.

[0030] In a specific implementation, after acquiring the data segment corresponding to the description tag according to the content indication information in the description tag, the method further includes:

[0031] If the data type in the target description tag belongs to the preset second type, obtaining a summary from the description tag, and displaying the summary in a display area corresponding to the data segment in the display page of the message, the target description tag being any of the description tags;

[0032] If the data type in the target description tag does not belong to the preset second type, the data segment corresponding to the target description tag is displayed in the display area of ​​the corresponding data segment in the display page of the message, and the target description tag is any of the description tags.

[0033] In a specific implementation, before receiving the multiple description tags sent by the producer, the method further includes:

[0034] Sending the question information input by the user to the producer, so that the producer obtains the message as a reply according to the question information, determines the multiple data segments constituting the message, and obtains the summary in the target description tag based on the question information and / or the corresponding data segments.

[0035] A third aspect of an embodiment of the present application provides a computer device, including:

[0036] A determination unit, configured to determine a plurality of data fragments constituting a message, each of the data fragments having a one-to-one corresponding data type, and the data types corresponding to the plurality of data fragments are not completely the same;

[0037] A generating unit, configured to generate a description tag corresponding to each of the data segments, wherein the description tag includes content indication information of the corresponding data segment and a data type of the corresponding data segment;

[0038] The sending unit is used to send the description tag corresponding to each of the data fragments to the consumer, so that the consumer obtains the corresponding data fragment according to the content indication information, and the data type is used to indicate the display mode of the corresponding data fragment in the message.

[0039] In a specific implementation, the generating unit is specifically configured to determine, for each of the data fragments, a data identifier of the data fragment if the data type corresponding to the data fragment belongs to a preset first type, and store the data fragment and the data identifier in a message repository in association with each other;

[0040] If the data identifier exists in any of the data segments, a description tag corresponding to the data segment is generated, and the content indication information corresponding to the data segment includes the data identifier of the data segment;

[0041] Before the consumer obtains the corresponding data segment according to the content indication information, the method further includes:

[0042] If the target description tag contains a target data identifier of the target data segment, a temporary access address of the target data segment in the message warehouse is generated, and the target description tag is any of the description tags;

[0043] Constructing a corresponding relationship including the temporary access address and the target data identifier;

[0044] The corresponding relationship is sent to the consumer, so that the consumer also obtains the target data segment from the temporary access address according to the corresponding relationship.

[0045] In a specific implementation, the generating unit is specifically configured to determine, for each of the data segments, a summary of the data segment if the data type corresponding to the data segment belongs to a preset second type;

[0046] If the summary exists in any of the data fragments, a description tag corresponding to the data fragment is generated, and the description tag corresponding to the data fragment also includes a summary of the data fragment. In the display page of the message, the summary of the data fragment is located in the display area of ​​the data fragment.

[0047] In a specific implementation, the computer device further includes a receiving unit;

[0048] The receiving unit is used to receive the question information sent by the consumer before determining the multiple data fragments constituting the message;

[0049] The generating unit is further configured to enable the question-answering robot to generate the message as a reply based on the question information;

[0050] The generating unit is specifically configured to provide the question information and / or the data segment to the question-answering robot to obtain the summary.

[0051] A fourth aspect of an embodiment of the present application provides a computer device, including:

[0052] A receiving unit, configured to receive a plurality of description tags sent by a producer, each of the description tags having a corresponding data segment, the description tag including content indication information of the corresponding data segment and a data type of the corresponding data segment, and the data types corresponding to the plurality of data segments are not completely the same;

[0053] An acquisition unit is used to acquire, for each description tag, a data segment corresponding to the description tag according to content indication information in the description tag, wherein the multiple data segments are used to form a message, and the data type in the description tag is used to indicate the display method of the corresponding data segment in the message.

[0054] In a specific implementation, the receiving unit is further used to receive the corresponding relationship sent by the production party, and the corresponding relationship includes a temporary access address and a data identifier;

[0055] The acquisition unit is specifically used to determine the data identifier of the data fragment from the description tag if the data type in the description tag belongs to the preset first type, and obtain the temporary access address of the data fragment in the corresponding relationship including the data identifier, and obtain the data fragment from the temporary access address.

[0056] In a specific implementation, after acquiring the data segment corresponding to the description tag according to the content indication information in the description tag, the computer device further includes: a display unit;

[0057] The display unit is used to obtain a summary from the description tag if the data type in the target description tag belongs to a preset second type, and display the summary in a display area corresponding to the data segment in the display page of the message, and the target description tag is any of the description tags;

[0058] The display unit is also used to display the data segment corresponding to the target description tag in the display area of ​​the corresponding data segment in the display page of the message if the data type in the target description tag does not belong to the preset second type, and the target description tag is any of the description tags.

[0059] In a specific implementation, before receiving the plurality of description tags sent by the production party, the computer device further includes: a sending unit;

[0060] The sending unit is used to send the question information input by the user to the producer, so that the producer obtains the message as a reply according to the question information, determines multiple data segments constituting the message, and obtains the summary in the target description tag based on the question information and / or the corresponding data segments.

[0061] A fifth aspect of an embodiment of the present application provides a computer device, including:

[0062] CPU, memory and input / output interface;

[0063] The memory is a short-term storage memory or a persistent storage memory;

[0064] The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the method described in the first aspect or the second aspect.

[0065] A sixth aspect of the embodiments of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method described in the first aspect or the second aspect.

[0066] A seventh aspect of an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the method described in the first aspect or the second aspect.

[0067] It can be seen from the above technical solution that the embodiment of the present application has the following advantages: the producer of the message can divide the message into several parts, each part is called a different data segment, and there is only one data type in each data segment, and then generate a unique description tag for each data segment, which contains the data type uniquely corresponding to the corresponding data segment and the content indication information of the corresponding data segment. Then, the producer can choose to send the unique description tag of each data segment to the consumer, and the consumer can obtain the corresponding data segment according to the content indication information in the description tag, and determine how to display the corresponding data segment in the message according to the data type, so as to realize that multiple data types are included in one message. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 A system architecture diagram of the message processing method disclosed in the embodiment of the present application;

[0069] Figure 2 A schematic diagram of a flow chart of a message processing method disclosed in an embodiment of the present application;

[0070] Figure 3 An example diagram of a message disclosed in an embodiment of the present application;

[0071] Figure 4 Another flowchart of the message processing method disclosed in the embodiment of the present application;

[0072] Figure 5 Another structural schematic diagram of a computer device disclosed in an embodiment of the present application;

[0073] Figure 6 Another structural schematic diagram of a computer device disclosed in an embodiment of the present application;

[0074] Figure 7 Another structural schematic diagram of the computer device disclosed in the embodiment of the present application. DETAILED DESCRIPTION

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

[0076] The embodiments of the present application provide a message processing method and related devices for simultaneously setting messages of different data types in one message and allowing low-cost message display.

[0077] To better implement the message processing method of the embodiment of the present application, please refer to Figure 1 , the present application provides a message processing architecture, including at least one producer and at least one consumer. Among them, the party that sends the description tag is the producer, and the corresponding party that receives the description tag is the consumer; and in actual applications, in addition to sending the access address of the text or picture, it is also likely to be necessary to parse or display different contents in the description tag according to different data types. Therefore, each description tag in the present application includes content indication information and the data type of the corresponding data fragment. In addition, the present invention can be applied to various conversation scenarios or chat scenarios that require multimodal messages to be transmitted to each other. Therefore, the producer and consumer can be the user end or the server, both are user ends, or both are servers.

[0078] Based on the previous message processing architecture, please refer to Figure 2 The embodiment of the present application provides a message processing method, which is applied to the production side and includes the following steps:

[0079] 201. Determine multiple data fragments constituting a message, each data fragment having a one-to-one corresponding data type, and the data types corresponding to the multiple data fragments are not completely the same.

[0080] Among them, data types can be classified according to the actual content of the data, such as text, images, and hyperlinks; or classified according to display requirements. Data segments with the same display method (including data parsing method, and further including data display method) can be considered to have the same data type. This application can be configured as needed without limitation.

[0081] It can be understood that for a message containing multiple data types, whether it is a conversation message or a chat message, it can be split into at least two data segments. For example, method one: divide the content of the same corresponding data type in the message into one data segment according to the corresponding data type, or method two: divide the adjacent and corresponding data type content in the message into one data segment according to the corresponding data type. Specifically, it can be any division method that ensures that there is only one data type content in each data segment.

[0082] See also Figure 3 , if there is Figure 3 The message shown is Figure 3 The message shown in can be split into data segment 1 {"The content I queried is as follows:", "The above sales record is a simple summary of August sales, which records the sales quantity and total amount of various products on different dates"} and data segment 2 { Figure 3 The two data segments are shown in the table}. If the second method is used, it can be split into data segment 1 {"The content I queried is as follows: "} and data segment 2 { Figure 3 The above sales record is a simple summary of August sales, which records the sales quantity and total amount of various products on different dates."}

[0083] 202. Generate a description tag corresponding to each data segment, where the description tag includes content indication information of the corresponding data segment and a data type of the corresponding data segment.

[0084] In actual applications, in order to display messages in a unified and standardized manner and reduce message transmission costs, each data fragment in the message is usually not sent directly. Therefore, a description tag is designed in the embodiment of the present application to ensure that each data fragment can be accurately obtained through the content indication information and data type in the corresponding description tag.

[0085] Specifically, the content indication information in the description tag corresponding to each data segment may be: 1. the data segment itself; 2. the URL or hyperlink of the data segment and any information that can help the consumer obtain the corresponding data segment, not limited to the above two contents. For example, if there is a data segment with a small amount of data that is the same or similar to text, the content indication information in the description tag corresponding to the data segment may be the data segment itself; if there is a data segment with a large amount of data that is the same or similar to a web page or image, the content indication information in the description tag corresponding to the data segment may be the URL or hyperlink of the data segment.

[0086] It should be noted that if the order of different data fragments in a message will affect the semantics of the message, making the semantics of the message unclear or semantically incorrect, the order of the corresponding content of each data fragment in the message shall also be recorded in the description tag to ensure that the consumer "understands" the actual meaning of the message accurately.

[0087] 203. Send the description tag corresponding to each data segment to the consumer, so that the consumer obtains the corresponding data segment according to the content indication information.

[0088] As described in the above steps, after obtaining the description tag corresponding to each data segment, the producer can send the description tags corresponding to the data segment to the consumer in a unified or separate manner. If the description tags are not sent in a unified manner, the consumer also needs to be informed of the message to which each description tag belongs (such as by sending the corresponding message identifier) ​​to ensure that the consumer can well restore or understand the complete semantics of the corresponding message.

[0089] In this way, after receiving the description tag corresponding to each data fragment, the consumer can parse the data obtained according to the content indication information in the corresponding description tag according to the data type in the corresponding description tag to obtain the data fragment.

[0090] In the embodiment of the present application, the producer of the message can divide the message into several parts, each part is called a different data segment, and there is only one data type in each data segment. Then, a unique description tag is generated for each data segment, and this description tag contains the data type uniquely corresponding to the corresponding data segment and the content indication information of the corresponding data segment. Then, the producer can choose to send the unique description tag of each data segment to the consumer, and the consumer can obtain the corresponding data segment according to the content indication information in the description tag, and determine how to display the corresponding data segment in the message according to the data type, thereby realizing a message processing method containing multiple data types in one message.

[0091] It is understandable that the message processing method provided in the above embodiment of the present application can also be applied to the consumer side, please refer to Figure 4 , the embodiments of the present application and Figure 2 Corresponding to the embodiment shown, the following steps are specifically included:

[0092] 401. Receive multiple description tags sent by a producer, each description tag having a corresponding data segment, the description tag including content indication information of the corresponding data segment and a data type of the corresponding data segment, and the data types corresponding to the multiple data segments are not completely the same.

[0093] In actual applications, in order to reduce the cost of message transmission, each data fragment in the message is usually not directly sent. Therefore, the way in which the consumer of the embodiment of the present application receives the message is actually to receive the description tag of each data fragment in the corresponding message, such as the multiple description tags received in the embodiment of the present application. Since the description tag contains the content indication information of the corresponding data fragment and the data type of the corresponding data fragment, the consumer can accurately obtain each data fragment and the corresponding data type.

[0094] The definitions of data segments, description tags, content indication information, and data types in the embodiment of the present application are the same as those in the above Figure 2 The embodiments shown are similar and will not be described again here.

[0095] It should be noted that the multiple description tags sent by the producer may be sent at one time or in multiple times (with the same message identifier), and the multiple data fragments corresponding to the multiple description tags belong to the same message.

[0096] 402. For each description tag, obtain a data segment corresponding to the description tag according to content indication information in the description tag. Multiple data segments are used to form a message. The data type in the description tag is used to indicate a display method of the corresponding data segment in the message.

[0097] Specifically, according to the data type in the description tag, the embodiment of the present application can independently determine the display mode of the corresponding data segment, and can obtain the corresponding data segment according to the content indication information in the description tag. Since a message is split into multiple data segments, and each data segment only contains data of one data type, data segments of different data types in a message can have separate display modes, thereby realizing a technical solution for realizing the display of messages in multiple formats in one message.

[0098] In some specific implementations, in addition to the fact that the content indication information in all description tags can be parsed or processed in the same way, it is also possible to determine how to obtain data fragments based on the content indication information in the description tag based on the different data types in the description tag. For example, if the data type is a web page, the content indication information in the corresponding description tag is a link to the web page, and the content in the content indication information should be processed as an external link; if the data type is an image, the content indication information in the corresponding description tag is the storage path of the image in the message warehouse, and the content in the content indication information should be processed as a storage path, which is not limited here.

[0099] In an embodiment of the present application, consumers can obtain corresponding data segments according to the content indication information in the description tag, and determine how to display the corresponding data segments in the message according to the data type in the description tag, so as to accurately obtain multiple data segments with different data types in a message.

[0100] For external resources with high timeliness, such as images and web pages, the embodiment of the present application defines them as the first type of data. Among them, the first type of data can be any type of data that is likely to be destroyed or changed unpredictably. Therefore, if there is a data fragment corresponding to the aforementioned first type in the message to be transmitted (that is, all the data contained in the data fragment belongs to the aforementioned first type), some specific configurations need to be made for it to ensure that the data fragment can be accurately transmitted at different times, such as in the process of real-time transmission, or in the process of backtracking historical messages.

[0101] On the basis of the aforementioned embodiment, in some specific implementations, the aforementioned step 202 can be specifically implemented in the following manner: for each data segment, if the data type corresponding to the data segment belongs to the preset first type, the data identifier of the data segment is determined, and the data segment and the data identifier are associated and stored in the message warehouse; if any data segment has a data identifier, a description tag corresponding to the data segment is generated, and the content indication information corresponding to the data segment includes the data identifier of the data segment; and before the consumer obtains the corresponding data segment according to the content indication information, the method of the embodiment of the present application also includes: if the target description tag contains the target data identifier of the target data segment, a temporary access address of the target data segment in the message warehouse is generated, and the target description tag is any description tag; a corresponding relationship including the temporary access address and the target data identifier is constructed; the corresponding relationship is sent to the consumer; correspondingly, when the consumer receives the corresponding relationship sent by the producer, if it is determined that the data type in the description tag belongs to the preset first type, the data identifier of the data segment will also be determined from the description tag, and the temporary access address of the data segment is obtained in the corresponding relationship including the data identifier, and the data segment is obtained from the temporary access address.

[0102] Specifically, after the producer determines that the corresponding data type belongs to the first type of data segment, the message warehouse will store the corresponding data segment and the data identifier in the message warehouse in association, so as to ensure that when any consumer or producer needs to obtain the corresponding data segment, the actual content of the corresponding data segment when the description information of the message is sent can be obtained from the message warehouse. In addition, it is necessary to generate a temporary access address of the target data segment in the message warehouse, and send a corresponding relationship including the temporary access address and the data identifier to the consumer. In this way, the consumer can determine the data identifier of the data segment from the description tag according to the corresponding relationship sent by the producer, and obtain the temporary access address of the data segment in the corresponding relationship including the data identifier, and obtain the data segment from the temporary access address.

[0103] For resources such as web pages or hyperlinks that cannot or are not convenient to display on the message display page, and / or resources that users viewing the display page need to quickly understand the corresponding content overview, the embodiment of the present application defines the second type of data. Among them, the second type of data is a resource whose content the user needs to understand in a faster way. Therefore, if there is a data fragment corresponding to the aforementioned second type in the message to be transmitted, some specific configuration is required to ensure that the user viewing the display page quickly understands the corresponding content.

[0104] On the basis of the aforementioned embodiment, in some specific implementations, the aforementioned step 202 can be specifically implemented in the following manner: for each data segment, if the data type corresponding to the data segment belongs to the preset second type, the summary of the data segment is determined; if any data segment has a summary, a description tag corresponding to the data segment is generated, and the description tag corresponding to the data segment also includes a summary of the data segment, and the summary of the data segment is located in the display area of ​​the data segment in the display page of the message; correspondingly, when the consumer recognizes that the data type in the target description tag belongs to the preset second type, the summary is obtained from the description tag, and the summary is displayed in the display area of ​​the corresponding data segment in the display page of the message, and the target description tag is any description tag; if the data type in the target description tag does not belong to the preset second type, the data segment corresponding to the target description tag is displayed in the display area of ​​the corresponding data segment in the display page of the message, and the target description tag is any description tag.

[0105] It is understandable that the producer will use different methods to generate the description label of each data fragment according to the data type corresponding to each data fragment, and the corresponding consumer will also use different methods to process the description label of each data fragment according to the data type corresponding to each data fragment. First, when the producer is generating the description label, it is found that the corresponding data type belongs to the second type of data fragment, then the producer needs to determine the summary of the data fragment. And, when generating the description label corresponding to each data fragment, the summary of the data fragment is recorded in the corresponding description label. Among them, the summary is used to concisely record or summarize the key information or characteristics of the corresponding data fragment.

[0106] Secondly, the corresponding consumer will also process the description tag of each data segment in different ways according to the data type corresponding to each data segment. If the data type in the target description tag belongs to the preset second type, the area showing the corresponding data segment in the display page of the consumer's message will at least display the summary of the data segment, and may also display the data segment itself, or display the corresponding and complete data segment to the user after the user clicks on the corresponding summary; if the data type in the target description tag does not belong to the preset second type, the area showing the corresponding data segment in the display page of the consumer's message will display the data segment itself.

[0107] It should be noted that if the producer also has a message display page, the way the producer displays each data fragment in the message on its display page is similar to the way the corresponding message consumer displays each data fragment in its display page, and will not be repeated here.

[0108] The embodiments of the present application use different methods to generate corresponding description tags and use different display methods for data fragments with different data types, which improves the diversity of message processing and better adapts to message processing requirements in different scenarios.

[0109] Furthermore, in some specific implementations, before the aforementioned step 201, the method of the embodiment of the present application also includes: receiving question information sent by the consumer; enabling the question-and-answer robot to generate a message as a reply based on the question information; the summary of the data segment can be specifically determined by referring to the following steps: providing the question information and / or data segments to the question-and-answer robot to obtain a summary.

[0110] Specifically, in conversation scenarios such as customer service or question-and-answer systems, users of users will usually send corresponding question information to the producer who provides customer service or question-and-answer services as a consumer, so that the producer's question-and-answer robot can generate a message as a reply based on the question information, and input the question information and / or data fragments into the question-and-answer robot, so that the robot outputs a summary corresponding to the aforementioned data fragment based on the input information, thereby realizing confirmation of the summary at a lower cost and improving the feasibility of the solution.

[0111] See also Figure 5 , an embodiment of the present application provides a computer device, including:

[0112] A determining unit 501 is used to determine multiple data fragments constituting a message, each data fragment has a one-to-one corresponding data type, and the data types corresponding to the multiple data fragments are not completely the same;

[0113] A generating unit 502, configured to generate a description tag corresponding to each data segment, wherein the description tag includes content indication information of the corresponding data segment and a data type of the corresponding data segment;

[0114] The sending unit 503 is used to send the description tag corresponding to each data segment to the consumer, so that the consumer obtains the corresponding data segment according to the content indication information. The data type is used to indicate the display mode of the corresponding data segment in the message.

[0115] In a specific implementation, the generating unit 502 is specifically configured to, for each data segment, determine a data identifier of the data segment if the data type corresponding to the data segment belongs to a preset first type, and store the data segment and the data identifier in a message repository in association with each other;

[0116] If any data segment has a data identifier, a description tag corresponding to the data segment is generated, and the content indication information corresponding to the data segment includes the data identifier of the data segment;

[0117] Before the consumer obtains the corresponding data segment according to the content indication information, the method further includes:

[0118] If the target description tag contains the target data identifier of the target data segment, a temporary access address of the target data segment in the message warehouse is generated, and the target description tag is any description tag;

[0119] Constructing a corresponding relationship including a temporary access address and a target data identifier;

[0120] The corresponding relationship is sent to the consumer, so that the consumer also obtains the target data segment from the temporary access address according to the corresponding relationship.

[0121] In a specific implementation, the generating unit 502 is specifically configured to determine, for each data segment, a summary of the data segment if the data type corresponding to the data segment belongs to a preset second type;

[0122] If any data segment has a summary, a description tag corresponding to the data segment is generated. The description tag corresponding to the data segment also includes a summary of the data segment. The summary of the data segment is located in the display area of ​​the data segment in the message display page.

[0123] In a specific implementation, the computer device further includes a receiving unit;

[0124] A receiving unit, used for receiving question information sent by a consumer before determining a plurality of data fragments constituting a message;

[0125] The generating unit 502 is further used to enable the question-answering robot to generate a message as a reply based on the question information;

[0126] The generating unit 502 is specifically configured to provide question information and / or data segments to the question-answering robot to obtain a summary.

[0127] See also Figure 6 , an embodiment of the present application provides a computer device, including:

[0128] The receiving unit 601 is used to receive multiple description tags sent by the producer, each description tag having a corresponding data segment, the description tag including content indication information of the corresponding data segment and a data type of the corresponding data segment, and the data types corresponding to the multiple data segments are not completely the same;

[0129] The acquisition unit 602 is used to acquire the data segment corresponding to each description tag according to the content indication information in the description tag. Multiple data segments are used to form a message, and the data type in the description tag is used to indicate the display method of the corresponding data segment in the message.

[0130] In a specific implementation, the receiving unit 601 is further used to receive a corresponding relationship sent by the production party, where the corresponding relationship includes a temporary access address and a data identifier;

[0131] The acquisition unit 602 is specifically used to determine the data identifier of the data segment from the description tag if the data type in the description tag belongs to the preset first type, and obtain the temporary access address of the data segment in the corresponding relationship including the data identifier, and obtain the data segment from the temporary access address.

[0132] In a specific implementation, after acquiring the data segment corresponding to the description tag according to the content indication information in the description tag, the computer device further includes: a display unit;

[0133] a display unit, configured to obtain a summary from the description tag if the data type in the target description tag belongs to a preset second type, and display the summary in a display area corresponding to the data segment in a display page of the message, wherein the target description tag is any description tag;

[0134] The display unit is also used to display the data segment corresponding to the target description tag in the display area corresponding to the data segment in the display page of the message if the data type in the target description tag does not belong to the preset second type. The target description tag is any description tag.

[0135] In a specific implementation, before receiving the plurality of description tags sent by the production party, the computer device further includes: a sending unit;

[0136] A sending unit is used to send the question information input by the user to the producer, so that the producer obtains a message as a reply according to the question information, determines multiple data segments constituting the message, and obtains a summary in the target description tag based on the question information and / or the corresponding data segments.

[0137] Figure 7 It is a schematic diagram of a computer device structure provided in an embodiment of the present application. The computer device 700 may include one or more central processing units (CPU) 701 and a memory 705. The memory 705 stores one or more application programs or data.

[0138] The memory 705 may be a volatile storage or a persistent storage. The program stored in the memory 705 may include one or more modules, each of which may include a series of instruction operations in the computer device. Furthermore, the central processing unit 701 may be configured to communicate with the memory 705 and execute a series of instruction operations in the memory 705 on the computer device 700.

[0139] The computer device 700 may also include one or more power supplies 702, one or more wired or wireless network interfaces 703, one or more input and output interfaces 704, and / or one or more operating systems, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0140] The CPU 701 can execute the aforementioned Figures 1 to 6 The operations performed by the computer device in the illustrated embodiment will not be described in detail here.

[0141] It should be noted that, although the steps in the flowcharts involved in the embodiments are drawn in sequence according to the instructions of the arrows, unless otherwise clearly stated in this document, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0142] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0143] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0144] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0145] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0146] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

[0147] An embodiment of the present application also provides a computer program product including instructions, which enables the computer to perform the message processing as described above when the computer program product is executed on the computer.

Claims

1. A message processing method, characterized in that: Applicable to the production side, including: Determine a plurality of data fragments constituting a message, each of the data fragments having a one-to-one corresponding data type, and the data types corresponding to the plurality of data fragments are not completely the same; Generate a description tag corresponding to each of the data segments, wherein the description tag includes content indication information of the corresponding data segment and a data type of the corresponding data segment; A description tag corresponding to each of the data segments is sent to a consumer so that the consumer obtains the corresponding data segment according to the content indication information, and the data type is used to indicate the display mode of the corresponding data segment in the message.

2. The message processing method according to claim 1, characterized in that: The generating a description tag corresponding to each of the data segments includes: For each of the data segments, if the data type corresponding to the data segment belongs to the preset first type, determine the data identifier of the data segment, and store the data segment and the data identifier in a message repository in association with each other; If the data identifier exists in any of the data segments, a description tag corresponding to the data segment is generated, and the content indication information corresponding to the data segment includes the data identifier of the data segment; Before the consumer obtains the corresponding data segment according to the content indication information, the method further includes: If the target description tag contains a target data identifier of the target data segment, a temporary access address of the target data segment in the message warehouse is generated, and the target description tag is any of the description tags; Constructing a corresponding relationship including the temporary access address and the target data identifier; The corresponding relationship is sent to the consumer, so that the consumer also obtains the target data segment from the temporary access address according to the corresponding relationship.

3. The message processing method according to claim 1 or 2, characterized in that: The generating a description tag corresponding to each of the data segments includes: For each of the data segments, if the data type corresponding to the data segment belongs to a preset second type, determining a summary of the data segment; If the summary exists in any of the data fragments, a description tag corresponding to the data fragment is generated, and the description tag corresponding to the data fragment also includes a summary of the data fragment. In the display page of the message, the summary of the data fragment is located in the display area of ​​the data fragment.

4. The message processing method according to claim 3, characterized in that: Before determining the plurality of data fragments constituting the message, the method further comprises: Receiving question information sent by the consumer; enabling the question-answering robot to generate the message as a reply based on the question information; The determining the digest of the data segment comprises: The question information and / or the data fragment are provided to the question-answering robot to obtain the summary.

5. A message processing method, characterized in that: Applied to consumers, including: receiving a plurality of description tags sent by a producer, each of the description tags having a corresponding data segment, the description tags including content indication information of the corresponding data segment and a data type of the corresponding data segment, and the data types corresponding to the plurality of data segments are not completely the same; For each of the description tags, the data segment corresponding to the description tag is obtained according to the content indication information in the description tag, and multiple data segments are used to form a message. The data type in the description tag is used to indicate the display method of the corresponding data segment in the message.

6. The message processing method according to claim 5, characterized in that: The method further comprises: receiving a corresponding relationship sent by the producer, wherein the corresponding relationship includes a temporary access address and a data identifier; The acquiring the data segment corresponding to the description tag according to the content indication information in the description tag includes: If the data type in the description tag belongs to the preset first type, the data identifier of the data fragment is determined from the description tag, and the temporary access address of the data fragment is obtained in the corresponding relationship including the data identifier, and the data fragment is obtained from the temporary access address.

7. The message processing method according to claim 5 or 6, characterized in that: After acquiring the data segment corresponding to the description tag according to the content indication information in the description tag, the method further includes: If the data type in the target description tag belongs to the preset second type, obtaining a summary from the description tag, and displaying the summary in a display area corresponding to the data segment in the display page of the message, the target description tag being any of the description tags; If the data type in the target description tag does not belong to the preset second type, the data segment corresponding to the target description tag is displayed in the display area of ​​the corresponding data segment in the display page of the message, and the target description tag is any of the description tags.

8. The message processing method according to claim 7, characterized in that: Before receiving the multiple description tags sent by the producer, the method further includes: Sending the question information input by the user to the producer, so that the producer obtains the message as a reply according to the question information, determines the multiple data segments constituting the message, and obtains the summary in the target description tag based on the question information and / or the corresponding data segments.

9. A computer device, characterized in that: include: A determination unit, configured to determine a plurality of data fragments constituting a message, each of the data fragments having a one-to-one corresponding data type, and the data types corresponding to the plurality of data fragments are not completely the same; A generating unit, configured to generate a description tag corresponding to each of the data segments, wherein the description tag includes content indication information of the corresponding data segment and a data type of the corresponding data segment; The sending unit is used to send the description tag corresponding to each of the data fragments to the consumer, so that the consumer obtains the corresponding data fragment according to the content indication information, and the data type is used to indicate the display mode of the corresponding data fragment in the message.

10. A computer device, characterized in that: include: A receiving unit, configured to receive a plurality of description tags sent by a producer, each of the description tags having a corresponding data segment, the description tag including content indication information of the corresponding data segment and a data type of the corresponding data segment, and the data types corresponding to the plurality of data segments are not completely the same; An acquisition unit is used to acquire, for each description tag, a data segment corresponding to the description tag according to content indication information in the description tag, wherein the multiple data segments are used to form a message, and the data type in the description tag is used to indicate the display method of the corresponding data segment in the message.

11. A computer device, characterized in that: include: CPU, memory and input / output interface; The memory is a short-term storage memory or a persistent storage memory; The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the message processing method according to any one of claims 1 to 4 or 5 to 8.

12. A computer program product comprising instructions, characterized in that When the computer program product is executed on a computer, the computer is enabled to execute the message processing method according to any one of claims 1 to 4 or 5 to 8.

13. A computer storage medium, characterized in that: The computer storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the message processing method according to any one of claims 1 to 4 or 5 to 8.