Information sending method, device, electronic device and storage medium
By judging the keyword matching degree between the information and the contact's historical information on the client, and asking the user for confirmation if there is no match, the problem of high error rate in information transmission is solved and the accuracy and reliability of information transmission are achieved.
Patent Information
- Application Number
- CN202111204670.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-15
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-10-15
AI Technical Summary
In the existing technology, errors are prone to occur when sending information, resulting in information being sent to mismatched contacts, and the error rate cannot be effectively reduced.
When the client detects that the message is being sent, it determines whether the keywords in the message content match the keywords in the contact's history information. If they do not match, it displays a query message and confirms whether to send it to ensure that the message is sent to the correct contact.
This method can avoid sending information to unmatched contacts, reduce the error rate of information sending, and ensure the accuracy of information delivery.
Smart Images

Figure CN113938465B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to an information sending method, device, electronic equipment and storage medium. Background Art
[0002] With the rapid development of Internet technology, users can communicate through clients. The client records multiple contacts with which the user can communicate. When the user communicates with a contact, the user can input the target information to be sent into the client. The client can send the target information to the server. In turn, the server can send the target information to the client used by the contact. Summary of the invention
[0003] The purpose of the embodiments of the present invention is to provide a method, device, electronic device and storage medium for sending information, so as to reduce the error rate of information sending. The specific technical solution is as follows:
[0004] In a first aspect of the implementation of the present invention, a method for sending information is first provided, the method being applied to a client, the method comprising:
[0005] When it is detected that a first user who logs in to the client needs to send a first message to a first contact, judging whether the first message matches the first contact based on the information content of the first message;
[0006] If the first information does not match the first contact, display an inquiry message; wherein the inquiry message is used to confirm whether to send the first information to the first contact if the first information does not match the first contact;
[0007] If a confirmation sending instruction for the inquiry message is received, the first information is sent to the first contact.
[0008] Optionally, judging whether the first information matches the first contact based on information content of the first information includes:
[0009] Acquire a keyword in the first message as a first keyword, and acquire a keyword in historical messages sent between the first user and the first contact as a second keyword;
[0010] Determining whether the first keyword matches the second keyword;
[0011] If the first keyword matches the second keyword, determining that the first information matches the first contact;
[0012] If the first keyword does not match the second keyword, it is determined that the first information does not match the first contact.
[0013] Optionally, the determining whether the first keyword matches the second keyword includes:
[0014] For each preset keyword level, determining the number of keywords belonging to the keyword level in the first keywords as a first number;
[0015] determining a corresponding first number of keyword levels greater than a preset threshold as a first keyword level;
[0016] For each preset keyword level, determining the number of keywords belonging to the keyword level in the second keywords as the second number;
[0017] determining a corresponding second number of keyword levels greater than the preset threshold as a second keyword level;
[0018] If the first keyword level is not lower than the second keyword level, it is determined that the first keyword matches the second keyword; wherein the contact person who is allowed to receive keywords with low keyword levels belongs to the contact person who is allowed to receive keywords with high keyword levels;
[0019] If the first keyword level is lower than the second keyword level, it is determined that the first keyword does not match the second keyword.
[0020] Optionally, determining the corresponding first number of keyword levels greater than a preset threshold as the first keyword level includes:
[0021] If there are multiple keyword levels whose corresponding first number is greater than the preset threshold, the lowest keyword level among the multiple keyword levels is determined as the first keyword level.
[0022] Optionally, after determining whether the first information matches the first contact based on the information content of the first information, the method further includes:
[0023] If the first information matches the first contact, the first information is sent to the first contact.
[0024] In a second aspect of the implementation of the present invention, there is also provided an information sending device, which is applied to a client and includes:
[0025] A judgment module, configured to, when detecting that a first user who logs into the client needs to send a first message to a first contact, judge whether the first message matches the first contact based on the information content of the first message;
[0026] a display module, configured to display an inquiry message if the first information does not match the first contact; wherein the inquiry message is used to confirm whether to send the first information to the first contact if the first information does not match the first contact;
[0027] The first sending module is configured to send the first information to the first contact if a confirmation sending instruction for the inquiry message is received.
[0028] Optionally, the judgment module is specifically configured to obtain a keyword in the first information as the first keyword, and obtain a keyword in historical information sent between the first user and the first contact as the second keyword;
[0029] Determining whether the first keyword matches the second keyword;
[0030] If the first keyword matches the second keyword, determining that the first information matches the first contact;
[0031] If the first keyword does not match the second keyword, it is determined that the first information does not match the first contact.
[0032] Optionally, the judgment module is specifically configured to determine, for each preset keyword level, the number of keywords in the first keywords that belong to the keyword level as the first number;
[0033] determining a corresponding first number of keyword levels greater than a preset threshold as a first keyword level;
[0034] For each preset keyword level, determining the number of keywords belonging to the keyword level in the second keywords as the second number;
[0035] determining a corresponding second number of keyword levels greater than the preset threshold as a second keyword level;
[0036] If the first keyword level is not lower than the second keyword level, it is determined that the first keyword matches the second keyword; wherein the contact person who is allowed to receive keywords with low keyword levels belongs to the contact person who is allowed to receive keywords with high keyword levels;
[0037] If the first keyword level is lower than the second keyword level, it is determined that the first keyword does not match the second keyword.
[0038] Optionally, the judgment module is specifically configured to determine the lowest keyword level among the multiple keyword levels as the first keyword level if there are multiple keyword levels whose corresponding first number is greater than a preset threshold.
[0039] Optionally, the device further comprises:
[0040] The second sending module is used for, after the judging module determines whether the first information matches the first contact based on the information content of the first information, to send the first information to the first contact if the first information matches the first contact.
[0041] In another aspect of the present invention, there is provided an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0042] Memory, used to store computer programs;
[0043] The processor is used to implement any of the above-mentioned information sending method steps when executing the program stored in the memory.
[0044] In another aspect of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any of the above-mentioned information sending methods is implemented.
[0045] In another aspect of the present invention, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute any of the above-mentioned information sending methods.
[0046] An information sending method provided by an embodiment of the present invention, when it is detected that a first user who logs in to a client needs to send a first message to a first contact, determines whether the first message matches the first contact based on the information content of the first message; if the first message does not match the first contact, displays an inquiry message; the inquiry message is used to confirm whether to send the first message to the first contact if the first message does not match the first contact; if a confirmation sending instruction for the inquiry message is received, the first message is sent to the first contact.
[0047] Based on the above processing, if the first message does not match the first contact, it indicates that the first contact may not be the contact to which the first user needs to send the first message. Therefore, the first user can be asked whether to send the message, which can prevent the first user from sending the message to an unmatched contact, thereby reducing the error rate of message sending to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0049] Figure 1 A flowchart of an information sending method provided in an embodiment of the present invention;
[0050] Figure 2 A flowchart of another information sending method provided in an embodiment of the present invention;
[0051] Figure 3 A flowchart of another information sending method provided in an embodiment of the present invention;
[0052] Figure 4 A flowchart of another information sending method provided in an embodiment of the present invention;
[0053] Figure 5 A structural diagram of an information sending device provided in an embodiment of the present invention;
[0054] Figure 6 The present invention is a structural diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0056] See also Figure 1 , Figure 1 This is a flow chart of an information sending method provided in an embodiment of the present invention. The method is applied to a client and may include the following steps:
[0057] S101: When it is detected that a first user who logs into the client needs to send a first message to a first contact, based on the information content of the first message, it is determined whether the first message matches the first contact. If not, step S102 is executed.
[0058] S102: Display an inquiry message.
[0059] The inquiry message is used to confirm whether to send the first information to the first contact when the first information does not match the first contact.
[0060] S103: If a confirmation sending instruction for the inquiry message is received, the first message is sent to the first contact.
[0061] Based on the information sending method provided by the embodiment of the present invention, if the first information does not match the first contact, it indicates that the first contact may not be the contact to which the first user needs to send the first information. Therefore, the first user can be asked whether to send the information, which can prevent the first user from sending the information to an unmatched contact, thereby reducing the error rate of information sending to a certain extent.
[0062] In one implementation, a corresponding enable button may be provided in the client for detecting whether the first information matches the first contact. When the user chooses to turn on the detection function through the enable button, the client may detect whether the first information matches the first contact, and determine whether to send the first information based on the information sending method provided in the embodiment of the present invention. When the user chooses to turn off the detection function through the enable button, the client may directly send the first information without performing other processing.
[0063] In step S101, the first contact is any contact with which the first user communicates based on the client. The first contact may be an individual user, or the first contact may also be a user group including multiple individual users.
[0064] When the first user needs to send information (ie, the first information in the embodiment of the present invention) to the first contact, the first user can input a display instruction for the conversation window of the first contact to the client. Accordingly, the client can display the conversation window between the first user and the first contact.
[0065] Then, the first user can edit the information to be sent (i.e., the first information) in the conversation window and click Send to input the first information to the client. Accordingly, when the client receives the first information input in the conversation window, it can determine that the first user needs to send the first information to the first contact. At this time, the client can determine whether the first information matches the first contact to determine whether to send the first information to the first contact.
[0066] In one implementation, the client can receive preset information content that is input by the first user and allowed to be received by the first contact, and store the preset information content locally. When it is detected that the first user needs to send a first message to the first contact, the preset information content corresponding to the first contact stored locally is obtained, and it is determined whether the information content of the first message contains the same part as the preset information content.
[0067] If the information content of the first message and the preset information content include the same part, the client can determine that the first message matches the first contact. If the information content of the first message and the preset information content do not include the same part, the client can determine that the first message does not match the first contact.
[0068] In another implementation, Figure 1 Based on Figure 2 , step S101 may include the following steps:
[0069] S1011: Obtain a keyword in the first message as the first keyword, and obtain a keyword in the historical message sent between the first user and the first contact as the second keyword.
[0070] S1012: Determine whether the first keyword matches the second keyword, if yes, execute step S1013, if no, execute step S1014.
[0071] S1013: Determine that the first information matches the first contact.
[0072] S1014: Determine that the first information does not match the first contact.
[0073] In one implementation, the client may perform word segmentation on the first information to obtain a keyword in the first information (ie, the first keyword), and perform word segmentation on the historical information sent between the first user and the first contact to obtain a keyword in the historical information (ie, the second keyword).
[0074] Then, the client can determine whether the first keyword matches the second keyword. If the first keyword matches the second keyword, the client can determine that the first information matches the first contact. If the first keyword does not match the second keyword, the client can determine that the first information does not match the first contact.
[0075] In one embodiment of the present invention, Figure 2 Based on Figure 3 , step S1012 may include the following steps:
[0076] S10121: For each preset keyword level, determine the number of keywords in the first keyword that belong to the keyword level as the first number.
[0077] S10122: Determine a corresponding first number of keyword levels that is greater than a preset threshold as a first keyword level.
[0078] S10123: For each preset keyword level, determine the number of keywords belonging to the keyword level in the second keywords as the second number.
[0079] S10124: Determine a corresponding second number of keyword levels that is greater than a preset threshold as a second keyword level.
[0080] S10125: If the first keyword level is not lower than the second keyword level, determine that the first keyword matches the second keyword.
[0081] Among them, the contact person who is allowed to receive the keywords with a low keyword level belongs to the contact person who is allowed to receive the keywords with a high keyword level.
[0082] S10126: If the first keyword level is lower than the second keyword level, it is determined that the first keyword does not match the second keyword.
[0083] The client can record the level of keywords (i.e., keyword level), and each keyword level corresponds to different keywords. For example, the keyword level may include: keyword level A, keyword level B, and keyword level C. Among them, keyword level A may correspond to official terms keywords (e.g., work plan, report, leader, etc.), keyword level B may correspond to daily terms keywords (e.g., pick up express, supermarket, etc.), and keyword level C may correspond to private terms keywords (e.g., password, bank card, real estate certificate, etc.).
[0084] The level of each keyword level indicates the association between contacts that are allowed to receive keywords corresponding to each keyword level. Contacts that are allowed to receive keywords with low keyword levels belong to contacts that are allowed to receive keywords with high keyword levels. In other words, keywords with high keyword levels can be sent to contacts that are allowed to receive keywords with low keyword levels, but keywords with low keyword levels cannot be sent to contacts that are allowed to receive keywords with high keyword levels.
[0085] Exemplarily, a contact that is allowed to receive keywords corresponding to keyword level A may be referred to as contact A. A contact that is allowed to receive keywords corresponding to keyword level B may be referred to as contact B. A contact that is allowed to receive keywords corresponding to keyword level C may be referred to as contact C. Keyword level A is higher than keyword level B and keyword level C, indicating that contact B and contact C belong to contact A, that is, official terms keywords may be sent to contact B and contact C, but daily terms keywords and private terms keywords may not be sent to contact A. Keyword level B is higher than keyword level C, indicating that contact C belongs to contact B, that is, daily terms keywords may be sent to contact C, but private terms keywords may not be sent to contact B.
[0086] In one implementation, after obtaining the keywords in the first information, the client can determine the keyword level to which each first keyword belongs. Then, for each preset keyword level, the client can determine the number of first keywords belonging to the keyword level (i.e., the first number) among the first keywords. If the keyword level corresponding to the first number greater than the preset threshold is one, the client can determine the keyword level as the first keyword level.
[0087] In one embodiment of the present invention, step S10121 may include the following steps: if there are multiple keyword levels whose corresponding first number is greater than a preset threshold, determining the lowest keyword level among the multiple keyword levels as the first keyword level.
[0088] Since keywords with a high keyword level can be sent to contacts that allow receiving keywords with a low keyword level, keywords with a low keyword level cannot be sent to contacts that allow receiving keywords with a high keyword level.
[0089] Therefore, when there are multiple keyword levels whose corresponding first number is greater than the preset threshold, in order to further reduce the error rate of information transmission, the client may determine the lowest keyword level among the multiple keyword levels as the first keyword level.
[0090] Similarly, the client may determine the second keyword level according to the second keyword in the historical information sent between the first user and the first contact.
[0091] The contact to which the first user needs to send the first message is: a contact who is allowed to receive keywords of the first keyword level. The first contact is: a contact who is allowed to receive keywords of the second keyword level.
[0092] If the first keyword level is not lower than the second keyword level, it indicates that the contacts allowed to receive keywords of the first keyword level include the first contact, and the first message can be sent to the first contact, that is, the first contact is the contact to which the first user needs to send the first message. Therefore, the client can determine that the first keyword matches the second keyword, that is, it can determine that the first message matches the first contact.
[0093] If the first keyword level is lower than the second keyword level, it indicates that the contacts allowed to receive keywords of the first keyword level do not include the first contact, and the first message cannot be sent to the first contact, that is, the first contact is not the contact to which the first user needs to send the first message. Therefore, the client can determine that the first keyword does not match the second keyword, that is, it can determine that the first message does not match the first contact.
[0094] In addition, if there is no corresponding first number of keyword levels greater than the preset threshold among the preset multiple keyword levels, the client can directly determine that the first keyword matches the second keyword, that is, the client can directly determine that the first information matches the first contact.
[0095] In one embodiment of the present invention, the second keyword level corresponding to the first contact may also be set by the first user.
[0096] The first user can input the second keyword level corresponding to the first contact into the client. When receiving the second keyword level input by the first user, the client can record the second keyword level corresponding to the first contact locally. Furthermore, when it is detected that the first user who has logged into the client needs to send a first message to the first contact, the client can determine whether the second keyword level corresponding to the first contact is recorded locally. If the second keyword level corresponding to the first contact is recorded locally, the client can directly obtain the second keyword level stored locally. Subsequently, the client can directly determine whether the obtained second keyword level matches the first keyword level corresponding to the first message.
[0097] After obtaining the second keyword level corresponding to the first contact in the local record, the client can also determine the generation time of obtaining the second keyword level. If the generation time of the second keyword level is greater than the preset time, the client can update the second keyword level.
[0098] In one implementation, the client may display a reminder message to remind the first user to reset the second keyword level corresponding to the first contact. If the second keyword level input by the first user is received, the received second keyword level is used as the updated second keyword level. If the second keyword level input by the first user is not received, the client may obtain the historical information sent between the first user and the first contact, and determine the updated second keyword level based on the keywords in the obtained historical information. Subsequently, the client may determine whether the updated second keyword level matches the first keyword level corresponding to the first information.
[0099] In one embodiment of the present invention, if the first contact is a newly added contact of the first user, the client cannot obtain the historical information sent between the first user and the first contact because the first user and the first contact may not have sent any information. If the client does not obtain the historical information sent between the first user and the first contact, the client can obtain the first user's note information on the first contact. Then, the client can determine the keyword level corresponding to the first contact based on the note information of the first contact.
[0100] For example, if the remark information of the first contact belongs to the work type (e.g., colleague, leader, etc.), the first contact can correspond to the keyword level corresponding to the official terminology keyword. If the remark information of the first contact belongs to the daily type (e.g., express delivery, takeout, etc.), the first contact can correspond to the keyword level corresponding to the daily terminology keyword. If the remark information of the first contact belongs to the intimate type (e.g., family, friends, etc.), the first contact can correspond to the keyword level corresponding to the private terminology keyword.
[0101] In one embodiment of the present invention, after step S101, the method may further include the following steps: if the first information matches the first contact, sending the first information to the first contact.
[0102] In one implementation, if the client determines that the first information matches the first contact, indicating that the first contact is a contact to whom the first user needs to send the first information, the client may send the first information to the first contact.
[0103] With respect to step S102 and step S103, if the client determines that the first information does not match the first contact, it indicates that the first contact may not be the contact to which the first user needs to send the first information. Therefore, in order to avoid sending the first information to the wrong contact, the client may display a query message to remind the first user to confirm whether to send the first information to the first contact if the first information does not match the first contact.
[0104] If the first contact is a contact to whom the first user needs to send the first message, the first user can input a confirmation sending instruction to the client. Correspondingly, when the client receives the confirmation sending instruction, it can send the first message to the first contact.
[0105] If the first contact is not the contact to whom the first user needs to send the first message, the first user may input a cancel sending instruction to the client. Accordingly, when the client receives the cancel sending instruction, it may not send the first message to the first contact, that is, the client may not process it.
[0106] See also Figure 4 , Figure 4 The present invention is a flowchart of another information sending method provided in an embodiment of the present invention.
[0107] When the first user needs to send the first message to the first contact, the first user can open a new session, that is, the first user can input a display instruction for the session window of the first contact to the client. The client can display the session window between the first user and the first contact.
[0108] Then, the client can determine whether the session rating (which may be referred to as the first session rating) of the current session (ie, the session between the first user and the first contact) is recorded locally, that is, the client can determine whether the second keyword level corresponding to the first contact is recorded locally.
[0109] If the first session rating is recorded locally, that is, the second keyword level corresponding to the first contact is recorded locally, the client can determine whether the first session rating has expired, that is, determine whether the generation time of the second keyword level is greater than the preset time. If the generation time of the second keyword level is greater than the preset time (that is, the first session rating has expired), the client can call the service port for rating with the identifier of the current session as a parameter, that is, the client can send the identifier of the current session to the server. The server can obtain the historical information sent between the first user and the first contact based on the current session identifier, and determine the second keyword level corresponding to the first contact based on the second keyword in the historical information, and send the second keyword level to the client. Correspondingly, the client can use the second keyword level as the first session rating. If the first session rating is not recorded locally, the client can call the service port for rating with the identifier of the current session as a parameter.
[0110] If the first conversation rating between the first user and the first contact is recorded locally and has not expired, that is, the second keyword level corresponding to the first contact is recorded locally and the generation time of the second keyword level is not greater than the preset time, the client can directly obtain the first conversation rating.
[0111] The first user can edit the first information in the conversation window and click Send to input the first information to the client. The client can call the service port to rate the first information, that is, the client can send the first information to the server. The server can determine the first keyword level according to the first keyword in the first information, and send the first keyword level to the client. Accordingly, the client can use the received first keyword level as the first information rating.
[0112] Furthermore, the client can determine whether the first information rating is less than the current session rating (i.e., the first session rating), that is, the client determines whether the first information matches the first contact. If the first information rating is less than the first session rating, that is, the first information does not match the first contact, the client can determine that the first contact may not be the contact to which the first user needs to send the first information. Therefore, the client can display a pop-up reminder to ask the first user whether to continue sending the first information, that is, the client can display an inquiry message to ask the first user whether to send the first information to the first contact if the first information does not match the first contact.
[0113] If the first contact is a contact to whom the first user needs to send the first message, the first user can instruct the client to continue sending the first message, that is, the first user can input a confirmation sending instruction to the client. Accordingly, when the client receives the confirmation sending instruction, it can send the first message to the first contact. If the first contact is not a contact to whom the first user needs to send the first message, the first user can instruct the client to cancel sending the first message, that is, the first user can input a cancellation sending instruction to the client. Accordingly, when the client receives the cancellation sending instruction, it can not send the first message to the first contact, that is, the client can not process it.
[0114] If the first message rating is not less than the first conversation rating, that is, the first message matches the first contact, indicating that the first contact is the contact to which the first user needs to send the first message, the client may send the first message to the first contact.
[0115] Based on the above processing, if the first message does not match the first contact, it indicates that the first contact may not be the contact to which the first user needs to send the first message. Therefore, the first user can be asked whether to send the message, which can prevent the first user from sending the message to an unmatched contact, thereby reducing the error rate of message sending to a certain extent.
[0116] and Figure 1 Corresponding to the method embodiment of Figure 5 , Figure 5 A structural diagram of an information sending device provided in an embodiment of the present invention, wherein the device is applied to a client and comprises:
[0117] A judgment module 501, configured to, when detecting that a first user who logs into the client needs to send a first message to a first contact, judge whether the first message matches the first contact based on the information content of the first message;
[0118] Display module 502, used for displaying an inquiry message if the first information does not match the first contact; wherein the inquiry message is used to confirm whether to send the first information to the first contact if the first information does not match the first contact;
[0119] The first sending module 503 is configured to send the first information to the first contact if a confirmation sending instruction for the inquiry message is received.
[0120] Optionally, the judgment module 501 is specifically configured to obtain a keyword in the first information as the first keyword, and obtain a keyword in the historical information sent between the first user and the first contact as the second keyword;
[0121] Determining whether the first keyword matches the second keyword;
[0122] If the first keyword matches the second keyword, determining that the first information matches the first contact;
[0123] If the first keyword does not match the second keyword, it is determined that the first information does not match the first contact.
[0124] Optionally, the judgment module 501 is specifically configured to determine, for each preset keyword level, the number of keywords belonging to the keyword level in the first keywords as the first number;
[0125] determining a corresponding first number of keyword levels greater than a preset threshold as a first keyword level;
[0126] For each preset keyword level, determining the number of keywords belonging to the keyword level in the second keywords as the second number;
[0127] determining a corresponding second number of keyword levels greater than the preset threshold as a second keyword level;
[0128] If the first keyword level is not lower than the second keyword level, it is determined that the first keyword matches the second keyword; wherein the contact person who is allowed to receive keywords with low keyword levels belongs to the contact person who is allowed to receive keywords with high keyword levels;
[0129] If the first keyword level is lower than the second keyword level, it is determined that the first keyword does not match the second keyword.
[0130] Optionally, the judgment module 501 is specifically configured to determine the lowest keyword level among the multiple keyword levels as the first keyword level if there are multiple keyword levels whose corresponding first number is greater than a preset threshold.
[0131] Optionally, the device further comprises:
[0132] The second sending module is used for, after the judging module determines whether the first information matches the first contact based on the information content of the first information, to send the first information to the first contact if the first information matches the first contact.
[0133] Based on the information sending device provided by the embodiment of the present invention, if the first information does not match the first contact, it indicates that the first contact may not be the contact to which the first user needs to send the first information. Therefore, the first user can be asked whether to send the information, which can prevent the first user from sending the information to an unmatched contact, thereby reducing the error rate of information sending to a certain extent.
[0134] The embodiment of the present invention further provides an electronic device, such as Figure 6 As shown, it includes a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604.
[0135] Memory 603, used for storing computer programs;
[0136] The processor 601 is used to execute the program stored in the memory 603 to implement the following steps:
[0137] When it is detected that a first user who logs in to the client needs to send a first message to a first contact, judging whether the first message matches the first contact based on the information content of the first message;
[0138] If the first information does not match the first contact, display an inquiry message; wherein the inquiry message is used to confirm whether to send the first information to the first contact if the first information does not match the first contact;
[0139] If a confirmation sending instruction for the inquiry message is received, the first information is sent to the first contact.
[0140] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0141] The communication interface is used for communication between the above electronic device and other devices.
[0142] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0143] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0144] Based on the electronic device provided by the embodiment of the present invention, if the first information does not match the first contact, it indicates that the first contact may not be the contact to which the first user needs to send the first information. Therefore, the first user can be asked whether to send the information, which can prevent the first user from sending the information to an unmatched contact, thereby reducing the error rate of information sending to a certain extent.
[0145] In another embodiment of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the information sending method described in any one of the above embodiments is implemented.
[0146] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the information sending method described in any one of the above embodiments.
[0147] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0148] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0149] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0150] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A method for sending information, It is characterized in that The method is applied to a client, and the method comprises: When it is detected that a first user who logs in to the client needs to send a first message to a first contact, judging whether the first message matches the first contact based on the information content of the first message; If the first information does not match the first contact, display an inquiry message; wherein the inquiry message is used to confirm whether to send the first information to the first contact if the first information does not match the first contact; If a confirmation sending instruction for the inquiry message is received, sending the first information to the first contact; The determining, based on the information content of the first information, whether the first information matches the first contact includes: Acquire a keyword in the first message as a first keyword, and acquire a keyword in historical messages sent between the first user and the first contact as a second keyword; Determining whether the first keyword matches the second keyword; If the first keyword matches the second keyword, determining that the first information matches the first contact; If the first keyword does not match the second keyword, determining that the first information does not match the first contact; The determining whether the first keyword matches the second keyword includes: For each preset keyword level, determining the number of keywords belonging to the keyword level in the first keywords as a first number; determining a corresponding first number of keyword levels greater than a preset threshold as a first keyword level; For each preset keyword level, determining the number of keywords belonging to the keyword level in the second keywords as the second number; determining a corresponding second number of keyword levels greater than the preset threshold as a second keyword level; If the first keyword level is not lower than the second keyword level, it is determined that the first keyword matches the second keyword; wherein the contact person who is allowed to receive keywords with low keyword levels belongs to the contact person who is allowed to receive keywords with high keyword levels; If the first keyword level is lower than the second keyword level, it is determined that the first keyword does not match the second keyword.
2. The method according to claim 1, It is characterized in that The determining, as the first keyword level, a corresponding first number of keyword levels greater than a preset threshold value includes: If there are multiple keyword levels whose corresponding first number is greater than the preset threshold, the lowest keyword level among the multiple keyword levels is determined as the first keyword level.
3. The method according to claim 1, It is characterized in that After determining whether the first information matches the first contact based on the information content of the first information, the method further includes: If the first information matches the first contact, the first information is sent to the first contact.
4. An information sending device, It is characterized in that The device is applied to a client, and comprises: A judgment module, configured to, when detecting that a first user who logs into the client needs to send a first message to a first contact, judge whether the first message matches the first contact based on the information content of the first message; a display module, configured to display an inquiry message if the first information does not match the first contact; wherein the inquiry message is used to confirm whether to send the first information to the first contact if the first information does not match the first contact; A first sending module, configured to send the first information to the first contact if a confirmation sending instruction for the inquiry message is received; The judgment module is specifically configured to obtain a keyword in the first information as a first keyword, and obtain a keyword in historical information sent between the first user and the first contact as a second keyword; Determining whether the first keyword matches the second keyword; If the first keyword matches the second keyword, determining that the first information matches the first contact; If the first keyword does not match the second keyword, determining that the first information does not match the first contact; The determination module is specifically configured to determine, for each preset keyword level, the number of keywords belonging to the keyword level in the first keywords as the first number; determining a corresponding first number of keyword levels greater than a preset threshold as a first keyword level; For each preset keyword level, determining the number of keywords belonging to the keyword level in the second keywords as the second number; determining a corresponding second number of keyword levels greater than the preset threshold as a second keyword level; If the first keyword level is not lower than the second keyword level, it is determined that the first keyword matches the second keyword; wherein the contact person who is allowed to receive keywords with low keyword levels belongs to the contact person who is allowed to receive keywords with high keyword levels; If the first keyword level is lower than the second keyword level, it is determined that the first keyword does not match the second keyword.
5. The device according to claim 4, It is characterized in that The judgment module is specifically configured to determine the lowest keyword level among the multiple keyword levels as the first keyword level if there are multiple keyword levels whose corresponding first number is greater than a preset threshold.
6. The device according to claim 4, It is characterized in that The device also includes: The second sending module is used for, after the judging module determines whether the first information matches the first contact based on the information content of the first information, to send the first information to the first contact if the first information matches the first contact.
7. An electronic device, It is characterized in that It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 3 when executing a program stored in a memory.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Message processing method and device, electronic equipment and storage medium
CN112540712A
