Movatterモバイル変換


[0]ホーム

URL:


CN106446054B - A kind of information recommendation method, device and electronic equipment - Google Patents

A kind of information recommendation method, device and electronic equipment
Download PDF

Info

Publication number
CN106446054B
CN106446054BCN201610799080.0ACN201610799080ACN106446054BCN 106446054 BCN106446054 BCN 106446054BCN 201610799080 ACN201610799080 ACN 201610799080ACN 106446054 BCN106446054 BCN 106446054B
Authority
CN
China
Prior art keywords
data
replied
reply
candidate item
reply 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
CN201610799080.0A
Other languages
Chinese (zh)
Other versions
CN106446054A (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 Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development 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 Sogou Technology Development Co LtdfiledCriticalBeijing Sogou Technology Development Co Ltd
Priority to CN201610799080.0ApriorityCriticalpatent/CN106446054B/en
Publication of CN106446054ApublicationCriticalpatent/CN106446054A/en
Application grantedgrantedCritical
Publication of CN106446054BpublicationCriticalpatent/CN106446054B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The present invention relates to the communications field, a kind of information recommendation method, device and electronic equipment are disclosed, to solve to be directed to the slow technical problem of its corresponding candidate item to be replied of data acquisition to be replied in the prior art.This method comprises: obtaining first wait after replying data, it can be based on the data cached of electronic equipment local, determine at least one reply candidate item corresponding with the described first data to be replied, at least one described reply candidate item is exported, finally so that the user of current electronic device generates the reply content for the described first data to be replied based at least one described reply candidate item.Namely at least one reply candidate item for the first data to be returned can be locally directly obtained in electronic equipment, without being obtained from network server, so having reached the technical effect for improving the speed for obtaining candidate item to be replied, and in the case where electronic equipment is not networked, corresponding candidate item to be replied can be also obtained.

Description

Information recommendation method and device and electronic equipment
Technical Field
The present invention relates to the field of communications, and in particular, to an information recommendation method and apparatus, and an electronic device.
Background
With the continuous development of science and technology, electronic technology has also gained rapid development, and the variety of electronic products is also more and more, and people also enjoy various conveniences brought by the development of science and technology. People can enjoy comfortable life brought along with the development of science and technology through various client devices. For example, client devices such as a notebook computer, a desktop computer, a smart phone, and a tablet computer have become an important part of people's life, and a user can listen to music, play games, and the like by using the client devices such as the mobile phone and the tablet computer, so as to reduce the pressure of modern fast-paced life.
In the prior art, the electronic device may obtain various data to be replied, for example: the method comprises the steps of receiving communication contents (such as short messages, WeChat, mails and the like), obtaining network question and answer data and the like, and replying for the contents to be replied.
Disclosure of Invention
The invention provides an information recommendation method, an information recommendation device and electronic equipment, and aims to solve the technical problem that in the prior art, the speed of acquiring corresponding candidate items to be replied from data to be replied is low.
In a first aspect, an embodiment of the present invention provides an information recommendation method, including:
obtaining first data to be replied;
determining at least one reply candidate item corresponding to the first data to be replied based on local cache data of the electronic equipment;
and outputting the at least one reply candidate item for a user of the electronic equipment to generate reply content for replying to the first data to be replied based on the at least one reply candidate item.
With reference to the first aspect, in a first possible implementation manner, the method further includes:
acquiring a corresponding relation between the data to be replied and the reply candidate items determined based on the historical dialogue data;
using the corresponding relation as the cache data to be prestored in the local electronic equipment;
the determining at least one reply candidate item corresponding to the first data to be replied includes:
and searching the first data to be replied in the corresponding relation pre-stored locally in the electronic equipment to obtain the at least one reply candidate item.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, the historical dialog data includes: at least one of historical answer records and historical input records.
With reference to the first possible implementation manner of the first aspect, in a third possible implementation manner, the obtaining of the at least one reply candidate item by searching the corresponding relationship, where the first data to be replied is pre-stored locally in the electronic device, includes:
matching the first data to be replied with each data to be replied in the corresponding relation;
if the matching is successful, taking a reply candidate item corresponding to the successfully matched data to be replied as the at least one reply candidate item;
if the matching is not successful, splitting the first data to be replied into a plurality of subdata; and matching the plurality of sub-data with each piece of data to be replied in the corresponding relation respectively to obtain a reply candidate item corresponding to the data to be replied matched with part of the sub-data in the plurality of sub-data as the at least one reply candidate item.
With reference to the first possible implementation manner of the first aspect, in a fourth possible implementation manner, the obtaining a correspondence between data to be replied and reply candidates determined based on historical dialogue data includes:
obtaining at least one group of historical answering records based on the historical dialogue data, wherein each group of historical answering records comprises data to be replied and reply contents corresponding to the data;
extracting corresponding reply content for each piece of data to be replied;
and taking the reply content meeting the preset condition corresponding to the data to be replied as a reply candidate item corresponding to the data to be replied, and further establishing a corresponding relation between the data to be replied and the reply candidate item.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner, the obtaining at least one group of historical answer records includes: obtaining the at least one group of historical answer records generated by the user in reply content, wherein the cache data comprises: personalized cache data determined based on historical conversation data generated by the user; and/or the presence of a gas in the gas,
the obtaining at least one group of historical answer records comprises: determining at least one sampling user; obtaining the at least one set of historical answer records generated by the at least one sampling user in reply content, wherein the cache data comprises: overall cached data determined based on the at least one sample of historical dialog data generated by the user.
With reference to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner, if the cache data includes the personalized cache data, the method further includes:
and adding the synonym of the reply content meeting the preset condition corresponding to the data to be replied into the personalized cache data, and further taking the synonym as a reply candidate item corresponding to the data to be replied.
With reference to the fifth possible implementation manner of the first aspect, in a seventh possible implementation manner, the obtaining the at least one group of historical answer records generated by the user in response to the content includes:
acquiring reply data of the user for communication content;
extracting at least one group of question-answer pairs from the reply data, wherein each group of question-answer pairs comprises: the communication content and the reply content aiming at the corresponding communication content, and the at least one group of question-answer pairs are the at least one group of historical answer records generated by the user.
With reference to the first aspect and any one of the first to seventh possible implementation manners of the first aspect, in an eighth possible implementation manner, the outputting the at least one reply candidate includes:
determining the social relationship between the generator of the first data to be replied and the user;
ranking the at least one reply candidate based on the social relationship;
and outputting the at least one sorted reply candidate item.
With reference to the eighth possible implementation manner of the first aspect, in a ninth possible implementation manner, the determining a social relationship between a generator of the first data to be replied and the user includes:
acquiring communication content between the producer and the user;
extracting a first preset keyword contained in the communication content;
determining the social relationship between the producer and the user based on the first predetermined keyword.
With reference to the first aspect and any one of the first to seventh possible implementation manners of the first aspect, in a tenth possible implementation manner, the outputting the at least one reply candidate includes:
outputting the at least one reply candidate item through an application program accessing the first data to be replied; or,
and outputting the at least one reply candidate as an input candidate of the input method application program.
With reference to the first aspect and any one of the first to seventh possible implementation manners of the first aspect, in an eleventh possible implementation manner, the method further includes:
judging whether the first data to be replied is data to be replied generated by a communication identifier of a preset category;
if yes, extracting reply candidates from the first data to be replied based on a second preset keyword contained in the first data to be replied.
In a second aspect, an embodiment of the present invention provides an information recommendation apparatus, including:
the first obtaining module is used for obtaining first data to be replied;
the determining module is used for determining at least one reply candidate item corresponding to the first data to be replied based on local cache data of the electronic equipment;
and the output module is used for outputting the at least one reply candidate item so as to enable a user of the electronic equipment to generate reply content for replying the first data to be replied based on the at least one reply candidate item.
With reference to the second aspect, in a first possible implementation manner, the apparatus further includes:
the second obtaining module is used for obtaining the corresponding relation between the data to be replied and the reply candidate items determined based on the historical dialogue data;
the pre-storing module is used for pre-storing the corresponding relation serving as the cache data in the local electronic equipment;
the determining module is configured to: and searching the first data to be replied in the corresponding relation pre-stored locally in the electronic equipment to obtain the at least one reply candidate item.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner, the historical dialog data includes: at least one of historical answer records and historical input records.
With reference to the first possible implementation manner of the second aspect, in a third possible implementation manner, the determining module includes:
the matching unit is used for matching the first data to be replied with each data to be replied in the corresponding relation;
the first determining unit is used for taking a reply candidate item corresponding to the successfully matched data to be replied as the at least one reply candidate item if the matching is successful;
the difference unit is used for splitting the first data to be replied into a plurality of subdata if the matching is not successful; and matching the plurality of sub-data with each piece of data to be replied in the corresponding relation respectively to obtain a reply candidate item corresponding to the data to be replied matched with part of the sub-data in the plurality of sub-data as the at least one reply candidate item.
With reference to the first possible implementation manner of the second aspect, in a fourth possible implementation manner, the second obtaining module includes:
the obtaining unit is used for obtaining at least one group of historical answer records based on the historical dialogue data, and each group of historical answer records comprises data to be replied and reply contents corresponding to the data;
the extraction unit is used for extracting corresponding reply content of each piece of data to be replied;
the establishing unit is used for taking the reply content meeting the preset condition corresponding to the data to be replied as the reply candidate item corresponding to the data to be replied, and further establishing the corresponding relation between the data to be replied and the reply candidate item.
With reference to the fourth possible implementation manner of the second aspect, in a fifth possible implementation manner, the obtaining unit is configured to: obtaining the at least one group of historical answer records generated by the user in reply content, wherein the cache data comprises: personalized cache data determined based on historical conversation data generated by the user; and/or the presence of a gas in the gas,
the obtaining unit is configured to: determining at least one sampling user; obtaining the at least one set of historical answer records generated by the at least one sampling user in reply content, wherein the cache data comprises: overall cached data determined based on the at least one sample of historical dialog data generated by the user.
With reference to the fifth possible implementation manner of the second aspect, in a sixth possible implementation manner, if the cache data includes the personalized cache data, the apparatus further includes:
and the adding module is used for adding the synonym of the reply content meeting the preset condition corresponding to the data to be replied into the personalized cache data so as to serve as a reply candidate item corresponding to the data to be replied.
With reference to the fifth possible implementation manner of the second aspect, in a seventh possible implementation manner, the obtaining unit includes:
a first obtaining subunit, configured to obtain reply data of the user for communication content;
a first extracting subunit, configured to extract at least one group of question-answer pairs from the reply data, where each group of question-answer pairs includes: the communication content and the reply content aiming at the corresponding communication content, and the at least one group of question-answer pairs are the at least one group of historical answer records generated by the user.
With reference to the second aspect and any one possible implementation manner of the first to the seventh possible implementation manners of the second aspect, in an eighth possible implementation manner, the output module includes:
the second determining unit is used for determining the social relationship between the generator of the first data to be replied and the user;
the sorting unit is used for sorting the at least one reply candidate item based on the social relationship;
and the output unit is used for outputting the at least one reply candidate after sorting.
With reference to the eighth possible implementation manner of the second aspect, in a ninth possible implementation manner, the second determining unit includes:
a second acquisition subunit, configured to acquire communication content between the producer and the user;
a second extraction subunit, configured to extract a first predetermined keyword included in the communication content;
a determining subunit, configured to determine the social relationship between the producer and the user based on the first predetermined keyword.
With reference to the second aspect and any one possible implementation manner of the first to seventh possible implementation manners of the second aspect, in a tenth possible implementation manner, the output module is configured to:
outputting the at least one reply candidate item through an application program accessing the first data to be replied; or,
and outputting the at least one reply candidate as an input candidate of the input method application program.
With reference to the second aspect and any one possible implementation manner of the first to seventh possible implementation manners of the second aspect, in an eleventh possible implementation manner, the apparatus further includes:
the judging module is used for judging whether the first data to be replied is data to be replied generated by a communication identifier of a preset category;
and if so, extracting reply candidate items from the first data to be replied based on a second preset keyword contained in the first data to be replied.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by one or more processors includes instructions for:
obtaining first data to be replied;
determining at least one reply candidate item corresponding to the first data to be replied based on local cache data of the electronic equipment;
and outputting the at least one reply candidate item for a user of the electronic equipment to generate reply content for replying to the first data to be replied based on the at least one reply candidate item.
With reference to the third aspect, in a first possible implementation, the electronic device is further configured to execute the one or more programs by the one or more processors includes instructions for:
acquiring a corresponding relation between the data to be replied and the reply candidate items determined based on the historical dialogue data;
using the corresponding relation as the cache data to be prestored in the local electronic equipment;
the determining at least one reply candidate item corresponding to the first data to be replied includes:
and searching the first data to be replied in the corresponding relation pre-stored locally in the electronic equipment to obtain the at least one reply candidate item.
With reference to the first possible implementation manner of the third aspect, in a second possible implementation manner, the historical dialog data includes: at least one of historical answer records and historical input records.
With reference to the first possible implementation manner of the third aspect, in a third possible implementation manner, the electronic device is further configured to execute the one or more programs by the one or more processors includes instructions for:
matching the first data to be replied with each data to be replied in the corresponding relation;
if the matching is successful, taking a reply candidate item corresponding to the successfully matched data to be replied as the at least one reply candidate item;
if the matching is not successful, splitting the first data to be replied into a plurality of subdata; and matching the plurality of sub-data with each piece of data to be replied in the corresponding relation respectively to obtain a reply candidate item corresponding to the data to be replied matched with part of the sub-data in the plurality of sub-data as the at least one reply candidate item.
With reference to the first possible implementation manner of the third aspect, in a fourth possible implementation manner, the electronic device is further configured to execute the one or more programs by the one or more processors includes instructions for:
obtaining at least one group of historical answering records based on the historical dialogue data, wherein each group of historical answering records comprises data to be replied and reply contents corresponding to the data;
extracting corresponding reply content for each piece of data to be replied;
and taking the reply content meeting the preset condition corresponding to the data to be replied as a reply candidate item corresponding to the data to be replied, and further establishing a corresponding relation between the data to be replied and the reply candidate item.
With reference to the fourth possible implementation manner of the third aspect, in a fifth possible implementation manner, the electronic device is further configured to execute the one or more programs by the one or more processors includes instructions for:
obtaining the at least one group of historical answer records generated by the user in reply content, wherein the cache data comprises: personalized cache data determined based on historical conversation data generated by the user; and/or the presence of a gas in the gas,
the apparatus is also configured to execute, by one or more processors, the one or more programs including instructions for:
determining at least one sampling user; obtaining the at least one set of historical answer records generated by the at least one sampling user in reply content, wherein the cache data comprises: overall cached data determined based on the at least one sample of historical dialog data generated by the user.
With reference to the fifth possible implementation manner of the third aspect, in a sixth possible implementation manner, if the cache data includes the personalized cache data, the electronic device is further configured to execute, by the one or more processors, the one or more programs including instructions for:
and adding the synonym of the reply content meeting the preset condition corresponding to the data to be replied into the personalized cache data, and further taking the synonym as a reply candidate item corresponding to the data to be replied.
With reference to the fifth possible implementation manner of the third aspect, in a seventh possible implementation manner, the electronic device is further configured to execute the one or more programs by the one or more processors includes instructions for:
acquiring reply data of the user for communication content;
extracting at least one group of question-answer pairs from the reply data, wherein each group of question-answer pairs comprises: the communication content and the reply content aiming at the corresponding communication content, and the at least one group of question-answer pairs are the at least one group of historical answer records generated by the user.
With reference to the third aspect and any one of the first to seventh possible implementation manners of the third aspect, in an eighth possible implementation manner, the electronic device is further configured to execute, by the one or more processors, the one or more programs including instructions for:
determining the social relationship between the generator of the first data to be replied and the user;
ranking the at least one reply candidate based on the social relationship;
and outputting the at least one sorted reply candidate item.
With reference to the eighth possible implementation manner of the third aspect, in a ninth possible implementation manner, the electronic device is further configured to execute the one or more programs by the one or more processors, and the instructions include instructions for:
acquiring communication content between the producer and the user;
extracting a first preset keyword contained in the communication content;
determining the social relationship between the producer and the user based on the first predetermined keyword.
With reference to the third aspect and any one of the first to seventh possible implementations of the third aspect, in a tenth possible implementation, the electronic device is further configured to execute, by the one or more processors, the one or more programs including instructions for:
outputting the at least one reply candidate item through an application program accessing the first data to be replied; or,
and outputting the at least one reply candidate as an input candidate of the input method application program.
With reference to the third aspect and any one of the first to seventh possible implementation manners of the third aspect, in an eleventh possible implementation manner, the electronic device is further configured to execute, by the one or more processors, the one or more programs including instructions for:
judging whether the first data to be replied is data to be replied generated by a communication identifier of a preset category;
if yes, extracting reply candidates from the first data to be replied based on a second preset keyword contained in the first data to be replied.
The invention has the following beneficial effects:
in the embodiment of the present invention, after the first data to be replied is obtained, at least one reply candidate corresponding to the first data to be replied may be determined based on local cache data of the electronic device, and finally, the at least one reply candidate is output, so that a user of the current electronic device can generate reply content for the first data to be replied based on the at least one reply candidate. That is, at least one reply candidate item for the first to-be-replied data can be directly acquired locally in the electronic device without being acquired from the network server, so that the technical effect of increasing the speed of acquiring the to-be-replied candidate item is achieved, and the corresponding to-be-replied candidate item can be acquired under the condition that the electronic device is not networked.
Drawings
FIG. 1 is a flow chart of an information recommendation method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for determining a correspondence between data to be replied and reply candidates in an information recommendation method according to an embodiment of the present invention;
FIG. 3 is a block diagram of an information recommendation device according to an embodiment of the present invention;
fig. 4 is a block diagram of an electronic device implementing an information recommendation method according to an embodiment of the present invention.
Detailed Description
The invention provides an information recommendation method, an information recommendation device and electronic equipment, and aims to solve the technical problem that in the prior art, the speed of acquiring corresponding candidate items to be replied from data to be replied is low.
In order to solve the technical problems, the general idea of the embodiment of the present application is as follows:
after the first data to be replied is obtained, at least one replying candidate item corresponding to the first data to be replied can be determined based on local cache data of the electronic equipment, and finally the at least one replying candidate item is output for a user of the current electronic equipment to generate replying content aiming at the first data to be replied based on the at least one replying candidate item. That is, at least one reply candidate item for the first to-be-replied data can be directly acquired locally in the electronic device without being acquired from the network server, so that the technical effect of increasing the speed of acquiring the to-be-replied candidate item is achieved, and the corresponding to-be-replied candidate item can be acquired under the condition that the electronic device is not networked.
In order to better understand the technical solutions of the present invention, the following detailed descriptions of the technical solutions of the present invention are provided with the accompanying drawings and the specific embodiments, and it should be understood that the specific features in the embodiments and the examples of the present invention are the detailed descriptions of the technical solutions of the present invention, and are not limitations of the technical solutions of the present invention, and the technical features in the embodiments and the examples of the present invention may be combined with each other without conflict.
In a first aspect, an embodiment of the present invention provides an information recommendation method, please refer to fig. 1, including:
step S101: obtaining first data to be replied;
step S102: determining at least one reply candidate item corresponding to the first data to be replied based on local cache data of the electronic equipment;
step S103: and outputting the at least one reply candidate item for a user of the electronic equipment to generate reply content for replying to the first data to be replied based on the at least one reply candidate item.
For example, the solution applies to electronic devices, such as: a mobile phone, a tablet computer, a PC (personal computer), a notebook computer, etc., and the embodiments of the present invention are not limited thereto.
In a specific implementation process, the first data to be replied may include one or more data, for example, the first data to be replied is communication content received by the electronic device, for example, short messages, multimedia messages, emails, instant chat content and the like received by the electronic device, and the first data to be replied is network question content, for example, a question "whale is mammal?" is asked at a knowledge question and answer website by a user, the question data is a record to be replied, of course, the first data to be replied may also be other data, and embodiments of the present invention are not limited.
The cache data can be determined in the following way: acquiring a corresponding relation between the data to be replied and the reply candidate items determined based on the historical dialogue data; and taking the corresponding relation as the cache data to be prestored in the local electronic equipment.
For example, the historical dialogue data includes any one of the following data: the method includes that (1) a history reply record, where the history reply record often includes content to be replied and reply content generated for the content to be replied, for example: if the historical dialogue data is communication content, the content to be replied in the historical reply records refers to the communication text and the reply content is generated for the communication text, or the content to be replied in a group of the historical reply records refers to network question data and the reply content is generated for the network question data and the like. A history input record, for example, data input by the user through the input method application, such as: the occurrence number of each data (sentence or word) may be counted, and then the data with the occurrence number larger than a preset number (e.g., 100, 1000, etc.) or with the occurrence number sorted at a preset top position (e.g., 1000, 5000, etc.) may be obtained as the historical dialogue data for determining the cache data. The historical dialogue data used for determining the cache data includes, for example: data obtained through instant chat software, data obtained through communication applications, other data obtained over the internet, and the like.
The historical dialogue data for determining the reply candidate may be generated by an application program that obtains the first data to be replied, for example: if the first data to be replied is the content to be replied received by the short message application program, determining a reply candidate item based on a history reply record aiming at the short message, or determining the reply candidate item based on a history input record generated by a user aiming at the short message application program; the history reply records used to determine the reply candidates may also be generated by a plurality of applications, such as: the reply candidate item for each content to be replied can be determined based on the history reply records generated by a plurality of application programs (such as short messages and instant chat software) together, or the reply candidate item can be determined based on the history input records generated by the user through the plurality of application programs, so that the reply candidate item corresponding to the first data to be replied can be provided for the user no matter which application program the current electronic equipment obtains the first data to be replied through.
In the specific implementation process, at least one reply candidate may be determined in various ways, and two of them are listed below for description, of course, in the specific implementation process, the method is not limited to the following two cases.
The first method for determining at least one reply candidate item corresponding to the first data to be replied includes: the at least one reply candidate item is obtained by searching the first data to be replied in the correspondence between the content to be replied and the reply candidate item pre-stored locally, where the correspondence may be obtained in multiple ways, two of which are listed below for introduction, and certainly, in the specific implementation process, the method is not limited to the following two cases.
(1) Referring to fig. 2, the corresponding relationship can be determined by the following method:
step S201: obtaining at least one group of historical answering records based on the historical dialogue data, wherein each group of historical answering records comprises data to be replied and reply contents corresponding to the data;
step S202: extracting corresponding reply content for each piece of data to be replied;
step S203: and taking the reply content meeting the preset condition corresponding to the data to be replied as a reply candidate item corresponding to the data to be replied, and further establishing a corresponding relation between the data to be replied and the reply candidate item.
In step S201, the historical dialogue data may be historical dialogue data generated by a user of the current electronic device, or may be historical dialogue data obtained based on the whole network, and further, at least one group of historical dialogue records may be historical dialogue records of multiple users, for example:
specifically, when the reply content aiming at the first data to be replied is determined through the history answering records, only the history answering records of the current user are considered, the determined reply content is more accurate because only the current user is considered, for example, the electronic equipment may often receive a short message of 'several points off duty?', the electronic equipment sometimes replies '9 points', sometimes replies '8 points', then 'several points off duty?' and '9 points' form a group of answering pairs, 'several points off duty?' and '8 points' form a group of answering pairs, personalized cache data of 'several points off duty?', when the electronic equipment directly receives two candidate items of reply short messages, two candidate items of short messages can be directly input without clicking the short message, and the user can directly input two candidate items of short messages according to the communication content.
Determining at least one sampling user; the at least one group of historical answer records generated by the at least one sampling user of the reply content, such as all users in the system, part of users in the system and the like, are obtained, and based on the scheme, the historical answer records of each user do not need to be analyzed independently, so that the efficiency of obtaining the reply content can be improved, and the processing burden of the device is reduced.
In step S202, the content to be replied in each group of history answer records may be obtained first, and then the same content to be replied is merged to obtain all the content to be replied included in the history answer records, where the content to be replied in one group of history answer records refers to the communication text and the reply content is the reply content generated for the communication text, or the content to be replied in one group of history answer records refers to the web quiz data and the reply content is the answer generated for the web quiz data, and so on.
In step S203, after all the data to be replied contained in the history reply record are obtained, the reply content corresponding to each piece of data to be replied may be obtained, and the number of occurrences of each piece of reply content is obtained, for example, it is assumed that the data to be replied includes "several hours left work?", "you have eaten food?", "morning break, evening" and the corresponding reply contents are respectively shown in table 1:
TABLE 1
After obtaining each piece of data to be replied and the corresponding reply content thereof, the reply content with the reply frequency greater than the preset frequency (for example, 20, 30, etc.) can be obtained for each piece of data to be replied as the corresponding reply candidate item, or the reply content can be sorted from high to low according to the reply frequency, then the reply content in the first few bits (for example, 4, 5, etc.) is obtained as the reply candidate item, and the example of obtaining the reply frequency greater than the preset frequency (for example, 20) is that the "few off-duty?" of the data to be replied contains two reply candidate items, namely, 8 and 9, and the "no one after you have eaten"? "of the data to be replied contains six reply candidate items, namely, the" one before you have eaten "and no one after you have eaten", the data to be replied "and the" one after you have a rest ", specifically, the" one after you have a rest "contains one reply candidate item, and the detailed examples of the invention are not limited.
(2) The correspondence may be obtained by: the method comprises the steps of obtaining historical input records with the occurrence times meeting preset conditions, taking each historical input record with the occurrence times meeting the preset conditions as data to be replied, and setting reply contents of each data to be replied in a manual mode, so that the corresponding relation between the data to be replied and reply candidate items corresponding to the data to be replied can be obtained.
In a specific implementation process, since historical dialogue data is different, cache data cached in a local area of the electronic device is also different, for example: if the historical dialogue data is historical dialogue data (such as historical answer records, historical input records and the like) of a user of the current electronic equipment, the cache data is personalized cache data determined based on the historical dialogue data generated by the user, and the personalized cache data is more suitable for requirements of the user of the current electronic equipment and is more accurate; if the historical dialogue data (such as historical answer records, historical input records and the like) is the historical dialogue data generated by at least one sampling user (such as a whole network user), the cache data is overall cache data determined based on the historical dialogue data generated by the at least one sampling user, the overall cache data does not need to be calculated on each electronic device respectively, and can be sent to each electronic device after being calculated by the server, and therefore the processing load of the electronic devices can be reduced.
As a further optional embodiment, the method further comprises: and if the cache data comprises the personalized cache data, adding the synonym of the reply content meeting the preset condition corresponding to the data to be replied into the personalized cache data, and further taking the synonym as a reply candidate item corresponding to the data to be replied.
For example, in addition to determining the reply candidates based on the historical dialogue data (e.g., the historical answer records) of the user of the current electronic device and then obtaining the personalized cache data, in order to further expand the number of the reply candidates in the personalized cache data, synonyms of reply contents meeting preset conditions may be further obtained as the reply candidates corresponding to the data to be replied, for example: if the data to be replied is 'morning break, evening' and the obtained reply content meeting the preset condition contains 'evening', the synonyms 'An' and 'Anla' of 'evening' can be used as the reply candidate items of 'morning break, evening', so that three reply candidate items are obtained for the data to be replied 'morning break, evening', and the three reply candidate items are respectively: firstly, late An, An and Anla, then all the three reply candidate items are added into the personalized cache data, and further the number of the reply candidate items is expanded.
When the first to-be-replied data is matched with the corresponding relationship, various ways may be adopted, two of which are listed below for description, and of course, in the specific implementation process, the following two cases are not limited.
(1) The obtaining of the at least one reply candidate item by searching the corresponding relationship between the data to be replied and the reply candidate item through the first data to be replied includes: matching the first data to be replied with each data to be replied in the corresponding relation; if the matching is successful, taking a reply candidate item corresponding to the successfully matched data to be replied as the at least one reply candidate item; if the matching is not successful, splitting the first data to be replied into a plurality of subdata; and matching the plurality of sub-data with each piece of data to be replied in the corresponding relation respectively to obtain a reply candidate item corresponding to the data to be replied matched with part of the sub-data in the plurality of sub-data as the at least one reply candidate item.
For example, if the first to-be-replied data is 'I want to visit a street today and you are working at work?', the 'I want to visit a street today' and the whole of the 'you are working at work?' is matched with each to-be-replied data in the corresponding relationship, whether the to-be-replied data is the same as a certain to-be-replied data in the corresponding relationship is respectively compared, if the to-be-replied data is the same as the data to be replied, a reply candidate item corresponding to the to-be-replied data is used as a reply candidate item of the first to-be-replied data, if the to-be-replied data does not exist, the to-be-replied data is probably because the to-be-replied data is longer, the to-replied data can be divided into a plurality of sub-data, the sub-to-replied data can be divided according to punctuation marks, spaces and the like layer by layer, for example, the 'I want to visit a street today', the 'the sub-to-work?' passes through punctuation marks ', the' and the two parts of sub-data are respectively matched with the corresponding to-reply data, and the corresponding reply data can be obtained through a corresponding reply scheme 539 8.
(2) The obtaining of the at least one reply candidate item by searching the corresponding relationship between the data to be replied and the reply candidate item through the first data to be replied includes: matching the first data to be replied with each data to be replied in the corresponding relation; if the matching is successful, taking a reply candidate item corresponding to the successfully matched data to be replied as the at least one reply candidate item; and if the matching is not successful, determining that the reply candidate does not exist for the first data to be replied. By the scheme, the matching times can be reduced, so that the processing load of the electronic equipment is reduced.
The server may analyze the history reply record to obtain a corresponding relationship between the data to be replied and the reply candidate item, or the current electronic device may analyze the history reply record to obtain a corresponding relationship between the data to be replied and the reply candidate item. If the server obtains the corresponding relationship between the data to be replied and the reply candidate item, after the current electronic equipment obtains the first data to be replied, the current electronic equipment can send the first data to be replied to the server, and the server searches the corresponding relationship through the first data to be replied to obtain the corresponding reply candidate item; the server can also send the first data to be replied to the current electronic equipment, so that the corresponding relationship is prestored in the current electronic equipment, and then the corresponding reply candidate item can be searched and obtained in the corresponding relationship prestored in the current electronic equipment directly through the first data to be replied.
Secondly, the determining at least one reply candidate item corresponding to the first data to be replied includes: matching the first data to be replied with the data to be replied contained in each group of historical answering records; determining a first historical answering record of the data to be replied and the first data to be replied; and determining the reply candidate item from the reply contents contained in the first history reply record.
For example, after the first data to be replied is obtained, the first data to be replied is directly matched with the data to be replied in each group of history answer records (the record to be replied also refers to the communication context in the history answer records or the network question data), all history answer records with which the data to be replied is obtained as the first history answer records, then the reply content corresponding to each piece of data to be replied is extracted from the first history answer records, and the reply content with the reply frequency greater than the preset number (or the reply content at the previous preset position in the order from high to low according to the reply number) is obtained as the reply candidate item corresponding to the first data to be replied.
In step S103, at least one reply candidate may be output in various manners, and three of them are listed below for introduction, which is of course not limited to the following three cases in the specific implementation process.
First, the outputting the at least one reply candidate, comprises: determining the social relationship between the generator of the first data to be replied and the user; ranking the at least one reply candidate based on the social relationship; and outputting the at least one sorted reply candidate item.
In the specific implementation process, the social relationship between the first data to be replied and the user can be determined by the following method: acquiring communication content between the producer and the user; extracting a first preset keyword contained in the communication content; determining the social relationship between the producer and the user based on the first predetermined keyword.
For example, a database may be preset, in which each social relationship and the keyword corresponding to each social relationship are as shown in table 2:
TABLE 2
Social relationshipsKeyword
Lovers' electric heating deviceCimpas, honey, lovely
Couple of manWife and husband
After the communication content between the generator and the user is obtained, whether the communication content includes the any keyword or not may be determined, if the communication content includes the any keyword, the keyword is extracted as a first predetermined keyword, then the corresponding relationship between the generator of the first data to be replied and the user is determined by the first predetermined keyword, and the corresponding relationship between the generator of the first data to be replied and the user may be determined by using various principles, for example:
determining the probability of each candidate social relationship between the producer and the user through the first preset keyword; determining a social relationship of the producer and the user based on the probability.
For example, assume that the first predetermined keywords comprise keywords as shown in table 3:
TABLE 3
The number of occurrences of the keyword under each social relationship can be determined, and then the probability that the producer and the user belong to the corresponding social relationship can be determined based on the number of occurrences divided by the total number of occurrences, for example: if the number of occurrences of the keyword under the social relationship "lovers" is 1001+355+201 equals 1557 and the total number of occurrences of the keyword equals 1557+50 equals 1607, then it can be determined that the probability that the generator of the first data to be replied has a social relationship of lovers with the user is 1557/1607 and the probability that the generator of the first data to be replied has a social relationship of couples with the user is 50/1607, and then the social relationship with the highest occurrence probability is obtained as the social relationship between the generator of the first data to be replied and the user, for example: and taking the social relationship of the lovers as the social relationship between the first data to be replied and the user, and the like. Based on the scheme, all the keywords contained in each social relation are considered, so that the determined social relation is more accurate.
Obtaining the keywords with the highest occurrence frequency from the first preset keywords; and determining the social relationship corresponding to the keyword with the highest occurrence frequency as the corresponding relationship between the producer and the user.
For example, also taking the first predetermined keyword shown in table 3 as an example, the keyword with the highest occurrence frequency is "mindsda", and the social relationship corresponding to the keyword is a lover social relationship, so that the social relationship between the producer and the user can be determined to be the lover social relationship, and based on this scheme, it is not necessary to calculate the probability for each social probability, so that the processing load of the electronic device can be reduced.
After obtaining the social relationship between the producer and the user of the first data to be replied, for each reply candidate, a probability that it belongs to the social relationship between the producer and the user of the first data to be replied may be determined, and then at least one reply candidate is output after being sorted from high to low in probability, for example: if the social relationship between the first data to be replied and the user is a lover social relationship, the reply candidate item comprises: the probability that the three reply candidates belong to the social relationship of lovers is respectively as follows: 0.1, 0.6, 0.9, then three reply candidates may be output in the following sorting: night safety, dear safety and night safety. In the scheme, the at least one reply candidate item can be ranked differently based on the social relationship between the producer of the first data to be replied and the current user, so that the technical effect of more accurate recommendation of the at least one reply candidate item is achieved.
As an alternative embodiment, when at least one reply candidate is determined based on the personalized cache data, the at least one reply candidate may be ranked based on the social relationship. In combination with the above optional embodiment, the personalized cache data may include, in addition to the reply candidate determined based on the historical dialogue data, a synonym of the personalized cache data, where the synonym may be another word corresponding to a specific social relationship similar to the historical dialogue data in semantic meaning (for example, a word that will be used only when the specific social relationship is "ann", "alao", or the like that is similar to the reply candidate "evening" semantic meaning determined by the historical dialogue data), so that, in a case where the historical answer data does not include a reply candidate corresponding to the specific social relationship, the personalized cache data may also be ranked based on the social relationship between the generator of the first data to be replied and the current user, so as to obtain a reply candidate that better meets the social relationship, and thus achieve a technical effect of more accurately ranking the reply candidates.
Second, the outputting the at least one reply candidate includes: and sorting the at least one reply candidate item according to the occurrence times in the history answering records and then outputting the reply candidate item. For example: sort from high to low, sort from low to high, etc. by number of occurrences.
Third, the outputting the at least one reply candidate includes: and randomly sorting the at least one reply candidate item and then outputting the sorted reply candidate item, wherein in this case, the sorting of the reply candidate items provided for the user each time is different, so that the user can display different reply candidate items on a first screen in a refreshing mode.
In step S103, after outputting the at least one reply candidate, when the user replies to the first data to be replied, the user may select a part of the reply candidates from the at least one reply candidate to add the reply content without inputting the corresponding reply candidate, so as to save the time for the user to input the reply candidate and improve the efficiency of replying the data to be replied.
In step S103, at least one reply candidate may be output by a plurality of applications, and two of the reply candidates are listed below for introduction, which is not limited to the following two cases in the specific implementation process.
First, the outputting the at least one reply candidate, comprises: and outputting the at least one reply candidate item through an application program accessing the first data to be replied.
For example, assuming that the first data to be replied is a short message, at least one reply candidate may be output through the short message application, for example: creating a window (such as a pop-up window, a pull-down window and the like) on an interface of the short message application program, displaying each reply candidate item in the window, if the number of the reply candidate items is too many, displaying part of the reply candidate items on the window, and displaying other reply candidate items in a page turning mode; if the first data to be replied is WeChat, at least one reply candidate item can be output through the WeChat application program, and the like; assuming that the first to-be-replied data is the web questioning data, a window may be newly created in the web page where the web questioning data is located, and at least one reply candidate may be output in the window, and so on.
Second, the outputting the at least one reply candidate includes: and outputting the at least one reply candidate as an input candidate of the input method application program.
For example, the reply candidate is directly output by the input method application, such as: if it is detected that the user opens the application program for receiving the first data to be replied and places the cursor on the reply interface of the application program, it indicates that the user needs to reply to the first data to be replied, in this case, a corresponding reply candidate item may be obtained based on the first data to be replied, and the reply candidate item is output through the input method application program, for example: the reply candidate items are displayed in a candidate word area of the input method application program, and accurate candidate words can be provided through the scheme under the condition that the input method application program does not exist; or, a region can be created through an input method application program, and the reply candidate item is displayed in the created region, and the reply candidate item can be called at any time in the process of inputting reply content by a user through the scheme, so that the effect of more convenient calling is achieved, and the input efficiency is further improved.
As an alternative embodiment, the method further comprises: judging whether the first data to be replied is data to be replied generated by a communication identifier of a preset category; if yes, extracting reply candidates from the first data to be replied based on a second preset keyword contained in the first data to be replied.
For example, the communication identifier of the preset category is, for example, some communication identifiers for automatically sending a short message, such as: 10086. 95588, etc., after the server may collect and store the communication identifiers of the preset categories in advance, after obtaining the first data to be replied, the communication identifier of the first data to be replied may be extracted and matched with the stored communication identifier of the preset category, if the matching is successful, it indicates that the first data to be replied is the data to be replied generated by the communication identifier of the preset category, in this case, the first data to be replied often contains a second predetermined keyword, and the reply candidate item may be directly extracted by the second predetermined keyword, for example, "back", "reply", etc., for example, if the first data to be replied is "xxx and the reply TD is unsubscribed", the reply candidate item "TD" may be extracted based on the second predetermined keyword "reply", and of course, the second predetermined keyword may also be another keyword, the reply candidate extracted based on the second predetermined keyword may also be another candidate, and the embodiment of the present invention is not limited thereto. By the scheme, when the first data to be replied is the data to be replied generated by the communication identifier of the preset category, the reply candidate item can be obtained by directly extracting the first data to be replied, so that the technical effect of more accurate obtained reply candidate item is achieved.
In this case, step S102 is executed on the premise that: if the first data to be replied is not the data to be replied generated by the communication identifier of the predetermined category, step S102 is executed. Based on the scheme, the reply candidate item can be determined in different ways based on different first data to be replied, so as to determine a more accurate reply candidate item.
In a second aspect, based on the same inventive concept, an embodiment of the present invention provides an information recommendation apparatus, please refer to fig. 3, including:
a first obtaining module 30, configured to obtain first data to be replied;
the determining module 31 is configured to determine, based on local cache data of the electronic device, at least one reply candidate corresponding to the first data to be replied;
an output module 32, configured to output the at least one reply candidate item, so that a user of the electronic device generates reply content for replying to the first data to be replied based on the at least one reply candidate item.
Optionally, the apparatus further comprises:
the second obtaining module is used for obtaining the corresponding relation between the data to be replied and the reply candidate items determined based on the historical dialogue data;
the pre-storing module is used for pre-storing the corresponding relation serving as the cache data in the local electronic equipment;
the determining module is configured to: and searching the first data to be replied in the corresponding relation pre-stored locally in the electronic equipment to obtain the at least one reply candidate item.
Optionally, the historical dialogue data includes: at least one of historical answer records and historical input records.
Optionally, the determining module 31 includes:
the matching unit is used for matching the first data to be replied with each data to be replied in the corresponding relation;
the first determining unit is used for taking a reply candidate item corresponding to the successfully matched data to be replied as the at least one reply candidate item if the matching is successful;
the difference unit is used for splitting the first data to be replied into a plurality of subdata if the matching is not successful; and matching the plurality of sub-data with each piece of data to be replied in the corresponding relation respectively to obtain a reply candidate item corresponding to the data to be replied matched with part of the sub-data in the plurality of sub-data as the at least one reply candidate item.
Optionally, the second obtaining module includes:
the obtaining unit is used for obtaining at least one group of historical answer records based on the historical dialogue data, and each group of historical answer records comprises data to be replied and reply contents corresponding to the data;
the extraction unit is used for extracting corresponding reply content of each piece of data to be replied;
the establishing unit is used for taking the reply content meeting the preset condition corresponding to the data to be replied as the reply candidate item corresponding to the data to be replied, and further establishing the corresponding relation between the data to be replied and the reply candidate item.
Optionally, the obtaining unit is configured to: obtaining the at least one group of historical answer records generated by the user in reply content, wherein the cache data comprises: personalized cache data determined based on historical conversation data generated by the user; and/or the presence of a gas in the gas,
the obtaining unit is configured to: determining at least one sampling user; obtaining the at least one set of historical answer records generated by the at least one sampling user in reply content, wherein the cache data comprises: overall cached data determined based on the at least one sample of historical dialog data generated by the user.
Optionally, if the cached data includes the personalized cached data, the apparatus further includes:
and the adding module is used for adding the synonym of the reply content meeting the preset condition corresponding to the data to be replied into the personalized cache data so as to serve as a reply candidate item corresponding to the data to be replied.
Optionally, the obtaining unit includes:
a first obtaining subunit, configured to obtain reply data of the user for communication content;
a first extracting subunit, configured to extract at least one group of question-answer pairs from the reply data, where each group of question-answer pairs includes: the communication content and the reply content aiming at the corresponding communication content, and the at least one group of question-answer pairs are the at least one group of historical answer records generated by the user.
Optionally, the output module 32 includes:
the second determining unit is used for determining the social relationship between the generator of the first data to be replied and the user;
the sorting unit is used for sorting the at least one reply candidate item based on the social relationship;
and the output unit is used for outputting the at least one reply candidate after sorting.
Optionally, the second determining unit includes:
a second acquisition subunit, configured to acquire communication content between the producer and the user;
a second extraction subunit, configured to extract a first predetermined keyword included in the communication content;
a determining subunit, configured to determine the social relationship between the producer and the user based on the first predetermined keyword.
Optionally, the output module 32 is configured to:
outputting the at least one reply candidate item through an application program accessing the first data to be replied; or,
and outputting the at least one reply candidate as an input candidate of the input method application program.
Optionally, the apparatus further comprises:
the judging module is used for judging whether the first data to be replied is data to be replied generated by a communication identifier of a preset category;
and if so, extracting reply candidate items from the first data to be replied based on a second preset keyword contained in the first data to be replied.
Since the apparatus described in the second aspect of the present invention is an apparatus used for implementing the information recommendation method described in the first aspect of the present invention, and based on the information recommendation method described in the first aspect of the present invention, a person skilled in the art can understand the specific structure and the modifications of the apparatus described in the second aspect of the present invention, and thus details are not described here, and all apparatuses used for implementing the information recommendation method described in the first aspect of the present invention belong to the scope of the present invention to be protected.
In a third aspect, based on the same inventive concept, an embodiment of the present invention provides an electronic device, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by the one or more processors, and the one or more programs include instructions for:
obtaining first data to be replied;
determining at least one reply candidate item corresponding to the first data to be replied based on local cache data of the electronic equipment;
and outputting the at least one reply candidate item for a user of the electronic equipment to generate reply content for replying to the first data to be replied based on the at least one reply candidate item.
Optionally, the electronic device is also configured to execute the one or more programs by the one or more processors including instructions for:
acquiring a corresponding relation between the data to be replied and the reply candidate items determined based on the historical dialogue data;
using the corresponding relation as the cache data to be prestored in the local electronic equipment;
the determining at least one reply candidate item corresponding to the first data to be replied includes:
and searching the first data to be replied in the corresponding relation pre-stored locally in the electronic equipment to obtain the at least one reply candidate item.
Optionally, the historical dialogue data includes: at least one of historical answer records and historical input records.
Optionally, the electronic device is also configured to execute the one or more programs by the one or more processors including instructions for:
matching the first data to be replied with each data to be replied in the corresponding relation;
if the matching is successful, taking a reply candidate item corresponding to the successfully matched data to be replied as the at least one reply candidate item;
if the matching is not successful, splitting the first data to be replied into a plurality of subdata; and matching the plurality of sub-data with each piece of data to be replied in the corresponding relation respectively to obtain a reply candidate item corresponding to the data to be replied matched with part of the sub-data in the plurality of sub-data as the at least one reply candidate item.
Optionally, the electronic device is also configured to execute the one or more programs by the one or more processors including instructions for:
obtaining at least one group of historical answering records based on the historical dialogue data, wherein each group of historical answering records comprises data to be replied and reply contents corresponding to the data;
extracting corresponding reply content for each piece of data to be replied;
and taking the reply content meeting the preset condition corresponding to the data to be replied as a reply candidate item corresponding to the data to be replied, and further establishing a corresponding relation between the data to be replied and the reply candidate item.
Optionally, the electronic device is also configured to execute the one or more programs by the one or more processors including instructions for:
obtaining the at least one group of historical answer records generated by the user in reply content, wherein the cache data comprises: personalized cache data determined based on historical conversation data generated by the user; and/or the presence of a gas in the gas,
the apparatus is also configured to execute, by one or more processors, the one or more programs including instructions for:
determining at least one sampling user; obtaining the at least one set of historical answer records generated by the at least one sampling user in reply content, wherein the cache data comprises: overall cached data determined based on the at least one sample of historical dialog data generated by the user.
Optionally, if the cached data comprises the personalized cached data, the electronic device is further configured to execute, by one or more processors, the one or more programs including instructions for:
and adding the synonym of the reply content meeting the preset condition corresponding to the data to be replied into the personalized cache data, and further taking the synonym as a reply candidate item corresponding to the data to be replied.
Optionally, the electronic device is also configured to execute the one or more programs by the one or more processors including instructions for:
acquiring reply data of the user for communication content;
extracting at least one group of question-answer pairs from the reply data, wherein each group of question-answer pairs comprises: the communication content and the reply content aiming at the corresponding communication content, and the at least one group of question-answer pairs are the at least one group of historical answer records generated by the user.
Optionally, the electronic device is also configured to execute the one or more programs by the one or more processors including instructions for:
determining the social relationship between the generator of the first data to be replied and the user;
ranking the at least one reply candidate based on the social relationship;
and outputting the at least one sorted reply candidate item.
Optionally, the electronic device is also configured to execute the one or more programs by the one or more processors including instructions for:
acquiring communication content between the producer and the user;
extracting a first preset keyword contained in the communication content;
determining the social relationship between the producer and the user based on the first predetermined keyword.
Optionally, the electronic device is also configured to execute the one or more programs by the one or more processors including instructions for:
outputting the at least one reply candidate item through an application program accessing the first data to be replied; or,
and outputting the at least one reply candidate as an input candidate of the input method application program.
Optionally, the electronic device is also configured to execute the one or more programs by the one or more processors including instructions for:
judging whether the first data to be replied is data to be replied generated by a communication identifier of a preset category;
if yes, extracting reply candidates from the first data to be replied based on a second preset keyword contained in the first data to be replied.
Since the electronic device introduced in the third aspect of the present invention is an electronic device used for implementing the information recommendation method introduced in the first aspect of the present invention, based on the information recommendation method introduced in the first aspect of the present invention, a person skilled in the art can understand a specific structure and a modification of the electronic device introduced in the third aspect of the present invention, and thus details are not described here, and all electronic devices used for implementing the information recommendation method introduced in the first aspect of the present invention belong to the scope of the present invention to be protected.
Fig. 4 is a block diagram of an electronic device 800 illustrating a method of information recommendation according to an example embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power components 806 provide power to the various components of the electronic device 800. Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a method of information recommendation, the method comprising:
obtaining first data to be replied;
determining at least one reply candidate item corresponding to the first data to be replied based on local cache data of the electronic equipment;
and outputting the at least one reply candidate item for a user of the electronic equipment to generate reply content for replying to the first data to be replied based on the at least one reply candidate item. One or more embodiments of the invention have at least the following beneficial effects:
in the embodiment of the present invention, after the first data to be replied is obtained, at least one reply candidate corresponding to the first data to be replied may be determined based on local cache data of the electronic device, and finally, the at least one reply candidate is output, so that a user of the current electronic device can generate reply content for the first data to be replied based on the at least one reply candidate. That is, at least one reply candidate item for the first to-be-replied data can be directly acquired locally in the electronic device without being acquired from the network server, so that the technical effect of increasing the speed of acquiring the to-be-replied candidate item is achieved, and the corresponding to-be-replied candidate item can be acquired under the condition that the electronic device is not networked.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (12)

determining at least one reply candidate item corresponding to the first data to be replied based on local cache data of the electronic device, specifically including: matching the first data to be replied with each piece of data to be replied in a corresponding relationship, wherein the corresponding relationship is the corresponding relationship between the data to be replied and reply candidate items determined based on historical dialogue data, and using the corresponding relationship as the cache data to be prestored in the local electronic equipment; if the matching is successful, taking a reply candidate item corresponding to the successfully matched data to be replied as the at least one reply candidate item; if the matching is not successful, splitting the first data to be replied into a plurality of subdata; matching the plurality of subdata with each piece of data to be replied in the corresponding relation respectively to obtain reply candidate items corresponding to the data to be replied matched with part of subdata in the plurality of subdata as the at least one reply candidate item;
the determining module is configured to determine, based on local cache data of the electronic device, at least one reply candidate item corresponding to the first data to be replied, and specifically includes: matching the first data to be replied with each piece of data to be replied in a corresponding relationship, wherein the corresponding relationship is the corresponding relationship between the data to be replied and reply candidate items determined based on historical dialogue data, and using the corresponding relationship as the cache data to be prestored in the local electronic equipment; if the matching is successful, taking a reply candidate item corresponding to the successfully matched data to be replied as the at least one reply candidate item; if the matching is not successful, splitting the first data to be replied into a plurality of subdata; matching the plurality of subdata with each piece of data to be replied in the corresponding relation respectively to obtain reply candidate items corresponding to the data to be replied matched with part of subdata in the plurality of subdata as the at least one reply candidate item;
determining at least one reply candidate item corresponding to the first data to be replied based on local cache data of the electronic device, specifically including: matching the first data to be replied with each piece of data to be replied in a corresponding relationship, wherein the corresponding relationship is the corresponding relationship between the data to be replied and reply candidate items determined based on historical dialogue data, and using the corresponding relationship as the cache data to be prestored in the local electronic equipment; if the matching is successful, taking a reply candidate item corresponding to the successfully matched data to be replied as the at least one reply candidate item; if the matching is not successful, splitting the first data to be replied into a plurality of subdata; matching the plurality of subdata with each piece of data to be replied in the corresponding relation respectively to obtain reply candidate items corresponding to the data to be replied matched with part of subdata in the plurality of subdata as the at least one reply candidate item;
CN201610799080.0A2016-08-312016-08-31A kind of information recommendation method, device and electronic equipmentActiveCN106446054B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610799080.0ACN106446054B (en)2016-08-312016-08-31A kind of information recommendation method, device and electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610799080.0ACN106446054B (en)2016-08-312016-08-31A kind of information recommendation method, device and electronic equipment

Publications (2)

Publication NumberPublication Date
CN106446054A CN106446054A (en)2017-02-22
CN106446054Btrue CN106446054B (en)2019-11-19

Family

ID=58164956

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610799080.0AActiveCN106446054B (en)2016-08-312016-08-31A kind of information recommendation method, device and electronic equipment

Country Status (1)

CountryLink
CN (1)CN106446054B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106970949A (en)*2017-03-032017-07-21阿里巴巴集团控股有限公司A kind of information recommendation method and device
CN106886608A (en)*2017-03-282017-06-23奇酷互联网络科技(深圳)有限公司Method for processing information, device and electronic equipment
CN108664336B (en)*2017-04-012024-11-15北京搜狗科技发展有限公司 Recommendation method and device, and device for recommendation
CN107302573A (en)*2017-06-192017-10-27福建中金在线信息科技有限公司A kind of information-pushing method, device, electronic equipment and storage medium
CN107688641B (en)*2017-08-282021-12-28江西博瑞彤芸科技有限公司Question management method and system
CN107612814A (en)2017-09-082018-01-19北京百度网讯科技有限公司Method and apparatus for generating candidate's return information
CN109799915A (en)*2017-11-162019-05-24北京金山安全软件有限公司Word prediction method and device and electronic equipment
CN109814730B (en)*2017-11-202023-09-12北京搜狗科技发展有限公司Input method and device and input device
CN110019722B (en)*2017-12-212023-11-24株式会社理光Method and device for ordering replies of dialogue model and computer readable storage medium
CN110929122B (en)*2018-09-202024-02-06北京搜狗科技发展有限公司Data processing method and device for data processing
CN111382242A (en)*2018-12-282020-07-07北京搜狗科技发展有限公司Information providing method, device and readable medium
CN111552392A (en)*2019-01-232020-08-18北京搜狗科技发展有限公司Information recommendation method and device and electronic equipment
CN111831132B (en)*2019-04-192024-12-27北京搜狗科技发展有限公司 Information recommendation method, device and electronic device
CN113127613B (en)*2020-01-102024-01-09北京搜狗科技发展有限公司Chat information processing method and device
CN116343788A (en)*2023-03-022023-06-27安徽淘云科技股份有限公司 Interaction method, device, electronic device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101291302A (en)*2008-05-272008-10-22北京搜狗科技发展有限公司Method for instant communication by input method, input method system therefor
CN103200550A (en)*2013-04-262013-07-10上海华勤通讯技术有限公司Mobile terminal and method for replaying messages automatically
CN103869998A (en)*2012-12-112014-06-18百度国际科技(深圳)有限公司Method and device for sorting candidate items generated by input method
CN104850238A (en)*2015-04-172015-08-19小米科技有限责任公司Method and device for sorting candidate items generated by input method
CN104932786A (en)*2015-06-022015-09-23百度在线网络技术(北京)有限公司Method and device for presenting sequence of candidate words
CN105095182A (en)*2014-05-222015-11-25华为技术有限公司Reply information recommendation method and apparatus
CN105138710A (en)*2015-10-122015-12-09金耀星Chat agent system and method
CN105162942A (en)*2014-06-162015-12-16联想(北京)有限公司Information processing method and electronic device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101291302A (en)*2008-05-272008-10-22北京搜狗科技发展有限公司Method for instant communication by input method, input method system therefor
CN103869998A (en)*2012-12-112014-06-18百度国际科技(深圳)有限公司Method and device for sorting candidate items generated by input method
CN103200550A (en)*2013-04-262013-07-10上海华勤通讯技术有限公司Mobile terminal and method for replaying messages automatically
CN105095182A (en)*2014-05-222015-11-25华为技术有限公司Reply information recommendation method and apparatus
CN105162942A (en)*2014-06-162015-12-16联想(北京)有限公司Information processing method and electronic device
CN104850238A (en)*2015-04-172015-08-19小米科技有限责任公司Method and device for sorting candidate items generated by input method
CN104932786A (en)*2015-06-022015-09-23百度在线网络技术(北京)有限公司Method and device for presenting sequence of candidate words
CN105138710A (en)*2015-10-122015-12-09金耀星Chat agent system and method

Also Published As

Publication numberPublication date
CN106446054A (en)2017-02-22

Similar Documents

PublicationPublication DateTitle
CN106446054B (en)A kind of information recommendation method, device and electronic equipment
CN108121736B (en)Method and device for establishing subject term determination model and electronic equipment
EP3173948A1 (en)Method and apparatus for recommendation of reference documents
CN107315487B (en)Input processing method and device and electronic equipment
CN108073606B (en)News recommendation method and device for news recommendation
CN110019885B (en)Expression data recommendation method and device
US20200135205A1 (en)Input method, device, apparatus, and storage medium
CN104268151B (en)contact person grouping method and device
CN108874827A (en)A kind of searching method and relevant apparatus
CN110928425A (en) Information monitoring method and device
CN111831132B (en) Information recommendation method, device and electronic device
CN110019883A (en)Obtain the method and device of expression picture
CN107291259B (en)Information display method and device for information display
CN110895558B (en)Dialogue reply method and related device
CN110286775B (en) A vocabulary management method and device
CN110020082B (en)Searching method and device
CN107846347B (en)Communication content processing method and device and electronic equipment
CN103970831B (en)Recommend the method and apparatus of icon
CN106776990B (en)Information processing method and device and electronic equipment
CN111368161A (en)Search intention recognition method and intention recognition model training method and device
CN113411246B (en)Reply processing method and device and reply processing device
CN111339263B (en) Information recommendation method, device and electronic device
CN110362686B (en)Word stock generation method and device, terminal equipment and server
CN108108356A (en)A kind of character translation method, apparatus and equipment
CN107870941B (en)Webpage sorting method, device and equipment

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CP02Change in the address of a patent holder
CP02Change in the address of a patent holder

Address after:100084. Room 9, floor 01, cyber building, building 9, building 1, Zhongguancun East Road, Haidian District, Beijing

Patentee after:BEIJING SOGOU TECHNOLOGY DEVELOPMENT Co.,Ltd.

Address before:Room 01, Floor 9, Sohu Network Building, Building 9, Yard 1, Zhongguancun East Road, Haidian District, Beijing 100084

Patentee before:BEIJING SOGOU TECHNOLOGY DEVELOPMENT Co.,Ltd.


[8]ページ先頭

©2009-2025 Movatter.jp