CN113938465A - Information sending method and device, electronic equipment and storage medium - Google Patents

Information sending method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113938465A
CN113938465A CN202111204670.1A CN202111204670A CN113938465A CN 113938465 A CN113938465 A CN 113938465A CN 202111204670 A CN202111204670 A CN 202111204670A CN 113938465 A CN113938465 A CN 113938465A
Authority
CN
China
Prior art keywords
keyword
information
contact
level
matched
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111204670.1A
Other languages
Chinese (zh)
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202111204670.1A priority Critical patent/CN113938465A/en
Publication of CN113938465A publication Critical patent/CN113938465A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/38Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Library & Information Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides an information sending method, an information sending device, electronic equipment and a storage medium, wherein when a first user logging in a client side needs to send first information to a first contact person, whether the first information is matched with the first contact person is judged based on the information content of the first information; if not, displaying the inquiry message; the inquiry message is used for confirming whether the first information is sent to the first contact person or not under the condition that the first information is not matched with the first contact person; and if a confirmation sending instruction aiming at the inquiry message is received, sending the first information to the first contact person. Based on the above processing, if the first information does not match the first contact, it indicates that the first contact may not be the contact that the first user needs to send the first information. Therefore, whether the first user sends the information or not can be inquired, the first user can be prevented from sending the information to unmatched contacts, and further the error rate of information sending can be reduced to a certain extent.

Description

Information sending method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to an information sending method, an information sending device, an electronic device, and a storage medium.
Background
With the rapid development of internet technology, users can communicate through clients. The client records a plurality of contacts with which the user can communicate, and when the user communicates with one contact, the user can input target information to be sent to the client. The client may send the target information to the server. In turn, the server may send the target information to the client used by the contact.
Disclosure of Invention
An object of embodiments of the present invention is to provide an information transmission method, an information transmission apparatus, an electronic device, and a storage medium, so as to reduce an error rate of information transmission. The specific technical scheme is as follows:
in a first aspect of the present invention, an information sending method is first provided, where the method is applied to a client, and the method includes:
when detecting that a first user logging in the client needs to send first information to a first contact person, judging whether the first information is matched with the first contact person or not based on the information content of the first information;
displaying an inquiry message if the first information does not match the first contact; wherein the query message is used for confirming whether the first information is sent to the first contact or not under the condition that the first information is not matched with the first contact;
and if a confirmation sending instruction aiming at the inquiry message is received, sending the first information to the first contact.
Optionally, the determining whether the first information is matched with the first contact based on the information content of the first information includes:
acquiring a keyword in the first information as a first keyword, and acquiring a keyword in history information sent between the first user and the first contact as a second keyword;
judging whether the first keyword is matched with the second keyword;
if the first keyword is matched with the second keyword, determining that the first information is matched with the first contact person;
and if the first keyword is not matched with the second keyword, determining that the first information is not matched with the first contact person.
Optionally, the determining whether the first keyword and the second keyword are matched includes:
determining the number of keywords belonging to each keyword grade in the first keywords as a first number aiming at each preset keyword grade;
determining the corresponding keyword grades of which the first number is larger than a preset threshold value as first keyword grades;
determining the number of keywords belonging to the keyword level in the second keywords as a second number aiming at each preset keyword level;
determining the keyword level with the corresponding second number larger than the preset threshold value as a second keyword level;
if the first keyword level is not lower than the second keyword level, determining that the first keyword is matched with the second keyword; wherein, the contact person allowed to receive the keywords with the low keyword level belongs to the contact person allowed to receive the keywords with the high keyword level;
and if the first keyword level is lower than the second keyword level, determining that the first keyword is not matched with the second keyword.
Optionally, the determining, as the first keyword level, the keyword level of which the corresponding first number is greater than the preset threshold includes:
and if the corresponding keyword grades of which the first number is larger than the preset threshold value are multiple, determining the lowest keyword grade in the multiple keyword grades as the first keyword grade.
Optionally, after the determining whether the first information matches the first contact based on the information content of the first information, the method further includes:
and if the first information is matched with the first contact person, sending the first information to the first contact person.
In a second aspect of the present invention, there is also provided an information sending apparatus, applied to a client, the apparatus including:
the judging module is used for judging whether first information is matched with a first contact person or not based on the information content of the first information when detecting that a first user logging in the client needs to send the first information to the first contact person;
a display module for displaying an inquiry message if the first information does not match the first contact; wherein the query message is used for confirming whether the first information is sent to the first contact or not under the condition that the first information is not matched with the first contact;
and the first sending module is used for sending the first information to the first contact if receiving a confirmation sending instruction aiming at the inquiry message.
Optionally, the determining module is specifically configured to obtain a keyword in the first information as a first keyword, and obtain a keyword in history information sent between the first user and the first contact as a second keyword;
judging whether the first keyword is matched with the second keyword;
if the first keyword is matched with the second keyword, determining that the first information is matched with the first contact person;
and if the first keyword is not matched with the second keyword, determining that the first information is not matched with the first contact person.
Optionally, the determining module is specifically configured to determine, as a first number, a number of keywords belonging to each preset keyword level in the first keywords;
determining the corresponding keyword grades of which the first number is larger than a preset threshold value as first keyword grades;
determining the number of keywords belonging to the keyword level in the second keywords as a second number aiming at each preset keyword level;
determining the keyword level with the corresponding second number larger than the preset threshold value as a second keyword level;
if the first keyword level is not lower than the second keyword level, determining that the first keyword is matched with the second keyword; wherein, the contact person allowed to receive the keywords with the low keyword level belongs to the contact person allowed to receive the keywords with the high keyword level;
and if the first keyword level is lower than the second keyword level, determining that the first keyword is not matched with the second keyword.
Optionally, the determining module is specifically configured to determine, if there are multiple keyword ranks of which the corresponding first number is greater than the preset threshold, a lowest keyword rank of the multiple keyword ranks as the first keyword rank.
Optionally, the apparatus further comprises:
and the second sending module is used for sending the first information to the first contact if the first information is matched with the first contact after the judging module executes the information content based on the first information and judges whether the first information is matched with the first contact.
In another aspect of the present invention, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing any of the above-described information transmission method steps when executing a program stored in the memory.
In yet another aspect of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, and the computer program is executed by a processor to implement any one of the above-mentioned information transmission methods.
In yet another aspect of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the information transmission method described in any one of the above.
According to the information sending method provided by the embodiment of the invention, when a first user logging in a client side needs to send first information to a first contact person, whether the first information is matched with the first contact person is judged based on the information content of the first information; if the first information does not match the first contact, displaying an inquiry message; the inquiry message is used for confirming whether the first information is sent to the first contact person or not under the condition that the first information is not matched with the first contact person; and if a confirmation sending instruction aiming at the inquiry message is received, sending the first information to the first contact person.
Based on the above processing, if the first information does not match the first contact, it indicates that the first contact may not be the contact that the first user needs to send the first information. Therefore, whether the first user sends the information or not can be inquired, the first user can be prevented from sending the information to unmatched contacts, and further the error rate of information sending can be reduced to a certain extent.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a flowchart of an information sending method provided in an embodiment of the present invention;
fig. 2 is a flowchart of another information sending method provided in the embodiment of the present invention;
fig. 3 is a flowchart of another information sending method provided in the embodiment of the present invention;
fig. 4 is a flowchart of another information sending method provided in the embodiment of the present invention;
fig. 5 is a structural diagram of an information transmitting apparatus provided in an embodiment of the present invention;
fig. 6 is a structural diagram of an electronic device provided in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of an information sending method provided in an embodiment of the present invention, where the method is applied to a client, and the method may include the following steps:
s101: when it is detected that a first user logging in a client needs to send first information to a first contact, whether the first information is matched with the first contact is judged based on the information content of the first information, and if not, step S102 is executed.
S102: the inquiry message is displayed.
The inquiry message is used for confirming whether the first information is sent to the first contact person or not under the condition that the first information is not matched with the first contact person.
S103: and if a confirmation sending instruction aiming at the inquiry message is received, sending the first information to the first contact person.
Based on the information sending method provided by the embodiment of the invention, if the first information is not matched with the first contact person, the first contact person is possibly not the contact person of which the first user needs to send the first information. Therefore, whether the first user sends the information or not can be inquired, the first user can be prevented from sending the information to unmatched contacts, and further the error rate of information sending can be reduced to a certain extent.
In one implementation, a corresponding enable button may be provided in the client for a manner of detecting whether the first information matches the first contact. When the user selects to start the detection function through the enable button, the client can detect whether the first information is matched with the first contact person, and determine whether to send the first information based on the information sending method provided by the embodiment of the invention. When the user selects to close the detection function through the enable button, the client can directly send the first information without performing other processing.
In step S101, the first contact is any contact with which the first user communicates on a client basis. The first contact may be an individual user or the first contact may be a user group comprising a plurality of individual users.
When the first user needs to send information (i.e. the first information in the embodiment of the present invention) to the first contact, the first user may input a display instruction of a session window for the first contact to the client. Accordingly, the client may display a conversation window of the first user with the first contact.
Then, the first user can edit the information (i.e., the first information) to be sent in the session window and click to send to input the first information to the client. Correspondingly, when the client receives the first information input in the session window, the client can determine that the first user needs to send the first information to the first contact person, and at this time, the client can judge whether the first information is matched with the first contact person, so as to determine whether to send the first information to the first contact person.
In one implementation, the client may receive preset information content, which is input by the first user and allows the first contact to receive, and store the preset information content locally. When detecting that a first user needs to send first information to a first contact person, acquiring preset information content corresponding to the first contact person stored locally, and judging whether the information content of the first information and the preset information content contain the same part.
The client may determine that the first information matches the first contact if the information content of the first information contains the same portion as the preset information content. The client may determine that the first information does not match the first contact if the information content of the first information does not contain the same portion as the preset information content.
In another implementation, on the basis of fig. 1, referring to fig. 2, step S101 may include the following steps:
s1011: and acquiring a keyword in the first information as a first keyword, and acquiring a keyword in history information sent between the first user and the first contact as a second keyword.
S1012: and judging whether the first keyword is matched with the second keyword, if so, executing step S1013, and if not, executing step S1014.
S1013: it is determined that the first information matches the first contact.
S1014: it is determined that the first information does not match the first contact.
In one implementation, the client may perform word segmentation on the first information to obtain a keyword (i.e., a first keyword) in the first information, and perform word segmentation on the history information sent between the first user and the first contact to obtain a keyword (i.e., a second keyword) in the history information.
Then, the client may determine whether the first keyword matches the second keyword, and if the first keyword matches the second keyword, the client may determine that the first information matches the first contact. If the first keyword does not match the second keyword, the client may determine that the first information does not match the first contact.
In an embodiment of the present invention, on the basis of fig. 2, referring to fig. 3, step S1012 may include the following steps:
s10121: and determining the number of the keywords belonging to the keyword level in the first keywords as a first number aiming at each preset keyword level.
S10122: and determining the corresponding keyword grades of which the first number is larger than a preset threshold value as first keyword grades.
S10123: and determining the number of the keywords belonging to the keyword level in the second keywords as a second number aiming at each preset keyword level.
S10124: and determining the keyword level with the corresponding second number larger than a preset threshold value as a second keyword level.
S10125: and if the first keyword level is not lower than the second keyword level, determining that the first keyword is matched with the second keyword.
Wherein the contacts permitted to receive keywords of a low keyword level belong to contacts permitted to receive keywords of a high keyword level.
S10126: and if the first keyword level is lower than the second keyword level, determining that the first keyword is not matched with the second user keyword.
The client may record the rankings of the keywords (i.e., keyword rankings), each keyword ranking corresponding to a different keyword. For example, keyword rankings may include: keyword level a, keyword level B, and keyword level C. The keyword level a may correspond to an official phrase keyword (e.g., work plan, report, leader, etc.), the keyword level B may correspond to a daily phrase keyword (e.g., express, supermarket, etc.), and the keyword level C may correspond to a private phrase keyword (e.g., password, bank card, house property certificate, etc.).
The high and low of each keyword level represents the association relationship between the contacts that are allowed to receive the keywords corresponding to each keyword level. The contact person permitted to receive the keyword of the low keyword level belongs to the contact person permitted to receive the keyword of the high keyword level, that is, the keyword of the high keyword level may be transmitted to the contact person permitted to receive the keyword of the low keyword level, and the keyword of the low keyword level may not be transmitted to the contact person permitted to receive the keyword of the high keyword level.
For example, 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. The keyword level a is higher than the keyword level B and the keyword level C, indicating that the contact B and the contact C belong to the contact a, that is, official term keywords may be sent to the contact B and the contact C, and daily term keywords and private term keywords may not be sent to the contact a. A keyword level B higher than the keyword level C indicates that the contact C belongs to the contact B, that is, the contact C may be sent a keyword for a daily term, and the contact B may not be sent a keyword for a private term.
In one implementation, after obtaining the keywords in the first information, the client may determine a keyword level to which each first keyword belongs. Then, for each preset keyword level, the client may determine the number (i.e., the first number) of the first keywords belonging to the keyword level. If the corresponding keyword level of which the first number is greater than the preset threshold value is one, the client may determine the keyword level as the first keyword level.
In one embodiment of the present invention, step S10121 may include the steps of: and if the corresponding keyword grades of which the first number is larger than the preset threshold value are multiple, determining the lowest keyword grade in the multiple keyword grades as the first keyword grade.
Since a keyword of a high keyword level may be transmitted to a contact who is allowed to receive a keyword of a low keyword level, a keyword of a low keyword level may not be transmitted to a contact who is allowed to receive a keyword of a high keyword level.
Therefore, in a case where there are a plurality of keyword ranks, the corresponding first number of which is greater than the preset threshold, in order to further reduce an error rate of information transmission, the client may determine the lowest keyword rank among the plurality of keyword ranks as the first keyword rank.
Similarly, the client may determine the second keyword level according to a second keyword in the history information sent between the first user and the first contact.
The contact person of the first user needing to send the first information is as follows: contacts that are allowed to receive keywords at a first keyword level are allowed. The first contact is: contacts that are allowed to receive keywords at the second keyword level are allowed.
If the first keyword level is not lower than the second keyword level, which indicates that the contact person allowed to receive the keywords of the first keyword level contains the first contact person, the first information can be sent to the first contact person, namely the first contact person is the contact person of the first user needing to send the first information. Thus, the client may determine that the first keyword matches the second keyword, i.e., may determine that the first information matches the first contact.
If the first keyword level is lower than the second keyword level, the fact that the contact person allowed to receive the keywords of the first keyword level does not contain the first contact person is indicated, and the first information cannot be sent to the first contact person, namely the first contact person is not the contact person of which the first user needs to send the first information. Thus, the client may determine that the first keyword does not match the second keyword, i.e., may determine that the first information does not match the first contact.
In addition, if there is no keyword level with the corresponding first number greater than the preset threshold value in the preset multiple keyword levels, the client may directly determine that the first keyword is matched with the second keyword, that is, the client may directly determine that the first information is matched with the first contact person.
In one embodiment of the invention, the second keyword level corresponding to the first contact may also be set by the first user.
The first user can input a second keyword level corresponding to the first contact person to the client, and when the second keyword level input by the first user is received, the client can record the second keyword level corresponding to the first contact person locally. Furthermore, when it is detected that a first user who logs in the client needs to send first information to a first contact person, the client can determine whether a second keyword level corresponding to the first contact person is locally recorded. If the second keyword level corresponding to the first contact is locally recorded, the client can directly acquire the locally stored second keyword level. Subsequently, the client can directly judge whether the obtained second keyword level is matched with the first keyword level corresponding to the first information.
After the second keyword level corresponding to the first contact of the local record is obtained, the client may further determine a generation duration for obtaining the second keyword level. If the generation duration of the second keyword level is longer than the preset duration, the client can update the second keyword level.
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. And if the second keyword level input by the first user is received, taking the received second keyword level as the updated second keyword level. If the second keyword level input by the first user is not received, the client can acquire the historical information sent between the first user and the first contact, and determine the updated second keyword level according to the keywords in the acquired historical information. Subsequently, the client may determine whether the updated second keyword level matches the first keyword level corresponding to the first information.
In an embodiment of the present invention, if the first contact is a contact newly added to the first user, because information may not be sent between the first user and the first contact, the client cannot acquire the history information sent between the first user and the first contact. If the client does not obtain the history information sent between the first user and the first contact person, the client can obtain the remark information of the first user to the first contact person. Then, the client can determine the keyword level corresponding to the first contact according to the remark information of the first contact.
Illustratively, if the remark information of the first contact belongs to a work type (e.g., colleague, leader, etc.), the first contact may correspond to a keyword level corresponding to the official term keyword. If the remark information of the first contact is of a daily type (e.g., express, take-away, etc.), the first contact may correspond to a keyword level corresponding to the term keyword. If the remark information for the first contact is of a close type (e.g., family, friend, etc.), the first contact may correspond to a keyword level corresponding to the private term keyword.
In an embodiment of the present invention, after step S101, the method may further include the steps of: and if the first information is matched with the first contact person, sending the first information to the first contact person.
In one implementation, if the client determines that the first information matches the first contact, indicating that the first contact is a contact for which the first user needs to send the first information, the client may send the first information to the first contact.
With respect to steps S102 and S103, if the client determines that the first information does not match the first contact, it indicates that the first contact may not be a contact that 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 an inquiry message to remind the first user to confirm whether to send the first information to the first contact in the case that the first information does not match the first contact.
If the first contact is a contact that the first user needs to send the first information, the first user may input a confirmation sending instruction to the client. Correspondingly, when receiving the confirmation sending instruction, the client side can send the first information to the first contact person.
If the first contact is not the contact that the first user needs to send the first information, the first user may input a cancel send instruction to the client. Correspondingly, when the client receives the command for canceling sending, the client may not send the first information to the first contact, that is, the client may not process the first information.
Referring to fig. 4, fig. 4 is a flowchart of another information sending method provided in the embodiment of the present invention.
When the first user needs to send the first information to the first contact, the first user may open a new session, that is, the first user may input a display instruction of a session window for the first contact to the client. The client may display a conversation window of the first user with the first contact.
Then, the client may determine whether a session rating (which may be referred to as a first session rating) of the current session (i.e., the session of the first user with the first contact) is locally recorded, that is, whether a second keyword level corresponding to the first contact is locally recorded.
If the first session rating is locally recorded, that is, the second keyword level corresponding to the first contact is locally recorded, the client may determine whether the first session rating is expired, that is, whether the generation duration of the second keyword level is longer than a preset duration. If the generation duration of the second keyword level is longer than the preset duration (namely the rating of the first session is expired), the client can call the service port to perform rating by taking the identifier of the current session as a parameter, namely the client can send the identifier of the current session to the server. The server can obtain historical information sent between the first user and the first contact person according to the current session identifier, determine a second keyword level corresponding to the first contact person according to a second keyword in the historical information, and send the second keyword level to the client. Accordingly, the client may rank the second keyword level as the first session. If the first session rating is not recorded locally, the client may invoke the service port for rating with the identification of the current session as a parameter.
If the first session rating of the first user and the first contact is locally recorded and the first session rating is not expired, that is, the second keyword level corresponding to the first contact is locally recorded, and the generation duration of the second keyword level is not more than the preset duration, the client can directly acquire the first session rating.
The first user may edit the first information in the session window and click send to input the first information to the client. The client may rate the first information call service port, i.e. the client may send the first information to the server. The server can determine a first keyword level according to a first keyword in the first information, and send the first keyword level to the client. Accordingly, the client may rank the received first keyword level as the first information.
Further, the client may determine whether the first information rating is less than the current session rating (i.e., the first session rating), i.e., the client determines whether the first information matches the first contact. If the first information rating is less than the first session rating, i.e., the first information does not match the first contact, the client may determine that the first contact may not be a contact for which the first user needs to send the first information. Therefore, the client may display a popup alert to inquire whether the first user continues to send the first information, that is, the client may display an inquiry message to inquire whether the first user sends the first information to the first contact if the first information does not match the first contact.
If the first contact is a contact that the first user needs to send the first information, the first user may instruct the client to continue sending the first information, that is, the first user may input a confirmation sending instruction to the client. Correspondingly, when receiving the confirmation sending instruction, the client side can send the first information to the first contact person. If the first contact is not the contact that the first user needs to send the first information, the first user may instruct the client to cancel sending the first information, that is, the first user may input a cancel sending instruction to the client. Correspondingly, when the client receives the command for canceling sending, the client may not send the first information to the first contact, that is, the client may not process the first information.
The client may send the first information to the first contact if the first information rating is not less than the first session rating, i.e., the first information matches the first contact, indicating that the first contact is a contact for which the first user needs to send the first information.
Based on the above processing, if the first information does not match the first contact, it indicates that the first contact may not be the contact that the first user needs to send the first information. Therefore, whether the first user sends the information or not can be inquired, the first user can be prevented from sending the information to unmatched contacts, and further the error rate of information sending can be reduced to a certain extent.
Corresponding to the embodiment of the method in fig. 1, referring to fig. 5, fig. 5 is a structural diagram of an information sending apparatus according to an embodiment of the present invention, where the apparatus is applied to a client, and the apparatus includes:
a determining module 501, configured to determine, when it is detected that a first user logging in the client needs to send first information to a first contact, whether the first information is matched with the first contact based on information content of the first information;
a display module 502, configured to display an inquiry message if the first information does not match the first contact; wherein the query message is used for confirming whether the first information is sent to the first contact or not under the condition that the first information is not matched with the first contact;
a first sending module 503, configured to send the first information to the first contact if a confirmation sending instruction for the query message is received.
Optionally, the determining module 501 is specifically configured to obtain a keyword in the first information as a first keyword, and obtain a keyword in history information sent between the first user and the first contact as a second keyword;
judging whether the first keyword is matched with the second keyword;
if the first keyword is matched with the second keyword, determining that the first information is matched with the first contact person;
and if the first keyword is not matched with the second keyword, determining that the first information is not matched with the first contact person.
Optionally, the determining module 501 is specifically configured to determine, for each preset keyword level, a number of keywords belonging to the keyword level in the first keywords, where the number is used as a first number;
determining the corresponding keyword grades of which the first number is larger than a preset threshold value as first keyword grades;
determining the number of keywords belonging to the keyword level in the second keywords as a second number aiming at each preset keyword level;
determining the keyword level with the corresponding second number larger than the preset threshold value as a second keyword level;
if the first keyword level is not lower than the second keyword level, determining that the first keyword is matched with the second keyword; wherein, the contact person allowed to receive the keywords with the low keyword level belongs to the contact person allowed to receive the keywords with the high keyword level;
and if the first keyword level is lower than the second keyword level, determining that the first keyword is not matched with the second keyword.
Optionally, the determining module 501 is specifically configured to determine, if there are multiple keyword ranks of which the corresponding first number is greater than the preset threshold, a lowest keyword rank of the multiple keyword ranks as the first keyword rank.
Optionally, the apparatus further comprises:
and the second sending module is used for sending the first information to the first contact if the first information is matched with the first contact after the judging module executes the information content based on the first information and judges whether the first information is matched with the first contact.
Based on the information sending device provided by the embodiment of the invention, if the first information does not match with the first contact person, it is indicated that the first contact person may not be the contact person for the first user to send the first information. Therefore, whether the first user sends the information or not can be inquired, the first user can be prevented from sending the information to unmatched contacts, and further the error rate of information sending can be reduced to a certain extent.
An embodiment of the present invention further provides an electronic device, as shown in fig. 6, including a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 complete mutual communication through the communication bus 604,
a memory 603 for storing a computer program;
the processor 601 is configured to implement the following steps when executing the program stored in the memory 603:
when detecting that a first user logging in the client needs to send first information to a first contact person, judging whether the first information is matched with the first contact person or not based on the information content of the first information;
displaying an inquiry message if the first information does not match the first contact; wherein the query message is used for confirming whether the first information is sent to the first contact or not under the condition that the first information is not matched with the first contact;
and if a confirmation sending instruction aiming at the inquiry message is received, sending the first information to the first contact.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
Based on the electronic device provided by the embodiment of the invention, if the first information does not match with the first contact person, it is indicated that the first contact person may not be the contact person for the first user to send the first information. Therefore, whether the first user sends the information or not can be inquired, the first user can be prevented from sending the information to unmatched contacts, and further the error rate of information sending can be reduced to a certain extent.
In still another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the information sending method described in any of the above embodiments.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the information sending method according to any one of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may 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 loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the electronic device, the computer-readable storage medium, and the computer program product embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and in relation to them, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (12)

1. An information sending method, which is applied to a client, and comprises the following steps:
when detecting that a first user logging in the client needs to send first information to a first contact person, judging whether the first information is matched with the first contact person or not based on the information content of the first information;
displaying an inquiry message if the first information does not match the first contact; wherein the query message is used for confirming whether the first information is sent to the first contact or not under the condition that the first information is not matched with the first contact;
and if a confirmation sending instruction aiming at the inquiry message is received, sending the first information to the first contact.
2. The method of claim 1, wherein the determining whether the first information matches the first contact based on the information content of the first information comprises:
acquiring a keyword in the first information as a first keyword, and acquiring a keyword in history information sent between the first user and the first contact as a second keyword;
judging whether the first keyword is matched with the second keyword;
if the first keyword is matched with the second keyword, determining that the first information is matched with the first contact person;
and if the first keyword is not matched with the second keyword, determining that the first information is not matched with the first contact person.
3. The method of claim 2, wherein determining whether the first keyword matches the second keyword comprises:
determining the number of keywords belonging to each keyword grade in the first keywords as a first number aiming at each preset keyword grade;
determining the corresponding keyword grades of which the first number is larger than a preset threshold value as first keyword grades;
determining the number of keywords belonging to the keyword level in the second keywords as a second number aiming at each preset keyword level;
determining the keyword level with the corresponding second number larger than the preset threshold value as a second keyword level;
if the first keyword level is not lower than the second keyword level, determining that the first keyword is matched with the second keyword; wherein, the contact person allowed to receive the keywords with the low keyword level belongs to the contact person allowed to receive the keywords with the high keyword level;
and if the first keyword level is lower than the second keyword level, determining that the first keyword is not matched with the second keyword.
4. The method according to claim 3, wherein the determining, as the first keyword level, the keyword level with the corresponding first number greater than a preset threshold comprises:
and if the corresponding keyword grades of which the first number is larger than the preset threshold value are multiple, determining the lowest keyword grade in the multiple keyword grades as the first keyword grade.
5. The method of claim 1, wherein after determining whether the first information matches the first contact based on the information content of the first information, the method further comprises:
and if the first information is matched with the first contact person, sending the first information to the first contact person.
6. An information transmission apparatus, wherein the apparatus is applied to a client, the apparatus comprising:
the judging module is used for judging whether first information is matched with a first contact person or not based on the information content of the first information when detecting that a first user logging in the client needs to send the first information to the first contact person;
a display module for displaying an inquiry message if the first information does not match the first contact; wherein the query message is used for confirming whether the first information is sent to the first contact or not under the condition that the first information is not matched with the first contact;
and the first sending module is used for sending the first information to the first contact if receiving a confirmation sending instruction aiming at the inquiry message.
7. The apparatus according to claim 6, wherein the determining module is specifically configured to obtain a keyword in the first information as a first keyword, and obtain a keyword in history information sent between the first user and the first contact as a second keyword;
judging whether the first keyword is matched with the second keyword;
if the first keyword is matched with the second keyword, determining that the first information is matched with the first contact person;
and if the first keyword is not matched with the second keyword, determining that the first information is not matched with the first contact person.
8. The apparatus according to claim 7, wherein the determining module is specifically configured to determine, as the first number, a number of keywords belonging to each preset keyword level in the first keywords;
determining the corresponding keyword grades of which the first number is larger than a preset threshold value as first keyword grades;
determining the number of keywords belonging to the keyword level in the second keywords as a second number aiming at each preset keyword level;
determining the keyword level with the corresponding second number larger than the preset threshold value as a second keyword level;
if the first keyword level is not lower than the second keyword level, determining that the first keyword is matched with the second keyword; wherein, the contact person allowed to receive the keywords with the low keyword level belongs to the contact person allowed to receive the keywords with the high keyword level;
and if the first keyword level is lower than the second keyword level, determining that the first keyword is not matched with the second keyword.
9. The apparatus of claim 8, wherein the determining module is specifically configured to determine a lowest keyword level of the plurality of keyword levels as the first keyword level if the corresponding keyword levels with the first number greater than the preset threshold are multiple.
10. The apparatus of claim 6, further comprising:
and the second sending module is used for sending the first information to the first contact if the first information is matched with the first contact after the judging module executes the information content based on the first information and judges whether the first information is matched with the first contact.
11. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 5 when executing a program stored in the memory.
12. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-5.
CN202111204670.1A 2021-10-15 2021-10-15 Information sending method and device, electronic equipment and storage medium Pending CN113938465A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111204670.1A CN113938465A (en) 2021-10-15 2021-10-15 Information sending method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111204670.1A CN113938465A (en) 2021-10-15 2021-10-15 Information sending method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113938465A true CN113938465A (en) 2022-01-14

Family

ID=79279767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111204670.1A Pending CN113938465A (en) 2021-10-15 2021-10-15 Information sending method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113938465A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090150500A1 (en) * 2007-12-10 2009-06-11 Shruti Kumar System and method for automatically generating request-specific backup contact information in an out of office message
JP2012064205A (en) * 2010-08-19 2012-03-29 Doosub Jahng Information transmission activity evaluation support system
US20140181687A1 (en) * 2012-12-25 2014-06-26 Huawei Technologies Co., Ltd. Method and Apparatus for Processing Contact Information
CN104850550A (en) * 2014-02-13 2015-08-19 腾讯科技(深圳)有限公司 Method and apparatus for ordering prompt messages
CN106375377A (en) * 2016-08-25 2017-02-01 深圳市金立通信设备有限公司 Data processing method and terminal
CN108039995A (en) * 2017-10-25 2018-05-15 努比亚技术有限公司 Message sending control method, terminal and computer-readable recording medium
WO2019184111A1 (en) * 2018-03-30 2019-10-03 平安科技(深圳)有限公司 Push message processing method and apparatus, readable storage medium, and terminal device
CN112540712A (en) * 2020-12-07 2021-03-23 维沃移动通信有限公司 Message processing method and device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090150500A1 (en) * 2007-12-10 2009-06-11 Shruti Kumar System and method for automatically generating request-specific backup contact information in an out of office message
JP2012064205A (en) * 2010-08-19 2012-03-29 Doosub Jahng Information transmission activity evaluation support system
US20140181687A1 (en) * 2012-12-25 2014-06-26 Huawei Technologies Co., Ltd. Method and Apparatus for Processing Contact Information
CN104850550A (en) * 2014-02-13 2015-08-19 腾讯科技(深圳)有限公司 Method and apparatus for ordering prompt messages
CN106375377A (en) * 2016-08-25 2017-02-01 深圳市金立通信设备有限公司 Data processing method and terminal
CN108039995A (en) * 2017-10-25 2018-05-15 努比亚技术有限公司 Message sending control method, terminal and computer-readable recording medium
WO2019184111A1 (en) * 2018-03-30 2019-10-03 平安科技(深圳)有限公司 Push message processing method and apparatus, readable storage medium, and terminal device
CN112540712A (en) * 2020-12-07 2021-03-23 维沃移动通信有限公司 Message processing method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王利娜: "Start with Why——快速查找联系人的设计与研究", 《工业设计研究(第四辑) 》 *

Similar Documents

Publication Publication Date Title
US9424611B2 (en) User interface for managing questions and answers across multiple social media data sources
CN109040329B (en) Method for determining contact person label, terminal device and medium
US11157875B2 (en) Address extraction from a communication
CN102984121A (en) Access monitoring method and information processing apparatus
CN104954322A (en) Account binding method, device and system
CN110135590B (en) Information processing method, information processing apparatus, information processing medium, and electronic device
CN112671870B (en) Data processing method and device, electronic equipment and storage medium
CN107517180B (en) Login method and device
EP3876117A1 (en) Model selection method and terminal
CN112765400A (en) Weight updating method of interest tag, content recommendation method, device and equipment
US20130262477A1 (en) Using observations of a person to determine if data corresponds to the person
CN110838971B (en) Message sending method and device, electronic equipment and storage medium
CN109600254B (en) Method for generating full-link log and related system
CN111159269A (en) Data processing method, device and system
CN110955581A (en) Online software abnormity warning method and device, electronic equipment and storage medium
CN113064918A (en) Enterprise data query method and device, electronic equipment and storage medium
CN112583674A (en) Data processing method and device, electronic equipment and storage medium
CN111563107A (en) Information recommendation method and device, electronic equipment and storage medium
CN111694986A (en) Video recommendation method and device, electronic equipment and storage medium
CN113938465A (en) Information sending method and device, electronic equipment and storage medium
KR101380041B1 (en) Automatic login system and method that use portable terminal
CN115065512A (en) Account login method, system, device, electronic equipment and storage medium
CN113590180A (en) Detection strategy generation method and device
CN112579682A (en) Data model change notification method and device, electronic device and storage medium
CN106169975A (en) Business transmission 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