CN109039671B - Group message display method, device, terminal and storage medium - Google Patents

Group message display method, device, terminal and storage medium Download PDF

Info

Publication number
CN109039671B
CN109039671B CN201810745775.XA CN201810745775A CN109039671B CN 109039671 B CN109039671 B CN 109039671B CN 201810745775 A CN201810745775 A CN 201810745775A CN 109039671 B CN109039671 B CN 109039671B
Authority
CN
China
Prior art keywords
attribute
group
target
sub
user account
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201810745775.XA
Other languages
Chinese (zh)
Other versions
CN109039671A (en
Inventor
任超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810745775.XA priority Critical patent/CN109039671B/en
Publication of CN109039671A publication Critical patent/CN109039671A/en
Application granted granted Critical
Publication of CN109039671B publication Critical patent/CN109039671B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • H04L12/1822Conducting the conference, e.g. admission, detection, selection or grouping of participants, correlating users to one or more conference sessions, prioritising transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Abstract

The application discloses a group message display method, a group message display device, a terminal and a storage medium, and belongs to the technical field of terminals. The method comprises the following steps: receiving input message content in an information input box of a session interface of a target group, wherein the target group comprises m group user accounts, acquiring attribute tags for screening the m group user accounts when the message content comprises specified key characters, acquiring target user accounts matched with the attribute tags from the m group user accounts, and adding a reminding field for reminding the target user accounts to view messages in the information input box of the session interface. According to the method and the device, the terminal can obtain the target user account based on attribute tag matching, the condition that the open conversation of 1 to n can be realized only by sequentially selecting account names in a group in the related technology is avoided, the searching time of the target user account is greatly saved, and the sending efficiency of group messages in the subsequent process is improved.

Description

Group message display method, device, terminal and storage medium
Technical Field
The embodiment of the application relates to the technical field of terminals, in particular to a group message display method, a group message display device, a group message display terminal and a storage medium.
Background
With the development of network technology, the information service function that can be provided by social applications is also more and more powerful, not only can the message interaction between two user accounts be realized, but also a group consisting of at least three user accounts can be established according to the working needs or living needs of the user, and the user account forming the group is the group user account. The message interaction among the group user accounts is realized in the group, namely, each group user account can see the group messages sent by other group user accounts on the session interface of the group.
When a group user account in a group needs to send a message to other group user accounts, namely 1-to-n public conversation is carried out, the display method of the group message comprises the following steps: the client sequentially selects n target account names in a user account list of a target group, correspondingly displays the n target account names in an information input box, and sends a message carrying the n target account names when receiving a sending confirmation instruction, wherein n is a positive integer.
Disclosure of Invention
The embodiment of the application provides a group message display method, a device, a terminal and a storage medium, which can be used for solving the problem that the group message sending efficiency is low because public conversations of 1 to n can be realized only by sequentially selecting account names in a group in the related art. The technical scheme is as follows:
according to a first aspect of the embodiments of the present application, there is provided a group message display method, including:
receiving input message content in an information input box of a session interface of a target group, wherein the target group comprises m group user accounts, and m is a positive integer;
when the message content comprises specified key characters, acquiring attribute tags for screening the m group user accounts;
acquiring a target user account matched with the attribute tag from the m group user accounts;
and adding a reminding field for reminding the target user account to view the message in the information input box of the session interface.
According to a second aspect of embodiments of the present application, there is provided a group message display apparatus, the apparatus including:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving input message contents in an information input box of a session interface of a target group, the target group comprises m group user accounts, and m is a positive integer;
a first obtaining module, configured to obtain attribute tags for screening the m group user accounts when the message content includes specified key characters;
a second obtaining module, configured to obtain, from the m group user accounts, a target user account matched with the attribute tag;
and the adding module is used for adding a reminding field for reminding the target user account to view the message in the information input box of the session interface.
According to a third aspect of embodiments of the present application, there is provided a terminal, where the terminal includes a processor and a memory, and the memory stores at least one instruction, where the instruction is loaded and executed by the processor to implement the group message display method according to any one of the first aspect and the optional embodiments of the present application.
According to a fourth aspect of the embodiments of the present application, there is provided a computer-readable storage medium, in which at least one instruction is stored, where the instruction is loaded and executed by a processor to implement the group message display method according to any one of the first aspect and the optional embodiments of the present application.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
receiving input message content in an information input box of a session interface of a target group, wherein the target group comprises m group user accounts, acquiring attribute tags for screening the m group user accounts when the message content comprises specified key characters, acquiring target user accounts matched with the attribute tags from the m group user accounts, and adding a reminding field for reminding the target user accounts to view messages in the information input box of the session interface; the terminal can obtain the target user account through attribute tag matching, the condition that 1 to n public conversations can be realized only through sequentially selecting account names in a group in the related technology is avoided, the searching time of the target user account is greatly saved, and the sending efficiency of group messages in the subsequent process is improved.
Drawings
Fig. 1 is a schematic structural diagram of a message interaction system according to an embodiment of the present application;
FIG. 2 is a flowchart of a group message display method provided by an exemplary embodiment of the present application;
FIG. 3 is a flowchart of a group message display method provided by another exemplary embodiment of the present application;
FIG. 4 is a schematic diagram of an interface involved in a group message display method according to an exemplary embodiment of the present application;
FIG. 5 is a schematic diagram of an interface involved in a group message display method according to another exemplary embodiment of the present application;
FIG. 6 is a flowchart of a group message display method provided by another exemplary embodiment of the present application;
FIG. 7 is a flowchart of a model training method involved in a group message display method according to an exemplary embodiment of the present application;
FIG. 8 is a schematic structural diagram of a group message display device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a terminal according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "connected" and "connected" are to be interpreted broadly, e.g., as being fixed or detachable or integrally connected; can be mechanically or electrically connected; may be directly connected or indirectly connected through an intermediate. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In the related art, when a terminal is in a session interface of a target group, if the terminal detects that the content of a message input in an information input box includes a "@" symbol, a user account list of the target group is displayed, when a selection operation corresponding to a group user account in the user account list is detected, an account identifier of the group user account is determined as a target account identifier, and the target account identifier is displayed in the information input box. However, if there is a need for group user accounts with @ certain attribute, for example, the attribute to be looked up in the target group includes "guangdong, man, 90 years". In the related art, the public conversation of 1 to n can be realized only by sequentially selecting account names in a group, and the attribute expansion cannot be performed, so that the group message sending efficiency is low. Currently, a reasonable and effective group message display method is not provided.
The embodiment of the application provides a group message display method, a group message display device, a terminal and a storage medium, so as to solve the problems in the related art. According to the technical scheme, the attribute tags used for screening the m group user accounts are acquired, and the target user accounts matched with the attribute tags are acquired in the target group, so that the searching time of the target user accounts is greatly saved, and the sending efficiency of group messages in the subsequent process is improved.
Before explaining the embodiments of the present application, an application scenario of the embodiments of the present application is explained.
Please refer to fig. 1, which shows a schematic structural diagram of a message interaction system according to an embodiment of the present application. The system includes a sender terminal 120, a cluster of servers 140, and at least one recipient terminal 160.
The sender terminal 120 runs a sender client, and a user account of the sender is logged in the sender client. The sender terminal 120 may be a mobile phone, a tablet computer, an e-book reader, a motion Picture Experts Group Audio Layer III (MP 3) player, a motion Picture Experts Group Audio Layer IV (MP 4) player, a laptop computer, a desktop computer, or the like. The sender terminal 120 is a software client for sending and/or receiving messages on a social networking platform.
The sender terminal 120 and the server cluster 140 are connected via a communication network. Optionally, the communication network is a wired network or a wireless network.
The server cluster 140 is a server, or a plurality of servers, or a virtualization platform, or a cloud computing service center. Optionally, the server cluster 140 includes servers for implementing a social network platform 142; optionally, server cluster 140 includes servers for implementing attribute matching platform 144.
Optionally, the social network platform 142 includes: the system comprises a server for realizing the receiving and sending of social information, a server for managing and storing user accounts, a server for managing and storing groups and a server for managing user accounts of groups or a user account list of the groups. The social network platform 142 is connected to the attribute matching platform 144 via a network or an optical fiber.
Optionally, the attribute matching platform 144 includes: and a server for feeding back the account identifier matched with the attribute tag to the sender terminal 120.
The server cluster 140 and the receiving terminal 160 are connected via a communication network. Optionally, the communication network is a wired network or a wireless network.
The receiver terminal 160 has a receiver client running therein, and the receiver client has a user account of the receiver logged therein. The recipient terminal 160 may also be a cell phone, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop portable computer, a desktop computer, and the like. The recipient terminal 160 is a software client for sending and/or receiving messages on the social networking platform.
Optionally, the receiver terminal 160 includes one or at least two receiver terminals 160. Only three recipient terminals 160 are schematically shown in fig. 1. The number of the receiver terminals 160 is not limited in the present embodiment.
It should be noted that the sender terminal 120 and the receiver terminal 160 both have a function of sending and/or receiving messages on the social network platform. In the embodiment of the present application, only the sender client 120 is a software client for sending the group message in the target group, that is, the sender client 120 is an initiator of the 1-to-n public session in the target group. Correspondingly, the receiver terminal 160 is a software client for receiving the group message at the target group, i.e., the receiver terminal 160 is a receiver for performing a 1-to-n public conversation at the target group.
The sender terminal 120 and the receiver terminal 160 may be social network clients, and may also be other clients with social attributes, such as a shopping client, a game client, a reading client, a client dedicated to sending group messages, and the like. This embodiment is not limited thereto.
In the embodiment of the present application, the group message display method is applied to the sender terminal 120 for illustration. For convenience of description, only the sender terminal 120 will be simply referred to as a terminal hereinafter.
Referring to fig. 2, a flowchart of a group message display method according to an exemplary embodiment of the present application is shown. The present embodiment is exemplified in that the group message display method is applied to the sender terminal 120 shown in fig. 1. The group message display method comprises the following steps:
step 201, receiving input message content in an information input box of a session interface of a target group, where the target group includes m group user accounts, and m is a positive integer.
The terminal logs in the social network platform through the user account, and when the terminal detects the trigger operation corresponding to the target group on the social network platform, the session interface of the target group is displayed. The target group session interface comprises an information input box and an information interaction box. The information input box is used for inputting and displaying the message content which is not sent yet, and the information interaction box is used for displaying the message content sent by any group user account in the target group.
The social network platform is a network architecture for connecting people by social relations and/or common interests (or common interests), and users can perform daily communication and process daily matters through clients provided by the social network platform. Each user may have a user account for recognition by other users on the social networking platform.
On the social network platform, different users can establish a social relationship in a mutually confirmed manner, for example, mutually friend or mutually pay attention to each other. When two users establish a social relationship, they become contacts of each other. A group of users can form a social group by forming a social relationship with each other in a self-selection mode. Each member of the group is a contact of all other members of the group.
The group is a set which brings together and communicates people with the same hobbies or characteristics, when more than two users form a social relationship with each other through a bidirectional confirmation or unidirectional confirmation mode, a social group can be formed, and each member in the group is a social network contact of all other members in the group. Such as social groups, multi-person chat groups, discussion groups, friend circles, discussion groups in forums. Optionally, the target group is any group that the user account has paid attention to.
The target group includes m group user accounts, which include the user account of the terminal and m-1 other user accounts.
And the terminal receives the input message content in an information input box of a conversation interface of the target group.
Step 202, when the message content includes the specified key character, obtaining the attribute tag for screening m group user accounts.
And the terminal detects the message content in real time and acquires the attribute tags for screening the m group user accounts when the message content comprises the specified key characters. The attribute tag is used for indicating account attributes of the target user account.
The specified key character is a character set by default or customized by the user of the terminal. For example, the key character is designated as the @ character.
The attribute tag comprises j attribute sub-options determined by the terminal, and i is a positive integer. The attribute tag is used to indicate account attributes of the target user account.
Step 203, in m group user accounts, acquiring a target user account matched with the attribute tag.
And the terminal acquires the target user account matched with the attribute tag from the m group user accounts of the target group.
The target user account comprises account identifications corresponding to at least two target user accounts respectively. The account identifier is used for uniquely indicating the target user account on the social network platform.
And step 204, adding a reminding field for reminding a target user to view the message in an information input box of the session interface.
Optionally, the reminder field includes: and prompting to view the characters and the account identification of the target user account. The prompt view character is a character used to prompt the target user to view a message in the account.
In a possible implementation manner, the specified key character is a character for reminding viewing, and the terminal adds the account identifier of the target user account after the specified key character in the information input box of the session interface.
Optionally, the message carrying the target user account is sent when the transmission confirmation instruction is received, and the message is displayed in the information interaction frame of the session interface after the transmission is successful.
Illustratively, the confirmation sending instruction comprises a click instruction corresponding to the sending button in the information input box.
To sum up, in the embodiment, the input message content is received in the information input box of the session interface of the target group, where the target group includes m group user accounts, when the message content includes the specified key characters, the attribute tags for screening the m group user accounts are obtained, the target user accounts matched with the attribute tags are obtained in the m group user accounts, and a prompt field for prompting the target user accounts to view the message is added in the information input box of the session interface; the terminal can obtain the target user account through attribute tag matching, the condition that 1 to n public conversations can be realized only through sequentially selecting account names in a group in the related technology is avoided, the searching time of the target user account is greatly saved, and the sending efficiency of group messages in the subsequent process is improved.
Referring to fig. 3, a flowchart of a group message display method according to another exemplary embodiment of the present application is shown. The present embodiment is exemplified in that the group message display method is applied to the sender terminal 120 shown in fig. 1. The group message display method comprises the following steps:
step 301, receiving input message content in an information input box of a session interface of a target group, where the target group includes m group user accounts, and m is a positive integer.
The terminal is positioned in a conversation interface of the target group, and the input message content is received in the information input box.
Step 302, when the message content includes the designated key character, displaying a property sub-option set, where the property sub-option set includes k property options, the property options are key words used for defining the category to which the group user account belongs, and the property options include at least two property sub-options.
The set of attribute sub-options is displayed when the terminal detects that the specified key characters are included in the message content. Wherein the specified key character is a character for triggering display of the property sub-option set. For example, the key character is designated as the @ character.
The attribute sub-option set comprises k attribute options, and the attribute options are keywords used for defining the category to which the group user account belongs. The attribute options include at least one of age, gender, location, and operating system.
Each of the k property options includes at least two property sub-options.
Optionally, the attribute option "age" is divided according to different values to obtain 5 value intervals, and attribute sub-options of the 5 value intervals are determined, where: age [0, 20], age [21, 30], age [31, 40], age [41, 60] and age [61, 120 ].
Optionally, the attribute option "gender" is divided according to different values to obtain 2 value intervals, and attribute sub-options of the 2 value intervals are determined, where: sex "male" and sex "female".
Optionally, the attribute option "region" is divided according to different values to obtain 4 value intervals, and attribute sub-options of the 4 value intervals are determined, where: the region "beijing", the region "shanghai", the region "guangdong", and the region "others".
Step 303, generating an attribute tag according to the selected i attribute sub-options in the attribute sub-option set.
Wherein k and i are both positive integers.
Optionally, the attribute tag further includes a logical symbol between the i attribute sub-options, where the logical symbol is used to indicate a logical relationship with the attribute sub-options, or at least one of a logical relationship and a non-logical relationship.
The generation process of the attribute tag includes, but is not limited to, the following three possible implementation manners.
In a possible implementation manner, the terminal obtains the input i attribute sub-options and the logic symbols between the i attribute sub-options, and generates the attribute tag according to the logic symbols between the i attribute sub-options and the i attribute sub-options.
In another possible implementation manner, when the terminal receives a selection operation corresponding to the attribute sub-option in the attribute sub-option set, determining the attribute sub-option as the selected attribute sub-option; when the terminal acquires the input logic symbol, the logic symbol is determined as the logic symbol between the front attribute sub-option and the rear attribute sub-option. And when the terminal receives the ending instruction, generating an attribute tag according to the logic symbol between the selected i attribute sub-options and the input i attribute sub-options.
In another possible implementation manner, the attribute sub-option set further includes at least two logic symbols, and when a selection operation corresponding to an attribute sub-option in the attribute sub-option set is received, the attribute sub-option is determined as a selected attribute sub-option; when a selection operation corresponding to a logic symbol in the attribute sub-option set is received, the logic symbol is determined as a logic symbol between the front attribute sub-option and the rear attribute sub-option. And when the terminal receives the ending instruction, generating an attribute tag according to the selected i attribute sub-options and the logic symbol between the i attribute sub-options. In the following, the generation process of the attribute tag is described as an example of a third possible implementation manner.
The attribute tag is used to indicate account attributes of the matched target user account.
The attribute tag may be used to indicate that the target user account is a group user account having at least two attribute sub-options.
The attribute tag may also be used to indicate that the target user account is a group user account with a first attribute sub-option or with a second attribute sub-option. Wherein the first attribute sub-option comprises at least one attribute sub-option, the second attribute sub-option comprises at least one attribute sub-option, and there is no intersection between the second attribute sub-option and the first attribute sub-option.
The attribute tag may also be used to indicate that the target user account is a group user account with the third attribute sub-option and no fourth attribute sub-option. Wherein the third attribute sub-option comprises at least one attribute sub-option, the fourth attribute sub-option comprises at least one attribute sub-option, and there is no intersection between the third attribute sub-option and the fourth attribute sub-option.
For example, when the attribute tags are attribute sub-option a, attribute sub-option B, and attribute sub-option C, the attribute tags are used to indicate that the target user account is a group user account having both attribute sub-option a, attribute sub-option B, and attribute sub-option C.
For another example, when the attribute tags are attribute sub-option a, attribute sub-option B, and non-attribute sub-option C, the attribute tags are used to indicate that the target user account is a group user account having attribute sub-option a, attribute sub-option B, and no attribute sub-option C.
For another example, when the attribute tag is attribute sub-option a or non-attribute sub-option C, the attribute tag is used to indicate that the target user account is a group user account having attribute sub-option a and not having attribute sub-option C.
It should be noted that, in this embodiment, the number and the type of the attribute sub-options included in the attribute tag and the type of the logical symbols between the attribute sub-options are not limited.
Step 304, sending a query request carrying the attribute tag to the server, where the query request is used to instruct the server to acquire a target user account matched with the attribute tag in the target group, and feeding back an account identifier of the target user account to the terminal.
The terminal acquires the generated attribute label and the group identifier of the target group, generates a query request carrying the attribute label and the group identifier, and sends the query request to the server. Correspondingly, the server receives the query request. And the server acquires the target user account matched with the attribute tag from the target group according to the attribute tag carried in the query request and the group identifier of the target group, and feeds back the account identifier of the target user account to the terminal.
Wherein the group identification is used to uniquely identify the target group on the social network platform.
It should be noted that the number of the attribute sub-options of one group user account may be one or more, which is not limited in this embodiment.
Optionally, the server stores account identifiers corresponding to a plurality of user accounts registered on the social network platform. Optionally, the server stores attribute sub-options, that is, attribute options, corresponding to the multiple account identifiers.
Optionally, the account identifier of the target user account includes account identifiers corresponding to at least two target user accounts. The server acquires at least two target user accounts matched with the attribute tags in the target group, and the method comprises the following steps: the server determines at least two target accounts with the account attribute consistent with the account attribute specified by the attribute tag in m group user accounts of the target group, and acquires account identifiers corresponding to the at least two target user accounts.
And 305, receiving the account identifier of the target user account fed back by the server.
And the terminal receives account identifications corresponding to the at least two target user accounts fed back by the server.
Step 306, in the information input box of the session interface, the account identifier of the target user account is added after the specified key characters are used for prompting the target user account to view the message.
The terminal adds the account identification of the target user account after the key character is appointed in the information input frame of the session interface, and the information input frame of the session interface comprises the appointed key character and the account identification of the target user account.
Optionally, the specified key character is also called a prompt viewing character, and is a character for prompting the target user to view the message in the account.
In an illustrative example, as shown in fig. 4, the terminal receives the input message content "how you come" in the information input box 42 of the conversation interface 41 of the target group "XX group," which includes 99 group user accounts, and displays the attribute sub-option set 43 when the message content includes the "@" character, and the attribute sub-option set includes 3 attribute options, which are "age", "gender" and "region", respectively. Wherein the attribute option "age" includes 5 attribute sub-options of age [0, 20], age [21, 30], age [31, 40], age [41, 60] and age [61, 120 ]. The attribute option "gender" includes 2 attribute sub-options of gender "male" and gender "female". The attribute option "region" includes 4 attribute sub-options of a region "beijing", a region "shanghai", a region "guangdong", and a region "others". Based on fig. 4, with continued reference to fig. 5, after the terminal sequentially receives the selection operation corresponding to "age [21, 30 ]", receives the trigger operation corresponding to the space control, receives the selection operation corresponding to "male", receives the trigger operation corresponding to the space control, and receives the selection operation corresponding to "shanghai", the terminal generates the attribute tag 45 "age [21, 30] girl shanghai" when the terminal receives the end instruction corresponding to the completion control 44. The terminal sends a query request carrying the attribute tag 45 to the server, and the server acquires three account identifiers matched with the attribute tag 45 in the XX group, namely an account identifier of "a hair", an account identifier of "a gold" and an account identifier of "a blue". The server feeds back the three account identifications to the terminal, correspondingly, the terminal receives the three account identifications fed back by the server and displays the three account identifications after the "@" character, and at this time, the message content displayed in the information input box 42 of the session interface 41 is "how you come @ a hair @ a gold @ an alan". When receiving a confirmation sending instruction corresponding to the sending button 46, the terminal sends a message carrying the account of the target user, and after the sending is successful, the message content "how you come @ a jin @ a" is displayed in the information interaction frame of the session interface 41.
In summary, in this embodiment, the attribute tag is generated according to the logic symbol between the i attribute sub-options and the i attribute sub-options by obtaining the logic symbol between the i attribute sub-options and the i attribute sub-options, where the logic symbol is used to indicate a logical relationship with the attribute tag or at least one logical relationship between the logical relationship and a non-logical relationship; the terminal can generate the attribute tags according to the attribute sub-options and the logic symbols between the attribute sub-options, and then the terminal can automatically screen out the matched target user accounts in the target group according to the generated attribute tags, so that the searching efficiency of the target user accounts is improved.
Alternatively, the steps 304 to 306 can be alternatively implemented as the following steps, as shown in fig. 6:
step 601, obtaining a target matching model, wherein the target matching model is used for representing a model obtained by training a neural network based on sample attribute data.
Optionally, the obtaining, by the terminal, a target matching model includes: obtaining a training sample set, wherein the training sample set comprises at least one group of sample attribute data groups, and each group of sample attribute data groups comprises: sample attribute data and a predetermined correct account identification. And training at least one group of sample attribute data by adopting an error back propagation algorithm to obtain a target matching model.
The terminal trains at least one group of sample attribute data by adopting an error back propagation algorithm to obtain a target matching model, and the method comprises the following steps of:
1. and for each group of sample attribute data in at least one group of sample attribute data, inputting the sample attribute data into the original parameter model to obtain a training result.
Optionally, the original parametric model is built according to a neural network model, such as: the original parametric model is built according to a DNN model or an RNN model.
Illustratively, for each group of sample data groups, the terminal creates an input-output pair corresponding to the group of sample data groups, wherein input parameters of the input-output pair are sample attribute data in the group of sample data groups, and output parameters are correct account identifiers in the group of sample data groups; and the terminal inputs the input parameters into the prediction model to obtain a training result.
For example, the sample data set includes sample attribute data a and a correct account identifier "account identifier 1", and the input and output pair created by the terminal is: (sample attribute data a) - > (account id 1, account id 2, account id 3); wherein, (sample attribute data a) is an input parameter, (account id 1, account id 2, account id 3) is an output parameter.
Alternatively, the input-output pairs are represented by feature vectors.
2. For each group of sample attribute data, comparing the training result with the correct account identifier to obtain a calculation loss, wherein the calculation loss is used for indicating the error between the training result and the correct account identifier
Alternatively, the computational loss is represented by cross-entropy (cross-entropy),
optionally, the terminal calculates the calculated loss H (p, q) by the following formula:
Figure BDA0001724317330000121
wherein p (x) and q (x) are discrete distribution vectors of equal length, and p (x) represents the training result; q (x) represents an output parameter; x is a vector in the training results or output parameters.
3. And training by adopting an error back propagation algorithm according to the respective corresponding calculation loss of at least one group of sample attribute data groups to obtain a target matching model.
Optionally, the terminal determines the gradient direction of the target matching model according to the calculation loss through a back propagation algorithm, and updates the model parameters in the target matching model layer by layer from the output layer of the target matching model.
Step 602, inputting the attribute tag into the target matching model, and calculating to obtain the candidate account identifier.
And the terminal acquires the generated attribute tag, inputs the attribute tag into a target matching model, and calculates to obtain at least two candidate account identifications.
Illustratively, as shown in fig. 7, the process of training the terminal to obtain the target matching model includes: 1. the terminal obtains a training sample set, wherein the training sample set comprises at least one group of sample data groups, and each group of sample data groups comprises: sample attribute data and correct account identification. 2. For each set of sample data, the terminal inputs the sample attribute data into the original parametric model. 3. And outputting to obtain a training result. 4. And the terminal compares the training result with the correct account number identification to obtain the calculation loss. 5. And training by adopting an error back propagation algorithm according to the respective corresponding calculation loss of at least one group of sample data groups to obtain a target matching model. And after the trained target matching model is obtained, the terminal stores the trained target matching model. And 6, after the terminal successfully unlocks the display screen of the terminal, acquiring the generated attribute label. 7. And the terminal acquires the stored target matching model. 8. And the terminal inputs the attribute label into the target matching model. 9. And the terminal outputs the candidate account identifier.
Step 603, in m group user accounts, determining the group user account corresponding to the account identifier consistent with the candidate account identifier as the target user account.
And the terminal searches whether account identifiers consistent with the candidate account identifiers exist in the m group user accounts of the target group, and if so, determines the group user accounts corresponding to the account identifiers consistent with the candidate account identifiers as the target user accounts.
In summary, in the embodiment of the present application, the target matching model is obtained, the attribute tag is input into the target matching model to calculate to obtain the candidate account identifier, and in m group user accounts, the group user account corresponding to the account identifier that is consistent with the candidate account identifier is determined as the target user account; the terminal can quickly and accurately calculate the candidate account identification based on the target matching model obtained by training, so that the searching efficiency of the terminal is improved, and meanwhile, the accuracy of the terminal in matching the target user account obtained based on the attribute tag is improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Please refer to fig. 8, which illustrates a schematic structural diagram of a group message display apparatus according to an embodiment of the present application. The information prompting device can be implemented by a dedicated hardware circuit, or a combination of hardware and software, as all or a part of the terminal in fig. 1, and includes: a receiving module 810, a first obtaining module 820, a second obtaining module 830, and an adding module 840.
A receiving module 810, configured to receive input message content in an information input box of a session interface of a target group, where the target group includes m group user accounts, and m is a positive integer;
a first obtaining module 820, configured to obtain attribute tags for screening m group user accounts when the message content includes specified key characters;
a second obtaining module 830, configured to obtain, from the m group user accounts, a target user account matched with the attribute tag;
an adding module 840, configured to add a reminding field for reminding a target user of viewing a message in an information input box of the session interface.
Optionally, the first obtaining module 820 is further configured to display a property sub-option set when the message content includes a specified keyword, where the property sub-option set includes k property options, the property options are keywords used to define a category to which the group user account belongs, and the property options include at least two property sub-options; generating attribute tags according to the selected i attribute sub-options in the attribute sub-option set;
wherein k and i are both positive integers.
Optionally, the first obtaining module 820 is further configured to obtain the selected i attribute sub-options and the logic symbols between the i attribute sub-options;
generating attribute labels according to the i attribute sub-options and the logic symbols among the i attribute sub-options;
wherein the logical symbol is used for indicating a logical relationship with the logical relationship or at least one of the logical relationship and a non-logical relationship.
Optionally, the attribute tag is used to indicate that the target user account is a group user account having at least two attribute sub-options; alternatively, the first and second electrodes may be,
the attribute tag is used for indicating that the target user account is a group user account with a first attribute sub-option or a second attribute sub-option, and the first attribute sub-option and the second attribute sub-option do not have intersection; alternatively, the first and second electrodes may be,
the attribute tag is used for indicating that the target user account is a group user account with a third attribute sub-option and without a fourth attribute sub-option, and no intersection exists between the third attribute sub-option and the fourth attribute sub-option.
Optionally, the second obtaining module 830 is further configured to send a query request carrying the attribute tag to the server, where the query request is used to instruct the server to obtain a target user account matched with the attribute tag in the target group, and feed back an account identifier of the target user account to the terminal;
receiving an account identifier of a target user account fed back by a server;
the adding module 840 is further configured to add, in the information input box of the session interface, the account identifier of the target user account after specifying the key character, where the specified key character is a character used for prompting the target user account to view a message.
Optionally, the second obtaining module 830 is further configured to obtain a target matching model, where the target matching model is used to represent a model obtained by training a neural network based on sample attribute data; inputting the attribute tag into a target matching model, and calculating to obtain a candidate account identifier; and determining the group user account corresponding to the account identifier consistent with the candidate account identifier as the target user account in the m group user accounts.
Optionally, the second obtaining module 830 is further configured to obtain a training sample set, where the training sample set includes at least one group of sample attribute data groups, and each group of sample attribute data groups includes: sample attribute data and a predetermined correct account identifier; and training at least one group of sample attribute data by adopting an error back propagation algorithm to obtain a target matching model.
Optionally, the second obtaining module 830 is further configured to, for each group of sample attribute data in the at least one group of sample attribute data, input the sample attribute data into the original parameter model to obtain a training result; for each group of sample attribute data, comparing the training result with the correct account identifier to obtain a calculation loss, wherein the calculation loss is used for indicating the error between the training result and the correct account identifier; and training by adopting an error back propagation algorithm according to the respective corresponding calculation loss of at least one group of sample attribute data groups to obtain a target matching model.
The relevant details may be combined with the method embodiments described with reference to fig. 2-7. The receiving module 810 is further configured to implement any other implicit or disclosed function related to the receiving step in the foregoing method embodiment; the first obtaining module 820 and the second obtaining module 830 are further configured to implement any other implicit or disclosed functions related to the obtaining step in the foregoing method embodiments; the adding module 840 is further configured to implement any other implicit or disclosed functionality related to the displaying step in the above method embodiments.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Fig. 9 shows a schematic structural diagram of a terminal 900 according to an exemplary embodiment of the present application. The terminal 900 may be the sender terminal 120 shown in fig. 1, or may be the receiver terminal 160.
Optionally, the terminal 900 includes one or more of the following components: a processor 910 and a memory 920.
Processor 910 may include one or more processing cores. The processor 910 connects various parts within the overall elevator dispatching device using various interfaces and lines to perform various functions of the elevator dispatching device and process data by operating or executing instructions, programs, code sets, or instruction sets stored in the memory 920 and invoking data stored in the memory 920. Optionally, the processor 910 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 910 may integrate one or more of a Central Processing Unit (CPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, an application program and the like; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 910, but may be implemented by a single chip.
Optionally, the group message display method provided by the following method embodiments is implemented by the processor 910 executing the program instructions in the memory 920.
The Memory 920 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 920 includes a non-transitory computer-readable medium. The memory 920 may be used to store instructions, programs, code sets, or instruction sets. The memory 920 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function, instructions for implementing the following method embodiments, and the like; the storage data area may store data and the like referred to in the following respective method embodiments.
The present application also provides a computer readable medium, on which program instructions are stored, and when the program instructions are executed by a processor, the group message display method provided by the above-mentioned method embodiments is implemented.
The present application also provides a computer program product containing instructions which, when run on a computer, cause the computer to perform the group message display method described in the above embodiments.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps in the group message display method implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing associated hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc. The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (11)

1. A method for displaying group messages, the method comprising:
receiving input message content in an information input box of a session interface of a target group, wherein the target group comprises m group user accounts, and m is a positive integer;
when the message content comprises designated key characters, acquiring attribute tags for screening the m group user accounts, wherein the designated key characters are characters which are set by a terminal in a default mode or are defined by a user, the attribute tags are selected from an attribute sub-option set, the attribute sub-option set is displayed when the message content input by the user is detected to comprise the designated key characters, the attribute tags comprise logic symbols among i attribute sub-options, and the logic symbols are used for indicating a logic relationship or at least one logic relationship among a logic relationship and a non-logic relationship;
acquiring a target user account matched with the attribute tag from the m group user accounts;
and adding a reminding field for reminding the target user account to view the message in the information input box of the session interface.
2. The method according to claim 1, wherein said obtaining an attribute tag for screening said m group user accounts when said message content includes a specified key character comprises:
when the designated key characters are included in the message content, displaying a property sub-option set, wherein the property sub-option set comprises k property options, the property options are key words used for defining the category to which the group user account belongs, and the property options comprise at least two property sub-options;
generating the attribute labels according to the selected i attribute sub-options in the attribute sub-option set;
wherein k and i are both positive integers.
3. The method of claim 2, wherein generating the property label based on the selected i of the property sub-options in the set of property sub-options comprises:
acquiring logic symbols between the selected i attribute sub-options and the i attribute sub-options;
and generating the attribute label according to the logic symbol between the i attribute sub-options and the i attribute sub-options.
4. The method according to any one of claims 1 to 3,
the attribute tag is used for indicating that the target user account is the group user account with at least two attribute sub-options; alternatively, the first and second electrodes may be,
the attribute tag is used for indicating that the target user account is the group user account with a first attribute sub-option or a second attribute sub-option, and the first attribute sub-option and the second attribute sub-option do not have intersection; alternatively, the first and second electrodes may be,
the attribute tag is used to indicate that the target user account is the group user account having a third attribute sub-option and no fourth attribute sub-option, and there is no intersection between the third attribute sub-option and the fourth attribute sub-option.
5. The method according to claim 1, wherein said obtaining a target user account matching the attribute tag among the m group user accounts comprises:
sending a query request carrying the attribute tag to a server, wherein the query request is used for indicating the server to acquire the target user account matched with the attribute tag in the target group, and feeding back an account identifier of the target user account to a terminal;
receiving an account identifier of the target user account fed back by the server;
adding a reminding field for reminding the target user account to view the message in the information input box of the session interface, wherein the reminding field comprises:
and in the information input box of the session interface, adding an account identifier of the target user account after the specified key characters are used for prompting the target user account to view messages.
6. The method according to claim 1, wherein said obtaining a target user account matching the attribute tag among the m group user accounts comprises:
obtaining a target matching model, wherein the target matching model is used for representing a model obtained by training a neural network based on sample attribute data;
inputting the attribute tag into the target matching model, and calculating to obtain a candidate account identifier;
and determining the group user account corresponding to the account identifier consistent with the candidate account identifier as the target user account in the m group user accounts.
7. The method of claim 6, wherein the obtaining the target matching model comprises:
obtaining a training sample set, wherein the training sample set comprises at least one group of sample attribute data groups, and each group of sample attribute data groups comprises: the sample attribute data and a predetermined correct account identifier;
and training the at least one group of sample attribute data by adopting an error back propagation algorithm to obtain the target matching model.
8. The method of claim 7, wherein the training the at least one set of sample property data using an error back propagation algorithm to obtain the target matching model comprises:
for each group of sample attribute data in the at least one group of sample attribute data, inputting the sample attribute data into an original parameter model to obtain a training result;
for each group of sample attribute data, comparing the training result with the correct account identifier to obtain a calculation loss, wherein the calculation loss is used for indicating an error between the training result and the correct account identifier;
and training by adopting the error back propagation algorithm to obtain the target matching model according to the respective corresponding calculation loss of the at least one group of sample attribute data groups.
9. A group message display apparatus, the apparatus comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving input message contents in an information input box of a session interface of a target group, the target group comprises m group user accounts, and m is a positive integer;
a first obtaining module, configured to obtain, when the message content includes a specified key character, an attribute tag used for screening the m group user accounts, where the specified key character is a character set by default in a terminal or defined by a user, the attribute tag is selected from an attribute sub-option set, and the attribute sub-option set is displayed when it is detected that the message content input by the user includes the specified key character, the attribute tag includes a logic symbol between i attribute sub-options, and the logic symbol is used to indicate a logical relationship, or at least one of a logical relationship and a non-logical relationship;
a second obtaining module, configured to obtain, from the m group user accounts, a target user account matched with the attribute tag;
and the adding module is used for adding a reminding field for reminding the target user account to view the message in the information input box of the session interface.
10. A terminal, characterized in that the terminal comprises a processor, a memory connected to the processor, and program instructions stored on the memory, which when executed by the processor implement the group message display method according to any one of claims 1 to 8.
11. A computer-readable storage medium, having stored thereon program instructions which, when executed by a processor, implement the group message display method of any one of claims 1 to 8.
CN201810745775.XA 2018-07-09 2018-07-09 Group message display method, device, terminal and storage medium Active CN109039671B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810745775.XA CN109039671B (en) 2018-07-09 2018-07-09 Group message display method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810745775.XA CN109039671B (en) 2018-07-09 2018-07-09 Group message display method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109039671A CN109039671A (en) 2018-12-18
CN109039671B true CN109039671B (en) 2021-06-04

Family

ID=64641899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810745775.XA Active CN109039671B (en) 2018-07-09 2018-07-09 Group message display method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109039671B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110336735B (en) * 2019-04-30 2021-12-14 上海掌门科技有限公司 Method and equipment for sending reminding message
CN112242945B (en) * 2019-07-19 2022-07-15 腾讯科技(深圳)有限公司 Method, device and equipment for sending electronic interaction information and readable storage medium
CN114945055B (en) * 2019-07-22 2023-06-20 腾讯科技(深圳)有限公司 Information display method, intelligent terminal, information display device and storage medium
CN111010332A (en) * 2019-11-11 2020-04-14 维沃移动通信有限公司 Group chat method and electronic equipment
CN111162998A (en) * 2019-12-30 2020-05-15 腾讯科技(深圳)有限公司 Session data processing method, device, equipment and medium
CN111444314A (en) * 2020-03-04 2020-07-24 维沃移动通信有限公司 Information processing method and electronic equipment
CN111447138A (en) * 2020-03-19 2020-07-24 平安科技(深圳)有限公司 Display method and device of mass-sending instant message, computer equipment and storage medium
CN111652750B (en) * 2020-05-25 2022-05-20 南京领行科技股份有限公司 User group management method, device, equipment and storage medium
CN112637045B (en) * 2020-12-14 2022-08-12 中国联合网络通信集团有限公司 Group message notification method and device
CN115002691B (en) * 2021-03-01 2023-08-15 中国移动通信集团四川有限公司 Message sending method, device, equipment and computer readable storage medium
CN113114557B (en) * 2021-03-31 2023-03-21 北京达佳互联信息技术有限公司 Message sending method and device, electronic equipment and storage medium
CN113556279B (en) * 2021-07-22 2023-04-07 北京字跳网络技术有限公司 Message sending method, device, equipment and storage medium
CN113872849B (en) * 2021-09-26 2023-04-18 维沃移动通信有限公司 Message interaction method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932238A (en) * 2012-11-13 2013-02-13 华为技术有限公司 Reminding method and equipment of group messages
CN103139048A (en) * 2011-12-05 2013-06-05 北京神州泰岳软件股份有限公司 Group information reminding method and system
CN105681173A (en) * 2016-03-14 2016-06-15 华为软件技术有限公司 Creation method, device and system of conversation in instant communication
CN106330685A (en) * 2016-09-18 2017-01-11 依偎科技(南昌)有限公司 Group message prompt method and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107800609B (en) * 2016-09-05 2021-06-01 阿里巴巴集团控股有限公司 Communication method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139048A (en) * 2011-12-05 2013-06-05 北京神州泰岳软件股份有限公司 Group information reminding method and system
CN102932238A (en) * 2012-11-13 2013-02-13 华为技术有限公司 Reminding method and equipment of group messages
CN105681173A (en) * 2016-03-14 2016-06-15 华为软件技术有限公司 Creation method, device and system of conversation in instant communication
CN106330685A (en) * 2016-09-18 2017-01-11 依偎科技(南昌)有限公司 Group message prompt method and terminal

Also Published As

Publication number Publication date
CN109039671A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN109039671B (en) Group message display method, device, terminal and storage medium
CN109831456B (en) Message pushing method, device, equipment and storage medium
CN106357517B (en) Directional label generation method and device
CN109347722B (en) Interaction system, method, client and background server
CN106470110B (en) Method and device for sending messages to multiple users in user list in group mode
CN108432200A (en) Allow to access of the limitation to user information while communication
CN111159380B (en) Interaction method and device, computer equipment and storage medium
CN107592255B (en) Information display method and equipment
CN110022399B (en) Message display method and device, user terminal and readable storage medium
CN112231463A (en) Session display method and device, computer equipment and storage medium
CN106487655B (en) Message interaction method and device and processing server
CN112152901A (en) Virtual image control method and device and electronic equipment
CN109873756A (en) Method and apparatus for sending information
CN110909241B (en) Information recommendation method, user identification recommendation method, device and equipment
CN111523053A (en) Information flow processing method and device, computer equipment and storage medium
CN110109594B (en) Drawing data sharing method and device, storage medium and equipment
US20180068365A1 (en) Commerce bot
CN111787042B (en) Method and device for pushing information
CN111125544A (en) User recommendation method and device
CN109960442B (en) Prompt information transmission method and device, storage medium and electronic device
CN111191143A (en) Application recommendation method and device
CN111092804B (en) Information recommendation method, information recommendation device, electronic equipment and storage medium
CN116226116A (en) Joint learning task viewing method and device, electronic equipment and storage medium
CN113413590A (en) Information verification method and device, computer equipment and storage medium
CN114125018A (en) Session-based information processing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant