CN107317689B - Message processing method, electronic equipment and computer storage medium - Google Patents

Message processing method, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN107317689B
CN107317689B CN201710619876.8A CN201710619876A CN107317689B CN 107317689 B CN107317689 B CN 107317689B CN 201710619876 A CN201710619876 A CN 201710619876A CN 107317689 B CN107317689 B CN 107317689B
Authority
CN
China
Prior art keywords
objects
message
groups
determining
matched
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
CN201710619876.8A
Other languages
Chinese (zh)
Other versions
CN107317689A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710619876.8A priority Critical patent/CN107317689B/en
Publication of CN107317689A publication Critical patent/CN107317689A/en
Application granted granted Critical
Publication of CN107317689B publication Critical patent/CN107317689B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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/00Arrangements for user-to-user messaging in packet-switching networks, e.g. e-mail or instant messages
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Abstract

The invention discloses a message processing method and electronic equipment, wherein the method comprises the following steps: for a first group, determining one or more second groups matched with the first group, wherein the first group comprises a plurality of panelist objects, and the second group comprises a plurality of panelist objects; when the message sent to the first group by the first group member object in the first group is received, the message is sent to each group member object in the first group and each group member object in each second group matched with the first group, so that the message aiming at one group is sent to each group member object in other groups matched with the group member object, and the social experience of the user is greatly improved.

Description

Message processing method, electronic equipment and computer storage medium
Technical Field
The present invention relates to a message sharing technology in the social field, and in particular, to a message processing method, an electronic device, and a computer storage medium.
Background
Social Applications (APP) are widely used in people's life and work, such as WeChat, QQ, and so on. In social APP, a user may set up multiple groups individually according to their needs, for example: work groups, family groups, classmates, etc., and may even more finely group friends related to work by department. The group members in different groups may be substantially the same or intersect with each other, for example, the topic in question is the same, and then the group members may send the same message in different groups, which clearly affects the social experience of the user, because the user needs to edit the message and perform the sending operation multiple times.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention provide a message processing method, an electronic device, and a computer storage medium.
The message processing method provided by the embodiment of the invention comprises the following steps:
for a first group, determining one or more second groups matched with the first group, wherein the first group comprises a plurality of panelist objects, and the second group comprises a plurality of panelist objects;
and when receiving a message sent to the first group by a first member object in the first group, sending the message to each member object in the first group and each member object in each second group matched with the first group.
In this embodiment, the determining, for a first group, one or more second groups that match the first group includes:
for a first group, determining the similarity of member objects of the first group and each second group, wherein the similarity of the member objects represents the proportion that the first group and the second group have the same member objects;
when the similarity of the member objects of the first group and the second group is larger than or equal to a first preset threshold value, determining that the second group is matched with the first group.
In this embodiment, the determining, for a first group, one or more second groups that match the first group includes:
for a first group, determining topic similarity of the first group and each second group, wherein the topic similarity represents the proportion of the same keywords in the messages of the first group and the second group;
when the topic similarity of the first group and the second group is larger than or equal to a second preset threshold value, determining that the second group is matched with the first group.
In this embodiment of the present invention, the sending the message to each member object in the first group and each member object in each second group matched with the first group includes:
calculating a union set of the first group and the second group to obtain a third group, wherein the third group comprises all member objects in the first group and all member objects in the second group, and the third group does not have the same member objects;
and sending the message to the three groups.
In this embodiment of the present invention, the sending the message to each member object in the first group and each member object in each second group matched with the first group includes:
sending the message to the first group while sending the message to the second group.
The electronic device provided by the embodiment of the invention comprises:
a memory for storing a message processing program;
a processor to execute the message handler in the memory to:
for a first group, determining one or more second groups matched with the first group, wherein the first group comprises a plurality of panelist objects, and the second group comprises a plurality of panelist objects;
and when receiving a message sent to the first group by a first member object in the first group, sending the message to each member object in the first group and each member object in each second group matched with the first group.
In this embodiment of the present invention, the processor is further configured to execute the picture processing program in the memory to implement the following operations:
for a first group, determining the similarity of member objects of the first group and each second group, wherein the similarity of the member objects represents the proportion that the first group and the second group have the same member objects;
when the similarity of the member objects of the first group and the second group is larger than or equal to a first preset threshold value, determining that the second group is matched with the first group.
In this embodiment of the present invention, the processor is further configured to execute the picture processing program in the memory to implement the following operations:
for a first group, determining topic similarity of the first group and each second group, wherein the topic similarity represents the proportion of the same keywords in the messages of the first group and the second group;
when the topic similarity of the first group and the second group is larger than or equal to a second preset threshold value, determining that the second group is matched with the first group.
In this embodiment of the present invention, the processor is further configured to execute the picture processing program in the memory to implement the following operations:
calculating a union set of the first group and the second group to obtain a third group, wherein the third group comprises all member objects in the first group and all member objects in the second group, and the third group does not have the same member objects;
and sending the message to the three groups.
In this embodiment of the present invention, the processor is further configured to execute the picture processing program in the memory to implement the following operations:
sending the message to the first group while sending the message to the second group.
The computer storage medium provided by the embodiment of the present invention stores one or more programs, and the one or more programs can be executed by one or more processors to implement any of the above-described message processing methods.
In the technical solution of the embodiment of the present invention, one or more second groups matched with a first group are determined for the first group, where the first group includes a plurality of panelist objects, and the second group includes a plurality of panelist objects; and when receiving a message sent to the first group by a first member object in the first group, sending the message to each member object in the first group and each member object in each second group matched with the first group. By adopting the technical scheme of the embodiment of the invention, a plurality of groups are matched with each other, and the matching between groups with roughly the same member objects (namely group members) or groups with intersection is successful, so that the message aiming at one group is sent to each member object in other groups matched with the group together, for a user, the message can be shared to each member object in the plurality of groups only by editing the message once and executing the operation of sending the message once, and the social experience of the user is greatly improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
fig. 2 is a diagram of a communication network system architecture according to an embodiment of the present invention;
fig. 3 is a first flowchart illustrating a message processing method according to an embodiment of the present invention;
fig. 4 is a second flowchart illustrating a message processing method according to an embodiment of the present invention;
fig. 5 is a third flowchart illustrating a message processing method according to an embodiment of the present invention;
FIG. 6 is a first diagram illustrating message sending according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating a second exemplary message sending method according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, panelist object input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help the group member object to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the group member object. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by the panelist object or information provided to the panelist object. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The panelist object input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to panelist object settings and function control of the mobile terminal. Specifically, panelist object input unit 107 may include touch panel 1071 as well as other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations of the panelist object (e.g., operations of the panelist object on or near the touch panel 1071 using any suitable object or accessory such as a finger, a stylus, etc.) thereon or thereabout, and drive the corresponding connection device according to a preset program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of the group member object, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the panelist object input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, panelist object interfaces, applications, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds some information specific to the group membership object regarding service characteristics, data rates, etc. All group member object data may be sent through SGW2034, PGW2035 may provide IP address assignment and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
Fig. 3 is a first flowchart illustrating a message processing method according to an embodiment of the present invention, as shown in fig. 3, the message processing method includes the following steps:
step 301: for a first group, one or more second groups matching the first group are determined, wherein the first group comprises a plurality of panelist objects, and the second group comprises a plurality of panelist objects.
In the embodiment of the invention, the terminal is provided with the social APP, and the user can communicate with other users through the social APP. In an example, the social APP may be an instant messenger APP, such as: WeChat, QQ, etc.; in another example, the social APP may be a non-instant messaging APP, such as a microblog, blog, or the like. When a user uses a social APP, the user firstly needs to register an account belonging to the user through the social APP, a password corresponding to the account is set, and then the user logs in the APP through the account and the password, so that rich functions provided by the social APP, such as a chat function, a file transmission function, a video function, an information publishing function and the like, are experienced.
In the embodiment of the present invention, in the process of using the social APP, a user usually establishes one or more groups, for example: groups named family, groups named work, and so on. Each group includes a plurality of member objects (i.e., group members), and of course, a group may include only one member object. Here, the member objects refer to contacts of the user, a display mode of each member object in the group is usually a mode of head portrait plus user name, and each member object uniquely corresponds to one account. The user may search for a contact through a known account and then add the searched contact to the selected group. The user may also search for a contact by a known user name (also called nickname), because the user name does not have a one-to-one correspondence with the account, usually more than one contact is searched, and then the correct contact is screened out and added to the selected group. The manner of adding member objects in a group may be to move the member objects in a group to another group. Of course, a member object may belong to only one group, or may belong to multiple groups simultaneously, for example: group 1 includes the following panelist objects: p1, P2, P5. Group 2 includes the following panelist objects: p1, P3, P5, P9 and P11.
In the embodiment of the present invention, the groups are not independent, and there is a certain association relationship between the groups, for example: depending on the team members in the team as the subject of investigation, there may be many team members, or even many team members, in the same team member. For another example: the topic contents of each group are considered objects, and the same topic contents can be provided among the groups, and here, the same topic contents can be embodied that the group names have the same keywords, and the chat messages in the group have the same keywords.
It can be seen that there is an association relationship between groups, and based on this, for a first group, one or more second groups matching the first group are determined. Here, "second" in the second group is used only to distinguish "first" in the first group, and has no special meaning.
Suppose that the user P1 logs in the social APP through his own account, and 5 groups are established in the social APP, which are: group 1, group 2, group 3, group 4, group 5. For example, each group is matched according to the member objects in the group as the investigation objects, it is assumed that the group 1 is a first group, the groups 2 to 5 are all second groups, and the groups matched with the group 1 are the groups 2 and 4. Assume that group 2 is the first group, and groups 1, 3-5 are the second groups, and the groups matching group 2 are groups 1, 3, 5. Therefore, the groups are matched with each other, and the second group matched with each group can be determined. Here, the matching relationships between the groups are mutual, for example: the group matching group 1 includes group 2, then the group matching group 2 necessarily includes group 1.
Step 302: and when receiving a message sent to the first group by a first member object in the first group, sending the message to each member object in the first group and each member object in each second group matched with the first group.
In the embodiment of the present invention, after determining the second group matching the first group, the message in the first group needs to be shared with each second group. Since the matching relationships between the groups are mutual, the messages in the second group also need to be shared into the first group.
Specifically, when a message sent to the first group by a first member object in the first group is received, the message is sent to each member object in the first group and each member object in each second group matched with the first group.
Here, the first member object generally refers to any member object in the first group, and the member object may be the user itself or a contact of the user in the first group. When any member object in the first group sends a message to the first group, the message is firstly sent to a server corresponding to the social APP, after the server receives the message, the message is simultaneously sent to each member object in the first group and each member object in each second group matched with the first group, wherein the message is sent to the member objects by fusing the message to a group chat session interface, and then the group chat session interface is synchronized to each member object. In an embodiment, the first group and the second group are merged to form a new group, the new group is called a third group, the third group includes all member objects of the first group and the second group, and the third group does not include repeated member objects, and then a new group chat session interface is formed, the new group chat session interface is also a group chat session interface corresponding to the third group; when the server receives the message generated by any member object in the first group, the message is fused into the group chat session interface corresponding to the third group, so that all the member objects in the first group and the second group can view the message. In another embodiment, when receiving a message generated by any member object in the first group, the server merges the message into the group chat session interface corresponding to the first group, and at the same time, merges the message into the group chat session interface corresponding to the second group, so that all the member objects in the first group and the second group can view the message, that is: the server sends the message to the first group and simultaneously sends the message to the second group.
In the embodiment of the invention, the message aiming at one group is sent to all the group member objects in other groups matched with the group member object, and for the user, the message can be shared to all the group member objects in a plurality of groups only by editing the message once and executing the operation of sending the message once, so that the social experience of the user is greatly improved.
Fig. 4 is a second flowchart illustrating a message processing method according to an embodiment of the present invention, and as shown in fig. 4, the message processing method includes the following steps:
step 401: for a first group, determining the member object similarity of the first group and each second group, wherein the member object similarity represents the occupation ratio of the same member objects of the first group and the second group.
In the embodiment of the invention, the terminal is provided with the social APP, and the user can communicate with other users through the social APP. In an example, the social APP may be an instant messenger APP, such as: WeChat, QQ, etc.; in another example, the social APP may be a non-instant messaging APP, such as a microblog, blog, or the like. When a user uses a social APP, the user firstly needs to register an account belonging to the user through the social APP, a password corresponding to the account is set, and then the user logs in the APP through the account and the password, so that rich functions provided by the social APP, such as a chat function, a file transmission function, a video function, an information publishing function and the like, are experienced.
In the embodiment of the present invention, in the process of using the social APP, a user usually establishes one or more groups, for example: groups named family, groups named work, and so on. Each group includes a plurality of member objects (i.e., group members), and of course, a group may include only one member object. Here, the member objects refer to contacts of the user, a display mode of each member object in the group is usually a mode of head portrait plus user name, and each member object uniquely corresponds to one account. The user may search for a contact through a known account and then add the searched contact to the selected group. The user may also search for a contact by a known user name (also called nickname), because the user name does not have a one-to-one correspondence with the account, usually more than one contact is searched, and then the correct contact is screened out and added to the selected group. The manner of adding member objects in a group may be to move the member objects in a group to another group. Of course, a member object may belong to only one group, or may belong to multiple groups simultaneously, for example: group 1 includes the following panelist objects: p1, P2, P5. Group 2 includes the following panelist objects: p1, P3, P5, P9 and P11.
In the embodiment of the present invention, the groups are not independent, and there is a certain association relationship between the groups, for example: depending on the team members in the team as the subject of investigation, there may be many team members, or even many team members, in the same team member. It can be seen that there is an association relationship between the groups, and based on this, for a first group, the member object similarity between the first group and each second group is determined. Here, "second" in the second group is used only to distinguish "first" in the first group, and has no special meaning.
Suppose that a user P1 logs in a social APP through his own account, and 3 groups are established in the social APP, which are: group 1, group 2, group 3, group 4. Matching each group according to the member objects in the group as the investigation objects, assuming that the group 1 is a first group, and the groups 2, 3, and 4 are second groups, the member objects in each group are shown in the following table 1:
group name Group members included in a group
Group 1 P1、P2、P3、P4、P6
Group 2 P1、P4、P6、P10
Group 3 P1、P2、P3、P7
Group 4 P1、P7、P9
TABLE 1
The similarity between the member objects of the second groups and the first group is calculated, where the similarity represents the ratio of the member objects of the first group to the member objects of the second group, and the similarity between the member objects of group 1 and group 2 is calculated as follows: group 1 and group 2 share 3(P1, P4, P6) identical panelist objects, and group 1 shares 5 panelist objects, it can be seen that the proportion of the identical panelist objects is 3/5, i.e. the similarity between the panelist objects of group 1 and group 2 is 3/5, and similarly, the similarity between the panelist objects of group 1 and group 3 is 3/5, and the similarity between the panelist objects of group 1 and group 4 is 1/5.
Step 402: when the similarity of the member objects of the first group and the second group is larger than or equal to a first preset threshold value, determining that the second group is matched with the first group.
Here, the first preset threshold may be flexibly set. The greater the similarity of the panelist objects, the more identical panelist objects between the first group and the second group are represented. When the similarity of the member objects of the first group and the second group is larger than or equal to a first preset threshold value, determining that the second group is matched with the first group.
For example: the first predetermined threshold is 3/5, and both group 2 and group 3 match group 1 based on the data shown in Table 1.
Step 403: and calculating the union of the first group and the second group to obtain a third group, wherein the third group comprises all member objects in the first group and all member objects in the second group, and the third group does not have the same member objects.
In the embodiment of the present invention, after determining the second group matching the first group, the message in the first group needs to be shared with each second group. Since the matching relationships between the groups are mutual, the messages in the second group also need to be shared into the first group.
Here, the first member object generally refers to any member object in the first group, and the member object may be the user itself or a contact of the user in the first group. When any member object in the first group sends a message to the first group, the message is firstly sent to a server corresponding to the social APP, after the server receives the message, the message is simultaneously sent to each member object in the first group and each member object in each second group matched with the first group, wherein the message is sent to the member objects by fusing the message to a group chat session interface, and then the group chat session interface is synchronized to each member object. In an embodiment, the first group and the second group are merged to form a new group, the new group is called a third group, the third group includes all member objects of the first group and the second group, and the third group does not include repeated member objects, and then a new group chat session interface is formed, the new group chat session interface is also a group chat session interface corresponding to the third group; when receiving the message generated by any member object in the first group, the server fuses the message into the group chat session interface corresponding to the third group, so that all the member objects in the first group and the second group can view the message, as shown in fig. 6.
Based on the example shown in table 1, the union of group 1 and group 2 is calculated, and the resulting third group includes the following panelist objects: p1, P2, P3, P4, P6 and P10.
Step 404: and when receiving a message sent to the first group by a first member object in the first group, sending the message to the three groups.
In the embodiment of the invention, the message aiming at one group is sent to all the group member objects in other groups matched with the group member object, and for the user, the message can be shared to all the group member objects in a plurality of groups only by editing the message once and executing the operation of sending the message once, so that the social experience of the user is greatly improved.
Fig. 5 is a third schematic flowchart of a message processing method according to an embodiment of the present invention, and as shown in fig. 5, the message processing method includes the following steps:
step 501: and determining topic similarity of the first group and each second group aiming at the first group, wherein the topic similarity characterizes the occupation ratio of the same keywords in the messages of the first group and the second group.
In the embodiment of the invention, the terminal is provided with the social APP, and the user can communicate with other users through the social APP. In an example, the social APP may be an instant messenger APP, such as: WeChat, QQ, etc.; in another example, the social APP may be a non-instant messaging APP, such as a microblog, blog, or the like. When a user uses a social APP, the user firstly needs to register an account belonging to the user through the social APP, a password corresponding to the account is set, and then the user logs in the APP through the account and the password, so that rich functions provided by the social APP, such as a chat function, a file transmission function, a video function, an information publishing function and the like, are experienced.
In the embodiment of the present invention, in the process of using the social APP, a user usually establishes one or more groups, for example: groups named family, groups named work, and so on. Each group includes a plurality of member objects (i.e., group members), and of course, a group may include only one member object. Here, the member objects refer to contacts of the user, a display mode of each member object in the group is usually a mode of head portrait plus user name, and each member object uniquely corresponds to one account. The user may search for a contact through a known account and then add the searched contact to the selected group. The user may also search for a contact by a known user name (also called nickname), because the user name does not have a one-to-one correspondence with the account, usually more than one contact is searched, and then the correct contact is screened out and added to the selected group. The manner of adding member objects in a group may be to move the member objects in a group to another group. Of course, a member object may belong to only one group, or may belong to multiple groups simultaneously, for example: group 1 includes the following panelist objects: p1, P2, P5. Group 2 includes the following panelist objects: p1, P3, P5, P9 and P11.
In the embodiment of the present invention, the groups are not independent, and there is a certain association relationship between the groups, for example: the topic contents of each group are considered objects, and the same topic contents can be provided among the groups, and here, the same topic contents can be embodied that the group names have the same keywords, and the chat messages in the group have the same keywords. It can be seen that there is an association relationship between groups, and based on this, for a first group, one or more second groups matching the first group are determined. Here, "second" in the second group is used only to distinguish "first" in the first group, and has no special meaning.
Specifically, assuming that the first group includes 30 messages and the second group includes 20 messages, the 30 messages in the first group and the 20 messages in the second group are subjected to keyword analysis, and if a certain keyword appears in both the first group and the second group, the percentage of the number of times of the occurrence of the certain keyword to all the messages is taken as the topic similarity. Alternatively, the number of identical keywords in the first group and the second group is divided by a basic value (which may be realized by a preset) as the topic similarity.
Step 502: when the topic similarity of the first group and the second group is larger than or equal to a second preset threshold value, determining that the second group is matched with the first group.
In the embodiment of the present invention, the second preset threshold may be flexibly set, and when the similarity between the topics of the first group and the second group is greater than or equal to the second preset threshold, it may be determined that the second group matches the first group.
Step 503: and when receiving a message sent to the first group by a first member object in the first group, sending the message to the first group, and simultaneously sending the message to the second group.
In the embodiment of the present invention, after determining the second group matching the first group, the message in the first group needs to be shared with each second group. Since the matching relationships between the groups are mutual, the messages in the second group also need to be shared into the first group.
Specifically, when receiving a message sent to the first group by a first member object in the first group, the message is sent to the first group, and simultaneously the message is sent to the second group. Here, the first member object generally refers to any member object in the first group, and the member object may be the user itself or a contact of the user in the first group. When any member object in the first group sends a message to the first group, the message is firstly sent to a server corresponding to the social APP, after the server receives the message, the message is simultaneously sent to each member object in the first group and each member object in each second group matched with the first group, wherein the message is sent to the member objects by fusing the message to a group chat session interface, and then the group chat session interface is synchronized to each member object. In an embodiment, when receiving a message generated by any member object in a first group, a server merges the message into a group chat session interface corresponding to the first group, and at the same time, merges the message into a group chat session interface corresponding to a second group, so that all member objects in the first group and the second group can view the message, that is: the server sends the message to the first group and also sends the message to the second group, as shown in fig. 7.
In the embodiment of the invention, the message aiming at one group is sent to all the group member objects in other groups matched with the group member object, and for the user, the message can be shared to all the group member objects in a plurality of groups only by editing the message once and executing the operation of sending the message once, so that the social experience of the user is greatly improved.
Fig. 8 is a schematic structural composition diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 8, the electronic device includes:
a memory 801 for storing a message processing program;
a processor 802 for executing the message processing program in the memory 801 to implement the following operations:
for a first group, determining one or more second groups matched with the first group, wherein the first group comprises a plurality of panelist objects, and the second group comprises a plurality of panelist objects;
and when receiving a message sent to the first group by a first member object in the first group, sending the message to each member object in the first group and each member object in each second group matched with the first group.
In this embodiment of the present invention, the processor 802 is further configured to execute the picture processing program in the memory 801 to implement the following operations:
for a first group, determining the similarity of member objects of the first group and each second group, wherein the similarity of the member objects represents the proportion that the first group and the second group have the same member objects;
when the similarity of the member objects of the first group and the second group is larger than or equal to a first preset threshold value, determining that the second group is matched with the first group.
In this embodiment of the present invention, the processor 802 is further configured to execute the picture processing program in the memory 801 to implement the following operations:
for a first group, determining topic similarity of the first group and each second group, wherein the topic similarity represents the proportion of the same keywords in the messages of the first group and the second group;
when the topic similarity of the first group and the second group is larger than or equal to a second preset threshold value, determining that the second group is matched with the first group.
In this embodiment of the present invention, the processor 802 is further configured to execute the picture processing program in the memory 801 to implement the following operations:
calculating a union set of the first group and the second group to obtain a third group, wherein the third group comprises all member objects in the first group and all member objects in the second group, and the third group does not have the same member objects;
and sending the message to the three groups.
In this embodiment of the present invention, the processor 802 is further configured to execute the picture processing program in the memory 801 to implement the following operations:
sending the message to the first group while sending the message to the second group.
Those skilled in the art will understand that the functions of each device in the electronic device according to the embodiment of the present invention can be understood by referring to the related description of the message processing method according to the embodiment of the present invention.
The electronic device according to the embodiment of the present invention may also be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as an independent product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
Accordingly, an embodiment of the present invention further provides a computer storage medium, in which a computer program is stored, where the computer program is configured to execute the message processing method according to the embodiment of the present invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A method of message processing, the method comprising:
for a first group, determining one or more second groups matched with the first group, wherein the first group comprises a plurality of panelist objects, and the second group comprises a plurality of panelist objects;
when receiving a message sent to a first group by a first member object in the first group, sending the message to each member object in the first group and each member object in each second group matched with the first group; the first member object is any one member object in a first group;
the sending the message to each panelist object in the first group and each panelist object in each second group matched to the first group includes:
calculating a union set of the first group and the second group to obtain a third group, wherein the third group comprises all member objects in the first group and all member objects in the second group, and the third group does not have the same member objects;
sending the message to the third group.
2. The message processing method according to claim 1, wherein the determining, for a first group, one or more second groups that match the first group comprises:
for a first group, determining the similarity of member objects of the first group and each second group, wherein the similarity of the member objects represents the proportion that the first group and the second group have the same member objects;
when the similarity of the member objects of the first group and the second group is larger than or equal to a first preset threshold value, determining that the second group is matched with the first group.
3. The message processing method according to claim 1, wherein the determining, for a first group, one or more second groups that match the first group comprises:
for a first group, determining topic similarity of the first group and each second group, wherein the topic similarity represents the proportion of the same keywords in the messages of the first group and the second group;
when the topic similarity of the first group and the second group is larger than or equal to a second preset threshold value, determining that the second group is matched with the first group.
4. The message processing method according to claim 1, wherein the sending the message to the member objects in the first group and the member objects in the second groups matching the first group comprises:
sending the message to the first group while sending the message to the second group.
5. An electronic device, characterized in that the electronic device comprises:
a memory for storing a message processing program;
a processor to execute the message handler in the memory to:
for a first group, determining one or more second groups matched with the first group, wherein the first group comprises a plurality of panelist objects, and the second group comprises a plurality of panelist objects;
when receiving a message sent to a first group by a first member object in the first group, sending the message to each member object in the first group and each member object in each second group matched with the first group; the first member object is any one member object in a first group;
the processor is also configured to execute a picture processing program in the memory to:
calculating a union set of the first group and the second group to obtain a third group, wherein the third group comprises all member objects in the first group and all member objects in the second group, and the third group does not have the same member objects;
sending the message to the third group.
6. The electronic device of claim 5, wherein the processor is further configured to execute the picture processing program in the memory to:
for a first group, determining the similarity of member objects of the first group and each second group, wherein the similarity of the member objects represents the proportion that the first group and the second group have the same member objects;
when the similarity of the member objects of the first group and the second group is larger than or equal to a first preset threshold value, determining that the second group is matched with the first group.
7. The electronic device of claim 5, wherein the processor is further configured to execute the picture processing program in the memory to:
for a first group, determining topic similarity of the first group and each second group, wherein the topic similarity represents the proportion of the same keywords in the messages of the first group and the second group;
when the topic similarity of the first group and the second group is larger than or equal to a second preset threshold value, determining that the second group is matched with the first group.
8. A computer storage medium, characterized in that the computer storage medium stores one or more programs executable by one or more processors to implement the method steps of any of claims 1 to 4.
CN201710619876.8A 2017-07-26 2017-07-26 Message processing method, electronic equipment and computer storage medium Active CN107317689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710619876.8A CN107317689B (en) 2017-07-26 2017-07-26 Message processing method, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710619876.8A CN107317689B (en) 2017-07-26 2017-07-26 Message processing method, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN107317689A CN107317689A (en) 2017-11-03
CN107317689B true CN107317689B (en) 2021-05-21

Family

ID=60174974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710619876.8A Active CN107317689B (en) 2017-07-26 2017-07-26 Message processing method, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN107317689B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110708238B (en) * 2019-11-22 2021-08-03 京东数字科技控股有限公司 Method and apparatus for processing information

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8209384B2 (en) * 2007-10-23 2012-06-26 Yahoo! Inc. Persistent group-based instant messaging
CN105530165A (en) * 2015-12-08 2016-04-27 小米科技有限责任公司 Instant chat method and device
CN106453066A (en) * 2016-12-09 2017-02-22 腾讯科技(深圳)有限公司 Group session processing method and system, terminal and server
CN106507317A (en) * 2016-09-05 2017-03-15 努比亚技术有限公司 A kind of method and device for setting up group

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9300620B2 (en) * 2013-03-08 2016-03-29 International Business Machines Corporation Sharing topics in social networking
US20150261812A1 (en) * 2013-03-15 2015-09-17 Siva Prakasa Reddy Pappula Method to form social groups in various contexts to enable ease of information sharing and communication
CN103281237B (en) * 2013-06-14 2017-12-19 小米科技有限责任公司 A kind of group's treating method and apparatus
CN106254220B (en) * 2016-08-16 2019-06-04 北京小米移动软件有限公司 The management method and device of instant messaging group

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8209384B2 (en) * 2007-10-23 2012-06-26 Yahoo! Inc. Persistent group-based instant messaging
CN105530165A (en) * 2015-12-08 2016-04-27 小米科技有限责任公司 Instant chat method and device
CN106507317A (en) * 2016-09-05 2017-03-15 努比亚技术有限公司 A kind of method and device for setting up group
CN106453066A (en) * 2016-12-09 2017-02-22 腾讯科技(深圳)有限公司 Group session processing method and system, terminal and server

Also Published As

Publication number Publication date
CN107317689A (en) 2017-11-03

Similar Documents

Publication Publication Date Title
CN107835464B (en) Video call window picture processing method, terminal and computer readable storage medium
CN107347011B (en) Group message processing method, equipment and computer readable storage medium
CN107621915B (en) Message reminding method, device and computer storage medium
CN107807767B (en) Communication service processing method, terminal and computer readable storage medium
CN107566980B (en) Mobile terminal positioning method and mobile terminal
CN107517153B (en) Message push control method and terminal
CN107766544B (en) Information management method, terminal and computer readable storage medium
CN107547741B (en) Information processing method and device and computer readable storage medium
CN106998553B (en) Equipment identity identification method, computer equipment and storage medium
CN107317689B (en) Message processing method, electronic equipment and computer storage medium
CN107038245B (en) Page switching method, mobile terminal and storage medium
CN109818967B (en) Notification method, server, mobile terminal and computer readable storage medium
CN108566476B (en) Information processing method, terminal and computer readable storage medium
CN109151216B (en) Application starting method, mobile terminal, server and computer readable storage medium
CN108196926B (en) Platform content identification method, terminal and computer readable storage medium
CN109669616B (en) Side screen interaction control method and device and computer readable storage medium
CN109710168B (en) Screen touch method and device and computer readable storage medium
CN109495643B (en) Object multi-chat frame setting method and terminal
CN110708601A (en) Wonderful video acquisition method, terminal and computer readable storage medium
CN108063863B (en) Information browsing method, terminal, server and computer readable storage medium
CN108011937B (en) Message pushing method, server, intelligent terminal and computer readable storage medium
CN107730303B (en) Advertisement pushing method and device and computer readable storage medium
CN107222933B (en) Communication method, terminal and computer readable storage medium
CN107277227B (en) Mobile terminal communication method, mobile terminal and computer readable storage medium
CN108650403B (en) Message sending method, mobile terminal and server

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