WO2017177455A1 - 一种消息呈现的方法、设备及系统 - Google Patents

一种消息呈现的方法、设备及系统 Download PDF

Info

Publication number
WO2017177455A1
WO2017177455A1 PCT/CN2016/079469 CN2016079469W WO2017177455A1 WO 2017177455 A1 WO2017177455 A1 WO 2017177455A1 CN 2016079469 W CN2016079469 W CN 2016079469W WO 2017177455 A1 WO2017177455 A1 WO 2017177455A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
classification
client
topic
messages
Prior art date
Application number
PCT/CN2016/079469
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 华为技术有限公司
Priority to PCT/CN2016/079469 priority Critical patent/WO2017177455A1/zh
Priority to EP16898273.4A priority patent/EP3331202A4/en
Publication of WO2017177455A1 publication Critical patent/WO2017177455A1/zh
Priority to US15/907,298 priority patent/US10992611B2/en

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]
    • H04L51/046Interoperability with other network applications or services
    • 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/21Monitoring or handling of messages
    • H04L51/216Handling conversation history, e.g. grouping of messages in sessions or threads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • G06F16/353Clustering; Classification into predefined classes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • G06F16/358Browsing; Visualisation therefor
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a method, device, and system for message presentation.
  • a group with a high user activity can aggregate a large number of conversation messages in a short time, wherein the conversation messages are presented in the chronological order of the release, when the user faces a large number of group messages, It is difficult to quickly focus on the conversation messages of the topics of interest from the complex news.
  • the conversation message of the topic of interest of the user can be located by keywords, but in this way, the user cannot obtain the user's interest from the whole.
  • the discussion of the conversational message of the topic can only obtain the dialogue message including the keyword.
  • the present instant messaging method is relatively simple and cannot meet the needs of users.
  • the invention provides a message presentation method and device, which are used to solve the problem that the instant message presentation mode existing in the prior art is relatively simple.
  • a message presentation method including:
  • the server classifies the M messages input by the at least one user in the message group into N classification topics according to a preset classification rule, where the M and N are positive integers and M ⁇ N; and send N classification topics, and a target message to the client, wherein the target message is a message classified under at least one of the N classification topics.
  • M messages input by the at least one user in the message group can be classified into N classification topics according to a preset classification rule, according to a preset classification rule, and N classification topics and target messages are sent to the client, so that the client can present N classification topics to the user, thereby diversifying the presentation manner of the message, and enabling the user to intuitively understand the message group as a whole.
  • the content of the message in question since M messages input by the at least one user in the message group can be classified into N classification topics according to a preset classification rule, according to a preset classification rule, and N classification topics and target messages are sent to the client, so that the client can present N classification topics to the user, thereby diversifying the presentation manner of the message, and enabling the user to intuitively understand the message group as a whole.
  • the content of the message in question since M messages input by the at least one user in the message group can be classified into N classification topics according to a preset classification rule, according to a preset classification rule, and N classification topics and target messages are sent to the client
  • the specific implementation manner in which the server classifies M messages into N classification topics is:
  • each of the M messages respectively belonging to a home weight value of the preset K classification topics, where K is a positive integer and K ⁇ N; and according to the message content classification rule, the M is The messages are divided into P groups to obtain P message groups; then, for the nth message group of the P message groups, the nth message group is classified under the first classification topic, wherein the The message with the largest home weight value in the n message groups is the first message, and the home weight value of the first message belonging to the first category topic is the largest, and the first category topic is the N category topic. one of the.
  • the technical solution is simple and easy to implement.
  • the message having the largest home weight value in the nth message group has at least two messages, and the first message is a message with the earliest input time of at least two messages.
  • the first message is the message with the earliest input time, so that the classification subject classified by the message group determined according to the first message is more accurate.
  • the embodiment of the present invention provides a manner for the trigger server to send the N classified topics to the client for presentation.
  • the server sends the N classified topics to the client.
  • the message classification display request of the message group sent by the client is received.
  • the embodiment of the present invention further provides another manner for the trigger server to send the N classification topics to the client presentation.
  • the server sends the N classification topics to the Before the client presents, it is determined that the number of messages input in the message group exceeds the set Threshold.
  • the target message is respectively classified into messages under the N classification topics; the server classifies the messages respectively under the N classification topics Sent to the client.
  • the server directly sends messages classified under the N classification topics to the client, the time for delaying the viewing of the target message by the client user is reduced.
  • the target message is a message classified under the target classification topic
  • the target classification topic is a message presentation request sent by the client to the server for requesting to send. a message subject to which the message is classified; after receiving the message presentation request sent by the client, the server sends a message categorized under the target classification topic to the client, the message presentation request And configured to request the server to send a message to the client that is classified under the target classification topic.
  • the server After the server receives the message presentation request, it sends the message classified under the target classification topic to the client. Although the delay of the user viewing the target message is increased, the memory space occupied by the client is reduced.
  • the message presentation request further includes a restriction condition for the message to be requested to be presented, and the server is classified under the target classification topic and meets the restriction.
  • the conditional message is sent to the client.
  • the message that meets the restriction condition can be further filtered by the constraint condition, the efficiency of the user to view the message classified under the target classification topic is improved.
  • the server sends the number of messages respectively classified under the N classification topics to the client.
  • the server Since the server also sends the number of messages classified under the N classification topics to the client presentation, the user is able to have an intuitive understanding of the number of messages included under each category topic.
  • a method for message presentation including:
  • the client receives and presents N classified topics sent by the server for the message group, and the N classification topics are that the server classifies the M messages according to a preset classification rule. And wherein M, N are positive integers and M ⁇ N; then, receiving a message presentation request, determining a target classification topic, the target classification topic being one of the N classified topics presented, the message A presentation request is used to request that a message categorized under the target classification topic be presented; and a message categorized under the target classification topic is obtained and presented.
  • the client since the client can present N classified topics and target messages in the message group for each message group, the manner in which the message is presented is diversified, and the user can intuitively as a whole. Learn about the content of the messages discussed in this message group.
  • the client receives the messages respectively sent by the server and classified under the N classification topics; the client separately classifies the received messages into N classification topics.
  • the message classified under the target classification topic is read.
  • the server directly sends messages classified under the N classification topics to the client, the time for delaying the viewing of the target message by the client user is reduced.
  • the message presentation request further includes a restriction condition for the message to be requested to be presented; the client reads from the received message respectively classified under the N classification topics, and reads A message that meets the constraints and is classified under the subject of the target classification is taken.
  • the client can read the message that meets the restriction condition by further restricting the condition, the efficiency of the user to view the message classified under the target classification topic is improved.
  • the client sends the message presentation request to the server, and notifies the server to send a message to the client that is classified under the target classification topic; Receiving a message sent by the server and classified under the target classification topic.
  • the client After the client sends a message presentation request to the server, it receives and presents the message sent by the server and classified under the target classification topic. Although the delay of the user viewing the target message is increased, the memory space occupied by the client is reduced.
  • the message presentation request further includes a restriction condition for the message to be requested to be presented; the client receives the classification sent by the server to the selected classification topic, A message that meets the restrictions.
  • the client sends a message classification display request of the message group to the server before the N classification topics sent by the server for the message group.
  • the client Since the client displays the request through the message classification of the message group sent by the client to the server, the client presents the classification topic, so that the user can perform corresponding settings according to his own needs, thereby improving the user experience.
  • the manner in which the client presents the message classified under the target classification topic includes: the client pops up a dialog box corresponding to the target classification topic, and the dialog box pops up The box presents a message categorized under the target classification topic; or the client presents a message classified under the target classification topic in a preset free area in the dialog box where the target classification topic is located.
  • the message presentation manner is made clearer by displaying a message classified under the target classification topic in a preset free area in a dialog box corresponding to the target classification topic pop-up or a dialog box in which the target classification topic is located.
  • a method for message presentation including:
  • the client classifies the M local cache messages in the message group in the message group into N classification topics according to a preset classification rule, where the M and N are a positive integer and M ⁇ N; and present N classification topics; then, after receiving the message presentation request, determining a target classification topic according to the received message presentation request, the target classification theme being among the N classified topics presented a classification topic, the message presentation request is for requesting to present a local message classified under the target classification topic; finally, obtaining a classification classified to the target classification topic from M caches in the local message of the client a local message under, and presenting the local message classified under the target classification topic.
  • the client since the client can present N classification topics in the message group and local messages classified under the target classification topic for each message group, the presentation manner of the message is diversified, and The user can intuitively understand the book discussed in the message group as a whole The content of the local message.
  • the embodiment of the present invention further provides a manner for the trigger server to send the N classified topics to the client for presentation.
  • the client will be in the message group.
  • the client receives the message classification display request of the message group.
  • the embodiment of the present invention further provides another manner for the trigger server to send the N classification topics to the client presentation.
  • the client will be in the message group. Before the M local messages are classified under the N classification topics, it is determined that the number of local messages buffered in the message group exceeds a set threshold.
  • the specific implementation manner in which the client classifies the M local messages into the N classification topics is:
  • each local message in the M local messages respectively belongs to a home weight value of the preset K classification topics, where K is a positive integer and K ⁇ N; and according to the message content classification rule,
  • the M local messages are divided into P groups to obtain P message groups; then, for the nth message group of the P message groups, the nth message group is classified into the first classification topic, where
  • the local message with the largest home weight value in the nth message group is the first message, and the first message belongs to the first category topic, and the first weighting value is the largest, and the first category topic is Describe one of the N classification topics.
  • the technical solution is simple and easy to implement.
  • the message with the largest home weight value in the nth message group has at least two messages
  • the first message is a message with the earliest input time in at least two messages.
  • the first message is the message with the earliest input time, so that the classification subject classified by the message group determined according to the first message is more accurate.
  • the client presentation is classified under the target classification theme
  • the manner of the local message includes: the client pops up a dialog box corresponding to the target classification topic, and presents a local message classified under the target classification topic in a pop-up dialog box; or, the client is The preset free area in the dialog box where the target classification topic is located presents a local message classified under the target classification topic.
  • the presentation manner of the local message is made clearer.
  • the message presentation request further includes a restriction condition for the local message to be requested to be presented, and the client obtains the match from the M caches in the local message of the client.
  • the constraint condition and categorizing the local message under the target classification topic, and presenting the local message that meets the constraint condition and is classified under the target classification topic.
  • the client can read the message that meets the restriction condition by further restricting the condition, the efficiency of the user to view the message classified under the target classification topic is improved.
  • a fourth aspect provides a server for message presentation, including: a processing unit and a transceiver unit, wherein the processing unit is configured to, for a message group, at least one user in the message group according to a preset classification rule.
  • the M messages input in are classified into N classification topics, wherein the M and N are positive integers and M ⁇ N; the transceiver unit is configured to classify the N classification topics obtained by the processing unit And sending a target message to the client, the target message being a message classified under at least one of the N classified topics.
  • the processing unit is specifically configured to determine, respectively, that each of the M messages belongs to a home weight value of the preset K classification topics, where K is a positive integer and K ⁇ N; according to the message content classification rule, the M messages are divided into P groups to obtain P message groups; for the nth message group in the P message groups, the nth message group is returned a class to the first classification topic, wherein the message having the largest attribution weight value in the nth message group is the first message, and the first message belongs to the first classification topic, and the attribution weight value is the largest, and The first category topic is one of the N category topics.
  • the attribute weight value of the nth message group is the largest.
  • the message has at least two messages, and the first message is a message with the earliest input time of at least two messages.
  • the transceiver unit is further configured to receive the N classified topics that are classified by the processing unit before being sent to the client for presentation.
  • the message classification of the message group sent by the terminal displays the request.
  • the processing unit is further configured to: before the sending and receiving unit sends the N classified topics obtained by the processing unit to the client for presentation, determining The number of messages input in the message group exceeds a set threshold.
  • the target message is a message respectively classified under the N classification topics; the transceiver unit is specifically configured to classify the respectively into the N classifications A message under the topic is sent to the client.
  • the target message is a message classified under the target classification topic, where the target classification topic is a message presentation request sent by the client to the transceiver unit. a message subject to which the message to be sent is classified; the transceiver unit is specifically configured to: after receiving the message presentation request sent by the client, send a message classified under the target classification topic to the client End, the message presentation request is used to request the processing unit to send, by the transceiver unit, a message classified to the target classification topic to the client by using the transceiver unit.
  • the message presentation request further includes a restriction condition for the message to be requested to be presented, where the transceiver unit is specifically configured to classify the determined by the processing unit A message under the target classification topic that meets the restriction condition is sent to the client.
  • the transceiver unit is further configured to send the number of messages respectively classified under the N classification topics to the client.
  • a fifth aspect provides a client for message presentation, including: a transceiver unit, a display unit, and a processing unit, wherein the transceiver unit is configured to receive N classification topics sent by the server for the message group, The N classification topics are obtained by the server classifying the M messages according to a preset classification rule, wherein the M and N are positive integers and M ⁇ N; the display unit is configured to present the receiving unit N classified topics received; the transceiver unit is further configured to receive message presentations The message presentation request is used to request to present a message classified under the target classification topic, the target classification topic being one of the N classification topics presented; the processing unit is configured to send and receive according to the The message receiving request received by the unit determines a target classification topic; the display unit is further configured to acquire and present a message classified under the target classification topic determined by the processing unit.
  • the transceiver unit is further configured to receive a message that is sent by the server and is respectively classified into N classification topics; and the display unit is specifically configured to use the transceiver unit.
  • the received messages are classified into messages under the N classification topics, and the messages classified under the target classification topic are read.
  • the message presentation request further includes a restriction condition for the message to be presented, and the display unit is specifically configured to be respectively classified into the N classifications received from the transceiver unit.
  • the display unit is specifically configured to be respectively classified into the N classifications received from the transceiver unit.
  • the message under the topic a message that meets the constraint condition and is classified under the target classification topic is read.
  • the transceiver is specifically configured to send the message presentation request to the server, to notify the server to send the classification to the target classification topic Receiving a message that is sent by the server and classified under the target classification topic; the display unit is specifically configured to acquire a message that is received by the transceiver unit and classified under the target classification topic.
  • the message presentation request further includes a restriction condition for the message to be requested to be presented; the transceiver unit is specifically configured to receive the classification of the target classification topic sent by the server The following message that meets the restrictions.
  • the transceiver unit is further configured to send the message to the server before the display unit presents the N classified topics sent by the server for the message group.
  • the message classification of the group shows the request.
  • the display unit is specifically configured to pop up a dialog box corresponding to the target classification topic, and present a message classified under the target classification topic in a pop-up dialog box. Or, in the preset free area in the dialog box where the target classification topic is located, Now classified as a message under the target classification topic.
  • the sixth aspect provides a system for message presentation, including the server according to any one of the embodiments of the present invention, and the client according to any one of the embodiments of the present invention.
  • the seventh aspect provides a client for message presentation, including: a processing unit, a display unit, and a transceiver unit, wherein the processing unit is configured to: according to a preset classification rule, the message group for a message group
  • the M cached local messages are classified into N classification topics, wherein the M and N are positive integers and M ⁇ N;
  • the display unit is configured to present N classification topics obtained by the processing unit classification;
  • the transceiver unit is configured to receive a message presentation request for requesting to present a local message classified under the target classification topic, the target classification topic being one of the N classified topics presented;
  • the processing The unit is further configured to determine the target classification topic according to the message presentation request received by the transceiver unit;
  • the display unit is further configured to obtain, from the M cached local messages, the local classification under the target classification topic A message, and presenting the local message classified under the target classification topic.
  • the transceiver unit is further configured to: before the processing unit classifies the M local messages in the message group to the N classification topics, The message classification of the message group shows the request.
  • the processing unit is further configured to determine, in the message group, the cache before classifying the M local messages in the message group under the N classification topics. The number of local messages exceeds the set threshold.
  • the processing unit is specifically configured to determine, respectively, that each local message in the M local messages belongs to a home weight value of the preset K classification topics, where K is positive Integer and K ⁇ N; according to the message content classification rule, the M local messages are divided into P groups to obtain P message groups; for the nth message group in the P message groups, the nth The message group is classified under the first classification topic, wherein the local message with the largest home weight value in the nth message group is the first message, and the first message belongs to the home weight of the first classification topic. The value is the largest, and the first category topic is one of the N category topics.
  • the attribute weight value of the nth message group is the largest.
  • the message has at least two messages, and the first message is a message with the earliest input time of at least two messages.
  • the display unit is specifically configured to pop up a dialog box corresponding to the target classification topic, and present a local message classified under the target classification topic in a pop-up dialog box. Or, in the preset free area in the dialog box where the target classification topic is located, present a local message classified under the target classification topic.
  • the message presentation request further includes a restriction condition for the local message to be requested for presentation
  • the display unit is specifically configured to: locally cache the local message from the M client. And obtaining a local message that meets the constraint condition and is classified under the target classification topic, and presents the local message that meets the constraint condition and is classified under the target classification topic.
  • FIG. 1 is a network architecture diagram of an application according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a method for message presentation according to an embodiment of the present invention
  • 3 is a schematic diagram of a group message
  • 4(a) and 4(b) are schematic diagrams showing the manner in which a classification topic is presented in an embodiment of the present invention.
  • 5(a), 5(b), and 5(c) are schematic diagrams showing manners of presenting messages under the selected classification topic according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart diagram of a method for message presentation according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a server for message presentation according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of hardware of a server for message presentation according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a client that displays a message according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of hardware of a client that displays a message according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a system for presenting a message according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a client that presents a message according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of hardware of a client that presents a message according to an embodiment of the present invention.
  • the embodiment of the invention applies a real-time chat application, such as QQ, WeChat, Weibo, and the like.
  • the network architecture of the application scenario is as shown in FIG. 1 , including a server and a client, where the client is an application installed on the terminal, and the terminal sends a request or information input by the user to the server through the client, and the server requests the user. The information is fed back to the user via the client installed on the terminal.
  • the terminal for installing the client can be an electronic product capable of installing a client such as a mobile phone, a tablet computer, a notebook computer, or a desktop computer.
  • the method for presenting the message according to the embodiment of the present invention includes:
  • Step 200 The server classifies, according to a preset classification rule, M messages input by the at least one user in the message group to N classification topics for a message group, where M and N are positive integers and M ⁇ N.
  • the server after receiving the M messages input by the client in the message group, the server directly classifies the M messages into N classification topics, or, before step 200,
  • the message classification display of the message group sent by the client to the server triggers the server to classify the message of the message group, for example, setting a category display button corresponding to each message group on the client, when the user displays the category display case At the time of opening, the client sends a message classification display request to the server.
  • the embodiment of the present invention further provides a method for triggering a server to classify a message input by at least one user in the message group into a different classification topic by the server: the server determines the input in the message group.
  • the message exceeded the set threshold. For example, if the threshold set by the message group 1 is 50, the server receives the message in the message group 1 as 51, and classifies the message in the message group 1 under the N classification topics; 2 The set threshold is 51. When the server receives the message input in the message group 2 is 52, the message in the message group 2 is classified under the N classification topics; in addition, if the message group 3 is set The threshold is 0, the server is receiving the message group 3 When there is an incoming message, the message in message group 3 is classified under N classification topics.
  • the classification rule preset in step 200 may be a standard classifier algorithm combined with a common sequence labeling model, wherein a standard classifier algorithm such as a simple naive Bayesian classifier algorithm is common.
  • Sequence labeling models such as Hidden Markov Models and Conditional Random Field Models.
  • the method may be implemented by: the server determining, respectively, that each of the M messages belongs to a home weight value of the preset K classification topics, where K is a positive integer and K ⁇ N; Class rules, dividing M messages into P groups, and obtaining P message groups; for the nth message group in the P message groups, classifying the nth message group under the first classification topic, wherein, nth The message with the largest attribution weight value in the message group is the first message, and the first message belongs to the first classification topic, and the first classification topic is one of the N classification topics.
  • determining the attribution weight values of the M messages respectively attributed to the preset K classification topics may be implemented by a simple naive Bayesian classifier or other classifier algorithms.
  • the preset classification theme can be preset in the server by the administrator. In order to update the theme in the server in real time, the classification theme can be obtained from the network through a preset algorithm. Specifically, the classification theme can be general. Themes, such as culture, economy, politics, people's livelihood, etc., can also be time-sensitive themes, such as the Tianjin Port Explosion, the 18th National Congress, and the Paris terrorist attacks.
  • the server can obtain the classified topic in the classified list of the preset website (such as the news classified website) through the web crawling technology as a general theme; the server can obtain the body data of the social media (such as Weibo) through the web crawling technology. Respond to the data and the author's social network data. The text and reply of each social media posted are regarded as a document.
  • the text clustering technology is used to cluster and determine whether the documents in each category belong to the same category. If most of the documents do not belong to the same category, you can adjust the clustering parameters and re-cluster until you get an acceptable clustering result. If the clustering results are acceptable, assign a category name to each category as a timeliness topic.
  • you can use the "#" to mark the subject of the starting text in the post you can directly access the theme of each category template document.
  • the set of effective topics can be periodically updated.
  • the life cycle of the effective theme is short, and each update only needs to acquire the social media data for a preset period of time (for example, the last 3 months) to perform clustering collection.
  • the server determines the feature vector of each message separately, and determines the subject attribution weight value of each message according to the determined feature vector, and then, according to the message content classification rule, such as the training set data, the sequence labeling model.
  • Training common sequence labeling models, such as hidden Markov models, conditional random field models, etc.
  • the features adopted in the model may include but are not limited to the following features:
  • the current conversation sequence can be classified to obtain P message groups. Specifically, the messages classified in the obtained message group are marked to obtain a message sequence with 0 and 1 marks, that is, the dialog sequence labels the training set, 1 indicates that a new topic is started, and 0 indicates that the above topic is continued.
  • the server determines the classification topic to which the message group is classified.
  • the message in the message group 1 in FIG. 3 is taken as an example for description.
  • the weight of ownership is 50%; "Li Si: change the topic, saying that the second child is open”, the classification weight is 90% for the "second child release”; "Wang Wu: I was still chatting with my wife last night.”
  • the child's classification theme is “Second-child release”, the ownership weight is 60%, and the classification theme is “Other”.
  • the ownership weight is 30%; “Wang Wu: My wife said that you love and who is born and who is born. Why, I don’t live.
  • the classification theme is the attribution of “second child release”.
  • the weight value is 80%.
  • the messages in the message group may be classified first, at least one message group is obtained, and then the home weight value of the classification topic of each message is determined, and finally, each message group is determined.
  • Class to category topic The method for classifying the message may also be trained by using the sequence labeling model, and the features used in the model may not include the part related to the subject weight.
  • the message with the largest home weight value in the nth message group has at least two messages, and the first message is the message with the earliest input time in at least two messages.
  • the second message group includes the message "Li Si: At the press conference with Ma Ying-jeou” and “Wang Wu: Two of them are watching TV in the living room", among them, "Li Si: Opening a press conference with Ma Ying-jeou "The classification theme is "Horse Club”.
  • the ownership weight is 90%.
  • the classification theme is "Other”.
  • the ownership weight is 90%, due to Li Si.
  • the time for posting the message was earlier than the time when Wang Wu posted the message, so the second message group was classified under the classification topic “Horse Club”.
  • Step 201 The server sends the N classification topics and the target message to the client, where the target message is a message classified under at least one of the N classification topics.
  • the server sends N classification topics and messages respectively classified under the N classification topics to the client, wherein the target messages are messages respectively classified under the N classification topics.
  • the server sends the N classification topics to the client first, and then performs step 202, and after receiving the message presentation request sent by the client, sends the target message to the client presentation, where the target message is classified under the target classification topic.
  • the target classification topic is sent by the client to the server.
  • the message presentation request is used to classify the subject to which the message being sent is classified.
  • N categories of topics include: "politics,” “economic,” and “culture,” where the server sends “politics,” “economic,” and “culture” to the client presentation.
  • the server sends "politics,” “economic,” and “culture” to the client presentation.
  • the client sends a message presentation request for requesting to send a message classified under "culture”.
  • the server sends a message classified under "culture” to the client for presentation.
  • Step 202 The client receives and presents N classified topics sent by the server for the message group.
  • the server sends the number of messages classified under different classification topics to the client and correspondingly to different classification topics, and the presentation manner may be As shown in Figure 4 (b).
  • step 203 the client receives the message presentation request and determines the target classification topic.
  • the target classification topic is a classification topic that presents a message according to a user-triggered message presentation request.
  • step 204 the client obtains and presents a message categorized under the target classification topic.
  • the server sends the N classification topics and the messages classified under the N classification topics to the client
  • the client reads by receiving the messages respectively classified into the N classification topics.
  • the server sends the N classification topics to the client
  • the client sends a message presentation request to the server, and the classification sent by the receiving server is sent. Go to the message under the target classification topic to get the message categorized under the target classification topic.
  • the presentation manner of the message presented by the client under the target classification theme includes: popping up a dialog box in the corresponding target classification theme, and presenting a message sent by the server to the target classification topic in the pop-up dialog box; or the client is Preset free area in the dialog box where the target classification topic is located Domain, the message sent by the server that is categorized under the target classification topic.
  • the selected theme is “deep horse lottery”, and its presentation manner may be as shown in FIG. 5(a), or as shown in FIG. 5(b), or as shown in FIG. 5(c). ) shown.
  • the client receives a message presentation request, wherein the message presentation request further includes a restriction condition for the message to be requested for presentation;
  • the server receives the message presentation request sent by the client; the server will classify A message under the target classification topic that meets the conditional restrictions indicated by the message presentation request is sent to the client presentation.
  • the message of the preset time period is presented under the target classification topic, or the message sent by the user is limited under the classification theme of the target.
  • the messages presented under the target classification topic may be displayed in the order of time release.
  • the color of the message fonts may be different under each different classification theme, or may be the same, such as the color of one font corresponding to each classification theme.
  • the server classifies the group message, the server can not only classify the local message (the message already presented on the client), but also report the user input to the client. The server, the messages that have not been displayed on the client, are classified.
  • the method for presenting a message in the embodiment of the present invention may also be separately performed by the client.
  • the client can only display and display the local message that has been presented on the client.
  • it includes:
  • Step 600 The client classifies, according to a preset classification rule, M local messages in the message group that are cached in the client group to N classification topics for a message group, where the M is , N is a positive integer and M ⁇ N;
  • the method for triggering the client to classify the local message in the message group may be: the client receives the message classification display request of the message group; or the client determines that the number of local messages cached in the message group exceeds the setting.
  • the threshold is set, or, when a local message is cached in the message group, the local message is directly triggered to be classified under different classification topics.
  • the client classifies the M local messages in the message group into the N classification topics.
  • An optional implementation manner is: the client separately determines each local message in the M local messages.
  • the attribution weight value is not attributed to the preset K classification topics, where K is a positive integer and K ⁇ N; and according to the message content classification rule, the M local messages are divided into P groups to obtain P message groups;
  • the nth message group of the P message groups the nth message group is classified into the first category topic, wherein the local message with the largest home weight value in the nth message group is the first message, and
  • the first message belongs to the first classification topic with the largest home weight value, and the first classification topic is one of N classification topics, where n is less than or equal to P positive integer.
  • local messages in the message group may be classified first, P message groups are obtained, and then the home weight value of the classification topic of each message is determined, and finally each is determined separately.
  • the classification topic to which the message group is classified may also be trained by using the sequence labeling model, and the features used in the model may not include the part related to the subject weight.
  • the message with the largest home weight value in the nth message group has at least two messages, and the first message is the message with the earliest input time in at least two messages.
  • the client Since the method of classifying the local message in the message group to the classification topic is similar to the method in which the server classifies the message in the message group to the classification topic, the client will be in the message group. The message is classified into the method under the classification topic. See the method of the server to classify the message in the message group to the classification topic, and will not be described here.
  • step 601 the client presents N classification topics.
  • Step 602 The client receives a message presentation request, and determines a target classification topic, where the target classification topic is one of the N classified topics presented, and the message presentation request is used to request to present a local message classified under the target classification topic. .
  • Step 603 The client obtains the local message classified under the target classification topic from the M cache local messages in the client, and presents the local message classified under the target classification topic.
  • the manner in which the client renders the message classified under the target classification topic may be: popping up a dialog box in the corresponding target classification theme, and presenting a message classified under the target classification theme in a pop-up dialog box; or a client The preset free area in the dialog box where the target classification topic is located Now classified as a message under the target classification topic.
  • the client presentation manner is similar to that of the client in FIG. 2, and details are not described herein again.
  • the method for triggering the client to classify the M local messages in the message group into the N classification topics in the embodiment of the present invention may include: the client receiving the message classification display request of the message group; or The client determines that the number of local messages buffered in the message group exceeds a set threshold.
  • the client before presenting the message classified under the target classification topic, receives the message presentation request, and the message presentation request further includes a restriction condition for the local message to be requested to be presented, and the client caches from the M cache locally on the client.
  • the message obtains a local message that meets the constraint condition and is classified under the target classification topic, and presents a local message that meets the constraint condition and is classified under the target classification topic.
  • the local message of the preset time period is presented under the target classification topic, or the local message published by the user is limited under the target classification theme.
  • the local messages presented under the target classification topic may be displayed in the order of time release.
  • the color of the message fonts may be different under each different classification theme, or may be the same, such as the color of one font corresponding to each classification theme.
  • a server, a client, and a system for message presentation are provided in the embodiment of the present invention.
  • the server, the client, and the system corresponding to the message presentation are the methods for message presentation in the embodiment of the present invention.
  • the implementation of the server, the client, and the system for presenting the message of the present invention can be referred to the implementation of the method, and the details are not described again.
  • the message presentation server of the embodiment of the present invention includes: a processing unit 700 and a transceiver unit 701, wherein the processing unit 700 is configured to: at least one user according to a preset classification rule for a message group.
  • the M messages input in the message group are classified into N classification topics, where M and N are positive integers and M ⁇ N; and the transceiver unit 701 is configured to classify the N classification topics obtained by the processing unit.
  • the target message is sent to the client, and the target message is a message classified under at least one of the N classification topics.
  • the processing unit 700 is specifically configured to: separately determine each of the M messages separately The attribution weight value attributed to the preset K classification topics, where K is a positive integer and K ⁇ N; according to the message content classification rule, M messages are divided into P groups to obtain P message groups; for P messages The nth message group in the group classifies the nth message group under the first category topic, wherein the message with the largest home weight value in the nth message group is the first message, and the first message belongs to the first message.
  • a classification topic has the largest attribution weight value, and the first classification theme is one of N classification topics.
  • the message with the largest home weight value in the nth message group has at least two messages, and the first message is the message with the earliest input time in at least two messages.
  • the transceiver unit 701 is further configured to: before sending the N classified topics categorized by the processing unit to the client presentation, receive a message classification display request of the message group sent by the client; or, the processing unit 700.
  • the method further includes: determining, before the transceiver unit sends the N classified topics classified by the processing unit to the client presentation, that the number of messages input in the message group exceeds a set threshold.
  • the target message is a message respectively classified into the N classification topics; the transceiver unit 701 is specifically configured to: send the messages respectively classified under the N classification topics to the client.
  • the target message is a message classified under the target classification topic
  • the target classification topic is a message topic that is sent by the client to the transceiver unit to request the message to be sent
  • the transceiver unit 701 is specifically used to After receiving the message presentation request sent by the client, the message classified under the target classification topic is sent to the client, and the message presentation request is used by the request processing unit to send the message classified to the target classification topic to the client through the transceiver unit.
  • the message presentation request further includes a restriction condition for the message to be requested to be presented
  • the transceiver unit 701 is specifically configured to: send, by the processing unit, a message that is categorized under the target classification topic and meets the restriction condition to Client.
  • the transceiver unit 701 is further configured to send the number of the messages respectively classified under the N classification topics to the client.
  • the processing unit 700 may be implemented by a processor, and the transceiver unit 701 may be implemented by a transceiver.
  • the server 800 of the embodiment of the present invention may include a processor 810, a transceiver 820, and a memory 830. Wherein, the memory 830 can be used for a storage server
  • the 800 pre-installed program/code may also store code for execution of the processor 810 and the like.
  • bus system 840 which in addition to the data bus includes a power bus, a control bus, and a status signal bus.
  • the processor 810 can be a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits for performing related operations.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • server 800 shown in FIG. 8 only shows the processor 810, the transceiver 820, and the memory 830, in a specific implementation process, those skilled in the art should understand that the server 800 also includes a normal operation. Other devices that are required. At the same time, those skilled in the art will appreciate that the server 800 may also include hardware devices that implement other additional functions, depending on the particular needs. Moreover, those skilled in the art will appreciate that the server 800 may also only include the devices or modules necessary to implement the embodiments of the present invention, and does not necessarily include all of the devices shown in FIG.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
  • the client of the message presentation of the embodiment of the present invention includes: a transceiver unit 900, a display unit 901, and a processing unit 902, where the transceiver unit 900 is configured to receive N classification topics sent by the server for the message group.
  • the N classification topics are obtained by the server classifying the M messages according to a preset classification rule, where M and N are positive integers and M ⁇ N; the display unit 901 is configured to present N classification topics received by the receiving unit; The transceiver unit 900 is further configured to receive a message presentation request, where the message presentation request is used to request to present a message classified under the target classification topic, the target classification topic is one of the N classification topics presented, and the processing unit 902 is configured to send and receive according to the message. The unit receives the message presentation request to determine the target classification topic; the display unit 901 is further configured to acquire and present the message classified under the target classification topic determined by the processing unit.
  • the transceiver unit 900 is further configured to receive, by the server, the messages respectively classified into the N classification topics, where the display unit 901 is specifically configured to be respectively received from the transceiver unit and classified into the messages under the N classification topics. Read the message categorized under the target classification topic.
  • the message presentation request further includes a restriction condition for the message to be requested to be presented;
  • the display unit 901 is specifically configured to be used in the message received from the transceiver unit and classified under the N classification topics, and the reading meets the restriction condition, and A message categorized under the target classification topic.
  • the transceiver unit 900 is specifically configured to send a message presentation request to the server, notify the server to send a message classified to the target classification topic to the client, and receive a message sent by the server and classified under the target classification topic; the display unit The 901 is specifically configured to acquire a message that is received by the transceiver unit and classified under the target classification topic.
  • the message presentation request further includes a restriction condition for the message to be presented
  • the transceiver unit 900 is specifically configured to receive the message that is sent by the server and is classified under the target classification topic and meets the restriction condition.
  • the transceiver unit 900 is further configured to send a message classification display request of the message group to the server before the display unit presents the N classification topics sent by the server for the message group.
  • the display unit 901 is specifically configured to pop up a dialog box in the corresponding target classification theme, and present a message classified under the target classification theme in the pop-up dialog box; or, in the dialog box of the target classification topic Set a free area to present messages classified under the target classification topic.
  • the processing unit 902 may be implemented by a processor
  • the transceiver unit 900 may be implemented by a transceiver
  • the display unit 901 may be implemented by a display device.
  • the client 1000 of the embodiment of the present invention may include a processor 1010, a transceiver 1020, a memory 1030, and a display device 1040.
  • the memory 1030 may be used to store a program/code pre-installed by the client 1000 at the time of shipment, or may store a code or the like for execution of the processor 1010.
  • bus system 1050 which in addition to the data bus includes a power bus, a control bus, and a status signal bus.
  • the processor 1010 can be a general-purpose central processing unit (CPU), a microprocessor, and an application specific integrated circuit (Application Specific Integrated Circuit, An ASIC), or one or more integrated circuits, for performing related operations to implement the technical solutions provided by the embodiments of the present invention.
  • CPU central processing unit
  • microprocessor a microprocessor
  • ASIC application Specific Integrated Circuit
  • the client 1000 shown in FIG. 10 only shows the processor 1010, the transceiver 1020, the memory 1030, and the display device 1040, in a specific implementation process, those skilled in the art should understand that the client 1000 It also contains other devices necessary to get it running. At the same time, those skilled in the art will appreciate that the client 1000 may also include hardware devices that implement other additional functions, depending on the particular needs. Moreover, those skilled in the art will appreciate that the client 1000 may also only include the devices or modules necessary to implement the embodiments of the present invention, and does not necessarily include all of the devices shown in FIG.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
  • the system for presenting a message of the embodiment of the present invention includes any server 1100 provided by the embodiment of the present invention, and any client 1120 provided by the embodiment of the present invention.
  • the client of the message presentation of the embodiment of the present invention includes: a processing unit 1200, a transceiver unit 1210, and a display unit 1220, wherein the processing unit 1200 is configured to follow a preset classification rule for a message group.
  • the M cached local messages in the message group are classified into N classification topics, where M and N are positive integers and M ⁇ N; the display unit 1220 is configured to render the N classification topics obtained by the processing unit classification.
  • the transceiver unit 1210 is configured to receive a message presentation request, and the message presentation request is used to request to present a local message classified under the target classification topic, and the target classification topic is one of the N classified topics presented; the processing unit 1200 further uses Determining a target classification topic according to the message presentation request received by the transceiver unit; the display unit 1220 is further configured to obtain a local message classified under the target classification topic from the M cached local messages, and present the classification to the target classification topic. Local message under.
  • the transceiver unit 1210 is further configured to: in the processing unit 1200, the M groups in the message group Before the local message is classified under the N classification topics, the message classification display request of the message group is received; or the processing unit 1200 is further configured to classify the M local messages in the message group into N classification topics. Before proceeding, it is determined that the number of local messages buffered in the message group exceeds the set threshold.
  • the processing unit 1200 is specifically configured to: determine, respectively, that each of the M local messages belongs to a home weight value of the preset K classification topics, where K is a positive integer and K ⁇ N;
  • the content classification rule divides the M local messages into P groups to obtain P message groups; for the nth message group of the P message groups, classifies the nth message group under the first classification topic, wherein
  • the local message with the largest attribution weight value in the nth message group is the first message, and the first message belongs to the first classification topic, and the first classification topic is one of the N classification topics.
  • the message with the largest home weight value in the nth message group has at least two messages, and the first message is the message with the earliest input time in at least two messages.
  • the display unit 1220 is specifically configured to: pop up a dialog box in the corresponding target classification theme, and present a local message classified under the target classification theme in a pop-up dialog box; or, in a dialog box where the target classification theme is located
  • the preset free area presents a local message categorized under the target classification topic.
  • the message presentation request further includes a restriction condition for the local message to be requested to be presented, and the display unit 1220 is specifically configured to obtain the qualified condition from the M cache in the local message of the client, and classify the target classification topic. Local messages underneath, and present local messages that meet the constraints and are categorized under the target classification topic.
  • the processing unit 1200 may be implemented by a processor
  • the transceiver unit 1210 may be implemented by a transceiver
  • the display unit 1220 may be implemented by a display device.
  • the client 1300 of the embodiment of the present invention may include a processor 1310, a transceiver 1320, a memory 1330, and a display device 1340.
  • the memory 1330 may be used to store a program/code pre-installed by the client 1300 at the factory, or may store a code or the like for execution of the processor 1310.
  • bus system 1350 that includes, in addition to the data bus, a power bus, a control bus, and a status signal bus.
  • the processor 1310 can be a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits for performing related operations.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the client 1300 shown in FIG. 13 only shows the processor 1310, the transceiver 1320, the memory 1330, and the display device 1340, in a specific implementation process, those skilled in the art should understand that the client 1300 It also contains other devices necessary to get it running. At the same time, those skilled in the art will appreciate that the client 1300 may also include hardware devices that implement other additional functions, depending on the particular needs. Moreover, those skilled in the art will appreciate that the client 1300 may also only include the devices or modules necessary to implement the embodiments of the present invention, and does not necessarily include all of the devices shown in FIG.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
  • the server classifies the M messages input by the at least one user in the message group into N classification topics according to a preset classification rule for a message group, and The N classification topics and the target message are sent to the client, and the target message is a message classified under at least one of the N classification topics.
  • This technical solution can classify M messages input by at least one user in the message group into N classification topics according to a preset classification rule, and classify N classification topics and The target message is sent to the client, so that the client can present the N classification topics to the user, thereby diversifying the presentation manner of the message, and enabling the user to intuitively understand the message discussed in the message group as a whole. content.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may employ an entirely hardware embodiment, an entirely software embodiment, Or in the form of an embodiment of the software and hardware aspects. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种消息呈现的方法、设备及系统,涉及计算机技术领域,用以解决现有技术中存在的即时消息呈现方式较为单一的问题,其中,该方法包括:服务器针对一个消息群组,将至少一个用户在消息群组中输入的M个消息归类到N个分类主题下,并将N个分类主题、以及目标消息发送到客户端。能够针对一个消息群组,按照预设的归类规则将至少一个用户在该消息群组中输入的M个消息归类到N个分类主题下,并将N个分类主题和目标消息发送到客户端,使得客户端能够将N个分类主题呈现给用户,从而使得消息的呈现方式多样化,并使得该用户能够直观的从整体上了解该消息群组中所讨论的消息的内容。

Description

一种消息呈现的方法、设备及系统 技术领域
本发明涉及计算机技术领域,特别涉及一种消息呈现的方法、设备及系统。
背景技术
目前,在通过即时通信软件进行通信时,能够分群组进行聊天。通常情况下,用户活跃度较高的群组,在短时间内可以聚集大量的对话消息,其中这些对话消息是按照发布的时间顺序进行呈现的,当用户面对大量的群组消息时,很难从庞杂的消息中快速聚焦自己感兴趣主题的对话消息。
为了使用户能够从大量的对话消息中快速聚焦自己感兴趣的对话消息,现有技术中可通过关键词定位用户感兴趣主题的对话消息,但是,这种方式用户无法从整体上获取用户感兴趣话题的对话消息的讨论全貌,只能获取包括关键词的对话消息。
综上所述,目前即时消息的呈现方式较为简单,无法满足用户的需求。
发明内容
本发明提供一种消息呈现方法及装置,用以解决现有技术中存在的即时消息呈现方式较为单一的问题。
第一方面,提供了一种消息呈现方法,包括:
服务器针对一个消息群组,按照预设的归类规则将至少一个用户在所述消息群组中输入的M个消息归类到N个分类主题下,其中,所述M、N为正整数且M≥N;并将N个分类主题、以及目标消息发送到客户端,其中,所述目标消息为归类到N个分类主题中的至少一个分类主题下的消息。
在本发明实施例中,由于能够针对一个消息群组,按照预设的归类规则将至少一个用户在该消息群组中输入的M个消息归类到N个分类主题下,并将 N个分类主题和目标消息发送到客户端,使得客户端能够将N个分类主题呈现给用户,从而使得消息的呈现方式多样化,并使得该用户能够直观的从整体上了解该消息群组中所讨论的消息的内容。
在第一方面的基础上,可选的,所述服务器将M个消息归类到N个分类主题下的一种具体实现方式为:
所述服务器分别确定M个消息中的每个消息分别归属于预设的K个分类主题的归属权重值,其中K为正整数且K≥N;并根据消息内容归类规则,将所述M个消息划分成P组,得到P个消息组;然后,针对所述P个消息组中的第n个消息组,将第n个消息组归类到第一分类主题下,其中,所述第n个消息组中归属权重值最大的消息为第一消息、且所述第一消息归属于所述第一分类主题的归属权重值最大,且所述第一分类主题为所述N个分类主题中的一个。
由于本发明实施例中通过上述方式将M个消息归类到N个分类主题下,使得该技术方案简单易于实现。
在第一方面的基础上,可选的,所述第n个消息组中归属权重值最大的消息存在至少两条消息、所述第一消息为至少两条消息中输入时间最早的消息。
由于当第n个消息组中归属权重值最大的消息存在至少两条消息时,第一消息为输入时间最早的消息,从而使得根据第一消息确定出的消息组归类到的分类主题较为准确。
在第一方面的基础上,本发明实施例提供了一种触发服务器将所述N个分类主题发送到客户端呈现的方式,可选的,服务器在将所述N个分类主题发送到客户端呈现之前,接收到所述客户端发送的所述消息群组的消息分类显示请求。
在第一方面的基础上,本发明实施例还提供了另一种触发服务器将所述N个分类主题发送到客户端呈现的方式,可选的,服务器在将所述N个分类主题发送到客户端呈现之前,确定所述消息群组中输入的消息条数超过设定的 阈值。
在第一方面的基础上,可选的,所述目标消息为分别归类到所述N个分类主题下的消息;所述服务器将所述分别归类到所述N个分类主题下的消息发送到所述客户端。
由于服务器直接将分别归类到N个分类主题下的消息发送到客户端,从而降低了通过客户端用户查看目标消息的延迟的时间。
在第一方面的基础上,可选的,所述目标消息为归类到目标分类主题下的消息,所述目标分类主题为所述客户端向所述服务器发送的消息呈现请求用于请求发送的消息归类到的分类主题;所述服务器接收所述客户端发送的所述消息呈现请求后,将归类到所述目标分类主题下的消息发送到所述客户端,所述消息呈现请求用于请求所述服务器向所述客户端发送归类到所述目标分类主题下的消息。
由于服务器在接收到消息呈现请求后,再将归类到目标分类主题下的消息发送到客户端,虽然用户查看目标消息的延迟增大了,但降低了占用客户端的内存空间。
在第一方面的基础上,可选的,所述消息呈现请求还包括用于对要请求呈现的消息的限制条件,所述服务器将归类到所述目标分类主题下的、符合所述限制条件的消息发送到客户端。
由于能够通过限制条件进一步筛选出符合限制条件的消息,从而提高了用户查看归类到目标分类主题下消息的效率。
在第一方面的基础上,可选的,所述服务器还将分别归类于N个分类主题下的消息的条数发送到客户端。
由于服务器还将归类于N个分类主题下的消息的条数发送到客户端呈现,使得用户能够对每个分类主题下的包括消息的条数有一个直观的了解。
第二方面,提供了一种消息呈现的方法,包括:
客户端接收并呈现所述服务器针对所述消息群组发送的N个分类主题,所述N个分类主题为所述服务器将所述M个消息按照预设的归类规则归类得 到的,其中,所述M、N为正整数且M≥N;然后,接收消息呈现请求,确定目标分类主题,所述目标分类主题为呈现的N个分类主题中一个分类主题,所述消息呈现请求用于请求呈现归类到所述目标分类主题下的消息;并获取并呈现归类到目标分类主题下的消息。
在本发明实施例中由于客户端能够针对每个消息群组呈现该消息群组中的N个分类主题和目标消息,从而使得消息的呈现方式多样化,并使得该用户能够直观的从整体上了解该消息群组中所讨论的消息的内容。
在第二方面的基础上,可选的,所述客户端接收所述服务器发送的分别归类到N个分类主题下的消息;所述客户端从接收的分别归类到N个分类主题下的消息中,读取归类到所述目标分类主题下的消息。
由于服务器直接将分别归类到N个分类主题下的消息发送到客户端,从而降低了通过客户端用户查看目标消息的延迟的时间。
在第二方面的基础上,可选的,所述消息呈现请求还包括对要请求呈现的消息的限制条件;所述客户端从接收的分别归类到N个分类主题下的消息中,读取符合所述限制条件、且归类到所述目标分类主题下的消息。
由于客户端能够读取通过限制条件进一步筛选出符合限制条件的消息,从而提高了用户查看归类到目标分类主题下消息的效率。
在第二方面的基础上,可选的,所述客户端向所述服务器发送所述消息呈现请求,通知所述服务器向所述客户端发送归类到所述目标分类主题下的消息;并接收所述服务器发送的归类到所述目标分类主题下的消息。
由于客户端在向服务器发送消息呈现请求后,再接收并呈现服务器发送的归类到目标分类主题下的消息,虽然用户查看目标消息的延迟增大了,但降低了占用客户端的内存空间。
在第二方面的基础上,可选的,所述消息呈现请求还包括对要请求呈现的消息的限制条件;所述客户端接收所述服务器发送的归类到被选中的分类主题下的、符合所述限制条件的消息。
由于客户端能够读取通过限制条件进一步筛选出符合限制条件的消息, 从而提高了用户查看归类到目标分类主题下消息的效率。
在第二方面的基础上,可选的,所述客户端呈现所述服务器针对所述消息群组发送的N个分类主题之前,向所述服务器发送所述消息群组的消息分类显示请求。
由于通过客户端向服务器发送消息群组的消息分类显示请求后,客户端才会呈现分类主题,使得用户能够根据自己需求进行相应的设置,从而提高了用户的体验。
在第二方面的基础上,可选的,所述客户端呈现归类到目标分类主题下的消息的方式包括:所述客户端在对应所述目标分类主题弹出对话框,并在弹出的对话框中呈现归类到所述目标分类主题下的消息;或者,所述客户端在所述目标分类主题所在的对话框中的预设空闲区域,呈现归类到目标分类主题下的消息。
由于通过在对应所述目标分类主题弹出的对话框或目标分类主题所在的对话框中的预设的空闲区域中显示归类到目标分类主题下的消息,使得消息的呈现方式更加清楚。
第三方面,提供了一种消息呈现的方法,包括:
客户端针对一个消息群组,按照预设的归类规则将所述消息群组中的M个缓存在所述客户端的本地消息归类到N个分类主题下,其中,所述M、N为正整数且M≥N;并呈现N个分类主题;然后在接收到消息呈现请求后,根据接收到的消息呈现请求,确定目标分类主题,所述目标分类主题为呈现的N个分类主题中的一个分类主题,所述消息呈现请求用于请求呈现归类到所述目标分类主题下的本地消息;最后,再从M个缓存在所述客户端的本地消息中获取归类到所述目标分类主题下的本地消息,并呈现所述归类到所述目标分类主题下的本地消息。
在本发明实施例中由于客户端能够针对每个消息群组呈现该消息群组中的N个分类主题和归类到目标分类主题下的本地消息,从而使得消息的呈现方式多样化,并使得该用户能够直观的从整体上了解该消息群组中所讨论的本 地消息的内容。
在第三方面的基础上,本发明实施例还提供了一种触发服务器将所述N个分类主题发送到客户端呈现的方式,可选的,所述客户端将所述消息群组中的M个本地消息归类到N个分类主题下之前,所述客户端接收到所述消息群组的消息分类显示请求。
在第三方面的基础上,本发明实施例还提供了另一种触发服务器将所述N个分类主题发送到客户端呈现的方式,可选的,所述客户端将所述消息群组中的M个本地消息归类到N个分类主题下之前,确定所述消息群组中缓存的本地消息条数超过设定的阈值。
在第三方面的基础上,可选的,所述客户端将M个本地消息归类到N个分类主题下的一种具体实现方式为:
所述客户端分别确定M个本地消息中的每个本地消息分别归属于预设的K个分类主题的归属权重值,其中K为正整数且K≥N;并根据消息内容归类规则,将所述M个本地消息划分成P组,得到P个消息组;然后,针对所述P个消息组中的第n个消息组,将第n个消息组归类到第一分类主题下,其中,所述第n个消息组中归属权重值最大的本地消息为第一消息、且所述第一消息归属于所述第一分类主题的归属权重值最大,且所述第一分类主题为所述N个分类主题中的一个。
由于本发明实施例中通过上述方式将M个本地消息归类到N个分类主题下,使得该技术方案简单易于实现。
在第三方面的基础上,可选的,所述第n个消息组中归属权重值最大的消息存在至少两条消息、所述第一消息为至少两条消息中输入时间最早的消息。
由于当第n个消息组中归属权重值最大的消息存在至少两条消息时,第一消息为输入时间最早的消息,从而使得根据第一消息确定出的消息组归类到的分类主题较为准确。
在第三方面的基础上,可选的,所述客户端呈现归类到目标分类主题下 的本地消息的方式包括:所述客户端在对应所述目标分类主题弹出对话框,并在弹出的对话框中呈现归类到所述目标分类主题下的本地消息;或者,所述客户端在所述目标分类主题所在的对话框中的预设空闲区域,呈现归类到所述目标分类主题下的本地消息。
由于通过在对应所述目标分类主题弹出的对话框或目标分类主题所在的对话框中的预设的空闲区域中显示归类到目标分类主题下的消息,使得本地消息的呈现方式更加清楚。
在第三方面的基础上,可选的,所述消息呈现请求还包括用于对要请求呈现的本地消息的限制条件,所述客户端从M个缓存在所述客户端的本地消息中获取符合所述限制条件、且归类到所述目标分类主题下的本地消息,并呈现所述符合所述限制条件、且归类到所述目标分类主题下的本地消息。
由于客户端能够读取通过限制条件进一步筛选出符合限制条件的消息,从而提高了用户查看归类到目标分类主题下消息的效率。
第四方面,提供了一种消息呈现的服务器,包括:处理单元和收发单元,其中,处理单元用于针对一个消息群组,按照预设的归类规则将至少一个用户在所述消息群组中输入的M个消息归类到N个分类主题下,其中,所述M、N为正整数且M≥N;收发单元用于将通过所述处理单元归类得到的所述N个分类主题、以及目标消息发送到客户端,所述目标消息为归类到所述N个分类主题中的至少一个分类主题下的消息。
在第四方面的基础上,可选的,所述处理单元具体用于分别确定M个消息中的每个消息分别归属于预设的K个分类主题的归属权重值,其中K为正整数且K≥N;根据消息内容归类规则,将所述M个消息划分成P组,得到P个消息组;针对所述P个消息组中的第n个消息组,将第n个消息组归类到第一分类主题下,其中,所述第n个消息组中归属权重值最大的消息为第一消息、且所述第一消息归属于所述第一分类主题的归属权重值最大,且所述第一分类主题为所述N个分类主题中的一个。
在第四方面的基础上,可选的,所述第n个消息组中归属权重值最大的 消息存在至少两条消息、所述第一消息为至少两条消息中输入时间最早的消息。
在第四方面的基础上,可选的,所述收发单元还用于在将通过所述处理单元归类得到的所述N个分类主题发送到所述客户端呈现之前,接收到所述客户端发送的所述消息群组的消息分类显示请求。
在第四方面的基础上,可选的,所述处理单元还用于在所述收发单元将通过所述处理单元归类得到的所述N个分类主题发送到所述客户端呈现之前,确定所述消息群组中输入的消息条数超过设定的阈值。
在第四方面的基础上,可选的,所述目标消息为分别归类到所述N个分类主题下的消息;所述收发单元具体用于将所述分别归类到所述N个分类主题下的消息发送到所述客户端。
在第四方面的基础上,可选的,所述目标消息为归类到所述目标分类主题下的消息,所述目标分类主题为所述客户端向所述收发单元发送的消息呈现请求用于请求发送的消息归类到的分类主题;所述收发单元具体用于接收所述客户端发送的所述消息呈现请求后,将归类到所述目标分类主题下的消息发送到所述客户端,所述消息呈现请求用于请求所述处理单元通过所述收发单元向所述客户端发送归类到所述目标分类主题下的消息。
在第四方面的基础上,可选的,所述消息呈现请求还包括用于对要请求呈现的消息的限制条件,所述收发单元,具体用于将通过所述处理单元确定的归类到所述目标分类主题下的、符合所述限制条件的消息发送到客户端。
在第四方面的基础上,可选的,所述收发单元还用于将分别归类于N个分类主题下的消息的条数发送到客户端。
第五方面,提供了一种消息呈现的客户端,包括:收发单元、显示单元和处理单元,其中,收发单元用于接收所述服务器针对所述消息群组发送的N个分类主题,所述N个分类主题为所述服务器将所述M个消息按照预设的归类规则归类得到的,其中,所述M、N为正整数且M≥N;显示单元用于呈现所述接收单元接收的N个分类主题;所述收发单元还用于接收消息呈现请 求,所述消息呈现请求用于请求呈现归类到所述目标分类主题下的消息,所述目标分类主题为呈现的N个分类主题中一个分类主题;所述处理单元用于根据所述收发单元接收的消息呈现请求,确定目标分类主题;所述显示单元还用于获取并呈现归类到通过所述处理单元确定的所述目标分类主题下的消息。
在第五方面的基础上,可选的,所述收发单元还用于接收所述服务器发送的分别归类到N个分类主题下的消息;所述显示单元,具体用于从所述收发单元接收的分别归类到N个分类主题下的消息中,读取归类到所述目标分类主题下的消息。
在第五方面的基础上,可选的,所述消息呈现请求还包括对要请求呈现的消息的限制条件;所述显示单元具体用于从所述收发单元接收的分别归类到N个分类主题下的消息中,读取符合所述限制条件、且归类到所述目标分类主题下的消息。
在第五方面的基础上,可选的,所述收发单,具体用于向所述服务器发送所述消息呈现请求,通知所述服务器向所述客户端发送归类到所述目标分类主题下的消息;并接收所述服务器发送的归类到所述目标分类主题下的消息;所述显示单元具体用于获取所述收发单元接收的归类到所述目标分类主题下的消息。
在第五方面的基础上,可选的,所述消息呈现请求还包括对要请求呈现的消息的限制条件;所述收发单元具体用于接收所述服务器发送的归类到所述目标分类主题下的、符合所述限制条件的消息。
在第五方面的基础上,可选的,所述收发单元还用于在所述显示单元呈现所述服务器针对所述消息群组发送的N个分类主题之前,向所述服务器发送所述消息群组的消息分类显示请求。
在第五方面的基础上,可选的,所述显示单元,具体用于在对应所述目标分类主题弹出对话框,并在弹出的对话框中呈现归类到所述目标分类主题下的消息;或者,在所述目标分类主题所在的对话框中的预设空闲区域,呈 现归类到目标分类主题下的消息。
第六方面,提供了一种消息呈现的系统,包括本发明实施例任一所述的服务器,和本发明实施例任一所述的客户端。
第七方面,提供了一种消息呈现的客户端,包括:处理单元、显示单元和收发单元,其中,处理单元用于针对一个消息群组,按照预设的归类规则将所述消息群组中的M个缓存的本地消息归类到N个分类主题下,其中,所述M、N为正整数且M≥N;显示单元用于呈现所述处理单元归类得到的N个分类主题;收发单元用于接收消息呈现请求,所述消息呈现请求用于请求呈现归类到目标分类主题下的本地消息,所述目标分类主题为呈现的N个分类主题中的一个分类主题;所述处理单元还用于根据所述收发单元接收到的消息呈现请求,确定所述目标分类主题;所述显示单元还用于从M个缓存的本地消息中获取归类到所述目标分类主题下的本地消息,并呈现所述归类到所述目标分类主题下的本地消息。
在第七方面的基础上,可选的,所述收发单元还用于在所述处理单元将所述消息群组中的M个本地消息归类到N个分类主题下之前,接收到所述消息群组的消息分类显示请求。
在第七方面的基础上,可选的,所述处理单元还用于在将所述消息群组中的M个本地消息归类到N个分类主题下之前,确定所述消息群组中缓存的本地消息条数超过设定的阈值。
在第七方面的基础上,可选的,所述处理单元具体用于分别确定M个本地消息中的每个本地消息分别归属于预设的K个分类主题的归属权重值,其中K为正整数且K≥N;根据消息内容归类规则,将所述M个本地消息划分成P组,得到P个消息组;针对所述P个消息组中的第n个消息组,将第n个消息组归类到第一分类主题下,其中,所述第n个消息组中归属权重值最大的本地消息为第一消息、且所述第一消息归属于所述第一分类主题的归属权重值最大,且所述第一分类主题为所述N个分类主题中的一个。
在第七方面的基础上,可选的,所述第n个消息组中归属权重值最大的 消息存在至少两条消息、所述第一消息为至少两条消息中输入时间最早的消息。
在第七方面的基础上,可选的,所述显示单元具体用于在对应所述目标分类主题弹出对话框,并在弹出的对话框中呈现归类到所述目标分类主题下的本地消息;或者,在所述目标分类主题所在的对话框中的预设空闲区域,呈现归类到所述目标分类主题下的本地消息。
在第七方面的基础上,可选的,所述消息呈现请求还包括用于对要请求呈现的本地消息的限制条件,所述显示单元具体用于从M个缓存在所述客户端的本地消息中获取符合所述限制条件、且归类到所述目标分类主题下的本地消息,并呈现所述符合所述限制条件、且归类到所述目标分类主题下的本地消息。
附图说明
图1为本发明实施例应用的网络架构图;
图2为本发明实施例消息呈现的方法的流程示意图;
图3为群组消息示意图;
图4(a)和图4(b)分别为本发明实施例分类主题呈现的方式的示意图;
图5(a)、图5(b)和图5(c)分别为本发明实施例被选中的分类主题下的消息的呈现的方式的示意图;
图6为本发明实施例消息呈现的方法的流程示意图;
图7为本发明实施例消息呈现的服务器的结构示意图;
图8为本发明实施例消息呈现的服务器的硬件结构示意图;
图9为本发明实施例消息呈现的客户端的结构示意图;
图10为本发明实施例消息呈现的客户端的硬件结构示意图;
图11为本发明实施例消息呈现的系统结构示意图;
图12本发明实施例消息呈现的客户端的结构示意图;
图13为本发明实施例消息呈现的客户端的硬件结构示意图。
具体实施方式
为了使本发明实施例的目的、技术方案和优点更加清楚,下面结合说明书附图对本发明实施例作进一步详细描述。
本发明实施例应用即时聊天应用,如QQ、微信、微博等。
具体地,应用场景的网络架构如图1所示,包括服务器和客户端,其中客户端为安装在终端上的应用,终端通过客户端将用户输入的请求或信息发送给服务器,服务器将用户请求的信息通过安装在终端的客户端反馈给用户。
其中,安装客户端的终端可以为手机、平板电脑、笔记本、台式机等能够安装客户端的电子产品。
具体的,当通过服务器对至少一个用户在消息群组中输入的消息进行分类时,如图2所示,本发明实施例消息呈现的方法,包括:
步骤200,服务器针对一个消息群组,按照预设的归类规则将至少一个用户在该消息群组中输入的M个消息归类到N个分类主题下,其中,M、N为正整数且M≥N。
需要说明的是,服务器在接收到客户端上报的至少一个用户在该消息群组输入的M个消息之后,直接将M个消息归类到N个分类主题下,或者,在步骤200之前,通过客户端向服务器发送该消息群组的消息分类显示请求触发服务器对该消息群组的消息进行分类,例如,在客户端设置每个消息群组对应的分类显示按键,当用户将分类显示案件置于开时,客户端向服务器发送消息分类显示请求。
此外,本发明实施例还提供了一种触发服务器将该消息群组中至少一个用户在该消息群组中输入的消息归类到不同分类主题下的方法:服务器确定该消息群组中输入的消息超过设定的阈值。例如,消息群组1设定的阈值为50,服务器接收到消息群组1中输入的消息为51时,才将消息群组1中的消息归类到N个分类主题下;若消息群组2设定的阈值为51,服务器接收到消息群组2中输入的消息为52时,才将消息群组2中的消息归类到N个分类主题下;此外,若消息群组3设定的阈值为0,服务器在接收到消息群组3的中 有输入的消息时,即将消息群组3中的消息归类到N个分类主题下。
此外,需要说明的是,在步骤200中预设的归类规则可以为标准的分类器算法结合常见的序列标注模型,其中,标准的分类器算法如简单的朴素贝叶斯分类器算法、常见的序列标注模型如隐马尔科夫模型、条件随机场模型。
具体的,可以通过下列方式实现:服务器分别确定M个消息中的每个消息分别归属于预设的K个分类主题的归属权重值,其中K为正整数且K≥N;并根据消息内容归类规则,将M个消息划分成P组,得到P个消息组;针对P个消息组中的第n个消息组,将第n个消息组归类到第一分类主题下,其中,第n个消息组中归属权重值最大的消息为第一消息、且第一消息归属于第一分类主题的归属权重值最大,且第一分类主题为N个分类主题中的一个。
应理解,在本发明实施例中,确定M个消息分别归属于预设的K个分类主题的归属权重值,可以通过简单的朴素贝叶斯分类器或其他的分类器的算法实现。
其中,预设的分类主题可以通过管理员预先设置在服务器中,为能够实时更新服务器中的主题,可以通过预先设置的算法,从网络中获取分类主题,具体的,该分类主题可以为一般性主题,如文化、经济、政治、民生等,还可以为时效性主题,如天津港爆炸、十八大、巴黎恐怖袭击等。
应理解,服务器可以通过网路爬虫技术获取预设网站(如新闻分类网站)的分类列表中的分类主题,作为一般性主题;服务器可以通过网络爬虫技术获取社交媒体(如微博)的正文数据、回复数据、作者社交网络数据,将爬取的每一条社交媒体发帖的正文、回复分别视为一个文档,利用文本聚类技术进行聚类,确定各类别内的文档是否基本属于同一类别。如果大部分文档不属于同一类别,则可以调整聚类参数,重新聚类,直到得到可接受的聚类结果。如果聚类结果可接受,则为各类别指定一个类别名作为时效性主题。此外,对于与微博类似的社交媒体,可以再发帖中用“#”标示出发文主题的,可以直接取用各类别范本文档的主题即可。
需要说明的是,在实际应用中实效性主题集合可以进行周期性更新。由 于实效性主题的生命周期短,每次更新只需获取预设的一段时间内(如:最近3个月)的社交媒体数据进行聚类集合。
步骤200中具体的,服务器分别确定每条消息的特征向量,并根据确定的特征向量,分别确定每条消息的主题归属权重值,然后,根据消息内容归类规则如训练集数据对序列标注模型进行训练(常见的序列标注模型,如隐马尔科夫模型,条件随机场模型等)来学习消息分类,得到P个消息组。以条件随机场模型为例,模型中采用的特征可以包括但不限于以下特征:
当前消息和前一条消息的权重最高的主题是否一致;
当前消息和前一条消息的权重最高三个主题中是否有一致的主题;
当前消息和前一条消息的间隔时间;
当前消息是否具有明显的话题转换特征,如上述示例中的“换个话题”;
当前消息与前一条消息是否同一发布者;
当前消息是否@前一条消息的发布者。
用训练好的序列标注模型对该消息群组中的消息进行标注,即可将当前对话序列进行分类,得到P个消息组。具体的,将获取消息群组中进行分类的消息进行标注,得到带有0和1标记的消息序列,即对话序列标注训练集,1表示开始新的话题,0表示继续上文话题。
然后,针对每个消息组,服务器确定该消息组归类到的分类主题。
以图3中的消息群组1中消息为例,进行说明。
假设:消息群组1中的消息“张三:看见习主席了吗”分类主题为“习马会”的归属权重值为70%;“李四:在和马英九开记者会呢”分类主题为“习马会”的归属权重值为80%;“王五:两位这是在客厅看电视呢”分类主题为“习马会”的归属权重值为50%,分类主题为“其他”的归属权重为值50%;“李四:换个话题,话说二胎开放了”分类主题为“二胎放开”的归属权重值为90%;“王五:昨天晚上还在和老婆聊这个事儿”分类主题为“二胎放开”的归属权重值为60%、分类主题为“其他”的归属权重值为30%;“王五:我老婆说你爱和谁生就和谁生,反正我不生”分类主题为“二胎放开”的归属 权重值为80%。
结合消息的分类主题的归属权重值,按照上述模型,可以确定“张三:看见习主席了吗”、“李四:在和马英九开记者会呢”、“王五:两位这是在客厅看电视呢”归类于分类主题为“习马会”、消息“李四:换个话题,话说二胎开放了”、“王五:昨天晚上还在和老婆聊这个事儿”、“王五:我老婆说你爱和谁生就和谁生,反正我不生”归类于分类主题“二胎开放”。
需要说明的是,在本发明实施例中可以先对消息群组中的消息进行分类,得到至少一个消息组,然后在确定每个消息的分类主题的归属权重值,最后确定每个消息组归类到的分类主题。其中,对消息分类的方法也可以采用序列标注模型进行训练,模型中采用的特征可以不包括有关主题归属权重的部分。
可选的,第n个消息组中归属权重值最大的消息存在至少两条消息、第一消息为至少两条消息中输入时间最早的消息。
例如:第2个消息组中包括消息“李四:在和马英九开记者会呢”和“王五:两位这是在客厅看电视呢”,其中,“李四:在和马英九开记者会呢”分类主题为“习马会”的归属权重值为90%,“王五:两位这是在客厅看电视呢”的分类主题为“其他”的归属权重值为90%,由于李四发布消息的时间比王五发布消息的时间早,因此,第2个消息组归类到分类主题“习马会”下。
步骤201,服务器将N个分类主题、以及目标消息发送到客户端,目标消息为归类到N个分类主题中的至少一个分类主题下的消息。
其中,本发明实施例中一种发送N个分类主题和目标消息的方式为:
服务器将N个分类主题和分别归类到N个分类主题下的消息发送到客户端,其中,目标消息为分别归类到N个分类主题下的消息。
本发明实施例中还提供了一种发送N个分类主题和目标消息的方式:
服务器将N个分类主题先发送给客户端,然后执行步骤202,在接收到客户端发送的消息呈现请求后,将目标消息发送到客户端呈现,其中,目标消息为归类到目标分类主题下的消息,目标分类主题为客户端向服务器发送的 消息呈现请求用于请求发送的消息归类到的分类主题。
例如,N个分类主题包括:“政治”、“经济”和“文化”,服务器将“政治”、“经济”和“文化”发送到客户端呈现,当用户选中“文化”时,客户端向服务器发送消息呈现请求,该消息呈现请求用于请求发送归类到“文化”下的消息,服务器在接收到该消息呈现请求后,将归类到“文化”下的消息发送给客户端呈现。
步骤202,客户端接收并呈现服务器针对该消息群组发送的N个分类主题。
例如消息群组1下包括三个分类主题“习马会”、“二胎开放”和“深马抽签”,其呈现在客户端的一种展示效果示意图可以如图4(a)所示。
为更加直观地使得用户查看每个分类主题下消息的条数,可选的,服务器将归类于不同分类主题下的消息的条数发送到客户端与不同分类主题对应呈现,其呈现方式可以如图4(b)所示。
步骤203,客户端接收消息呈现请求,确定目标分类主题。
其中,目标分类主题为根据用户触发的消息呈现请求请求呈现消息的分类主题。
步骤204,客户端获取并呈现归类到目标分类主题下的消息。
需要说明的是,当服务器将N个分类主题和分别归类到N个分类主题下的消息发送到客户端时,客户端通过从接收的分别归类到N个分类主题下的消息中,读取归类到所述目标分类主题下的消息。
当服务器将N个分类主题发送到客户端时,并未同时将分别归类到N个分类主题下的消息发送到客户端时,客户端向服务器发送消息呈现请求,通过接收服务器发送的归类到目标分类主题下的消息,来获取归类到目标分类主题下的消息的。
其中,客户端呈现目标分类主题下的消息的呈现方式包括:在对应目标分类主题弹出对话框,并在弹出的对话框中呈现服务器发送的归类到目标分类主题下的消息;或者客户端在目标分类主题所在的对话框中的预设空闲区 域,呈现服务器发送的归类到目标分类主题下的消息。
以图4(b)为例进行说明,假设选中的主题为“深马抽签”,其呈现方式可以如5(a)所示、或如图5(b)所示、或如图5(c)所示。
具体的,在步骤204中,客户端接收消息呈现请求,其中,该消息呈现请求还包括用于对要请求呈现的消息的限制条件;服务器接收客户端发送的消息呈现请求;服务器将归类到目标分类主题下的、符合所述消息呈现请求所指示的条件限制的消息发送到客户端呈现。
例如:在目标分类主题下仅呈现预设时间段的消息,或者目标的分类主题下限定用户发送的消息。
其中,目标分类主题下呈现的消息可以按照时间发布的顺序显示,每个不同的分类主题下消息字体呈现的颜色可以不同,也可以相同,如每个分类主题对应的一种字体的颜色。
由于在图2所示的消息呈现方法中,是由服务器对群组消息进行分类,服务器不仅可以为本地消息(已呈现在客户端的消息)进行分类,还可以将对用户输入到客户端上报到服务器、还未显示在客户端的消息进行分类。
其中,本发明实施例中消息呈现的方法也可以由客户端单独完成,当消息呈现的方法由客户端单独完成时,客户端仅能够针对已呈现在客户端的本地消息进行分类显示,具体的,如图6所示,包括:
步骤600,客户端针对一个消息群组,按照预设的归类规则将所述消息群组中的M个缓存在所述客户端的本地消息归类到N个分类主题下,其中,所述M、N为正整数且M≥N;
其中,触发客户端对消息群组中的本地消息进行归类方式可以为:客户端接收到消息群组的消息分类显示请求;或者,客户端确定消息群组中缓存的本地消息条数超过设定的阈值,或者,在该消息群组中缓存有本地消息时,直接触发将本地消息归类到不同的分类主题下。
具体的,客户端将消息群组中的M个本地消息归类到N个分类主题下,一种可选的实现方式为:客户端分别确定M个本地消息中的每个本地消息分 别归属于预设的K个分类主题的归属权重值,其中K为正整数且K≥N;并根据消息内容归类规则,将M个本地消息划分成P组,得到P个消息组;然后,针对P个消息组中的第n个消息组,将第n个消息组归类到第一分类主题下,其中,第n个消息组中归属权重值最大的本地消息为第一消息、且第一消息归属于第一分类主题的归属权重值最大,且第一分类主题为N个分类主题中的一个,其中n为小于等于P正整数。
需要说明的是,在本发明实施例中可以先对消息群组中的本地消息进行分类,得到P个消息组,然后在确定每个消息的分类主题的归属权重值,最后再分别确定每个消息组归类到的分类主题。其中,对消息分类的方法也可以采用序列标注模型进行训练,模型中采用的特征可以不包括有关主题归属权重的部分。
可选的,第n个消息组中归属权重值最大的消息存在至少两条消息、第一消息为至少两条消息中输入时间最早的消息。
由于客户端实现时具体的将消息群组中的本地消息归类到分类主题下的方法与服务器将消息群组中的消息归类到分类主题下的方法类似,因此客户端将消息群组中的消息归类到分类主题下的方法参见服务器将消息群组中的消息归类到分类主题下的方法,在此不再赘述。
步骤601,客户端呈现N个分类主题。
其具体的呈现方式与图2中的呈现方式类似,在此不再赘述。
步骤602,客户端接收消息呈现请求,确定目标分类主题,目标分类主题为呈现的N个分类主题中的一个分类主题,消息呈现请求用于请求呈现归类到所述目标分类主题下的本地消息。
步骤603,客户端从M个缓存在客户端的本地消息中获取归类到目标分类主题下的本地消息,并呈现归类到所述目标分类主题下的本地消息。
具体的,客户端呈现归类到目标分类主题下的消息的方式可以为:在对应目标分类主题弹出对话框,并在弹出的对话框中呈现归类到目标分类主题下的消息;或者客户端在目标分类主题所在的对话框中的预设空闲区域,呈 现归类到目标分类主题下的消息。
具体的,客户端呈现方式与图2中客户端的呈现方式类似,在此不再赘述。
可选的,在本发明实施例中触发客户端将消息群组中的M个本地消息归类到N个分类主题下的方式可以包括:客户端接收到消息群组的消息分类显示请求;或者客户端确定消息群组中缓存的本地消息条数超过设定的阈值。
其中,在呈现归类到目标分类主题下的消息之前,客户端接收消息呈现请求,消息呈现请求还包括用于对要请求呈现的本地消息的限制条件,客户端从M个缓存在客户端的本地消息中获取符合所述限制条件、且归类到目标分类主题下的本地消息,并呈现符合所述限制条件、且归类到目标分类主题下的本地消息。
例如:在目标分类主题下仅呈现预设时间段的本地消息,或者目标分类主题下限定用户发布的本地消息。
其中,目标分类主题下呈现的本地消息可以按照时间发布的顺序显示,每个不同的分类主题下消息字体呈现的颜色可以不同,也可以相同,如每个分类主题对应的一种字体的颜色。
基于同一发明构思,本发明实施例中还提供了一种消息呈现的服务器、客户端和系统,由于消息呈现的服务器、客户端和系统对应的方法为本发明实施例消息呈现的方法,因此本发明实施例消息呈现的服务器、客户端和系统的实施可以参见该方法的实施,重复之处不再赘述。
如图7所示,本发明实施例消息呈现服务器,包括:处理单元700和收发单元701,其中,处理单元700,用于针对一个消息群组,按照预设的归类规则将至少一个用户在消息群组中输入的M个消息归类到N个分类主题下,其中,M、N为正整数且M≥N;收发单元701,用于将通过处理单元归类得到的N个分类主题、以及目标消息发送到客户端,目标消息为归类到N个分类主题中的至少一个分类主题下的消息。
可选的,处理单元700具体用于:分别确定M个消息中的每个消息分别 归属于预设的K个分类主题的归属权重值,其中K为正整数且K≥N;根据消息内容归类规则,将M个消息划分成P组,得到P个消息组;针对P个消息组中的第n个消息组,将第n个消息组归类到第一分类主题下,其中,第n个消息组中归属权重值最大的消息为第一消息、且第一消息归属于第一分类主题的归属权重值最大,且第一分类主题为N个分类主题中的一个。
可选的,第n个消息组中归属权重值最大的消息存在至少两条消息、第一消息为至少两条消息中输入时间最早的消息。
可选的,收发单元701还用于:在将通过处理单元归类得到的N个分类主题发送到客户端呈现之前,接收到客户端发送的消息群组的消息分类显示请求;或者,处理单元700,还用于:在收发单元将通过处理单元归类得到的N个分类主题发送到客户端呈现之前,确定消息群组中输入的消息条数超过设定的阈值。
可选的,目标消息为分别归类到N个分类主题下的消息;收发单元701具体用于:将分别归类到N个分类主题下的消息发送到客户端。
可选的,目标消息为归类到目标分类主题下的消息,目标分类主题为客户端向收发单元发送的消息呈现请求用于请求发送的消息归类到的分类主题;收发单元701具体用于:接收客户端发送的消息呈现请求后,将归类到目标分类主题下的消息发送到客户端,消息呈现请求用于请求处理单元通过收发单元向客户端发送归类到目标分类主题下的消息。
可选的,消息呈现请求还包括用于对要请求呈现的消息的限制条件,收发单元701具体用于:将通过处理单元确定的归类到目标分类主题下的、符合限制条件的消息发送到客户端。
可选的,收发单元701还用于将分别归类于N个分类主题下的消息的条数发送到客户端。
应注意,本发明实施例中,处理单元700可以由处理器实现,收发单元701可以由收发器实现。如图8所示,本发明实施例的服务器800可以包括处理器810、收发器820和存储器830。其中,存储器830可以用于存储服务器 800出厂时预装的程序/代码,也可以存储用于处理器810执行时的代码等。
服务器800中的各个组件通过总线系统840耦合在一起,其中总线系统840除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。
其中,处理器810可以采用通用的中央处理器(Central Processing Unit,CPU),微处理器,应用专用集成电路(Application Specific Integrated Circuit,ASIC),或者一个或多个集成电路,用于执行相关操作,以实现本发明实施例所提供的技术方案。
应注意,尽管图8所示的服务器800仅仅示出了处理器810、收发器820和存储器830,但是在具体实现过程中,本领域的技术人员应当明白,该服务器800还包含实现正常运行所必须的其他器件。同时,根据具体需要,本领域的技术人员应当明白,该服务器800还可包含实现其他附加功能的硬件器件。此外,本领域的技术人员应当明白,该服务器800也可仅仅包含实现本发明实施例所必须的器件或模块,而不必包含图8中所示的全部器件。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,上述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,上述的存储介质可为磁盘、光盘、只读存储记忆体(ROM:Read-Only Memory)或随机存储记忆体(RAM:Random Access Memory)等。
如图9所示,本发明实施例消息呈现的客户端,包括:收发单元900、显示单元901和处理单元902,其中,收发单元900用于接收服务器针对消息群组发送的N个分类主题,N个分类主题为服务器将M个消息按照预设的归类规则归类得到的,其中,M、N为正整数且M≥N;显示单元901用于呈现接收单元接收的N个分类主题;收发单元900还用于接收消息呈现请求,消息呈现请求用于请求呈现归类到目标分类主题下的消息,目标分类主题为呈现的N个分类主题中一个分类主题;处理单元902用于根据收发单元接收的消息呈现请求,确定目标分类主题;显示单元901还用于获取并呈现归类到通过处理单元确定的目标分类主题下的消息。
可选的,收发单元900还用于接收服务器发送的分别归类到N个分类主题下的消息;显示单元901具体用于从收发单元接收的分别归类到N个分类主题下的消息中,读取归类到目标分类主题下的消息。
可选的,消息呈现请求还包括对要请求呈现的消息的限制条件;显示单元901具体用于从收发单元接收的分别归类到N个分类主题下的消息中,读取符合限制条件、且归类到目标分类主题下的消息。
可选的,收发单元900具体用于向服务器发送消息呈现请求,通知服务器向客户端发送归类到目标分类主题下的消息;并接收服务器发送的归类到目标分类主题下的消息;显示单元901具体用于获取收发单元接收的归类到目标分类主题下的消息。
可选的,消息呈现请求还包括对要请求呈现的消息的限制条件;收发单元900具体用于接收服务器发送的归类到目标分类主题下的、符合限制条件的消息。
可选的,收发单元900还用于在显示单元呈现服务器针对消息群组发送的N个分类主题之前,向服务器发送消息群组的消息分类显示请求。
可选的,显示单元901具体用于在对应目标分类主题弹出对话框,并在弹出的对话框中呈现归类到目标分类主题下的消息;或者,在目标分类主题所在的对话框中的预设空闲区域,呈现归类到目标分类主题下的消息。
应注意,本发明实施例中,处理单元902可以由处理器实现,收发单元900可以由收发器实现,显示单元901可以由显示设备实现。如图10所示,本发明实施例的客户端1000可以包括处理器1010、收发器1020、存储器1030和显示设备1040。其中,存储器1030可以用于存储客户端1000出厂时预装的程序/代码,也可以存储用于处理器1010执行时的代码等。
客户端1000中的各个组件通过总线系统1050耦合在一起,其中总线系统1050除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。
其中,处理器1010可以采用通用的中央处理器(Central Processing Unit,CPU),微处理器,应用专用集成电路(Application Specific Integrated Circuit, ASIC),或者一个或多个集成电路,用于执行相关操作,以实现本发明实施例所提供的技术方案。
应注意,尽管图10所示的客户端1000仅仅示出了处理器1010、收发器1020、存储器1030和显示设备1040,但是在具体实现过程中,本领域的技术人员应当明白,该客户端1000还包含实现正常运行所必须的其他器件。同时,根据具体需要,本领域的技术人员应当明白,该客户端1000还可包含实现其他附加功能的硬件器件。此外,本领域的技术人员应当明白,该客户端1000也可仅仅包含实现本发明实施例所必须的器件或模块,而不必包含图10中所示的全部器件。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,上述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,上述的存储介质可为磁盘、光盘、只读存储记忆体(ROM:Read-Only Memory)或随机存储记忆体(RAM:Random Access Memory)等。
如图11所示,本发明你实施例消息呈现的系统,包括本发明实施例提供的任一的服务器1100,和本发明实施例提供的任一的客户端1120。
如图12所示,本发明实施例消息呈现的客户端,包括:处理单元1200、收发单元1210和显示单元1220,其中,处理单元1200用于针对一个消息群组,按照预设的归类规则将消息群组中的M个缓存的本地消息归类到N个分类主题下,其中,M、N为正整数且M≥N;显示单元1220用于呈现处理单元归类得到的N个分类主题;收发单元1210用于接收消息呈现请求,消息呈现请求用于请求呈现归类到目标分类主题下的本地消息,目标分类主题为呈现的N个分类主题中的一个分类主题;处理单元1200还用于根据收发单元接收到的消息呈现请求,确定目标分类主题;显示单元1220还用于从M个缓存的本地消息中获取归类到目标分类主题下的本地消息,并呈现归类到目标分类主题下的本地消息。
可选的,收发单元1210还用于:在处理单元1200将消息群组中的M个 本地消息归类到N个分类主题下之前,接收到消息群组的消息分类显示请求;或者,处理单元1200还用于:在将消息群组中的M个本地消息归类到N个分类主题下之前,确定消息群组中缓存的本地消息条数超过设定的阈值。
可选的,处理单元1200具体用于:分别确定M个本地消息中的每个本地消息分别归属于预设的K个分类主题的归属权重值,其中K为正整数且K≥N;根据消息内容归类规则,将M个本地消息划分成P组,得到P个消息组;针对P个消息组中的第n个消息组,将第n个消息组归类到第一分类主题下,其中,第n个消息组中归属权重值最大的本地消息为第一消息、且第一消息归属于第一分类主题的归属权重值最大,且第一分类主题为N个分类主题中的一个。
可选的,第n个消息组中归属权重值最大的消息存在至少两条消息、第一消息为至少两条消息中输入时间最早的消息。
可选的,显示单元1220具体用于:在对应目标分类主题弹出对话框,并在弹出的对话框中呈现归类到目标分类主题下的本地消息;或者,在目标分类主题所在的对话框中的预设空闲区域,呈现归类到目标分类主题下的本地消息。
可选的,消息呈现请求还包括用于对要请求呈现的本地消息的限制条件,显示单元1220具体用于从M个缓存在客户端的本地消息中获取符合限制条件、且归类到目标分类主题下的本地消息,并呈现符合限制条件、且归类到目标分类主题下的本地消息。
应注意,本发明实施例中,处理单元1200可以由处理器实现,收发单元1210可以由收发器实现,显示单元1220可以由显示设备实现。如图13所示,本发明实施例的客户端1300可以包括处理器1310、收发器1320、存储器1330和显示设备1340。其中,存储器1330可以用于存储客户端1300出厂时预装的程序/代码,也可以存储用于处理器1310执行时的代码等。
客户端1300中的各个组件通过总线系统1350耦合在一起,其中总线系统1350除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。
其中,处理器1310可以采用通用的中央处理器(Central Processing Unit,CPU),微处理器,应用专用集成电路(Application Specific Integrated Circuit,ASIC),或者一个或多个集成电路,用于执行相关操作,以实现本发明实施例所提供的技术方案。
应注意,尽管图13所示的客户端1300仅仅示出了处理器1310、收发器1320、存储器1330和显示设备1340,但是在具体实现过程中,本领域的技术人员应当明白,该客户端1300还包含实现正常运行所必须的其他器件。同时,根据具体需要,本领域的技术人员应当明白,该客户端1300还可包含实现其他附加功能的硬件器件。此外,本领域的技术人员应当明白,该客户端1300也可仅仅包含实现本发明实施例所必须的器件或模块,而不必包含图13中所示的全部器件。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,上述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,上述的存储介质可为磁盘、光盘、只读存储记忆体(ROM:Read-Only Memory)或随机存储记忆体(RAM:Random Access Memory)等。
从上述内容可以看出:本发明实施例中服务器针对一个消息群组,按照预设的归类规则将至少一个用户在消息群组中输入的M个消息归类到N个分类主题下,并将N个分类主题、以及目标消息发送到客户端,目标消息为归类到N个分类主题中的至少一个分类主题下的消息。这种技术方案由于能够针对一个消息群组,按照预设的归类规则将至少一个用户在该消息群组中输入的M个消息归类到N个分类主题下,并将N个分类主题和目标消息发送到客户端,使得客户端能够将N个分类主题呈现给用户,从而使得消息的呈现方式多样化,并使得该用户能够直观的从整体上了解该消息群组中所讨论的消息的内容。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、 或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (43)

  1. 一种消息呈现的方法,其特征在于,包括:
    服务器针对一个消息群组,按照预设的归类规则将至少一个用户在所述消息群组中输入的M个消息归类到N个分类主题下,其中,所述M、N为正整数且M≥N;
    所述服务器将所述N个分类主题、以及目标消息发送到客户端,所述目标消息为归类到所述N个分类主题中的至少一个分类主题下的消息。
  2. 如权利要求1所述的方法,其特征在于,所述服务器按照预设的归类规则将M个消息归类到N个分类主题下,包括:
    所述服务器分别确定M个消息中的每个消息分别归属于预设的K个分类主题的归属权重值,其中K为正整数且K≥N;
    所述服务器根据消息内容归类规则,将所述M个消息划分成P组,得到P个消息组;
    所述服务器针对所述P个消息组中的第n个消息组,将第n个消息组归类到第一分类主题下,其中,所述第n个消息组中归属权重值最大的消息为第一消息、且所述第一消息归属于所述第一分类主题的归属权重值最大,且所述第一分类主题为所述N个分类主题中的一个。
  3. 如权利要求2所述的方法,其特征在于,所述第n个消息组中归属权重值最大的消息存在至少两条消息、所述第一消息为至少两条消息中输入时间最早的消息。
  4. 如权利要求1~3任一所述的方法,其特征在于,所述服务器将所述N个分类主题发送到客户端呈现之前,包括;
    所述服务器接收到所述客户端发送的所述消息群组的消息分类显示请求;或者
    所述服务器确定所述消息群组中输入的消息条数超过设定的阈值。
  5. 如权利要求1~4任一所述的方法,其特征在于,所述目标消息为分别 归类到所述N个分类主题下的消息;
    所述服务器将所述目标消息发送到所述客户端,包括:
    所述服务器将所述分别归类到所述N个分类主题下的消息发送到所述客户端。
  6. 如权利要求1~4任一所述的方法,其特征在于,所述目标消息为归类到目标分类主题下的消息,所述目标分类主题为所述客户端向所述服务器发送的消息呈现请求用于请求发送的消息归类到的分类主题;
    所述服务器将所述目标消息发送到所述客户端,包括:
    所述服务器接收所述客户端发送的所述消息呈现请求后,将归类到所述目标分类主题下的消息发送到所述客户端,所述消息呈现请求用于请求所述服务器向所述客户端发送归类到所述目标分类主题下的消息。
  7. 如权利要求6所述的方法,其特征在于,所述消息呈现请求还包括用于对要请求呈现的消息的限制条件,所述服务器将所述目标消息发送到客户端,包括:
    所述服务器将归类到所述目标分类主题下的、符合所述限制条件的消息发送到客户端。
  8. 如权利要求1~7任一所述的方法,其特征在于,还包括:
    所述服务器将分别归类于N个分类主题下的消息的条数发送到客户端。
  9. 一种消息呈现的方法,其特征在于,包括:
    客户端接收并呈现服务器针对所述消息群组发送的N个分类主题,所述N个分类主题为所述服务器将所述M个消息按照预设的归类规则归类得到的,其中,所述M、N为正整数且M≥N;
    所述客户端接收消息呈现请求,确定目标分类主题,所述目标分类主题为呈现的N个分类主题中一个分类主题,所述消息呈现请求用于请求呈现归类到所述目标分类主题下的消息;
    所述客户端获取并呈现归类到目标分类主题下的消息。
  10. 如权利要求9所述的方法,其特征在于,还包括:
    所述客户端接收所述服务器发送的分别归类到N个分类主题下的消息;
    所述客户端获取归类到所述目标分类主题下的消息,包括:
    所述客户端从接收的分别归类到N个分类主题下的消息中,读取归类到所述目标分类主题下的消息。
  11. 如权利要求10所述的方法,其特征在于,所述消息呈现请求还包括对要请求呈现的消息的限制条件;
    所述客户端从接收的分别归类到N个分类主题下的消息中,读取归类到所述目标分类主题下的消息,包括:
    所述客户端从接收的分别归类到N个分类主题下的消息中,读取符合所述限制条件、且归类到所述目标分类主题下的消息。
  12. 如权利要求9所述的方法,其特征在于,所述客户端获取归类到所述目标分类主题下的消息,包括:
    所述客户端向所述服务器发送所述消息呈现请求,通知所述服务器向所述客户端发送归类到所述目标分类主题下的消息;
    所述客户端接收所述服务器发送的归类到所述目标分类主题下的消息。
  13. 如权利要求12所述的方法,其特征在于,所述消息呈现请求还包括对要请求呈现的消息的限制条件;
    所述客户端接收所述服务器发送的归类到所述目标分类主题下的消息,包括:
    所述客户端接收所述服务器发送的归类到被选中的分类主题下的、符合所述限制条件的消息。
  14. 如权利要求9~13任一所述的方法,其特征在于,所述客户端呈现所述服务器针对所述消息群组发送的N个分类主题之前,还包括:
    所述客户端向所述服务器发送所述消息群组的消息分类显示请求。
  15. 如权利要求9~14任一所述的方法,其特征在于,所述客户端呈现归类到目标分类主题下的消息,包括:
    所述客户端在对应所述目标分类主题弹出对话框,并在弹出的对话框中 呈现归类到所述目标分类主题下的消息;或者
    所述客户端在所述目标分类主题所在的对话框中的预设空闲区域,呈现归类到目标分类主题下的消息。
  16. 一种消息呈现的方法,其特征在于,包括:
    客户端针对一个消息群组,按照预设的归类规则将所述消息群组中的M个缓存在所述客户端的本地消息归类到N个分类主题下,其中,所述M、N为正整数且M≥N;
    所述客户端呈现N个分类主题;
    所述客户端接收消息呈现请求,确定目标分类主题,所述目标分类主题为呈现的N个分类主题中的一个分类主题,所述消息呈现请求用于请求呈现归类到所述目标分类主题下的本地消息;
    所述客户端从M个缓存在所述客户端的本地消息中获取归类到所述目标分类主题下的本地消息,并呈现所述归类到所述目标分类主题下的本地消息。
  17. 如权利要求16所述的方法,其特征在于,所述客户端将所述消息群组中的M个本地消息归类到N个分类主题下之前,还包括:
    所述客户端接收到所述消息群组的消息分类显示请求;或者
    所述客户端确定所述消息群组中缓存的本地消息条数超过设定的阈值。
  18. 如权利要求16或17所述的方法,其特征在于,所述客户端按照预设的归类规则将所述消息群组中的M个本地消息归类到N个分类主题下,包括:
    所述客户端分别确定M个本地消息中的每个本地消息分别归属于预设的K个分类主题的归属权重值,其中K为正整数且K≥N;
    所述客户端根据消息内容归类规则,将所述M个本地消息划分成P组,得到P个消息组;
    所述客户端针对所述P个消息组中的第n个消息组,将第n个消息组归类到第一分类主题下,其中,所述第n个消息组中归属权重值最大的本地消息为第一消息、且所述第一消息归属于所述第一分类主题的归属权重值最大, 且所述第一分类主题为所述N个分类主题中的一个。
  19. 如权利要求18所述的方法,其特征在于,所述第n个消息组中归属权重值最大的消息存在至少两条消息、所述第一消息为至少两条消息中输入时间最早的消息。
  20. 如权利要求16~19任一所述的方法,其特征在于,所述客户端呈现归类到被选中的分类主题下的消息,包括:
    所述客户端在对应所述目标分类主题弹出对话框,并在弹出的对话框中呈现归类到所述目标分类主题下的本地消息;或者,
    所述客户端在所述目标分类主题所在的对话框中的预设空闲区域,呈现归类到所述目标分类主题下的本地消息。
  21. 如权利要求16~20任一所述的方法,其特征在于,所述消息呈现请求还包括用于对要请求呈现的本地消息的限制条件,所述客户端获取并呈现归类到所述目标分类主题下的本地消息,包括:
    所述客户端从M个缓存在所述客户端的本地消息中获取符合所述限制条件、且归类到所述目标分类主题下的本地消息,并呈现所述符合所述限制条件、且归类到所述目标分类主题下的本地消息。
  22. 一种消息呈现的服务器,其特征在于,包括:
    处理单元,用于针对一个消息群组,按照预设的归类规则将至少一个用户在所述消息群组中输入的M个消息归类到N个分类主题下,其中,所述M、N为正整数且M≥N;
    收发单元,用于将通过所述处理单元归类得到的所述N个分类主题、以及目标消息发送到客户端,所述目标消息为归类到所述N个分类主题中的至少一个分类主题下的消息。
  23. 如权利要求22所述的服务器,其特征在于,所述处理单元,具体用于:
    分别确定M个消息中的每个消息分别归属于预设的K个分类主题的归属权重值,其中K为正整数且K≥N;根据消息内容归类规则,将所述M个消 息划分成P组,得到P个消息组;针对所述P个消息组中的第n个消息组,将第n个消息组归类到第一分类主题下,其中,所述第n个消息组中归属权重值最大的消息为第一消息、且所述第一消息归属于所述第一分类主题的归属权重值最大,且所述第一分类主题为所述N个分类主题中的一个。
  24. 如权利要求23所述的服务器,其特征在于,所述第n个消息组中归属权重值最大的消息存在至少两条消息、所述第一消息为至少两条消息中输入时间最早的消息。
  25. 如权利要求22~24任一所述的服务器,其特征在于,所述收发单元还用于:
    在将通过所述处理单元归类得到的所述N个分类主题发送到所述客户端呈现之前,接收到所述客户端发送的所述消息群组的消息分类显示请求;或者,
    所述处理单元,还用于:
    在所述收发单元将通过所述处理单元归类得到的所述N个分类主题发送到所述客户端呈现之前,确定所述消息群组中输入的消息条数超过设定的阈值。
  26. 如权利要求22~25任一所述的服务器,其特征在于,所述目标消息为分别归类到所述N个分类主题下的消息;所述收发单元,具体用于:
    将所述分别归类到所述N个分类主题下的消息发送到所述客户端。
  27. 如权利要求22~26任一所述的服务器,其特征在于,所述目标消息为归类到所述目标分类主题下的消息,所述目标分类主题为所述客户端向所述收发单元发送的消息呈现请求用于请求发送的消息归类到的分类主题;
    所述收发单元,具体用于:
    接收所述客户端发送的所述消息呈现请求后,将归类到所述目标分类主题下的消息发送到所述客户端,所述消息呈现请求用于请求所述处理单元通过所述收发单元向所述客户端发送归类到所述目标分类主题下的消息。
  28. 如权利要求27所述的服务器,其特征在于,所述消息呈现请求还包 括用于对要请求呈现的消息的限制条件,所述收发单元,具体用于:
    将通过所述处理单元确定的归类到所述目标分类主题下的、符合所述限制条件的消息发送到客户端。
  29. 如权利要求22~28任一所述的服务器,其特征在于,所述收发单元,还用于:
    将分别归类于N个分类主题下的消息的条数发送到客户端。
  30. 一种消息呈现的客户端,其特征在于,包括:
    收发单元,用于接收所述服务器针对所述消息群组发送的N个分类主题,所述N个分类主题为所述服务器将所述M个消息按照预设的归类规则归类得到的,其中,所述M、N为正整数且M≥N;
    显示单元,用于呈现所述接收单元接收的N个分类主题;
    所述收发单元,还用于接收消息呈现请求,所述消息呈现请求用于请求呈现归类到所述目标分类主题下的消息,所述目标分类主题为呈现的N个分类主题中一个分类主题;
    处理单元,用于根据所述收发单元接收的消息呈现请求,确定目标分类主题;
    所述显示单元,还用于获取并呈现归类到通过所述处理单元确定的所述目标分类主题下的消息。
  31. 如权利要求30所述的客户端,其特征在于,所述收发单元,还用于:
    接收所述服务器发送的分别归类到N个分类主题下的消息;
    所述显示单元,具体用于:
    从所述收发单元接收的分别归类到N个分类主题下的消息中,读取归类到所述目标分类主题下的消息。
  32. 如权利要求31所述的客户端,其特征在于,所述消息呈现请求还包括对要请求呈现的消息的限制条件;
    所述显示单元,具体用于:
    从所述收发单元接收的分别归类到N个分类主题下的消息中,读取符合 所述限制条件、且归类到所述目标分类主题下的消息。
  33. 如权利要求30所述的客户端,其特征在于,所述收发单元,具体用于:
    向所述服务器发送所述消息呈现请求,通知所述服务器向所述客户端发送归类到所述目标分类主题下的消息;并接收所述服务器发送的归类到所述目标分类主题下的消息;
    所述显示单元,具体用于:
    获取所述收发单元接收的归类到所述目标分类主题下的消息。
  34. 如权利要求33所述的客户端,其特征在于,所述消息呈现请求还包括对要请求呈现的消息的限制条件;
    所述收发单元,具体用于:
    接收所述服务器发送的归类到所述目标分类主题下的、符合所述限制条件的消息。
  35. 如权利要求30~34任一所述的客户端,其特征在于,所述收发单元,还用于:
    在所述显示单元呈现所述服务器针对所述消息群组发送的N个分类主题之前,向所述服务器发送所述消息群组的消息分类显示请求。
  36. 如权利要求30~35任一所述的客户端,其特征在于,所述显示单元,具体用于:
    在对应所述目标分类主题弹出对话框,并在弹出的对话框中呈现归类到所述目标分类主题下的消息;或者
    在所述目标分类主题所在的对话框中的预设空闲区域,呈现归类到目标分类主题下的消息。
  37. 一种消息呈现的系统,其特征在于,包括如权利要求22~29任一所述的服务器,和如权利要求30~36任一所述的客户端。
  38. 一种消息呈现的客户端,其特征在于,包括:
    处理单元,用于针对一个消息群组,按照预设的归类规则将所述消息群 组中的M个缓存的本地消息归类到N个分类主题下,其中,所述M、N为正整数且M≥N;
    显示单元,用于呈现所述处理单元归类得到的N个分类主题;
    收发单元,用于接收消息呈现请求,所述消息呈现请求用于请求呈现归类到目标分类主题下的本地消息,所述目标分类主题为呈现的N个分类主题中的一个分类主题;
    所述处理单元,还用于根据所述收发单元接收到的消息呈现请求,确定所述目标分类主题;
    所述显示单元,还用于从M个缓存的本地消息中获取归类到所述目标分类主题下的本地消息,并呈现所述归类到所述目标分类主题下的本地消息。
  39. 如权利要求38所述的客户端,其特征在于,所述收发单元,还用于:
    在所述处理单元将所述消息群组中的M个本地消息归类到N个分类主题下之前,接收到所述消息群组的消息分类显示请求;或者,
    所述处理单元,还用于:
    在将所述消息群组中的M个本地消息归类到N个分类主题下之前,确定所述消息群组中缓存的本地消息条数超过设定的阈值。
  40. 如权利要求38或39所述的客户端,其特征在于,所述处理单元,具体用于:
    分别确定M个本地消息中的每个本地消息分别归属于预设的K个分类主题的归属权重值,其中K为正整数且K≥N;根据消息内容归类规则,将所述M个本地消息划分成P组,得到P个消息组;针对所述P个消息组中的第n个消息组,将第n个消息组归类到第一分类主题下,其中,所述第n个消息组中归属权重值最大的本地消息为第一消息、且所述第一消息归属于所述第一分类主题的归属权重值最大,且所述第一分类主题为所述N个分类主题中的一个。
  41. 如权利要求40所述的客户端,其特征在于,所述第n个消息组中归属权重值最大的消息存在至少两条消息、所述第一消息为至少两条消息中输 入时间最早的消息。
  42. 如权利要求38~41任一所述的客户端,其特征在于,所述显示单元,具体用于:
    在对应所述目标分类主题弹出对话框,并在弹出的对话框中呈现归类到所述目标分类主题下的本地消息;或者
    在所述目标分类主题所在的对话框中的预设空闲区域,呈现归类到所述目标分类主题下的本地消息。
  43. 如权利要求38~42任一所述的客户端,其特征在于,所述消息呈现请求还包括用于对要请求呈现的本地消息的限制条件,所述显示单元,具体用于:
    从M个缓存在所述客户端的本地消息中获取符合所述限制条件、且归类到所述目标分类主题下的本地消息,并呈现所述符合所述限制条件、且归类到所述目标分类主题下的本地消息。
PCT/CN2016/079469 2016-04-15 2016-04-15 一种消息呈现的方法、设备及系统 WO2017177455A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/CN2016/079469 WO2017177455A1 (zh) 2016-04-15 2016-04-15 一种消息呈现的方法、设备及系统
EP16898273.4A EP3331202A4 (en) 2016-04-15 2016-04-15 Message presentation method, device, and system
US15/907,298 US10992611B2 (en) 2016-04-15 2018-02-28 Topic classified presentation for a message in a message cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/079469 WO2017177455A1 (zh) 2016-04-15 2016-04-15 一种消息呈现的方法、设备及系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/907,298 Continuation US10992611B2 (en) 2016-04-15 2018-02-28 Topic classified presentation for a message in a message cluster

Publications (1)

Publication Number Publication Date
WO2017177455A1 true WO2017177455A1 (zh) 2017-10-19

Family

ID=60041264

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/079469 WO2017177455A1 (zh) 2016-04-15 2016-04-15 一种消息呈现的方法、设备及系统

Country Status (3)

Country Link
US (1) US10992611B2 (zh)
EP (1) EP3331202A4 (zh)
WO (1) WO2017177455A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12001489B1 (en) * 2023-01-25 2024-06-04 Fujitsu Limited Ethics-based multi-modal user post monitoring

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10509531B2 (en) * 2017-02-20 2019-12-17 Google Llc Grouping and summarization of messages based on topics
CN108876452A (zh) * 2018-06-12 2018-11-23 广东电网有限责任公司 用电客户需求信息获取方法、装置以及电子设备
CN112395103B (zh) * 2020-11-02 2022-09-13 天津五八到家货运服务有限公司 延迟消息发送方法、装置及存储介质
CN113595886A (zh) * 2021-07-29 2021-11-02 北京达佳互联信息技术有限公司 即时通讯消息的处理方法、装置、电子设备及存储介质
CN114401239B (zh) * 2021-12-20 2023-11-14 中国平安财产保险股份有限公司 元数据传输方法、装置、计算机设备和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101604320A (zh) * 2009-07-08 2009-12-16 华东师范大学 掌上型基于地图浏览器
CN102609460A (zh) * 2012-01-13 2012-07-25 中国科学院计算技术研究所 微博客数据采集方法及系统
CN103051522A (zh) * 2013-01-22 2013-04-17 广州多益网络科技有限公司 一种群组中自动创建会话窗口的方法和系统
CN103490989A (zh) * 2013-09-30 2014-01-01 厦门三五互联科技股份有限公司 可按内容主题分类展示的多人即时聊天方法

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7263526B1 (en) * 1996-10-30 2007-08-28 Avaya Technology Corp. Method and apparatus for embedding chat functions in a web page
US7159011B1 (en) * 1999-05-11 2007-01-02 Maquis Techtrix, Llc System and method for managing an online message board
US7197470B1 (en) * 2000-10-11 2007-03-27 Buzzmetrics, Ltd. System and method for collection analysis of electronic discussion methods
US20070239755A1 (en) * 2005-01-10 2007-10-11 Instant Information Inc. Methods and systems for messaging in a collaboration system
US20080086703A1 (en) * 2006-10-06 2008-04-10 Microsoft Corporation Preview expansion of list items
EP2441010A4 (en) * 2009-06-09 2016-12-28 Ebh Entpr Inc METHODS, APPARATUS AND SOFTWARE FOR ANALYZING THE CONTENT OF MICROBLOGUE MESSAGES
WO2012006682A1 (en) * 2010-07-16 2012-01-19 First Wave Technology Pty Ltd Methods and systems for analysis and/or classification of information
KR102153646B1 (ko) * 2013-12-24 2020-09-08 엘지전자 주식회사 이동 단말기 및 이동 단말기의 제어 방법
JP6584756B2 (ja) * 2014-07-15 2019-10-02 Nttテクノクロス株式会社 関連トピック表示制御装置、関連トピック表示制御方法、及びプログラム
US9904683B2 (en) * 2014-12-11 2018-02-27 International Business Machines Corporation Displaying at least one categorized message based on a percentage
US10447644B2 (en) * 2015-04-23 2019-10-15 Facebook, Inc. Sending notifications as a service
US9953017B2 (en) * 2015-05-05 2018-04-24 International Business Machines Corporation Displaying at least one categorized message
US9888079B2 (en) * 2015-07-30 2018-02-06 The Boeing Company Method for managing messages across a controller area network
US20170131864A1 (en) * 2015-11-06 2017-05-11 Facebook, Inc. Interface for Presenting Feed to a User Based on Scroll Inputs
US9674131B1 (en) * 2015-12-04 2017-06-06 International Business Machines Corporation Message delivery system
US10496719B2 (en) * 2016-03-09 2019-12-03 Acto Technologies Inc. Determining the display order of data items at a computing device based on contextual data captured by sensor devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101604320A (zh) * 2009-07-08 2009-12-16 华东师范大学 掌上型基于地图浏览器
CN102609460A (zh) * 2012-01-13 2012-07-25 中国科学院计算技术研究所 微博客数据采集方法及系统
CN103051522A (zh) * 2013-01-22 2013-04-17 广州多益网络科技有限公司 一种群组中自动创建会话窗口的方法和系统
CN103490989A (zh) * 2013-09-30 2014-01-01 厦门三五互联科技股份有限公司 可按内容主题分类展示的多人即时聊天方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12001489B1 (en) * 2023-01-25 2024-06-04 Fujitsu Limited Ethics-based multi-modal user post monitoring

Also Published As

Publication number Publication date
US10992611B2 (en) 2021-04-27
EP3331202A1 (en) 2018-06-06
EP3331202A4 (en) 2018-08-22
US20180191649A1 (en) 2018-07-05

Similar Documents

Publication Publication Date Title
WO2017177455A1 (zh) 一种消息呈现的方法、设备及系统
CN110710170B (zh) 向群组聊天参与者的对新内容的前摄提供
US11709901B2 (en) Personalized search filter and notification system
US10547574B2 (en) Suggested responses based on message stickers
US10805386B2 (en) Reducing transmissions by suggesting digital content for display in a group-based communication interface
US10594640B2 (en) Message classification
US11062220B2 (en) Integrated virtual cognitive agents and message communication architecture
US10771424B2 (en) Usability and resource efficiency using comment relevance
JP6487201B2 (ja) 推奨ページを生成するための方法及び装置
CN112513838A (zh) 为用户生成个性化内容汇总
US11695721B2 (en) Method, apparatus, and computer program product for categorizing multiple group-based communication messages
US11488599B2 (en) Session message processing with generating responses based on node relationships within knowledge graphs
WO2017146963A1 (en) Expert detection in social networks
JP2015135668A (ja) コンテント及び関係距離に基づいて人々をつなげるコンピューティング装置及び方法
WO2014141976A1 (ja) ソーシャル・メデイアにおけるユーザの分類方法、コンピュータ・プログラム及びコンピュータ
TW202046082A (zh) 聊天執行緒的顯示方法、電腦可讀取記錄媒體及電腦裝置
JP2018206361A (ja) ユーザ指向トピック選択及びブラウジングのためのシステム及び方法、複数のコンテンツ項目を表示する方法、プログラム、及びコンピューティングデバイス
US10116600B2 (en) Expressing statements in messages with personalized expression style
US20190205382A1 (en) Analyzing language units for personality
US20140129694A1 (en) Evaluating information retrieval systems in real-time across dynamic clusters of evidence
US11580961B1 (en) Tracking specialized concepts, topics, and activities in conversations
JP2020004410A (ja) メディアベースのコンテンツシェアを容易にする方法、コンピュータプログラム及びコンピューティングデバイス
TWI477996B (zh) 自動分析個人化輸入之方法
US20190068535A1 (en) Self-healing content treatment system and method
JPWO2023073857A5 (zh)

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE