CN112929255B - Message sending method and device - Google Patents

Message sending method and device Download PDF

Info

Publication number
CN112929255B
CN112929255B CN202110091303.9A CN202110091303A CN112929255B CN 112929255 B CN112929255 B CN 112929255B CN 202110091303 A CN202110091303 A CN 202110091303A CN 112929255 B CN112929255 B CN 112929255B
Authority
CN
China
Prior art keywords
message
target
priority
alternative
communication group
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
CN202110091303.9A
Other languages
Chinese (zh)
Other versions
CN112929255A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110091303.9A priority Critical patent/CN112929255B/en
Publication of CN112929255A publication Critical patent/CN112929255A/en
Application granted granted Critical
Publication of CN112929255B publication Critical patent/CN112929255B/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
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • 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

Abstract

The application discloses a message sending method and device, and belongs to the field of mobile communication. The method comprises the following steps: acquiring a first message in a target communication group; the first message is a message sent by group members in the target communication group; if the semantics of at least N first messages meet the requirement of preset similarity, acquiring a target message corresponding to the semantics; wherein N is a positive integer; and sending the target message in the target communication group. The embodiment of the application solves the problems that in the prior art, under the scene that repeated messages need to be sent, the manual operation mode is complex in operation and the message reply is not timely easily caused.

Description

Message sending method and device
Technical Field
The present application belongs to the field of mobile communications, and in particular, to a message sending method and apparatus.
Background
With the rapid development of mobile communication technology, various mobile electronic devices and non-mobile electronic devices have become indispensable tools in various aspects of people's lives. The functions of various Applications (APPs) of electronic equipment are gradually improved, and the functions do not only play a role in communication, but also provide various intelligent services for users, so that great convenience is brought to the work and life of the users.
In the process of instant messaging of a user communication APP, repeated messages are often sent; for example, a notification message in a work group, after receiving the notification message, the group members usually reply repeatedly: "received"; or after finishing grabbing the red envelope, the group members generally repeatedly send characters or expressions for expressing thank you; alternatively, when a new person joins the group, the group members will typically repeat sending words or emoticons indicating a welcome.
In a scene needing to send repeated messages, a user needs to manually input characters, or select a local expression to reply, or manually copy an existing expression in a group to reply; on one hand, the operation is complicated, and on the other hand, if the current user is busy in other things, the user does not pay attention to the group message, the message is easy to reply in time, so that the participation sense of the user in the corresponding group is low.
Disclosure of Invention
The embodiment of the application aims to provide a message sending method and a message sending device, and the problems that in the prior art, under a scene that repeated messages need to be sent, a manual operation mode is complicated in operation and message reply is prone to being untimely are solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a message sending method, where the method includes:
acquiring a first message in a target communication group; the first message is a message sent by group members in the target communication group;
if the semantics of at least N first messages meet the requirement of preset similarity, acquiring a target message corresponding to the semantics; wherein N is a positive integer;
and sending the target message in the target communication group.
In a second aspect, an embodiment of the present application further provides a message sending apparatus, where the message sending apparatus includes:
the message acquisition module is used for acquiring a first message in a target communication group; the first message is a message sent by group members in the target communication group;
the target acquisition module is used for acquiring a target message corresponding to the semantics if the semantics of at least N first messages meet the requirement of preset similarity; wherein N is a positive integer;
and the message sending module is used for sending the target message in the target communication group.
In a third aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a program or an instruction stored on the memory and executable on the processor, where the processor implements the steps in the message sending method described above when executing the program or the instruction.
In a fourth aspect, an embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, and the program or the instruction, when executed by a processor, implements the steps in the message sending method described above.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, a first message in a target communication group is obtained; if the semantics of at least N first messages meet the requirement of preset similarity, acquiring a target message corresponding to the semantics; and sending the target message in the target communication group, and automatically acquiring and replying the target message under the condition that at least N first messages are possibly identical or similar in semantics, so that the trouble of manually inputting the target message by a user is avoided, the message can be quickly replied, and the condition that the message is not replied timely is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating a message sending method according to an embodiment of the present application;
FIG. 2 illustrates a schematic diagram of a first example provided by an embodiment of the present application;
fig. 3 is a flowchart illustrating a third example provided by an embodiment of the present application;
fig. 4 is a block diagram of a message sending apparatus according to an embodiment of the present application;
FIG. 5 shows one of the block diagrams of an electronic device provided by an embodiment of the application;
fig. 6 shows a second block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In various embodiments of the present application, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be implemented in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/", and generally means that the former and latter related objects are in an "or" relationship.
The message sending method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, an embodiment of the present application provides a message sending method, which is optionally applicable to electronic devices including various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of Mobile Stations (MSs), terminal devices (Terminal devices), and the like.
The method comprises the following steps:
step 101, acquiring a first message in a target communication group; the first message is a message sent by a group member in the target communication group.
The target communication group may be a communication group in a communication APP, or a communication group in a communication function of a system of the electronic device. The target communication group may be a work-type group, a notification-type group, etc. Monitoring a first message in a target communication group in the operation process of the electronic equipment; the first message can be in the form of at least one of text, expression, combination of text and expression and picture; such as plain text, or a combination of text and expressions, etc.
102, if the semantics of at least N first messages meet the requirement of preset similarity, acquiring target messages corresponding to the semantics; wherein N is a positive integer.
If the semantics of at least N first messages meet the preset similarity requirement, the at least N first messages may be semantic repeat messages; when the electronic equipment receives each piece of first information, natural semantic analysis can be carried out on the first information, the semantics of each piece of first information are analyzed, then at least N pieces of semantics of the first information meeting the requirement of preset similarity are screened as target semantics, and the target information corresponding to the target semantics is obtained; alternatively, the target message may be a message in the first message, such as a message with the highest repetition degree in the first message; the message can also be a message local to the electronic device or a message in the cloud server.
Optionally, semantic analysis may be performed on the first message based on a word segmentation technology and Natural Language Parsing (NLP), and whether the context semantic messages are the same, for example, languages such as "harsh", "excellent", and the like are quartic and praised, and the same semantics are obtained through parsing and combining the context semantics, and then the predetermined similarity requirement may be satisfied; for semantic analysis of pictures, each picture has its own unique feature, for example, content analysis of a motion picture is performed based on a picture-based Message Digest Algorithm (MD 5) value, and if pictures with the same MD5 value in a larger proportion appear in a target communication group within a specified time, a Message meeting a preset similarity requirement can be considered, and a Message with the same picture can be sent to participate in group chat.
The first message may be a first message of the target communication group in each preset period; the preset period can be 1 day, 6 hours and other time values; taking N as an example of 10, if it is detected that semantics of at least 10 first messages meet a preset similarity requirement in each preset period in the target communication group, determining target semantics of the at least 10 first messages, and then selecting a target message corresponding to the target semantics.
The preset similarity requirement may be that the semantic similarity of the N first messages is changed from a preset similarity threshold.
Step 103, sending the target message in the target communication group.
After the target message is determined, the electronic equipment automatically sends the target message in the target communication group, so that the trouble that a user manually inputs the target message is avoided, meanwhile, the message can be quickly replied, and the situation that the message is not replied timely is avoided.
As a first example, referring to fig. 2, in the work category target communication group, a worker sends a notification message, and other group members a, B, and C reply with: the semantics of at least N first messages such as 'receiving' and 'knowing' are as follows: if the target message is received, the electronic equipment (icon D) sends the received message in the target communication group, so that the trouble of manual input by a user is avoided, and meanwhile, the message can be quickly replied.
As a second example, in the target communication group, a group member sends a group red packet, and other group members reply when receiving the red packet: the semantics of at least N first messages are as follows: the electronic equipment determines that the semantics of at least N first messages meet the requirement of preset similarity, acquires target messages corresponding to the semantics, and if the target messages are 'thank you', the electronic equipment sends 'thank you' in a target communication group, so that the trouble of manual input by a user is avoided, and meanwhile, the messages can be replied quickly.
In the embodiment of the application, a first message in a target communication group is acquired; if the semantics of at least N first messages meet the requirement of preset similarity, acquiring target messages corresponding to the semantics; and sending the target message in the target communication group, and automatically acquiring and replying the target message under the condition that at least N first messages are possibly identical or similar in semantics, so that the trouble of manually inputting the target message by a user is avoided, the message can be quickly replied, and the condition that the message is not replied timely is avoided. The embodiment of the application solves the problems that in the prior art, under the scene that repeated messages need to be sent, the manual operation mode is complex in operation and the message reply is not timely easily caused.
In an optional embodiment, N is a preset value, or a value having a preset data relationship with M, or the number of the first messages in a preset time period before the first time of the target communication group;
m is the number of the first messages of the target communication group in a time period with preset duration.
When N is a preset numerical value, for example, in a preset period, if it is detected that the semantics of at least N first messages meet a preset similarity requirement, it is determined that the semantics of the at least N first messages are similar or identical; if N is a numerical value having a predetermined data relationship with M, that is, N and the total number M of messages satisfy the predetermined data relationship, for example, the predetermined data relationship is that the ratio of N to M is greater than or equal to a predetermined percentage, for example, the predetermined percentage is 60%, then it is determined that the semantics of at least N first messages are similar or identical. And N is the number of the first messages of the target communication group in a preset time period before the first moment, wherein the first moment is the current moment, and in the preset time period before the current moment, if the cumulative number of the first messages reaches N, the operation of acquiring the target messages corresponding to the semantics is executed.
In an optional embodiment, the targeted message comprises a first targeted message, a second targeted message, or a third targeted message;
the first target message is a message in the first message; such as the message with the higher repetition rate in the first message.
The second target message is an alternative message in an alternative message library of the electronic equipment; the alternative message library is a pre-established message, wherein the alternative message comprises alternative messages and semantics corresponding to the alternative messages.
The third target message is a message obtained from an external source, such as an external website or a cloud message library.
In an optional embodiment, the method comprises:
acquiring the alternative message;
storing the alternative messages into the alternative message library according to the semantic classification corresponding to the alternative messages; the same or similar semantics may be stored in each category.
The acquiring the alternative message comprises at least one of the following cases one to three:
in case one, the message from the external source is obtained as the alternative message.
An external source such as an external website or a cloud-based message repository. The communication APP can be connected to the network locally and simultaneously, and the alternative messages are updated to the local alternative message library remotely based on the alternative message classification in the local alternative message library, such as popular phrases, expression packages and the like of the current trendy, so that the alternative messages in the alternative message library are enriched continuously.
In case two, the first message is taken as an alternative message; for example, the candidate message is selected according to the repetition degree, the number of times of being referred, and the like of each first message. The alternative messages are continuously updated based on the received first messages of the APP locally, for example, the times of sending of group members of the dynamic graph with the designated meaning in the group chat are more, the situation that the dynamic graph is exploded can be judged, and the dynamic graph is added to an alternative message library instantly.
Selecting a second message as the alternative message according to the number of times of the second message being referred in the target communication group; the second message is a message sent by the electronic equipment, the electronic equipment automatically counts how many other group members reference the message, the more references indicate that the recognition degree of people to the message content is higher, and the statistical data is identified to the alternative message library.
And selecting the second message with higher referenced times as the alternative message according to the referenced times of the second message sent by the user in the target communication group, and continuously updating the alternative message library to enable the alternative message to be closer to the use habit of the user.
Optionally, in the alternative message library, the electronic device may automatically sort the alternative messages, for example, sort the latest and most frequently used alternative messages ahead, automatically delete outdated and no longer frequently used emoticons from the alternative message library, and periodically refresh the alternative message library, so as to prevent the data size in the alternative message library from being too large, and increase the maintenance cost and storage cost of the user. Meanwhile, the user can manage the addition or deletion of the alternative messages in the alternative message library by himself and remotely synchronize to the cloud.
In an optional embodiment, if the target message includes the message in the first message, the target message in the first message is called a fifth target message, that is, if the target message includes the fifth target message;
the acquiring the target message corresponding to the semantics comprises:
selecting the target message from fourth target messages, namely selecting the fifth target message; the fourth target message comprises the first P messages with the largest occurrence frequency in the target communication group in the first message corresponding to the semantics; wherein P is a positive integer.
If the first message sent by the group members in the target communication group is the largest in the preset period, the electronic equipment automatically sends the content, and replies immediately with the wind, such as praise messages in the target communication group.
If the message styles of the group members are different, the contents are judged to be expressed as target meanings based on semantic analysis, for example, the contents are expressed as thank you for a red-envelope sender, statistics is carried out on the contents, and one first message is randomly selected from first messages with the highest transmission quantity (for example, TOP 5) to serve as a fourth target message to be transmitted.
Thus, in a specific scenario, such as a work group, the message to be automatically returned needs to be careful, the sent message is kept as consistent as possible with other group members, and it is more reliable to randomly extract a message from messages with a higher sending frequency as a fourth target message. If the content discrimination of each first message is not high, one alternative message with the same or similar meaning as the target can be selected from the alternative message library for replying.
In an optional embodiment, the message type of the target message comprises at least one of text, emoticon, a combination of text and emoticon, and a picture;
the obtaining of the target message corresponding to the semantics comprises:
acquiring the message type of the message corresponding to the semantics;
and selecting the target message according to the priority of the message type.
Wherein the priority comprises at least one of a first priority, a second priority, a third priority, and a fourth priority;
the first priority is a preset priority of each message type; different message types correspond to different preset priorities, for example, the priorities are ordered as follows: and when the semantics are identified, selecting a target message according to the priority of the message corresponding to the semantics.
The second priority is a preset priority corresponding to the group type of the target communication group; the group type of different target communication groups can be set with priority, for example, when the group type is working, the highest priority is pure text, for the communication group of the working group, in consideration of caution, the pure text message with the most frequent message sending frequency in the group is preferably selected as the target message no matter how the message in the group is.
The third priority is determined by the occurrence frequency of the message type in the target communication group.
For example, if there are many messages of the type of the motion picture in the target communication group, the message type is the message of the motion picture in the message corresponding to the semantic meaning automatically sent to the user.
The fourth priority is determined according to at least two of the first priority, the second priority and the third priority, and at least two of the first priority, the second priority and the third priority are weighted and summed according to a preset weight value to determine the target message. Optionally, when the priorities include at least two of a first priority, a second priority, a third priority and a fourth priority, the electronic device may preset comparison coefficients of different priorities to compare the priorities of different types; for example, when the priorities include a first priority and a fourth priority, the comparison coefficient of the first priority is a, and the comparison coefficient of the fourth priority is b, the first priority and the fourth priority are multiplied by the respective comparison coefficients, and then the target message is selected according to the priorities.
As a third example, referring to fig. 3, fig. 3 shows a main application process for applying the message sending method provided in the embodiment of the present application, including the following steps:
step 301, listen for group messages within 5 minutes.
The instant messaging APP monitors messages of 5 minutes (the duration is dynamically configurable) in a certain group message for intelligent analysis, and can find corresponding information features based on a text and picture algorithm to determine whether the semantics are similar.
Step 302, it is determined that at least N messages whose semantics meet the requirement of the preset similarity exist in the group message.
If the feature rate of the message content or the relevance reaches 90% or more (the similarity threshold value is dynamically matched) or more, the preset similarity requirement is considered to be met.
Step 303, determining the message type of the candidate message corresponding to the semantic meaning, selecting the message type with higher priority as the target message, and automatically sending the target message to the target communication group.
The priority includes at least one of the first priority, the second priority, the third priority, and the fourth priority.
In the embodiment of the application, a first message in a target communication group is acquired; if the semantics of at least N first messages meet the requirement of preset similarity, acquiring a target message corresponding to the semantics; and sending the target message in the target communication group, and automatically acquiring and replying the target message under the condition that at least N first messages are possibly identical or similar in semantics, so that the trouble of manually inputting the target message by a user is avoided, the message can be quickly replied, and the condition that the message is not replied timely is avoided.
With the foregoing description of the message sending method provided in the embodiment of the present application, a message sending apparatus provided in the embodiment of the present application will be described below with reference to the accompanying drawings.
It should be noted that, in the message sending method provided in the embodiment of the present application, the execution main body may be a message sending apparatus, or a control module in the message sending apparatus for executing the message sending method. The message sending method provided by the embodiment of the present application is described by taking an example in which a message sending device executes the message sending method.
Referring to fig. 4, an embodiment of the present application further provides a message sending apparatus 400, including:
a message obtaining module 401, configured to obtain a first message in a target communication group; the first message is a message sent by a group member in the target communication group.
The target communication group may be a communication group in a communication APP, or a communication group in a communication function of a system of the electronic device. The target communication group may be a work-type group, a notification-type group, etc. Monitoring a first message in a target communication group in the operation process of the electronic equipment; the first message can be in the form of at least one of text, expression, combination of text and expression and picture; such as plain text, or a combination of text and expressions, etc.
A target obtaining module 402, configured to obtain a target message corresponding to semantics if the semantics of at least N first messages meet a preset similarity requirement; wherein N is a positive integer.
If the semantics of at least N first messages meet the requirement of preset similarity, the at least N first messages may be semantic repeated messages; when the electronic equipment receives each piece of first information, natural semantic analysis can be carried out on the first information, the semantics of each piece of first information are analyzed, then at least N pieces of semantics of the first information meeting the requirement of preset similarity are screened as target semantics, and the target information corresponding to the target semantics is obtained; alternatively, the target message may be a message in the first message, such as a message with the highest repetition degree in the first message; the message can also be a message local to the electronic device or a message in the cloud server.
Optionally, semantic analysis may be performed on the first message based on a word segmentation technology and natural language parsing, and whether the context semantic messages are the same, for example, a "harsh", "excellent", and the like praise language is determined, and the same semantics are obtained through parsing and combining the context semantics, so that the preset similarity requirement can be defined to be satisfied; for semantic analysis of pictures, each picture has unique characteristics, for example, content analysis of a motion picture is performed based on the MD5 value of the picture, if pictures with larger MD5 values and the same proportion appear in a target communication group in specified time, messages meeting the requirement of preset similarity can be considered, and the same picture messages can be sent in real time to participate in group chat.
Taking N as 10 as an example, if it is detected that the semantics of at least 10 first messages meet the preset similarity requirement in each preset period in the target communication group, determining the target semantics of at least 10 first messages, and then selecting the target message corresponding to the target semantics.
The preset similarity requirement may be that the semantic similarity of the N first messages is changed from a preset similarity threshold.
A message sending module 403, configured to send the target message in the target communication group.
After the target message is determined, the electronic equipment automatically sends the target message in the target communication group, so that the trouble that a user manually inputs the target message is avoided, meanwhile, the message can be quickly replied, and the situation that the message is not replied timely is avoided.
As a first example, referring to fig. 2, in the work category target communication group, a worker sends a notification message, and other group members a, B, and C reply with: the semantics of at least N first messages, such as 'receiving' and 'knowing', are as follows: if the target message is received, the electronic equipment (icon D) sends the received message in the target communication group, so that the trouble of manual input by a user is avoided, and meanwhile, the message can be quickly replied.
As a second example, in the target communication group, a group member sends a group red packet, and other group members reply when receiving the red packet: the semantics of at least N first messages are as follows: the electronic equipment determines that the semantics of at least N first messages meet the requirement of preset similarity, acquires target messages corresponding to the semantics, and if the target messages are 'thank you', the electronic equipment sends 'thank you' in a target communication group, so that the trouble of manual input by a user is avoided, and meanwhile, the messages can be replied quickly.
Optionally, N is a preset value, or a value having a preset data relationship with M, or the number of the first messages in a preset time period before the first time of the target communication group;
m is the number of the first messages of the target communication group in a time period with preset duration.
Optionally, the target message comprises a first target message, a second target message or a third target message;
the first target message is a message in the first message;
the second target message is an alternative message in an alternative message library of the electronic equipment;
the third target message is a message obtained from an external source.
Optionally, the apparatus 400 comprises:
the alternative acquisition module is used for acquiring the alternative message;
the storage module is used for storing the alternative messages into the alternative message library according to the semantic classification corresponding to the alternative messages;
the alternative acquisition module performs at least one of the following operations:
acquiring the message of the external source as the alternative message;
taking the first message as an alternative message;
selecting a second message as the alternative message according to the number of times of the second message being referred in the target communication group; the second message is a message sent by the electronic equipment.
Optionally, the target obtaining module 402 includes:
a selection submodule, configured to select the target message from a fourth target message if the target message includes a message in the first message; the fourth target message comprises the first P messages with the largest occurrence frequency in the target communication group in the first message corresponding to the semantics; wherein P is a positive integer.
Optionally, the message type of the target message includes at least one of a text, an expression, a combination of a text and an expression, and a picture;
the object acquisition module 402 comprises:
the type acquisition submodule is used for acquiring the message type of the message corresponding to the semantic meaning;
the priority acquisition submodule is used for selecting a target message according to the priority of the message type; wherein the priority comprises at least one of a first priority, a second priority, a third priority, and a fourth priority; the first priority is a preset priority of each message type, the second priority is a preset priority corresponding to a group type of the target communication group, the third priority is determined according to the occurrence frequency of the message type in the target communication group, and the fourth priority is determined according to at least two of the first priority, the second priority and the third priority.
In this embodiment of the present application, the message obtaining module 401 obtains a first message in a target communication group; if the semantics of at least N of the first messages meet a preset similarity requirement, the target obtaining module 402 obtains a target message corresponding to the semantics; the message sending module 403 sends the target message in the target communication group, and automatically obtains and replies the target message when at least N first messages may have the same or similar semantics, so as to avoid the trouble of manually inputting the target message by a user, and meanwhile, the message can be quickly replied, thereby avoiding the situation that the message is not replied in time.
The message sending device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiment of the present application is not particularly limited.
The message sending device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The message sending apparatus provided in the embodiment of the present application can implement each process implemented by the message sending apparatus in the method embodiments of fig. 1 to fig. 3, and is not described here again to avoid repetition.
Optionally, as shown in fig. 5, an electronic device 500 is further provided in the embodiment of the present application, and includes a processor 502, a memory 501, and a program or an instruction stored in the memory 501 and capable of running on the processor 502, where the program or the instruction is executed by the processor 502 to implement each process of the foregoing message sending method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 6 is a schematic hardware structure diagram of an electronic device 600 implementing various embodiments of the present application;
the electronic device 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the electronic device 600 may further comprise a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 610 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 610 is configured to obtain a first message in a target communication group; the first message is a message sent by group members in the target communication group;
if the semantics of at least N first messages meet the requirement of preset similarity, acquiring target messages corresponding to the semantics; wherein N is a positive integer;
and sending the target message in the target communication group.
Optionally, N is a preset value, or a value having a preset data relationship with M, or the number of the first messages in a preset time period before the first time of the target communication group;
m is the number of the first messages of the target communication group in a time period of preset duration.
Optionally, the target message comprises a first target message, a second target message or a third target message;
the first target message is a message in the first message;
the second target message is an alternative message in an alternative message library of the electronic equipment;
the third target message is a message obtained from an external source.
Optionally, a processor 610 for
Acquiring the alternative message;
storing the alternative message into the alternative message library according to the semantic classification corresponding to the alternative message;
the acquiring the alternative message comprises at least one of the following:
acquiring the message of the external source as the alternative message;
taking the first message as an alternative message;
selecting a second message as the alternative message according to the number of times of the second message being referred in the target communication group; the second message is a message sent by the electronic equipment.
Optionally, a processor 610 for
Selecting the target message from fourth target messages; the fourth target message comprises the first P messages with the maximum occurrence frequency in the target communication group in the first message corresponding to the semantics; wherein P is a positive integer.
Optionally, the message type of the target message includes at least one of a text, an expression, a combination of a text and an expression, and a picture;
a processor 610 configured to:
acquiring the message type of the message corresponding to the semantics;
selecting a target message according to the priority of the message type; wherein the priority comprises at least one of a first priority, a second priority, a third priority, and a fourth priority; the first priority is a preset priority of each message type, the second priority is a preset priority corresponding to the group type of the target communication group, the third priority is determined according to the occurrence frequency of the message types in the target communication group, and the fourth priority is determined according to at least two of the first priority, the second priority and the third priority.
In the embodiment of the application, a first message in a target communication group is obtained; if the semantics of at least N first messages meet the requirement of preset similarity, acquiring a target message corresponding to the semantics; and sending the target message in the target communication group, and automatically acquiring and replying the target message under the condition that at least N first messages are possibly identical or similar in semantics, so that the trouble of manually inputting the target message by a user is avoided, the message can be quickly replied, and the condition that the message is not replied timely is avoided.
It is to be understood that, in the embodiment of the present application, the input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics Processing Unit 6041 processes image data of a still picture or a video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 607 includes a touch panel 6071 and other input devices 6072. A touch panel 6071, also referred to as a touch screen. The touch panel 6071 may include two parts of a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 609 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 610 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the foregoing message sending method embodiment, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above-mentioned message sending method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as a system-on-chip, or a system-on-chip.
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 phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. A method for sending a message, the method comprising:
acquiring a first message in a target communication group; the first message is a message sent by group members in the target communication group;
if the semantics of at least N first messages meet the requirement of preset similarity, acquiring a target message corresponding to the semantics; wherein N is a positive integer;
automatically sending the target message in the target communication group;
the message type of the target message comprises at least one of a text, an expression, a combination of the text and the expression and a picture;
the acquiring the target message corresponding to the semantics comprises:
obtaining a message type of a message corresponding to the semantics;
selecting a target message according to the priority of the message type;
wherein the priority comprises at least one of a first priority, a second priority, a third priority, and a fourth priority;
the first priority is a preset priority of each message type, the second priority is a preset priority corresponding to a group type of the target communication group, the third priority is determined according to the occurrence frequency of the message type in the target communication group, and the fourth priority is determined according to at least two of the first priority, the second priority and the third priority.
2. The method according to claim 1, wherein N is a preset value, or a value having a preset data relationship with M, or the number of the first messages in a preset time period before the first time in the target communication group;
m is the number of the first messages of the target communication group in a time period with preset duration.
3. The message sending method according to claim 1, wherein the target message comprises a first target message, a second target message, or a third target message;
the first target message is a message in the first message;
the second target message is an alternative message in an alternative message library of the electronic equipment;
the third target message is a message obtained from an external source.
4. The method according to claim 3, characterized in that it comprises:
acquiring the alternative message;
storing the alternative message into the alternative message library according to the semantic classification corresponding to the alternative message;
the acquiring the alternative message comprises at least one of the following:
acquiring the message of the external source as the alternative message;
taking the first message as an alternative message;
selecting a second message as the alternative message according to the number of times of the second message being referred in the target communication group; the second message is a message sent by the electronic equipment.
5. The method according to claim 1, wherein if the target message includes a message in the first message;
the acquiring the target message corresponding to the semantics comprises:
selecting the target message from fourth target messages; the fourth target message comprises the first P messages with the maximum occurrence frequency in the target communication group in the first message corresponding to the semantics; wherein P is a positive integer.
6. A message transmission apparatus, characterized in that the apparatus comprises:
the message acquisition module is used for acquiring a first message in a target communication group; the first message is a message sent by group members in the target communication group;
the target acquisition module is used for acquiring a target message corresponding to the semantics if the semantics of at least N first messages meet the requirement of preset similarity; wherein N is a positive integer;
the message sending module is used for automatically sending the target message in the target communication group;
the message type of the target message comprises at least one of text, expression, combination of characters and expressions and pictures;
the target acquisition module includes:
the type acquisition submodule is used for acquiring the message type of the message corresponding to the semantic meaning;
the priority acquisition submodule is used for selecting a target message according to the priority of the message type;
wherein the priority comprises at least one of a first priority, a second priority, a third priority, and a fourth priority;
the first priority is a preset priority of each message type, the second priority is a preset priority corresponding to a group type of the target communication group, the third priority is determined according to the occurrence frequency of the message type in the target communication group, and the fourth priority is determined according to at least two of the first priority, the second priority and the third priority.
7. The message sending device according to claim 6, wherein N is a preset value, or a value having a preset data relationship with M, or the number of the first messages in a preset time period before the first time in the target communication group;
m is the number of the first messages of the target communication group in a time period with preset duration.
8. The message transmitting apparatus as claimed in claim 6, wherein the target message comprises a first target message, a second target message or a third target message;
the first target message is a message in the first message;
the second target message is an alternative message in an alternative message library of the electronic equipment;
the third target message is a message obtained from an external source.
9. The message transmission apparatus according to claim 8, wherein said apparatus comprises:
the alternative acquisition module is used for acquiring the alternative message;
the storage module is used for storing the alternative messages into the alternative message library according to the semantic classification corresponding to the alternative messages;
the alternative acquisition module performs at least one of the following operations:
acquiring the message of the external source as the alternative message;
taking the first message as an alternative message;
selecting a second message as the alternative message according to the number of times of the second message being referred in the target communication group; the second message is a message sent by the electronic equipment.
10. The message transmission apparatus according to claim 6, wherein the target acquisition module comprises:
a selection submodule, configured to, if the target message includes a message in the first message,
selecting the target message from fourth target messages; the fourth target message comprises the first P messages with the maximum occurrence frequency in the target communication group in the first message corresponding to the semantics; wherein P is a positive integer.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, which when executed by the processor, implement the steps of the message sending method according to any one of claims 1 to 5.
CN202110091303.9A 2021-01-22 2021-01-22 Message sending method and device Active CN112929255B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110091303.9A CN112929255B (en) 2021-01-22 2021-01-22 Message sending method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110091303.9A CN112929255B (en) 2021-01-22 2021-01-22 Message sending method and device

Publications (2)

Publication Number Publication Date
CN112929255A CN112929255A (en) 2021-06-08
CN112929255B true CN112929255B (en) 2023-04-07

Family

ID=76165230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110091303.9A Active CN112929255B (en) 2021-01-22 2021-01-22 Message sending method and device

Country Status (1)

Country Link
CN (1) CN112929255B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109952572A (en) * 2016-09-20 2019-06-28 谷歌有限责任公司 Suggestion response based on message paster
CN111565143A (en) * 2019-06-28 2020-08-21 上海掌门科技有限公司 Instant messaging method, equipment and computer readable storage medium
CN112187624A (en) * 2020-09-29 2021-01-05 维沃移动通信有限公司 Message reply method and device and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077341B (en) * 2013-07-19 2016-04-20 腾讯科技(北京)有限公司 The method and apparatus that keyword automatically replies mapping relations is generated in instant messaging
CN110120909B (en) * 2018-02-07 2021-12-07 腾讯科技(深圳)有限公司 Message transmission method and device, storage medium and electronic device
CN110233745A (en) * 2019-06-12 2019-09-13 阿里巴巴集团控股有限公司 Manage the method and device of group's message
CN110581772B (en) * 2019-09-06 2020-10-13 腾讯科技(深圳)有限公司 Instant messaging message interaction method and device and computer readable storage medium
CN111865758A (en) * 2020-06-19 2020-10-30 维沃移动通信(杭州)有限公司 Message display method and device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109952572A (en) * 2016-09-20 2019-06-28 谷歌有限责任公司 Suggestion response based on message paster
CN111565143A (en) * 2019-06-28 2020-08-21 上海掌门科技有限公司 Instant messaging method, equipment and computer readable storage medium
CN112187624A (en) * 2020-09-29 2021-01-05 维沃移动通信有限公司 Message reply method and device and electronic equipment

Also Published As

Publication number Publication date
CN112929255A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
WO2017096987A1 (en) Message display method and terminal device
CN108021316B (en) Message display method and device
CN108243086B (en) Message processing method and system
US8762875B2 (en) Posting activity visualization
CN107621886B (en) Input recommendation method and device and electronic equipment
WO2011117834A1 (en) Method and apparatus for indicating historical analysis chronicle information
WO2017190706A1 (en) Information pushing method, device, and system, and computer storage medium
CN113259221B (en) Message display method and device and electronic equipment
CN112286887A (en) File sharing method and device and electronic equipment
CN109543014B (en) Man-machine conversation method, device, terminal and server
CN112702261B (en) Information display method and device and electronic equipment
CN112947807A (en) Display method and device and electronic equipment
CN111813929A (en) Information processing method and device and electronic equipment
CN112787907A (en) Display method and device and electronic equipment
CN113454666A (en) Prediction and support for email deferral
CN108549681B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN113885746A (en) Message sending method and device and electronic equipment
CN112929255B (en) Message sending method and device
CN113127780A (en) Page loading method and device and electronic equipment
CN113676395B (en) Information processing method, related device and readable storage medium
CN113364915B (en) Information display method and device and electronic equipment
CN108491471A (en) A kind of processing method of text message, mobile terminal
CN112422735B (en) Information prompting method and device
CN113239212A (en) Information processing method and device and electronic equipment
CN112241317A (en) Information processing method and device

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