CN113271247B - Information processing method, apparatus, device and storage medium - Google Patents

Information processing method, apparatus, device and storage medium Download PDF

Info

Publication number
CN113271247B
CN113271247B CN202010093560.1A CN202010093560A CN113271247B CN 113271247 B CN113271247 B CN 113271247B CN 202010093560 A CN202010093560 A CN 202010093560A CN 113271247 B CN113271247 B CN 113271247B
Authority
CN
China
Prior art keywords
contact name
message
contact
user
address book
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010093560.1A
Other languages
Chinese (zh)
Other versions
CN113271247A (en
Inventor
常昕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nail Holding Cayman Co ltd
Original Assignee
Nail Holding Cayman 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 Nail Holding Cayman Co ltd filed Critical Nail Holding Cayman Co ltd
Priority to CN202010093560.1A priority Critical patent/CN113271247B/en
Publication of CN113271247A publication Critical patent/CN113271247A/en
Application granted granted Critical
Publication of CN113271247B publication Critical patent/CN113271247B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/212Monitoring or handling of messages using filtering or selective blocking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides an information processing method, an information processing device, information processing equipment and a storage medium, wherein the method comprises the following steps: receiving a message input by a user to an instant messaging interface; if the message is determined to contain a second contact name corresponding to the first contact name in the address book, the second contact name is modified to be the first contact name, and the first contact name is any contact name in the address book; the modified message is displayed in the instant messaging interface so that the recipient of the message can see the correct message.

Description

Information processing method, apparatus, device and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an information processing method, an apparatus, a device, and a storage medium.
Background
Currently, one or more instant messaging applications are installed in terminal devices (such as mobile phones, PCs, notebook computers, etc.) of most users. Through the instant messaging application program, the user can conveniently communicate with friends, colleagues and relatives.
In the process of sending a message to a friend through an instant messaging application program, a user may input the name of the friend or other friends, and in practical application, the name may be input in an incorrect condition.
Disclosure of Invention
The embodiment of the invention provides an information processing method, an information processing device, information processing equipment and an information processing storage medium, which are used for realizing automatic correction of a contact name input by a user.
In a first aspect, an embodiment of the present invention provides an information processing method, including:
receiving a message input by a user to an instant messaging interface;
and if the message is determined to contain a second contact name corresponding to a first contact name in the address book, modifying the second contact name into the first contact name, wherein the first contact name is any contact name in the address book.
In a second aspect, an embodiment of the present invention provides an information processing apparatus including:
the receiving module is used for receiving a message input by a user to the instant messaging interface;
and the processing module is used for modifying the second contact name into the first contact name if the message is determined to contain the second contact name corresponding to the first contact name in the address book, wherein the first contact name is any contact name in the address book.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a first memory, a first processor; wherein the first memory has executable code stored thereon, which when executed by the first processor, causes the first processor to at least implement the information processing method according to the first aspect.
Embodiments of the present invention provide a non-transitory machine-readable storage medium having executable code stored thereon, which when executed by a processor of an electronic device, causes the processor to at least implement an information processing method as described in the first aspect.
In a fourth aspect, an embodiment of the present invention provides an information processing method, including:
receiving a message input by a user in an information input interface;
and if the message is determined to contain a second contact name corresponding to a first contact name in the address book, modifying the second contact name into the first contact name, wherein the first contact name is any contact name in the address book.
In a fifth aspect, an embodiment of the present invention provides an information processing apparatus including:
the receiving module is used for receiving the message input by the user in the information input interface;
the error correction module is used for modifying the second contact name into the first contact name if the message is determined to contain the second contact name corresponding to the first contact name in the address book, wherein the first contact name is any contact name in the address book.
In a sixth aspect, an embodiment of the present invention provides an electronic device, including: a second memory, a second processor; wherein the second memory has executable code stored thereon, which when executed by the second processor, causes the second processor to at least implement the information processing method according to the fourth aspect.
Embodiments of the present invention provide a non-transitory machine-readable storage medium having executable code stored thereon, which when executed by a processor of an electronic device, causes the processor to at least implement an information processing method as described in the fourth aspect.
In the embodiment of the invention, when a user inputs a message in an instant messaging interface, for example, the input message may contain a contact name (friend), and the contact name input by the user may be wrong due to negligence of the user. In order to correct the name of the contact person with the input error, whether the message input by the user contains a certain name of the contact person with the input error corresponding to the correct name of the contact person or not can be determined by combining with a plurality of names of the contact person contained in the address book of the user, for example, the name of the contact person with the input error is called a second name of the contact person, and the name of the contact person with the correct name of the contact person corresponding to the name of the contact person is called a first name of the contact person in the address book, so that the second name of the contact person can be modified into the first name of the contact person, and the modified message is displayed in an instant messaging interface of a receiver, so that the receiver of the message can see the correct message.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of an information processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of interface change in an information processing process according to an embodiment of the present invention;
FIG. 3 is a flowchart of another information processing method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating an interface change of another information processing procedure according to an embodiment of the present invention;
FIG. 5 is a flowchart of another information processing method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device corresponding to the information processing apparatus provided in the embodiment shown in fig. 6;
fig. 8 is a schematic structural diagram of another information processing apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device corresponding to the information processing apparatus provided in the embodiment shown in fig. 8.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, the "plurality" generally includes at least two.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
In addition, the sequence of steps in the method embodiments described below is only an example and is not strictly limited.
Fig. 1 is a flowchart of an information processing method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
101. and receiving a message input by a user to the instant messaging interface.
102. And if the message is determined to contain a second contact name corresponding to the first contact name in the address book, modifying the second contact name into the first contact name, wherein the first contact name is any contact name in the address book.
The information processing method may be performed by an electronic device, which may be a terminal device such as a PC, a notebook, a smart phone, or a server. The server may be a physical server comprising an independent host, or may be a virtual server carried by a host cluster, or may be a cloud server. Specifically, the information processing method may be implemented by a processor in the electronic device running some sort of instant messaging application installed in the electronic device.
Taking the user a as an example, the instant messaging interface may be a communication interface corresponding to the chat between the user a and the friend user B through the instant messaging application program, or may be a communication interface corresponding to a certain instant messaging group of the user a.
In addition, it can be understood that, taking the user a as an example, the address book in the above step refers to an address book (or called a contact list) created by the user a in the instant messaging application program, where the address book includes names of a plurality of contacts (friends) of the user a.
The process by which user a enters a message in an instant messaging interface and corrects the error of the name of the wrong contact in the message is illustrated below in connection with fig. 2.
Assuming that user a is chatting with user B (named assume Yan Bing), after displaying an instant communication interface as shown in fig. 2, user a inputs a message to the instant communication interface, in fig. 2, assuming that the message input by user a is: eye diseases, i want to ask something wrong in the open.
Further, based on the message input by the user a, it is determined whether the message includes the contact name input in error, and if so, the contact name input in error is corrected according to the address book of the user a. Determining whether the message contains the contact name with the input error, namely determining whether the message contains a second contact name corresponding to the first contact name in the address book, and if so, modifying the second contact name into the first contact name.
Wherein, optionally, "corresponding" in the second contact name corresponding to the first contact name in the address book may be understood as: the second contact name is literally different from the first contact name, but the pronunciation corresponds or matches. In the example of fig. 2, the second contact name is eye disease, and the first contact name is ice, so it can be seen that the second contact name input by the user a in error is literally different from the correct first contact name in the address book, but the pronunciation is corresponding, i.e. the matching degree of the pronunciation is high. Thus, as illustrated in fig. 2, when it is recognized that "eye disease" in the message input by the user a is the input of the wrong contact name, the corresponding correct contact name should be "Yan Bing", the "eye disease" is modified to "Yan Bing", and the modified message is further sent to the user B, where the modified message is: yan Bing, I want to ask for something else on the open day.
The step 102 of determining whether the message input by the user includes the input of the wrong contact name may be performed before the message is presented to the recipient, for example, before the user a clicks the send button in fig. 2, or after clicking the send button.
Several alternative implementations of determining whether a message entered by a user contains an incorrect contact name are provided below.
The first alternative implementation is:
word segmentation processing is carried out on the message input by the user so as to obtain a plurality of words;
filtering words consistent with the names of contacts contained in the address book from the plurality of words;
and determining whether target words corresponding to the first contact names exist in the residual words according to pronunciation comparison results of the residual words and the contact names contained in the address book, wherein the target words are the second contact names.
The words consistent with the contact names contained in the address book are filtered out from the words, so that the user is prevented from inputting correct contact names under the condition that the message input by the user contains the contact names.
For example, assume that the message entered by the user is: eye diseases, i want to ask for something else and false in the open, work is handed over to Li Hua. The word segmentation result of the message is as follows: eye disease/me/tomorrow/thought/please/personal/sick/sham/work/handover/giving/Li Hua.
Comparing the words obtained by word segmentation with a plurality of contact names contained in the address book, filtering out the words contained in the address book, and if 'Li Hua' is contained in the address book, the word 'Li Hua' in the message is a contact name and exists in the address book, so that the word 'Li Hua' is filtered out.
And then, comparing the pronunciation of each remaining word with the pronunciation of each contact name contained in the address book one by one, and for a certain word in the remaining words, if the address book contains the contact name matched with the pronunciation of the word, the word is considered to be the contact name with the input error, namely the second contact name, and the contact name matched with the pronunciation in the address book is the first contact name. In the above example, the second contact name is "eye disease" and the second contact name that is pronunciation matched to it in the address book is assumed to be "Yan Bing". Wherein pronunciation matching is understood to mean that the pinyin is consistent in composition but different in tone.
In addition, it should be noted that, in order to further improve the recognition efficiency of the contact name input in error, optionally, according to the word length of the contact name contained in the address book, the words that do not conform to the word length may be filtered from the multiple words obtained by word segmentation. For example, assuming that the number of words of the contact name included in the address book is 2 words and 3 words, that is, any contact name in the address book is composed of 2 words or is composed of 3 words, when the number of words included in a word obtained by word segmentation is not 2 or 3, the word is filtered out, because the word is considered to be unlikely to be a contact name at this time. Based on this, in the example that the message is "eye disease, i want to ask for a disease in tomorrow, and work is handed over to Li Hua", the words that are filtered out on the basis of filtering out the word "Li Hua" included in the address book further include: i want, please, give. Thus, the remaining words include: eye diseases, tomorrow, sick and false, and handover. Further, the remaining terms may be compared to the contact names contained in the address book.
In addition, optionally, after word segmentation is performed on the message to obtain a plurality of words, non-noun words may be filtered from the plurality of words. Because the contact names are nouns, the recognition efficiency of the contact names with incorrect input can be improved by performing part-of-speech recognition on each word and filtering out the non-noun words. Taking the filtering of the word length as an example, the remaining words are: eye diseases, tomorrow, sick and false, and handover. Wherein the handover is not a noun and is thus filtered out.
In summary, in the first implementation manner, through word segmentation processing on the message input by the user, words which cannot be the contact names can be filtered by combining with some word filtering rules, and finally, whether the message input by the user is the contact name with the input error or not is determined based on the pronunciation comparison result of the rest words and the contact names in the address book.
The second alternative implementation is:
carrying out named entity recognition processing on the message input by the user so as to recognize a second contact name corresponding to the name entity contained in the message;
if the second contact name does not exist in the address book, determining a first contact name corresponding to the second contact name according to a pronunciation comparison result of the second contact name and the contact names contained in the address book.
In a second implementation, a sequence annotation model can be pre-trained for identifying named entities such as names. The training process of the sequence labeling model can be implemented by referring to the prior related art, and is not described in detail herein. When the sequence labeling model is used, the message input by the user is used as the input of the model, and the output of the model is the labeling result of the name corresponding to the message.
For example, assume that the message entered by the user is: eye diseases, i want to ask something wrong in the open. Assuming that the sequence labeling model labels in a BIO mode, the sequence labeling result of the message is as follows: eye/B disease/I/O Ming/O day/O want/O please/O number/O disease/O false/O. Wherein B represents the first word of the name, I represents the last word of the name, and O represents that the Chinese character does not belong to a named entity. Based on the labeling result, the eye disease in the message is the name, namely the name of the contact person.
And searching the contact name 'eye disease' in the address book, if the contact name 'eye disease' does not exist in the address book, indicating that the contact name 'eye disease' is the input wrong contact name, further comparing the input wrong contact name 'eye disease' with pronunciations of all contact names contained in the address book, finding the contact name matched with the pronunciations of the 'eye disease' from the pronunciations, and assuming as 'Yan Bing', thereby completing error correction by replacing the 'eye disease' with 'Yan Bing'.
It should be noted that, in practical applications, only the first implementation manner or only the second implementation manner may be provided to identify and correct a contact name input by a user and wrong in a message. However, both implementations may also be provided, in which case it is possible to choose which implementation to use for the message entered by the user.
For example, if the total length of the message input by the user is smaller than the set threshold, a first implementation manner is used; in contrast, if the total length of the message is greater than the set threshold, a second implementation is used.
Fig. 3 is a flowchart of another information processing method according to an embodiment of the present invention, as shown in fig. 3, may include the following steps:
301. and receiving a message input by a user to the instant messaging interface.
302. It is determined whether the message contains a second contact name corresponding to the first contact name in the address book, and if so, step 303 is performed.
The implementation of this step may be referred to the description in the foregoing embodiments, and is not described in detail herein. It will be appreciated that when it is determined that the message does not include a second contact name corresponding to the first contact name in the address book, the message is deemed to be correctly entered and processed normally. Wherein, as mentioned above, the "corresponding" may refer to that the words are different, but the pronunciation is matched.
303. The second contact name is highlighted, prompt information is displayed in the instant communication interface, and the prompt information is used for inquiring whether the user modifies the second contact name into the first contact name.
304. And responding to a modification instruction triggered by the user according to the prompt information, and modifying the second contact name into the first contact name.
In connection with fig. 4, it is illustrated how to interact with the user to accomplish the correction of the input wrong contact name when it is recognized that the input wrong contact name exists in the message input by the user in the present embodiment.
In fig. 4, it is assumed that the message input by the user is: eye diseases, i want to ask something wrong in the open. And assuming that the "eye disease" is the name of the contact person with the input error, namely the name of the second contact person in the step, and assuming that the name of the first contact person corresponding to the "eye disease" in the address book is "Yan Bing". Based on this, optionally, after determining that the second contact name "eye disease" is input in error, the second contact name may be highlighted so as to intuitively and accurately let the user see the position of the contact name that may be in error. In addition, optionally, prompt information may be displayed in the instant communication interface, where the prompt information is used to ask the user whether to modify the second contact name to the first contact name. The prompt displayed in fig. 4 is the text "identify friend name in address book { Yan Bing }" and button with "click replace" typeface. When the user clicks the button based on the prompt, this means that the user triggers a modification instruction, replacing "eye disease" with "Yan Bing".
Finally, it should be noted that, when there are multiple correct contact names that are matched with the input incorrect contact names in pronunciation in the address book, optionally, the prompt information may prompt the multiple correct contact names for the user to select. For example, the incorrect contact name is "eye disease", and the correct contact names in the address book that match the pronunciation thereof include "Yan Bing" and "Yan Bing", and the user may be prompted to select a desired one of the two correct contact names.
In summary, in the embodiment of the present invention, when a user inputs a message in an instant messaging interface, there is a case of inputting an incorrect contact name due to the user's negligence. For this situation, it may be determined, in combination with a plurality of contact names included in the address book of the user, whether the message input by the user includes a contact name with an input error corresponding to the correct contact name, for example, the input error contact name is called a second contact name, and the correct contact name corresponding to the contact name in the address book is called a first contact name, then the second contact name may be modified to the first contact name, and further, the modified message is displayed in the instant communication interface of the receiver, so that the receiver of the message can see the correct message.
Fig. 5 is a flowchart of another information processing method according to an embodiment of the present invention, as shown in fig. 5, may include the following steps:
501. and receiving a message input by a user in the information input interface.
502. And if the message is determined to contain a second contact name corresponding to the first contact name in the address book, modifying the second contact name into the first contact name, wherein the first contact name is any contact name in the address book.
In the foregoing embodiments, it is assumed that the user inputs the message through the instant messaging application, and in this embodiment, the information input interface includes, but is not limited to, an instant messaging interface, for example, a mail input interface, a web page, and other interfaces. That is, the information processing method provided in this embodiment may be applied to any information interaction tool having an address book. The information input interface is assumed to be a mail input interface, and the message is mail content input by the user in the mail input interface, wherein the mail content can be text content input by the user in the mail input interface one by one or mail content copied by the user from other positions.
The content of the embodiment, which is not described in detail, may refer to the descriptions in the other embodiments, and is not described herein.
In the above embodiments, it is assumed that the second contact name is the contact name input by the user in error, and the first contact name is the correct contact name corresponding to the contact name input in error, so that the purpose of correcting the contact name input in error by the user into the correct contact name can be achieved based on the above information processing method. However, the information processing method provided by the embodiment of the invention not only can achieve the purpose, but also can achieve the purpose of converting different names of the same contact.
For example, still take the example that user a sends a message to user B-Yan Bing (ice is the real name of user B) in the address book. In practical applications, the user a may set a nickname or short name for the user B, for example, the nickname set by the user a for the user B is: the ice cubes are tight. The setting result of the nickname or the short name of the user a to the user B may be stored locally in the terminal device of the user a, or may be uploaded to a corresponding server for storage.
Based on this, when the user a sends a message "ice-cream-tight", i am please leave the company "to the user B, and finds that the nickname" ice-cream-tight "corresponds to the real name" Yan Bing ", the nickname can be modified to the corresponding real name. At this time, "Yan Bing" corresponds to the first contact name in the foregoing embodiment, and "ice-cube-tight" corresponds to the second contact name in the foregoing embodiment.
Vice versa, for example, when the user a sends the message "Yan Bing" to the user B, i am please leave the company "when i am please leave the company" and find that the real name "Yan Bing" corresponds to the nickname "ice-tight", the real name can be modified to the corresponding nickname. At this time, "ice-cube-tight" corresponds to the first contact name in the foregoing embodiment, and "Yan Bing" corresponds to the second contact name in the foregoing embodiment.
In practical applications, whether or not a nickname/short-name to real name conversion needs to be performed may, on the one hand, alternatively be by asking the user a whether or not to convert, similar to the scheme provided by the embodiment shown in fig. 3. Alternatively, the determination may be made automatically, as follows: taking the message sent by the user a to the user B as an example, whether to convert the nickname/abbreviation corresponding to the user B in the message sent by the user a into the real name of the user B can be determined according to the identity attribute of the user B, the communication frequency between the user a and the user B and other factors.
For example, assuming that user B is a colleague of user a (e.g., user a remarks user B is a colleague or user B is located within a corporate group set by user a), it is considered that the nickname/abbreviation corresponding to user B in the message sent by user a should be converted to the real name of user B. Conversely, if user B is a classmate, friend, of user a, it is considered that the nickname/abbreviation corresponding to user B in the message sent by user a may not be converted to the real name of user B.
For another example, if user a frequently sends messages with user B, it is considered that the nickname/abbreviation corresponding to user B in the message sent by user a may not be converted into the real name of user B. Conversely, if user a only occasionally sends a message with user B, it is believed that the nickname/abbreviation corresponding to user B in the message sent by user a may be converted to the real name of user B.
An information processing apparatus of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these information processing devices may be configured using commercially available hardware components through the steps taught by the present solution.
Fig. 6 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present invention, as shown in fig. 6, the apparatus includes: a receiving module 11 and a processing module 12.
And the receiving module 11 is used for receiving the message input by the user to the instant messaging interface.
And the processing module 12 is configured to, if it is determined that the message includes a second contact name corresponding to a first contact name in the address book, modify the second contact name to the first contact name, where the first contact name is any contact name in the address book.
Alternatively, the processing module 12 may be configured to: word segmentation processing is carried out on the message to obtain a plurality of words; filtering words consistent with the names of contacts contained in the address book from the words; and determining whether a target word corresponding to the first contact name exists in the residual words according to a pronunciation comparison result of the residual words and the contact names contained in the address book, wherein the target word is the second contact name.
Alternatively, the processing module 12 may be configured to: and filtering out words which do not accord with the word number length from the words according to the word number length of the contact name contained in the address book.
Alternatively, the processing module 12 may be configured to: filtering non-noun words from the plurality of words.
Alternatively, the processing module 12 may be configured to: and if the total length of the message is smaller than the set threshold value, word segmentation processing is carried out on the message.
Alternatively, the processing module 12 may be configured to: carrying out named entity identification processing on the message to identify the second contact name corresponding to the name entity contained in the message; and if the second contact name does not exist in the address book, determining the first contact name corresponding to the second contact name according to a pronunciation comparison result of the second contact name and the contact names contained in the address book.
Alternatively, the processing module 12 may be configured to: and if the total length of the message is greater than a set threshold value, carrying out named entity identification processing on the message.
Alternatively, the processing module 12 may be configured to: displaying prompt information in the instant messaging interface, wherein the prompt information is used for inquiring whether the user modifies the second contact name into the first contact name; and responding to a modification instruction triggered by the user according to the prompt information, and modifying the second contact name into the first contact name.
Alternatively, the processing module 12 may be configured to: highlighting the second contact name.
The apparatus shown in fig. 6 may perform the information processing method provided in the foregoing embodiments shown in fig. 1 to 3, and detailed execution and technical effects are referred to the description in the foregoing embodiments, and are not repeated herein.
In one possible design, the structure of the information processing apparatus shown in fig. 6 may be implemented as an electronic device, as shown in fig. 7, which may include: a first processor 21, and a first memory 22. Wherein the first memory 22 has executable code stored thereon, which when executed by the first processor 21, causes the first processor 21 to at least implement the information processing method provided in the embodiments as described in the foregoing fig. 1 to 3.
Optionally, the electronic device may further include a first communication interface 23 for communicating with other devices.
In addition, embodiments of the present invention provide a non-transitory machine-readable storage medium having executable code stored thereon, which when executed by a processor of an electronic device, causes the processor to at least implement an information processing method as provided in the embodiments of fig. 1 to 3 described above.
Fig. 8 is a schematic structural diagram of another information processing apparatus according to an embodiment of the present invention, as shown in fig. 8, the apparatus includes: a receiving module 31 and an error correction module 32.
The receiving module 31 is configured to receive a message input by a user in the information input interface.
The error correction module 32 is configured to, if it is determined that the message includes a second contact name corresponding to a first contact name in an address book, modify the second contact name to the first contact name, where the first contact name is any contact name in the address book.
The apparatus shown in fig. 8 may perform the information processing method provided in the foregoing embodiment shown in fig. 5, and detailed execution and technical effects are referred to the description in the foregoing embodiment, and are not repeated herein.
In one possible design, the structure of the information processing apparatus shown in fig. 8 may be implemented as an electronic device, as shown in fig. 9, which may include: a second processor 41 and a second memory 42. Wherein the second memory 42 has executable code stored thereon, which when executed by the second processor 41, causes the second processor 41 to at least implement the information processing method provided in the embodiment as shown in fig. 5.
Optionally, the electronic device may further include a second communication interface 43 for communicating with other devices.
In addition, embodiments of the present invention provide a non-transitory machine-readable storage medium having executable code stored thereon, which when executed by a processor of an electronic device, causes the processor to at least implement an information processing method as provided in the embodiment shown in fig. 5.
The apparatus embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by adding necessary general purpose hardware platforms, or may be implemented by a combination of hardware and software. Based on such understanding, the foregoing aspects, in essence and portions contributing to the art, may be embodied in the form of a computer program product, which may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The information processing method provided by the embodiment of the present invention may be implemented by a certain program/software, the program/software may be provided by a network side, the user terminal mentioned in the foregoing embodiment may download the program/software to a local non-volatile storage medium, and when it needs to implement the foregoing information processing method, the program/software is read into a memory by a CPU, and then the CPU executes the program/software to implement the information processing method provided in the foregoing embodiment, and the implementation process may be referred to as schematic in fig. 1 to 5.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (17)

1. An information processing method, characterized by comprising:
receiving a message input by a user to an instant messaging interface;
if the message is determined to contain a second contact name corresponding to a first contact name in an address book, the second contact name is modified to be the first contact name, the first contact name is any contact name in the address book, and the second contact name comprises the first contact name with the input error.
2. The method according to claim 1, wherein the method further comprises:
word segmentation processing is carried out on the message to obtain a plurality of words;
filtering words consistent with the names of contacts contained in the address book from the words;
and determining whether a target word corresponding to the first contact name exists in the residual words according to a pronunciation comparison result of the residual words and the contact names contained in the address book, wherein the target word is the second contact name.
3. The method according to claim 2, wherein the method further comprises:
and filtering out words which do not accord with the word number length from the words according to the word number length of the contact name contained in the address book.
4. The method according to claim 2, wherein the method further comprises:
filtering non-noun words from the plurality of words.
5. The method of claim 2, wherein said word segmentation of said message comprises:
and if the total length of the message is smaller than the set threshold value, word segmentation processing is carried out on the message.
6. The method according to claim 1, wherein the method further comprises:
carrying out named entity identification processing on the message to identify the second contact name corresponding to the name entity contained in the message;
and if the second contact name does not exist in the address book, determining the first contact name corresponding to the second contact name according to a pronunciation comparison result of the second contact name and the contact names contained in the address book.
7. The method of claim 6, wherein said performing named entity recognition processing on said message comprises:
and if the total length of the message is greater than a set threshold value, carrying out named entity identification processing on the message.
8. The method of any of claims 1 to 7, wherein the modifying the second contact name to the first contact name comprises:
displaying prompt information in the instant messaging interface, wherein the prompt information is used for inquiring whether the user modifies the second contact name into the first contact name;
and responding to a modification instruction triggered by the user according to the prompt information, and modifying the second contact name into the first contact name.
9. The method of claim 8, wherein the method further comprises:
highlighting the second contact name.
10. An information processing apparatus, characterized by comprising:
the receiving module is used for receiving a message input by a user to the instant messaging interface;
the processing module is used for modifying the second contact name into the first contact name if the message contains the second contact name corresponding to the first contact name in the address book, wherein the first contact name is any contact name in the address book, and the second contact name comprises the first contact name with the input error.
11. An electronic device, comprising: a memory, a processor; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the information processing method of any of claims 1 to 9.
12. A non-transitory machine-readable storage medium having stored thereon executable code which, when executed by a processor of an electronic device, causes the processor to perform the information processing method of any of claims 1 to 9.
13. An information processing method, characterized by comprising:
receiving a message input by a user in an information input interface;
if the message is determined to contain a second contact name corresponding to a first contact name in an address book, the second contact name is modified to be the first contact name, the first contact name is any contact name in the address book, and the second contact name comprises the first contact name with the input error.
14. The method of claim 13, wherein the information input interface is a mail input interface and the message is mail content, the method further comprising:
and sending the modified mail content.
15. An information processing apparatus, characterized by comprising:
the receiving module is used for receiving the message input by the user in the information input interface;
the error correction module is used for modifying the second contact name into the first contact name if the message contains the second contact name corresponding to the first contact name in the address book, wherein the first contact name is any contact name in the address book, and the second contact name comprises the first contact name with the input error.
16. An electronic device, comprising: a memory, a processor; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the information processing method of claim 13 or 14.
17. A non-transitory machine-readable storage medium having stored thereon executable code which, when executed by a processor of an electronic device, causes the processor to perform the information processing method of claim 13 or 14.
CN202010093560.1A 2020-02-14 2020-02-14 Information processing method, apparatus, device and storage medium Active CN113271247B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010093560.1A CN113271247B (en) 2020-02-14 2020-02-14 Information processing method, apparatus, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010093560.1A CN113271247B (en) 2020-02-14 2020-02-14 Information processing method, apparatus, device and storage medium

Publications (2)

Publication Number Publication Date
CN113271247A CN113271247A (en) 2021-08-17
CN113271247B true CN113271247B (en) 2023-05-23

Family

ID=77227294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010093560.1A Active CN113271247B (en) 2020-02-14 2020-02-14 Information processing method, apparatus, device and storage medium

Country Status (1)

Country Link
CN (1) CN113271247B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004102523A (en) * 2002-09-06 2004-04-02 Casio Comput Co Ltd Electronic mail system and electronic mail transaction program
CN101083631A (en) * 2006-05-31 2007-12-05 阿里巴巴公司 Method for establishing contact list and managing contact information in instant communication
WO2012100409A1 (en) * 2011-01-25 2012-08-02 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for adding recipient information
CN103345606A (en) * 2013-05-31 2013-10-09 东莞宇龙通信科技有限公司 Method and device for protecting mobile terminal address list contact person information
CN109120498A (en) * 2017-06-22 2019-01-01 北京小米移动软件有限公司 Send the method and device of information

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047658A (en) * 2006-03-31 2007-10-03 腾讯科技(深圳)有限公司 Method for amending transmitted message and immediate communication device
CN101976122A (en) * 2010-10-28 2011-02-16 宇龙计算机通信科技(深圳)有限公司 Input method and system of contacter information and mobile terminal
US8548444B2 (en) * 2012-01-20 2013-10-01 Intuit Inc. Linking a name to a phone number in a text message based on a contact list in a mobile device
CN103269306A (en) * 2012-12-18 2013-08-28 北京奇虎科技有限公司 Message handling method and device in communication process
US9460210B2 (en) * 2014-04-04 2016-10-04 Dropbox, Inc. Enriching contact data based on content sharing history in a content management system
CN106789575B (en) * 2016-12-22 2020-08-28 太和县科维生产力促进中心有限公司 Information sending device and method
CN107302617A (en) * 2017-05-17 2017-10-27 深圳市金立通信设备有限公司 A kind of data managing method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004102523A (en) * 2002-09-06 2004-04-02 Casio Comput Co Ltd Electronic mail system and electronic mail transaction program
CN101083631A (en) * 2006-05-31 2007-12-05 阿里巴巴公司 Method for establishing contact list and managing contact information in instant communication
WO2012100409A1 (en) * 2011-01-25 2012-08-02 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for adding recipient information
CN103345606A (en) * 2013-05-31 2013-10-09 东莞宇龙通信科技有限公司 Method and device for protecting mobile terminal address list contact person information
CN109120498A (en) * 2017-06-22 2019-01-01 北京小米移动软件有限公司 Send the method and device of information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"通讯录管理***的设计方法";汤拓;;《信息***工程》(03);全文 *

Also Published As

Publication number Publication date
CN113271247A (en) 2021-08-17

Similar Documents

Publication Publication Date Title
US10460029B2 (en) Reply information recommendation method and apparatus
US9317501B2 (en) Data security system for natural language translation
JP6334815B2 (en) Learning apparatus, method, program, and spoken dialogue system
CN111523306A (en) Text error correction method, device and system
US20140349690A1 (en) Method and device for generating contact entry, and storage medium
US20160147744A1 (en) On-line voice translation method and device
US20160154799A1 (en) Persona-Based Conversation
WO2018153316A1 (en) Method and apparatus for obtaining text extraction model
CN111046060A (en) Data retrieval method, device, equipment and medium based on elastic search
CN112580324A (en) Text error correction method and device, electronic equipment and storage medium
CN109614464B (en) Method and device for identifying business problems
CN111063355A (en) Conference record generation method and recording terminal
CN108306813B (en) Session message processing method, server and client
US9990434B2 (en) Ingesting forum content
CN110020429B (en) Semantic recognition method and device
CN113743102B (en) Method and device for recognizing characters and electronic equipment
KR20190074508A (en) Method for crowdsourcing data of chat model for chatbot
CN111402864A (en) Voice processing method and electronic equipment
WO2018075190A1 (en) Systems and methods for handling formality in translations of text
WO2019214628A1 (en) Voice recognition method, file processing method and terminal device
US10073884B2 (en) Method and system for enhanced search term suggestion
US9197481B2 (en) Cloud-based translation method and system for mobile client
CN113436614A (en) Speech recognition method, apparatus, device, system and storage medium
CN113271247B (en) Information processing method, apparatus, device and storage medium
KR101858544B1 (en) Information processing method and apparatus

Legal Events

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