CN110417635B - Automatic information reply method, device and equipment - Google Patents

Automatic information reply method, device and equipment Download PDF

Info

Publication number
CN110417635B
CN110417635B CN201810404909.1A CN201810404909A CN110417635B CN 110417635 B CN110417635 B CN 110417635B CN 201810404909 A CN201810404909 A CN 201810404909A CN 110417635 B CN110417635 B CN 110417635B
Authority
CN
China
Prior art keywords
name
information
reply
communication object
candidate
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
CN201810404909.1A
Other languages
Chinese (zh)
Other versions
CN110417635A (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201810404909.1A priority Critical patent/CN110417635B/en
Publication of CN110417635A publication Critical patent/CN110417635A/en
Application granted granted Critical
Publication of CN110417635B publication Critical patent/CN110417635B/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/02User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an automatic information reply method, device and equipment, wherein the method comprises the following steps: analyzing context information of a current user and a communication object through an application program according to a natural language processing model, and automatically generating one or more reply contents; analyzing and identifying a first name of a communication object according to the name corpus of the context information, and reading a second name of the communication object according to the application setting information of the application program; comparing whether the first name is the same as the second name or not, if the first name is different from the second name, respectively inserting the first name and the second name into the calling position of each reply content, and generating a plurality of candidate reply messages; and acquiring target reply information selected by the current user from the candidate reply information, and sending the target reply information to the communication object through the application program. Therefore, the call in the quick reply content is more in line with the user expectation, and the accuracy and the individuation degree of quick reply are improved.

Description

Automatic information reply method, device and equipment
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a method, an apparatus, and a device for automatically replying information.
Background
The input method is added with the function of quick reply, so that the input cost of the user can be effectively saved, and the communication efficiency of the user is improved.
In the related art, the quick reply model is obtained by training according to corpus data of a large number of sample users, and when reply contents relate to name or nickname information of a communication object, the name or nickname information obtained through the quick reply model is not targeted, for example, words in a wider range such as 'babe' are used, and personalized requirements of the users cannot be met.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, a first object of the present invention is to provide an automatic information reply method, so as to obtain the call information of a communication object by using contact data and context semantic information and add the call information to a quick reply sentence, so that the call in the quick reply more meets the user expectation, the accuracy of the quick reply is improved, and the quick reply function is more intelligent and personalized.
The second objective of the present invention is to provide an automatic message replying device.
A third object of the present invention is to provide a terminal device.
A fourth object of the invention is to propose a computer program product.
A fifth object of the invention is to propose a non-transitory computer-readable storage medium.
To achieve the above object, an embodiment of a first aspect of the present invention provides an automatic information replying method, including:
analyzing context information of a current user and a communication object through an application program according to a natural language processing model, and automatically generating one or more reply contents;
analyzing and identifying a first name of the communication object according to the name corpus of the context information, and reading a second name of the communication object according to the application setting information of the application program;
comparing whether the first name and the second name are the same or not, if the first name and the second name are different, respectively inserting the first name and the second name into the calling position of each reply content, and generating a plurality of candidate reply messages;
and acquiring target reply information selected by the current user from the candidate reply information, and sending the target reply information to the communication object through the application program.
In addition, the automatic information reply method according to the above embodiment of the present invention may further have the following additional technical features:
optionally, the reading the second name of the communication object according to the application setting information of the application program includes:
and reading the second name of the communication object from the contact name control according to the application page setting information of the application program.
Optionally, the reading the second name of the communication object according to the application setting information of the application program includes:
and reading the second name of the communication object from a registered name control according to the application registration setting information of the application program.
Optionally, after the comparing whether the first name and the second name are the same, the method further includes: if the first name is the same as the second name through comparison, carrying out duplicate removal processing on the first name and the second name;
and inserting the first name or the second name into the call position of each reply content to generate one or more candidate reply messages.
Optionally, the method further includes:
and acquiring parameter information of the target reply information training network neural model selected by the current user in a preset time period, and generating a name scoring model.
Optionally, after the first name and the second name are respectively inserted into the call location of each reply content, and a plurality of candidate reply messages are generated, the method further includes:
scoring the candidate reply information corresponding to the first name and the candidate reply information corresponding to the second name according to the name scoring model;
and deleting the candidate reply information with low score according to the scoring result, and providing the candidate reply information with high score for the user.
Optionally, the method further includes:
judging whether a third name corresponding to the communication object is set and stored in an automatic information reply function of the current user, wherein the priority of the third name is higher than that of the first name and that of the second name;
if the fact that the current user does not set the third name in the automatic information reply function is known, the first name of the communication object is identified according to name corpus analysis of the context information;
and if the third name is set in the automatic information reply function by the current user, inserting the third name into the call position of each reply content to generate one or more candidate reply information.
In order to achieve the above object, a second aspect of the present invention provides an automatic information replying device, including:
the first generation module is used for analyzing the context information of the current user and the communication object through the application program according to the natural language processing model and automatically generating one or more reply contents;
the obtaining module is used for analyzing and identifying a first name of the communication object according to the name corpus of the context information and reading a second name of the communication object according to the application setting information of the application program;
the processing module is used for comparing whether the first name and the second name are the same or not; a second generating module, configured to insert the first name and the second name into a call location of each reply content, if it is known that the first name and the second name are different, and generate multiple candidate reply messages;
and the sending module is used for acquiring the target reply information selected by the current user from the candidate reply information and sending the target reply information to the communication object through the application program.
Optionally, the obtaining module is specifically configured to: and reading the second name of the communication object from the contact name control according to the application page setting information of the application program.
Optionally, the obtaining module is specifically configured to: and reading the second name of the communication object from a registered name control according to the application registration setting information of the application program.
Optionally, the second generating module is further configured to: if the first name is the same as the second name through comparison, carrying out duplicate removal processing on the first name and the second name; and inserting the first name or the second name into the call position of each reply content to generate one or more candidate reply messages.
Optionally, the apparatus further includes:
and the third generation module is used for acquiring parameter information of the target reply information training network neural model selected by the current user in a preset time period and generating a name scoring model.
Optionally, the apparatus further includes:
the screening module is used for scoring the candidate reply information corresponding to the first name and the candidate reply information corresponding to the second name according to the name scoring model; and deleting the candidate reply information with low score according to the scoring result, and providing the candidate reply information with high score for the user.
Optionally, the apparatus further includes:
a fourth generating module, configured to determine whether a third name corresponding to the communication object is set and stored in an automatic information reply function of the current user, where a priority of the third name is higher than the first name and the second name;
if the fact that the current user does not set the third name in the automatic information reply function is known, the first name of the communication object is identified according to name corpus analysis of the context information;
and if the third name is set in the automatic information reply function by the current user, inserting the third name into the call position of each reply content to generate one or more candidate reply information.
To achieve the above object, a third embodiment of the present invention provides a terminal device, including a processor and a memory; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the automatic information replying method according to the embodiment of the first aspect.
To achieve the above object, a fourth aspect of the present invention provides a computer program product, wherein when being executed by an instruction processor of the computer program product, the method for automatically replying information according to the first aspect is implemented.
To achieve the above object, a fifth embodiment of the present invention provides a non-transitory computer-readable storage medium, having a computer program stored thereon, where the computer program is executed by a processor to implement the method for automatically replying to information according to the first embodiment.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
analyzing context information of a current user and a communication object through an application program according to a natural language processing model, automatically generating one or more reply contents, further analyzing and identifying a first name of the communication object according to name corpus of the context information, reading a second name of the communication object according to application setting information of the application program, further comparing whether the first name is the same as the second name, if the first name is different from the second name, respectively inserting the first name and the second name into the calling position of each reply content, generating a plurality of candidate reply information, further acquiring target reply information selected by the current user from the candidate reply information, and sending the target reply information to the communication object through the application program. Therefore, by utilizing the contact data and the context semantic information, the call information of the communication object is acquired and added into the quick reply sentence, so that the call in the quick reply is more in line with the user expectation, the accuracy of the quick reply is improved, and the quick reply function is more intelligent and personalized.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a schematic flow chart illustrating an automatic message reply method according to an embodiment of the present invention;
fig. 2 a-2 b are schematic diagrams of a candidate reply message according to an embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating another method for automatically replying information according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating another alternative reply message according to an embodiment of the present invention;
fig. 5 is a schematic flowchart illustrating another method for automatically replying information according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an automatic information replying device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another automatic information replying device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The following describes an automatic information reply method, apparatus, and device according to an embodiment of the present invention with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of an automatic information replying method according to an embodiment of the present invention, as shown in fig. 1, the automatic information replying method includes:
step 101, analyzing context information of a current user and a communication object through an application program according to a natural language processing model, and automatically generating one or more reply contents.
Optionally, training data may be formed by collecting natural language sentences input by a sample user, and the machine learning model is trained by using the training data, so as to obtain a natural language processing model capable of generating reply content.
Further, when the current user communicates with the communication object through the application program, the context information of the current user and the communication object is identified and analyzed according to the trained natural language processing model, and therefore one or more reply contents are automatically generated. For example, after the context information "Happy birthday" is subjected to recognition analysis according to the natural language processing model, reply contents such as "Thank you", "Thanks babe", "Thanks for eating of me" and the like may be automatically generated.
And 102, identifying a first name of the communication object according to the name corpus analysis of the context information, and reading a second name of the communication object according to the application setting information of the application program.
It can be understood that, the natural language processing model in the related art is obtained by training corpus data of a large number of sample users, and when the names of communication objects are involved in the reply content, there is often no pertinence, for example, words with a wider range such as "babe" are used, and the names of the words often do not meet the user expectations for the users, so that, in order to make the name information in the reply content more meet the user expectations, after one or more reply contents are generated, name information of the communication objects can be obtained from the name corpus of the context information and the contact name control.
As an example, the name corpus in the context information may be identified and analyzed through a natural language processing technique, so as to obtain the name information of the communication object by the user, and the name information is used as the first name of the communication object. For example, by identifying and analyzing "bye mom" in the context information, "mom" can be obtained as the first name of the communication object.
As an example, the contact name information of the communication object may be read from the contact name control as the second name of the communication object according to the application page setting information of the application program through a Hypertext Markup Language (HTML) 5 technology. For example, when the application program is a mobile phone short message, the HTML5 may be used to parse the contact name control of the short message chat interface, so as to read the contact name information of the communication object, and use the contact name information as the second name of the communication object.
As an example, it is also possible to read the registration name information of the communication object from the registration name control as the second name of the communication object by the HTML5 technique according to the application registration setting information of the application program. For example, when the application program is a WeChat, if the WeChat is registered through a mobile phone number, the registration name control set in the registration interface may be further analyzed through the HTML5 to read the registration name information of the communication object, and the registration name information is used as the second name of the communication object, so that the name information of the communication object set in the mobile phone is synchronized into the WeChat.
And 103, comparing whether the first name is the same as the second name, if the first name is different from the second name, respectively inserting the first name and the second name into the calling position of each reply content, and generating a plurality of candidate reply messages.
In an embodiment of the present invention, if the first name and the second name are found to be different from each other by comparison, the first name and the second name are respectively inserted into the call location of each reply content to generate a plurality of candidate reply messages, so as to provide diversified candidate reply messages for the user. For example, as shown in fig. 2a, the context information "moving beauty" is analyzed according to the natural language processing model, the reply contents "Hey", "Hi", and "Hello" are automatically generated, the first name of the communication object is identified according to the name corpus analysis of the context information, "mom", the second name of the communication object is read from the contact name control according to the page setting information of the application program, the first name and the second name are inserted into the calling position of each reply content respectively by comparing to know that the first name is different from the second name, and the candidate reply information "Hey mom", "Hi mom", "Hello", "Hey Ellie", "Hi Ellie", and "Hello Ellie" are generated.
In another embodiment of the present invention, when the first name is identical to the second name, the user experience is improved to avoid repeated display, and the first name and the second name may be subjected to deduplication processing. And further, inserting the first name or the second name after the duplication removal into the calling position of each reply content to generate one or more candidate reply messages. For example, as shown in fig. 2b, the context information "moving beauty" is analyzed according to the natural language processing model, the reply contents "Hey", "Hi", and "Hello" are automatically generated, the first name of the communication object is identified according to the name corpus analysis of the context information, the second name of the communication object is read from the contact name control according to the page setting information of the application program, the first name is known to be the same as the second name through comparison, the first name and the second name are subjected to deduplication processing, and then the "mom" is inserted into the call position of each reply content, and the candidate reply information "Heymom", "Hi mom", and "Hello mom" are generated.
It should be noted that, if the first name of the communication object cannot be identified according to the name corpus of the context information, the second name of the communication object is read according to the application setting information of the application program, and the second name is inserted into the call position of each reply content to generate one or more candidate reply information.
And 104, acquiring target reply information selected by the current user from the candidate reply information, and sending the target reply information to the communication object through the application program.
Optionally, the target reply information selected from the candidate reply information by the current user through a voice instruction, a click instruction or the like is obtained, and the target reply information is sent to the communication object through the application program, so that the user can reply conveniently without manually inputting reply content.
In summary, in the method for automatically replying information according to the embodiment of the present invention, context information of a current user and a communication object through an application program is analyzed according to a natural language processing model, one or more reply contents are automatically generated, a first name of the communication object is identified according to name corpus analysis of the context information, a second name of the communication object is read according to application setting information of the application program, whether the first name and the second name are the same is further compared, if the first name and the second name are known to be different from each other through comparison, the first name and the second name are respectively inserted into a calling position of each reply content, a plurality of candidate reply information are generated, target reply information selected from the candidate reply information by the current user is further acquired, and the target reply information is sent to the communication object through the application program. Therefore, by utilizing the contact data and the context semantic information, the call information of the communication object is acquired and added into the quick reply sentence, so that the call in the quick reply is more in line with the user expectation, the accuracy of the quick reply is improved, the quick reply function is more intelligent and personalized, and the user input experience is improved.
Based on the embodiment, the name scoring model can be trained, and the candidate reply information is screened through the name scoring model, so that the candidate reply information presented to the user is more in line with the user expectation, and the accuracy and the individuation degree of quick reply are further improved.
Fig. 3 is a schematic flow chart of another method for automatically replying information according to an embodiment of the present invention, as shown in fig. 3, after step 103, the method further includes:
step 201, scoring the candidate reply information corresponding to the first name and the candidate reply information corresponding to the second name according to the name scoring model.
Optionally, target reply information selected by a current user in a preset time period may be acquired as training data, and parameter information of the network neural model is trained to generate a name scoring model. And then, scoring the candidate reply information through the trained name scoring model, and providing the candidate reply information with high score for the user.
As an example, the target reply information currently selected by the user within a preset time period (e.g., within a week) may be used as a positive sample, the other unselected candidate reply information may be used as a negative sample, and the positive sample and the negative sample are input into the network neural model to train the parameter information, so as to generate the name scoring model.
In this embodiment, since the name scoring model is trained in advance, after the candidate reply information corresponding to the first name and the candidate reply information corresponding to the second name are obtained, the corresponding candidate reply information is input into the name scoring model, and the scoring result of the candidate reply information can be obtained.
And step 202, deleting the candidate reply information with low score according to the scoring result, and providing the candidate reply information with high score for the user.
It is understood that a higher score of the scoring result indicates that the candidate reply message is more desirable to the user, whereas a lower score of the scoring result indicates that the candidate reply message is less desirable to the user.
In an embodiment of the present invention, each candidate reply message may be ranked from high to low according to the score of the scoring result, and then the candidate reply message ranked later is deleted, and the candidate reply message ranked earlier is selected and provided to the user. Or comparing the score of the scoring result with a preset threshold, deleting the candidate reply information with the score lower than the threshold, and selecting the candidate reply information with the score higher than the threshold as the candidate reply information provided for the user. Further, the number of candidate reply messages provided to the user may also be limited in consideration of the size of the interface space.
For a more clear explanation of the invention, the following examples are given in detail:
as shown in fig. 4, the first name is "mom", the second name is "Ellie", the corresponding candidate reply information is "Thanks mom" and "Thanks Ellie", respectively, the candidate reply information is input into the name scoring model, the score of the candidate reply information "Thanks mom" is high, the score of the candidate reply information "Thanks Ellie" is low, and then "Thanks Ellie" is deleted, and the candidate reply information "Thanks mom" is provided to the user.
According to the automatic information reply method, the parameter information of the network neural model is trained by acquiring the target reply information selected by the current user in the preset time period, the name scoring model is generated, the candidate reply information is scored according to the name scoring model, the candidate reply information with low score is deleted, and the candidate reply information with high score is provided for the user, so that the candidate reply information presented to the user is more in line with the expectation of the user, and the accuracy and the individuation degree of quick reply are further improved.
Further, in practical applications, the user may wish to use a specific nickname set by the user to call a target communication destination when communicating with the target communication destination. Fig. 5 is a flowchart illustrating another method for automatically replying to a message according to an embodiment of the present invention, as shown in fig. 5, before step 102, the method for automatically replying to a message includes:
step 301, judging whether the current user sets and stores a third name corresponding to the communication object in the automatic information replying function, wherein the priority of the third name is higher than that of the first name and the second name.
The third name is set by the user, so that the user always calls the target communication object by using a specific nickname set by the user when using the automatic information reply function, and the user experience is improved.
In an embodiment of the present invention, a mapping table storing a mapping relationship between the communication object and the third name may be set, and the mapping relationship between the communication object and the third name may be determined by querying the mapping table during application. For example, when the user communicates with the communication destination, if the correspondence between the communication destination and the third name can be found, it is determined that the third name corresponding to the communication destination is set by the user, and the third name is acquired.
Step 302, if it is known that the current user sets a third name in the automatic information reply function, inserting the third name into the call position of each reply content to generate one or more candidate reply information.
It should be noted that, because the priority of the third name is higher than the first name and the second name, when it is determined and obtained that the third name is set in the automatic information reply function by the current user, the first name and the second name are not obtained, but the third name is directly inserted into the call position of each reply content to generate candidate reply information, so as to obtain target reply information selected by the current user from the candidate reply information, and the target reply information is sent to the communication object through the application program. Therefore, the processing efficiency is improved, and the user can set the call information of the communication object in the quick reply content.
In an embodiment of the present invention, if it is known that the current user does not set the third name in the automatic message reply function, the first name of the communication object is identified according to the name corpus analysis of the context information.
According to the automatic information replying method, one or more candidate replying information is generated by judging whether a third name corresponding to a communication object is set in an automatic information replying function by a current user and storing the third name, and inserting the third name into the calling position of each replying content when the third name is set in the automatic information replying function by the current user is judged and known; and when judging that the current user does not set the third name in the automatic information reply function, analyzing and identifying the first name of the communication object according to the name corpus of the context information. Therefore, the user can set the call information of the communication object in the quick reply content by himself, so that the call in the quick reply is more in line with the user expectation, the individuation degree of the quick reply is further improved, and the user experience is improved.
In order to implement the foregoing embodiment, the present invention further provides an automatic information replying device, and fig. 6 is a schematic structural diagram of the automatic information replying device according to the embodiment of the present invention, as shown in fig. 6, the automatic information replying device includes: the system comprises a first generation module 100, an acquisition module 200, a processing module 300, a second generation module 400 and a sending module 500.
The first generation module 100 is configured to analyze context information of a current user and a communication object through an application program according to a natural language processing model, and automatically generate one or more reply contents;
an obtaining module 200, configured to analyze and identify a first name of a communication object according to a name corpus of context information, and read a second name of the communication object according to application setting information of an application program;
a processing module 300 for comparing whether the first name and the second name are the same;
a second generating module 400, configured to insert the first name and the second name into the call location of each reply content, if it is known that the first name and the second name are different, and generate multiple candidate reply messages;
and a sending module 500, configured to obtain target reply information selected by the current user from the candidate reply information, and send the target reply information to the communication object through the application program.
On the basis of fig. 6, the automatic information replying device provided in fig. 7 further includes: a third generation module 600, a screening module 700, and a fourth generation module 800.
The third generating module 600 is configured to obtain parameter information of a target reply information training network neural model selected by the current user within a preset time period, and generate a name scoring model.
A screening module 700 for
Scoring the candidate reply information corresponding to the first name and the candidate reply information corresponding to the second name according to a name scoring model;
and deleting the candidate reply information with low score according to the scoring result, and providing the candidate reply information with high score for the user.
A fourth generating module 800 for
Judging whether a third name corresponding to the communication object is set and stored in the automatic information replying function of the current user, wherein the priority of the third name is higher than that of the first name and the second name;
if the fact that the third name is not set in the automatic information reply function of the current user is known, the first name of the communication object is analyzed and identified according to the name corpus of the context information;
and if the third name is set in the automatic information reply function by the current user, inserting the third name into the call position of each reply content to generate one or more candidate reply information.
Further, the obtaining module 200 is specifically configured to read the second name of the communication object from the contact name control according to the application page setting information of the application program.
Further, the obtaining module 200 is specifically configured to read the second name of the communication object from the registered name control according to the application registration setting information of the application program.
It should be noted that the explanation of the automatic information replying method in the foregoing embodiment is also applicable to the automatic information replying device in this embodiment, and is not repeated here.
To sum up, the automatic information replying device according to the embodiment of the present invention analyzes context information of a current user and a communication object through an application program according to a natural language processing model, automatically generates one or more reply contents, further analyzes and identifies a first name of the communication object according to name corpus of the context information, reads a second name of the communication object according to application setting information of the application program, further compares whether the first name and the second name are the same, if the first name and the second name are known to be different from each other through comparison, inserts the first name and the second name into a call position of each reply content, respectively, generates a plurality of candidate reply information, further obtains target reply information selected by the current user from the candidate reply information, and sends the target reply information to the communication object through the application program. Therefore, by utilizing the contact data and the context semantic information, the call information of the communication object is acquired and added into the quick reply sentence, so that the call in the quick reply is more in line with the user expectation, the accuracy of the quick reply is improved, and the quick reply function is more intelligent and personalized.
In order to implement the foregoing embodiment, the present invention further provides a terminal device, and fig. 8 is a schematic structural diagram of the terminal device provided in the embodiment of the present invention. As shown in fig. 8, the terminal device includes: a memory 21, a processor 22 and a computer program stored on the memory 21 and executable on the processor 22.
When the processor 22 executes the program, the method for automatically replying information provided in the above embodiments is implemented, and the method for automatically replying information includes:
step 101', analyzing context information of a current user and a communication object through an application program according to a natural language processing model, and automatically generating one or more reply contents.
Step 102', a first name of the communication object is identified according to the name corpus analysis of the context information, and a second name of the communication object is read according to the application setting information of the application program.
And 103', comparing whether the first name is the same as the second name, if the first name is different from the second name, respectively inserting the first name and the second name into the calling position of each reply content, and generating a plurality of candidate reply messages.
And step 104', acquiring the target reply information selected by the current user from the candidate reply information, and sending the target reply information to the communication object through the application program.
Further, the terminal device further includes:
a communication interface 23 for communication between the memory 21 and the processor 22.
A memory 21 for storing a computer program operable on the processor 22.
The memory 21 may comprise a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
And the processor 22 is configured to implement the automatic information replying method according to the foregoing embodiment when executing the program.
If the memory 21, the processor 22 and the communication interface 23 are implemented independently, the communication interface 21, the memory 21 and the processor 22 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The 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 in FIG. 8, but this is not intended to represent only one bus or type of bus.
Optionally, in a specific implementation, if the memory 21, the processor 22 and the communication interface 23 are integrated on a chip, the memory 21, the processor 22 and the communication interface 23 may complete mutual communication through an internal interface.
The processor 22 may be a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention.
In order to implement the foregoing embodiments, the present invention further provides a computer program product, which when executed by an instruction processor in the computer program product implements the method for automatically replying to information according to any of the foregoing embodiments.
In order to implement the foregoing embodiments, the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method for automatically replying to information according to any one of the foregoing embodiments.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (16)

1. An automatic information reply method is characterized by comprising the following steps:
analyzing context information of a current user and a communication object through an application program according to a natural language processing model, and automatically generating one or more reply contents;
analyzing and identifying a first name of the communication object according to the name corpus of the context information, and reading a second name of the communication object according to the application setting information of the application program;
comparing whether the first name and the second name are the same or not, if the first name and the second name are different, respectively inserting the first name and the second name into the calling position of each reply content, and generating a plurality of candidate reply messages;
and acquiring target reply information selected by the current user from the candidate reply information, and sending the target reply information to the communication object through the application program.
2. The method of claim 1, wherein reading the second name of the communication object according to the application setting information of the application program comprises:
and reading the second name of the communication object from the contact name control according to the application page setting information of the application program.
3. The method of claim 1, wherein reading the second name of the communication object according to the application setting information of the application program comprises:
and reading the second name of the communication object from a registered name control according to the application registration setting information of the application program.
4. The method of claim 1, wherein after said comparing whether said first name and said second name are the same, further comprising:
if the first name is the same as the second name through comparison, carrying out duplicate removal processing on the first name and the second name;
and inserting the first name or the second name into the call position of each reply content to generate one or more candidate reply messages.
5. The method of claim 1, further comprising:
and acquiring parameter information of the target reply information training network neural model selected by the current user in a preset time period, and generating a name scoring model.
6. The method of claim 5, wherein after inserting the first name and the second name into the call-out location of each reply content, respectively, to generate a plurality of candidate reply messages, further comprising:
scoring the candidate reply information corresponding to the first name and the candidate reply information corresponding to the second name according to the name scoring model;
and deleting the candidate reply information with low score according to the scoring result, and providing the candidate reply information with high score for the user.
7. The method of any of claims 1-6, further comprising, prior to said identifying a first name of said communication object based on a name corpus analysis of said context information:
judging whether a third name corresponding to the communication object is set and stored in an automatic information reply function of the current user, wherein the priority of the third name is higher than that of the first name and that of the second name;
if the fact that the current user does not set the third name in the automatic information reply function is known, the first name of the communication object is identified according to name corpus analysis of the context information;
and if the third name is set in the automatic information reply function by the current user, inserting the third name into the call position of each reply content to generate one or more candidate reply information.
8. An automatic information reply device, comprising:
the first generation module is used for analyzing the context information of the current user and the communication object through the application program according to the natural language processing model and automatically generating one or more reply contents;
the obtaining module is used for analyzing and identifying a first name of the communication object according to the name corpus of the context information and reading a second name of the communication object according to the application setting information of the application program;
the processing module is used for comparing whether the first name and the second name are the same or not;
a second generating module, configured to insert the first name and the second name into a call location of each reply content, if it is known that the first name and the second name are different, and generate multiple candidate reply messages;
and the sending module is used for acquiring the target reply information selected by the current user from the candidate reply information and sending the target reply information to the communication object through the application program.
9. The apparatus of claim 8, wherein the acquisition module is specifically configured to:
and reading the second name of the communication object from the contact name control according to the application page setting information of the application program.
10. The apparatus of claim 8, wherein the acquisition module is specifically configured to:
and reading the second name of the communication object from a registered name control according to the application registration setting information of the application program.
11. The apparatus of claim 8, wherein the second generating module is further to:
if the first name is the same as the second name through comparison, carrying out duplicate removal processing on the first name and the second name;
and inserting the first name or the second name into the call position of each reply content to generate one or more candidate reply messages.
12. The apparatus of claim 8, further comprising:
and the third generation module is used for acquiring parameter information of the target reply information training network neural model selected by the current user in a preset time period and generating a name scoring model.
13. The apparatus of claim 12, further comprising:
the screening module is used for scoring the candidate reply information corresponding to the first name and the candidate reply information corresponding to the second name according to the name scoring model; and deleting the candidate reply information with low score according to the scoring result, and providing the candidate reply information with high score for the user.
14. The apparatus of any of claims 8-13, further comprising:
a fourth generating module, configured to determine whether a third name corresponding to the communication object is set and stored in an automatic information reply function of the current user, where a priority of the third name is higher than the first name and the second name; if the fact that the current user does not set the third name in the automatic information reply function is known, the first name of the communication object is identified according to name corpus analysis of the context information; and if the third name is set in the automatic information reply function by the current user, inserting the third name into the call position of each reply content to generate one or more candidate reply information.
15. A terminal device comprising a processor and a memory;
wherein the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for implementing the information automatic reply method according to any one of claims 1 to 7.
16. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the method for automatically replying to information according to any one of claims 1 to 7.
CN201810404909.1A 2018-04-28 2018-04-28 Automatic information reply method, device and equipment Active CN110417635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810404909.1A CN110417635B (en) 2018-04-28 2018-04-28 Automatic information reply method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810404909.1A CN110417635B (en) 2018-04-28 2018-04-28 Automatic information reply method, device and equipment

Publications (2)

Publication Number Publication Date
CN110417635A CN110417635A (en) 2019-11-05
CN110417635B true CN110417635B (en) 2021-08-24

Family

ID=68357571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810404909.1A Active CN110417635B (en) 2018-04-28 2018-04-28 Automatic information reply method, device and equipment

Country Status (1)

Country Link
CN (1) CN110417635B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111443973B (en) * 2020-03-26 2021-10-08 腾讯科技(深圳)有限公司 Filling method, device and equipment of remark information and storage medium
CN111935496B (en) * 2020-08-21 2022-05-06 腾讯科技(深圳)有限公司 Information display method and related equipment
CN112527126B (en) * 2020-12-23 2023-11-07 北京百度网讯科技有限公司 Information acquisition method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7085806B1 (en) * 2000-11-03 2006-08-01 Matchnet Plc Method and apparatus for recommending a match to another
CN103051769A (en) * 2012-12-14 2013-04-17 广东欧珀移动通信有限公司 Method and system of mobile terminal for adding contact name to message
CN104144392A (en) * 2013-05-08 2014-11-12 华为技术有限公司 Message processing method, device and system
CN107577655A (en) * 2016-07-05 2018-01-12 北京国双科技有限公司 Name acquiring method and apparatus
CN107636568A (en) * 2015-06-07 2018-01-26 苹果公司 Response of the personalization prediction to instant message

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016167424A1 (en) * 2015-04-16 2016-10-20 주식회사 플런티코리아 Answer recommendation device, and automatic sentence completion system and method
KR102477272B1 (en) * 2015-04-16 2022-12-14 삼성전자주식회사 Method of recommanding a reply message and apparatus thereof
CN106789595A (en) * 2017-01-17 2017-05-31 北京诸葛找房信息技术有限公司 Information-pushing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7085806B1 (en) * 2000-11-03 2006-08-01 Matchnet Plc Method and apparatus for recommending a match to another
CN103051769A (en) * 2012-12-14 2013-04-17 广东欧珀移动通信有限公司 Method and system of mobile terminal for adding contact name to message
CN104144392A (en) * 2013-05-08 2014-11-12 华为技术有限公司 Message processing method, device and system
CN107636568A (en) * 2015-06-07 2018-01-26 苹果公司 Response of the personalization prediction to instant message
CN107577655A (en) * 2016-07-05 2018-01-12 北京国双科技有限公司 Name acquiring method and apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"微信公众号怎么设置关键词回复";c小姐漫谈;《https://jingyan.baidu.com/article/b907e62780098846e7891ca3.html》;20171030;全文 *

Also Published As

Publication number Publication date
CN110417635A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN107832286B (en) Intelligent interaction method, equipment and storage medium
CN110417635B (en) Automatic information reply method, device and equipment
CN111930940A (en) Text emotion classification method and device, electronic equipment and storage medium
US11630957B2 (en) Natural language processing method and apparatus
CN105960674A (en) Information processing device
CN110673748A (en) Method and device for providing candidate long sentences in input method
CN112328489B (en) Test case generation method and device, terminal equipment and storage medium
CN110019729B (en) Intelligent question-answering method, storage medium and terminal
CN111078856A (en) Group chat conversation processing method and device and electronic equipment
CN110706312A (en) Method and device for determining file of expression package and electronic equipment
CN108776677B (en) Parallel sentence library creating method and device and computer readable storage medium
CN111768781A (en) Voice interruption processing method and device
CN110209768B (en) Question processing method and device for automatic question answering
CN110187780B (en) Long text prediction method, long text prediction device, long text prediction equipment and storage medium
CN112417107A (en) Information processing method and device
CN110909133A (en) Intelligent question and answer testing method and device, electronic equipment and storage medium
CN113840040B (en) Man-machine cooperation outbound method, device, equipment and storage medium
CN107680598B (en) Information interaction method, device and equipment based on friend voiceprint address list
CN110362826A (en) Periodical submission method, equipment and readable storage medium storing program for executing based on artificial intelligence
CN110750626B (en) Scene-based task-driven multi-turn dialogue method and system
CN110929014B (en) Information processing method, information processing device, electronic equipment and storage medium
CN107623620B (en) Processing method of random interaction data, network server and intelligent dialogue system
KR102357620B1 (en) Chatbot integration agent platform system and service method thereof
CN112818689A (en) Entity identification method, model training method and device
CN111353027A (en) Answer feedback method, device, computer equipment and medium in chat robot

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