CN108153755A - Method, apparatus and electronic equipment are recommended in a kind of input - Google Patents

Method, apparatus and electronic equipment are recommended in a kind of input Download PDF

Info

Publication number
CN108153755A
CN108153755A CN201611101605.5A CN201611101605A CN108153755A CN 108153755 A CN108153755 A CN 108153755A CN 201611101605 A CN201611101605 A CN 201611101605A CN 108153755 A CN108153755 A CN 108153755A
Authority
CN
China
Prior art keywords
replied
data
candidate item
reply
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611101605.5A
Other languages
Chinese (zh)
Inventor
涂畅
张扬
王砚峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing 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 Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201611101605.5A priority Critical patent/CN108153755A/en
Publication of CN108153755A publication Critical patent/CN108153755A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention relates to computer realm, disclose a kind of input and recommend method, apparatus and electronic equipment, with solve in the prior art by input method application program to it is each less efficient when replying data and reply the technical issues of.This method includes:When detecting calling input method application program, the first data to be replied are obtained;Determine at least one reply candidate item corresponding to the described first data to be replied;At least one candidate item of replying is exported as the input candidate item of the input method application program.The technique effect for improving the reply efficiency by input method application program data to be replied to first is reached.

Description

Method, apparatus and electronic equipment are recommended in a kind of input
Technical field
The present invention relates to computer realms more particularly to a kind of input to recommend method, apparatus and electronic equipment.
Background technology
With the continuous development of science and technology, electronic technology has also obtained development at full speed, and the type of electronic product is also got over Come more, people have also enjoyed the various facilities that development in science and technology is brought.Present people can pass through various types of clients Equipment enjoys the comfortable life brought with development in science and technology.For example, laptop, desktop computer, smart mobile phone, tablet are electric The client devices such as brain have become an important component part in people's life, and user can use mobile phone, tablet computer Client devices are waited to listen to music, play game etc., to mitigate pressure caused by modern fast pace life.
In the prior art, the content provided by network is more and more, and including various data to be replied, this waits to reply Data for example including:Receive Content of Communication (such as:Short message, wechat, mail etc.), obtain network question and answer data etc., lead to The input of word can be carried out by crossing input method application program, so as to the content that is inputted by input method application program to each A data to be replied are replied, and in the prior art, user are needed to be manually entered each reply content completely, so there is logical Cross input method application program to it is each wait reply data reply when it is less efficient the technical issues of.
Invention content
The present invention provides a kind of input and recommends method, apparatus and electronic equipment, to solve to pass through input method in the prior art Application program to it is each wait reply data reply when it is less efficient the technical issues of.
In a first aspect, the embodiment of the present invention provides a kind of input recommendation method, including:
When detecting calling input method application program, the first data to be replied are obtained;
Determine at least one reply candidate item corresponding to the described first data to be replied;
At least one candidate item of replying is exported as the input candidate item of the input method application program.
With reference to first aspect, in the first optional embodiment, first data to be replied include:It is soft by communicating Content of Communication received by part;The first data to be replied of the acquisition, including:
The Content of Communication is obtained from the communication software by the interface that the communication software is provided;And/or
Obtain the sectional drawing of the communication interactive interface of the communication software;The Content of Communication is obtained by the sectional drawing.
With reference to first aspect, it is described to determine that the described first data institute to be replied is right in second of optional embodiment At least one reply candidate item answered, including:
It is searched and obtained in the first correspondence of the data to be replied with replying candidate item by the described first data to be replied Obtain first data to be replied.
The first optional embodiment with reference to first aspect, in the third optional embodiment, the method is into one Step includes:
Obtain the historical communication data of user;
At least one set of history Question Log is obtained based on the history communication data, every group of history Question Log, which includes, to be treated back Complex data and its corresponding reply content;
Its corresponding reply content is extracted for every data to be replied;
The reply content for meeting preset condition of corresponding data to be replied is candidate as the reply of corresponding data to be replied , and then establish data to be replied and reply first correspondence between candidate item.
With reference to first aspect, it is described to determine that the described first data institute to be replied is right in the 4th kind of optional embodiment At least one reply candidate item answered, including:
Extract the fisrt feature information of the described first data to be replied;
Based on the characteristic information pre-established and the second correspondence between rule is replied, determines the fisrt feature First corresponding to information replys rule;
Rule, which is replied, by described first builds at least one reply candidate item.
The 4th kind of optional embodiment with reference to first aspect, it is described by described in the 5th kind of optional embodiment First, which replys rule, builds at least one reply candidate item, including:
Extract at least one of the described first data to be replied particular keywords;
At least one particular keywords and the described first reply rule are combined, so as to obtain described at least one A reply candidate item.
With reference to first aspect, it is described to determine that the described first data institute to be replied is right in the 6th kind of optional embodiment At least one reply candidate item answered, including:
Determine the input candidate item corresponding to the character string inputted by the input method application program;
Extract at least one keyword included in the described first data to be replied;
At least one reply candidate item is determined based on the input candidate item and at least one keyword.
In the 7th kind of optional embodiment, institute is based on described for the 6th kind of optional embodiment with reference to first aspect State input candidate item and after at least one keyword determines at least one reply candidate item, the method is into one Step includes:
Based at least one keyword described included in the described first data to be replied at least one reply Candidate item is ranked up.
Any one optional implementation with reference to first aspect or in the first to seven kind of optional embodiment of first aspect Example, in the 8th kind of optional embodiment, the method further includes:
When detecting that the communication interactive interface by communication software calls the input method application program, obtain described logical Interrogate the peer user information of interactive interface;
The input candidate item of the input method application program is determined by the peer user information.
Any one optional implementation with reference to first aspect or in the first to seven kind of optional embodiment of first aspect Example, in the 9th kind of optional embodiment, the method further includes:
When detecting that the communication interactive interface by communication software calls the input method application program, determine described logical Interrogate the peer user of interactive interface;
Determine the social relationships of the peer user and the electronic device user;
It is described to export at least one candidate item of replying as the input candidate item of the input method application program, packet It includes:
At least one reply candidate item is ranked up based on the social relationships;
At least one reply candidate item after output sequence.
Any one optional implementation with reference to first aspect or in the first to seven kind of optional embodiment of first aspect Example, in the tenth kind of optional embodiment, the social relationships for determining the peer user and the electronic device user, Including:
Obtain the Content of Communication between the peer user and the user;
Extract the first predetermined keyword included in the Content of Communication;
The social relationships between the peer user and the user are determined based on the described first predetermined keyword.
Second aspect, the embodiment of the present invention provide a kind of input recommendation apparatus, including:
First obtains module, for when detecting calling input method application program, obtaining the first data to be replied;
First determining module, for determining at least one reply candidate item corresponding to the described first data to be replied;
Output module, at least one reply candidate item is candidate as the input of the input method application program Item output.
With reference to second aspect, in the first optional embodiment, first data to be replied include:It is soft by communicating Content of Communication received by part;Described first obtains module, is used for:
The Content of Communication is obtained from the communication software by the interface that the communication software is provided;And/or
Obtain the sectional drawing of the communication interactive interface of the communication software;The Content of Communication is obtained by the sectional drawing.
With reference to second aspect, in second of optional embodiment, first determining module is used for:
It is searched and obtained in the first correspondence of the data to be replied with replying candidate item by the described first data to be replied Obtain first data to be replied.
With reference to second of optional embodiment of second aspect, in the third optional embodiment, described device is into one Step includes:
Second obtains module, for obtaining the historical communication data of user;
Third obtains module, obtains at least one set of history Question Log for being based on the history communication data, every group is gone through History Question Log includes data to be replied and its corresponding reply content;
Extraction module extracts its corresponding reply content for being directed to every data to be replied;
Module is established, for the reply content for meeting preset condition using data to be replied are corresponded to as corresponding number to be replied According to reply candidate item, and then establish data to be replied and reply candidate item between first correspondence.
With reference to second aspect, in the 4th kind of optional embodiment, first determining module, including:
First extraction unit, for extracting the fisrt feature information of the described first data to be replied;
First determination unit, for based on the characteristic information that pre-establishes and replying the second correspondence between rule, Determine that first corresponding to the fisrt feature information replys rule;
Construction unit builds at least one reply candidate item for replying rule by described first.
With reference to the 4th kind of optional embodiment of second aspect, in the 5th kind of optional embodiment, the construction unit, Including:
Subelement is extracted, for extracting at least one of the described first data to be replied particular keywords;
Subelement is combined, at least one particular keywords and the described first reply rule to be combined, from And obtain at least one reply candidate item.
With reference to second aspect, in the 6th kind of optional embodiment, first determining module, including:
Second determination unit, for determining the input corresponding to the character string inputted by the input method application program Candidate item;
Second extraction unit, for extracting at least one keyword included in the described first data to be replied;
Third determination unit, for be based on the input candidate item and at least one keyword determine it is described at least One reply candidate item.
With reference to the 6th kind of optional embodiment of second aspect, in the 7th kind of optional embodiment, described device is into one Step includes:
First sequencing unit, for being based at least one keyword pair included in the described first data to be replied At least one reply candidate item is ranked up.
With reference to any one optional implementation in the first to seven kind of optional embodiment of second aspect or second aspect Example, in the 8th kind of optional embodiment, described device further comprises:
Third obtains module, for detecting the communication interactive interface calling input method application by communication software During program, the peer user information of the communication interactive interface is obtained;
Second determining module, for determining that the input of the input method application program is waited by the peer user information Option.
With reference to any one optional implementation in the first to seven kind of optional embodiment of second aspect or second aspect Example, in the 9th kind of optional embodiment, described device further comprises:
Third determining module, for detecting the communication interactive interface calling input method application by communication software During program, the peer user of the communication interactive interface is determined;
4th determining module, for determining the social relationships of the peer user and the electronic device user;
The output module, including:
Second sequencing unit is ranked up at least one reply candidate item for being based on the social relationships;
Output unit, for exporting at least one reply candidate item after sorting.
With reference to any one optional implementation in the first to seven kind of optional embodiment of second aspect or second aspect Example, in the tenth kind of optional embodiment, the 4th determining module, including:
Acquiring unit, for obtaining the Content of Communication between the peer user and the user;
Third extraction unit, for extracting the first predetermined keyword included in the Content of Communication;
4th determination unit, for be based on the described first predetermined keyword determine the peer user and the user it Between the social relationships.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, include memory and one or one with On program, one of them either more than one program be stored in memory and be configured to by one or more than one Processor performs the one or more programs and includes the instruction for being operated below:
When detecting calling input method application program, the first data to be replied are obtained;
Determine at least one reply candidate item corresponding to the described first data to be replied;
At least one candidate item of replying is exported as the input candidate item of the input method application program.
With reference to the third aspect, in the first optional embodiment, first data to be replied include:It is soft by communicating Content of Communication received by part;The electronic equipment is also configured to perform described one by one or more than one processor A or more than one program includes the instruction for being operated below:
The Content of Communication is obtained from the communication software by the interface that the communication software is provided;And/or
Obtain the sectional drawing of the communication interactive interface of the communication software;The Content of Communication is obtained by the sectional drawing.
With reference to the third aspect, in second of optional embodiment, the electronic equipment be also configured to by one or More than one processor performs the one or more programs and includes the instruction for being operated below:
It is searched and obtained in the first correspondence of the data to be replied with replying candidate item by the described first data to be replied Obtain first data to be replied.
With reference to second of optional embodiment of the third aspect, in the third optional embodiment, the electronic equipment Be also configured to by one or more than one processor perform the one or more programs include for carry out with The instruction of lower operation:
Obtain the historical communication data of user;
At least one set of history Question Log is obtained based on the history communication data, every group of history Question Log, which includes, to be treated back Complex data and its corresponding reply content;
Its corresponding reply content is extracted for every data to be replied;
The reply content for meeting preset condition of corresponding data to be replied is candidate as the reply of corresponding data to be replied , and then establish data to be replied and reply first correspondence between candidate item.
With reference to the third aspect, in the 4th kind of optional embodiment, the electronic equipment be also configured to by one or More than one processor performs the one or more programs and includes the instruction for being operated below:
Extract the fisrt feature information of the described first data to be replied;
Based on the characteristic information pre-established and the second correspondence between rule is replied, determines the fisrt feature First corresponding to information replys rule;
Rule, which is replied, by described first builds at least one reply candidate item.
With reference to the 4th kind of optional embodiment of the third aspect, in the 5th kind of optional embodiment, the electronic equipment Be also configured to by one or more than one processor perform the one or more programs include for carry out with The instruction of lower operation:
Extract at least one of the described first data to be replied particular keywords;
At least one particular keywords and the described first reply rule are combined, so as to obtain described at least one A reply candidate item.
With reference to the third aspect, in the 6th kind of optional embodiment, the electronic equipment be also configured to by one or More than one processor performs the one or more programs and includes the instruction for being operated below:
Determine the input candidate item corresponding to the character string inputted by the input method application program;
Extract at least one keyword included in the described first data to be replied;
At least one reply candidate item is determined based on the input candidate item and at least one keyword.
With reference to the 6th kind of optional embodiment of the third aspect, in the 7th kind of optional embodiment, the electronic equipment Be also configured to by one or more than one processor perform the one or more programs include for carry out with The instruction of lower operation:
Based at least one keyword described included in the described first data to be replied at least one reply Candidate item is ranked up.
With reference to any one optional implementation in the first to seven kind of optional embodiment of the third aspect or the third aspect Example, in the 8th kind of optional embodiment, the electronic equipment is also configured to by one or the execution of more than one processor The one or more programs include the instruction for being operated below:
When detecting that the communication interactive interface by communication software calls the input method application program, obtain described logical Interrogate the peer user information of interactive interface;
The input candidate item of the input method application program is determined by the peer user information.
With reference to any one optional implementation in the first to seven kind of optional embodiment of the third aspect or the third aspect Example, in the 9th kind of optional embodiment, the electronic equipment is also configured to by one or the execution of more than one processor The one or more programs include the instruction for being operated below:
When detecting that the communication interactive interface by communication software calls the input method application program, determine described logical Interrogate the peer user of interactive interface;
Determine the social relationships of the peer user and the electronic device user;
At least one reply candidate item is ranked up based on the social relationships;
At least one reply candidate item after output sequence.
With reference to any one optional implementation in the first to seven kind of optional embodiment of the third aspect or the third aspect Example, in the tenth kind of optional embodiment, the electronic equipment is also configured to by one or the execution of more than one processor The one or more programs include the instruction for being operated below:
Obtain the Content of Communication between the peer user and the user;
Extract the first predetermined keyword included in the Content of Communication;
The social relationships between the peer user and the user are determined based on the described first predetermined keyword.
The present invention has the beneficial effect that:
Due to that in embodiments of the present invention, when detecting calling input method application program, first can be obtained and wait to reply Data, and determine at least one reply candidate item corresponding to the described first data to be replied;It is most described at least one at last The input candidate item that candidate item is replied as the input method application program exports.That is, based on the first data to be replied The input candidate item of input method application program can be automatically determined out, and not necessarily relies on the input of user, so improve The efficiency of input candidate item is obtained, is imitated so as to reach to improve by the reply of input method application program data to be replied to first The technique effect of rate.
Description of the drawings
Fig. 1 is the flow chart of the input recommendation method of the embodiment of the present invention;
Fig. 2 is the flow chart of the input recommendation apparatus of the embodiment of the present invention;
Fig. 3 is the structure chart for the electronic equipment for implementing input recommendation method in the embodiment of the present invention.
Specific embodiment
The present invention provides a kind of input and recommends method, apparatus and electronic equipment, to solve to pass through input method in the prior art Application program to it is each wait reply data reply when it is less efficient the technical issues of.
For technical solution in the embodiment of the present application to solve the technical issues of above-mentioned, general thought is as follows:
When detecting calling input method application program, the first data to be replied can be obtained, and determine described first At least one reply candidate item corresponding to data to be replied;Most at last it is described it is at least one reply candidate item as the input The input candidate item output of method application program.It should that is, input method can be automatically determined out based on the first data to be replied With the input candidate item of program, and the input of user is not necessarily relied on, so the efficiency for obtaining input candidate item is improved, from And the technique effect for improving the reply efficiency by input method application program data to be replied to first is reached.
In order to better understand the above technical scheme, below by attached drawing and specific embodiment to technical solution of the present invention It is described in detail, it should be understood that the specific features in the embodiment of the present invention and embodiment are to the detailed of technical solution of the present invention Thin explanation rather than the restriction to technical solution of the present invention, in the absence of conflict, the embodiment of the present invention and embodiment In technical characteristic can be combined with each other.
In a first aspect, the embodiment of the present invention provides a kind of input recommendation method, please refer to Fig.1, including:
Step S101:When detecting calling input method application program, the first data to be replied are obtained;
Step S102:Determine at least one reply candidate item corresponding to the described first data to be replied;
Step S103:At least one reply candidate item is defeated as the input candidate item of the input method application program Go out.
For example, the program is applied to the electronic equipment for having input function, such as:Mobile phone, tablet computer, PC (personal computer:PC), laptop etc., the embodiment of the present invention is not restricted.
In step S101, the first data to be replied can include one or more data, such as:1. the first data to be replied It is electronic equipment by the Content of Communication received by communication software, such as:Short message, multimedia message received by electronic equipment, postal Part, instant chat content etc., in such a case, it is possible to which the communication interactive interface in communication software calls the input method application Program, such as:Input method application program is called at the reply interface of short message (multimedia message or mail etc.), in instant chat The chat interface of appearance calls input method application program etc.;2. the first data to be replied are network subject of question, such as:Certain user Having carried the problem of following in certain knowledge question website, " whale is mammal", then the enquirement data are one and wait to reply Data can call input method application program at the reply interface of the network subject of question.Certainly, the first data to be replied may be used also Think other data, the embodiment of the present invention is not restricted.
In specific implementation process, the first data to be replied can be obtained through a variety of ways, are set forth below therein two Kind is introduced, and certainly, in specific implementation process, is not limited to following two situations, in addition, in the absence of conflict, with Lower two kinds of situations can be applied in combination.
The first, by the APP (Application for providing the described first data to be replied:Application program) provided Interface obtains the Content of Communication from the APP.
For example, if first data to be replied include:Pass through the Content of Communication received by communication software Words then in the starting stage, can provide an interface, input method application program can be communicated from the interface by communication software Content;If the first data to be replied include:Network subject of question, then input method application program can be by generating network enquirement The interface that the APP of content is provided obtains the network subject of question.Through the above scheme, instant chat software can be obtained quickly Obtain the first data to be replied.
Second, the sectional drawing of the page where obtaining the first data to be replied;The Content of Communication is obtained by the sectional drawing.
For example, if the first data to be replied are Content of Communication, the sectional drawing of communication interactive interface can be obtained, it should Interactive interface is communicated often comprising the Content of Communication transmitted by communicating pair;If the first data to be replied is in network enquirements Hold, then the sectional drawing of the page where can obtaining network subject of question, the network puts question to the page to usually contain network subject of question etc. Deng.After the sectional drawing is obtained, directly locally the sectional drawing can be analyzed in electronic equipment, wait to reply so as to obtain first Data, can also be sent to server by the sectional drawing, and the sectional drawing is analyzed by server, so as to obtain the first number to be replied According to etc..Wherein it is possible to it is identified by OCR (Optical Character Recognition, optical character identification) technology First data to be replied included in sectional drawing, in addition, its content typesetting form is different due to different APP, to cutting Figure carry out OCR identifications before, can first determine generate the first data to be replied APP, and based on the recognition rule of the APP from section The first data to be replied are extracted in figure.Through the above scheme, it does not need to carry out other APP except input method application program Any improvement, so it more has versatility.Under normal conditions, the program can be used for more stringent to security requirement System, such as:IOS systems can not be supported to directly read the content of screen, it is therefore desirable to obtain communication by way of sectional drawing Content.
The third, the screen display content of electronic equipment described in the accessible authority acquiring provided based on electronic equipment; Analysis is carried out to the screen display content and obtains the Content of Communication.
For example, some systems electronic equipment (such as:Android system) support accessible permission, in such case Under, it can directly ask to obtain the screen display content of the electronic equipment, then screen display content is analyzed, thus from In extract out Content of Communication.
In step S102, at least one reply candidate item can be obtained in several ways, be set forth below three kinds therein It is introduced, certainly, in specific implementation process, is not limited to following two situations.
The first, at least one reply candidate item determined corresponding to the described first data to be replied, including:It is logical It crosses the described first data to be replied and searches acquisition described first in first correspondence of the data to be replied with replying candidate item Data to be replied.
In specific implementation process, the first correspondence can be determined in the following manner:The history for obtaining user is led to Letter data;At least one set of history Question Log is obtained based on the history communication data, every group of history Question Log, which includes, to be treated back Complex data and its corresponding reply content;Its corresponding reply content is extracted for every data to be replied;Correspondence is treated back Reply candidate item of the reply content for meeting preset condition of complex data as corresponding data to be replied, and then establish number to be replied According to first correspondence replied between candidate item.
The user can be the user of current electronic device, or at least one of the whole network sample user, and then Acquired history Question Log is also different, such as:
1. obtain reply content answers record, example by least one set of history that the user of current electronic device generates Such as, the reply data that the user is directed to Content of Communication can be obtained;Go out at least one set of question and answer from the reply extracting data Right, every group of question and answer are to including:Content of Communication and the reply content for corresponding Content of Communication, at least one set question and answer are to i.e. Record is answered at least one set history described caused by the user.Specifically, that is, being answered by history it records It determines to be directed to first when the reply content for replying data, only considers that the history of active user answers record, due to being only Only for active user, so the reply content determined is more accurate;Such as:It is " several that electronic equipment may often receive short message Point is come off duty", electronic equipment sometimes replys " " at 9 points, sometimes replys " " at 8 points, and then " some is come off duty" and " 9 points " compositions one Group question and answer pair, " some is come off duty" and one group of question and answer pair of " 8 points " compositions, it is personalized data cached to forming that the question and answer can be based on: " some is come off duty1. 9 points 2. 8 points.When electronic equipment is received again by identical short message, two reply candidate items are directly given:① 9 points 2. 8 points, user can click directly on answer short message without input.
2. determine at least one sample user;Reply content is obtained as described in generating at least one sample user At least one set of history answers record, which is, for example, all users in system, and the part in system is used Family etc. does not need to individually its history be answered to record for each user to analyze based on the program, so can carry Height obtains the efficiency of reply content, reduces the processing load of equipment.
After at least one set of history Question Log is obtained, it can obtain first and wait to reply in every group of history answer record Then data merge identical data to be replied, obtain and need to be replied data included in history answer record, The data to be replied that one of which history is answered in record refer to that communication is above, and reply content is then above for the communication Generated reply content or, the data to be replied that one group of history is answered in record refer to network enquirement data, and return Multiple content is then to put question to answer etc. caused by data for the network.
It, can be with for every data to be replied after obtaining history and answering and need to be replied data included in record The reply content corresponding to it is obtained, and obtains the occurrence number of every reply content, for example, it is assumed that data to be replied include " some is come off duty", " you have had a meal", " rest earlier, good night ", corresponding reply content difference is as shown in table 1:
Table 1
Then after each item data to be replied and its corresponding reply content is obtained, it can be obtained for every data to be replied Take its reply number be more than preset times (such as:20th, 30 etc.) reply content also may be used as its corresponding reply candidate item With by its reply content according to reply number be ranked up from high to low, and then obtain sequence be located at former positions (such as:4th, 5 etc. Deng) reply content reply candidate item etc. as it, with obtain reply number be more than preset times (such as:20) for, then " some comes off duty data to be replied" comprising two reply candidate items, respectively:1. 8 points 2. 9 points;" your data to be replied have a meal " comprising six reply candidate items, respectively:It has 5. been eaten 6. not 1. eating and 2. 3. 4. not eaten up also;It waits to reply Data " resting earlier, good night " include a reply candidate item, specially:1. good night.Certainly, for different data to be replied Its reply candidate item is also different, and the embodiment of the present invention no longer itemizes, and is not restricted.
Second, at least one reply candidate item determined corresponding to the described first data to be replied, including:It carries Take out the fisrt feature information of the described first data to be replied;Based on the characteristic information that pre-establishes and reply between rule the Two correspondences determine that first corresponding to the fisrt feature information replys rule;Regular structure is replied by described first Build at least one reply candidate item.
For example, this feature information is, for example,:Default sentence, default Sentence format etc., default sentence is, for example,: " having had a meal ", " some is slept ", " OK " etc., default Sentence format is, for example,:" you go XX to have a meal or XX is gone to eat today Meal ", " today eats XX or XX " (wherein XX is default word) etc..In specific implementation process, each feature can be directed to and believed Breath builds its corresponding reply rule respectively, such as:Building its reply rule for " having had a meal " is:1. it eats 2. also It does not eat and is 3. ready to eat;It is built for " today ten thousand state pea beans flour noodles is gone to have a meal or go to emit perfume (or spice) have a meal " reply rule be:1. ten thousand 2. state pea beans flour noodle emits perfume (or spice) etc., it is, of course, also possible to which building other replys rule, the embodiment of the present invention is not restricted.
It is described to reply rule structure at least one reply candidate by described first as a kind of optional embodiment , including:Extract at least one of the described first data to be replied particular keywords;By at least one particular keywords It is combined with the described first reply rule, so as to obtain at least one reply candidate item.
As an example it is assumed that default Sentence format is " you plan to go XX today and have a meal or XX is gone to have a meal ", built for it Reply rule be:I goes XX to have a meal today, and wherein XX represents the default item in the first data to be replied, such as:First treats back Complex data is " you intend to go home to have a meal today, still prosperous in past days to have a meal ", then default word (namely particular keywords) includes:It returns Family, day are prosperous, so as to which constructed at least one reply candidate item includes:1. I goes to A dining rooms to have a meal today;2. I goes B to eat today It has a meal in the Room.In addition, since user may might not remove the two place for dinner, then it can also add other and reply candidate item, Such as:It is 3. careless etc..;In another example for " " today eats dumpling or noodles ", replying rule for its structure is:Today eats XX, Then default word " dumpling ", " noodles " and the reply rule are combined, so as to constructed at least one reply candidate item packet It includes:1. today eats dumpling;2. today eats noodles etc..Through the above scheme, it can be based on included in the first data to be replied Particular keywords determine at least one reply candidate item, so identified candidate item and the first data to be replied of replying Relevance higher, more accurately.
The third, at least one reply candidate item determined corresponding to the described first data to be replied, including:Really Surely the input candidate item corresponding to character string inputted by the input method application program;Described first is extracted to wait to reply At least one keyword included in data;It is determined based on the input candidate item and at least one keyword described At least one reply candidate item.
As an example it is assumed that user A (user of current electronic device) is with good friend B (peer user) when chatting, good friend B Say that " I hears a rumour recently!", then user A is needed to " I hears a rumour recently!" replied namely " recently I hears a rumour!" it is the first data to be replied, the first data to be replied are segmented by participle tool, are divided Word result includes:Recently, I, hears, one, rumour.User A wants " what rumour asked", then user can input under nine keys 743663, input content " what " is obtained, can continue to input " 926926 ", the first screen candidate word corresponding to the character string includes: 1. playing 2., 3. 4. 5. precious jade precious jade has played early sooner or later, in addition, the input candidate item corresponding to the character string further includes:Rumour, And also include keyword " rumour " in the first data to be replied of good friend B inputs, due to input candidate item and the first number to be replied All include keyword " rumour " in, then " rumour " in candidate word can be adjusted to first screen (also i.e. by keyword " rumour " Reply candidate item as input method application program), for example, the first screen candidate word corresponding to the character string is adjusted to:1. it plays Playing the 2. morning and evening, 3. 4. 5. rumour, user can click directly on screen to precious jade precious jade early, so as to input:What rumourWithout page turning Search " rumour " this candidate word.Through the above scheme, key included in the first data to be replied can be based on by having reached Word and character string input by user determine the technique effect of the input candidate item of input method application program jointly.
As a kind of optional embodiment, determined described based on the input candidate item and at least one keyword Go out after at least one reply candidate item, the method further includes:Based on being wrapped in the described first data to be replied At least one keyword contained is ranked up at least one reply candidate item.
As an example it is assumed that then illustrate that user is likely to wish back comprising keyword " rumour " in the first data to be replied Multiple " rumour " relevant content, so the priority of " rumour " can be improved in sequence, such as:" rumour " can be adjusted to First choice, so as to provide following first screen candidate item:4. 5. precious jade precious jade etc. early sooner or later 1. 2. 3. rumour is played.
In step S103, for example, namely directly export the reply candidate item, example by input method application program Such as:If detect that user opens the application program for receiving first data to be replied, and cursor placement is applied journey in this The reply interface of sequence then illustrates that user needs to be replied for the first data to be replied.In such a case, it is possible to based on the One data to be replied obtain corresponding reply candidate item, and the reply candidate item is exported by input method application program, Such as:Reply candidate item is shown in the candidate word region of input method application program, it with this solution can be in input method application Program is not present under case above, is provided with accurate candidate word;Or one can also be created by input method application program Region or other regions, and the reply candidate item is shown in the region, it can input reply content in user with this solution During, the reply candidate item is called at any time, so having achieved the effect that calling is more convenient, is inputted with further improve Efficiency.
In step S103, at least one reply candidate item can be exported in several ways, be set forth below three kinds therein It is introduced, certainly, in specific implementation process, is not limited to following three kinds of situations.The first, the method can also include: When detecting that the communication interactive interface by communication software calls the input method application program, the communication interaction circle is determined The peer user in face;Determine the social relationships of the peer user and the electronic device user;
So as to described that at least one reply candidate item is defeated as the input candidate item of the input method application program Go out, including:At least one reply candidate item is ranked up based on the social relationships;Output sequence after it is described at least One reply candidate item.
In specific implementation process, the producer and user of first data to be replied can be determined in the following manner Social relationships:Obtain the Content of Communication between the peer user and the user;It extracts included in the Content of Communication The first predetermined keyword;Described in being determined between the peer user and the user based on the described first predetermined keyword Social relationships.
For example, a database can be preset, which includes at least one social relationships and each The corresponding keyword of social relationships, such as shown in table 2:
Table 2
Social relationships Keyword
Lovers It is dioctahedral smectite, honey, dear
Man and wife Wife, husband
And then after the Content of Communication between peer user and active user is obtained, it can be determined that be in the Content of Communication It is no to include above-mentioned arbitrary keyword, if comprising above-mentioned arbitrary keyword, extracted as the first predetermined pass Then keyword determines the correspondence between the producer and user of the first data to be replied by the first predetermined keyword, A variety of principles may be used and determine the producer of the first data to be replied and the correspondence of user, such as:
1. it determines to be belonging respectively between the peer user and the active user by the described first predetermined keyword The probability of each candidate's social relationships;The peer user is gone out based on the determine the probability and the society of the active user closes System.
As an example it is assumed that the first predetermined keyword includes keyword as shown in table 3:
Table 3
It can then determine the occurrence number of the keyword under each social relationships, be then based on the occurrence number divided by total Occurrence number is assured that out that peer user belongs to the probability of corresponding social relationships with active user.Such as:Social relationships " feelings The occurrence number of keyword under companion " is 1001+355+201=1557, and total occurrence number of keyword is 1557+50= 1607, then it can determine that the peer user for generating the first data to be replied belongs to the probability of lovers' social relationships with active user It is 1557/1607, the probability for belonging to man and wife's social relationships is 50/1607, then obtains the highest social relationships of probability of occurrence and makees For the social relationships between the peer user of the first data to be replied and active user, such as:Using lovers' social relationships as production The peer user of raw first data to be replied and the social relationships of user etc..Based on the program, for each social relationships all Consider its at least one keyword included, so the social relationships determined are more accurate.
2. the highest keyword of occurrence number is obtained from the described first predetermined keyword;Determine the highest pass of occurrence number Social relationships corresponding to keyword are as the correspondence between peer user and active user.
For example or by taking the first predetermined keyword shown in table 3 as an example, then the highest keyword of occurrence number is " dioctahedral smectite ", corresponding to social relationships for lovers' social relationships, so peer user and active user can be determined Social relationships are lovers' social relationships, do not need to all calculate its probability for each social probability based on the program, so can Reduce the processing load of electronic equipment.
After the social relationships between the peer user for generating the first data to be replied and active user are obtained, for every A reply candidate item, it may be determined that it belongs to the probability of the social relationships between peer user and active user, then will at least It replys after candidate item is ranked up according to probability for one and exports, such as:If the society between peer user and active user Relationship is lovers' social relationships, replys candidate item and includes:1. good night, 2. 3. good night for peace peace, dear, these three reply candidate item Belong to the probability of lovers' social relationships be respectively:0.1st, 0.6,0.9, then candidate item can be replied according to following sequence by three Mode exports:1. good night, 3. good night for dear 2. peace peace.It, can be to peer user and active user due in said program At least one candidate item of replying of social relationships carry out different sequences, so reached at least one recommendation for replying candidate item More accurate technique effect.
Second, output at least one reply candidate item, including:At least one reply candidate item is pressed According to output after the sequence of selected number.For example, at least one reply candidate item also carries before active user is supplied to It is selected for crossing to other users, these users can then select at least one reply candidate item, can be based on each The selected number of candidate item is replied, and then is chosen to export after number sorts to it according to it, such as:It is secondary according to being chosen Number is ranked up, is ranked up from low to high etc. from high to low.
The third, output at least one reply candidate item, including:By it is described it is at least one reply candidate item with It is exported after machine sequence, in this case, the sequence for being supplied to the reply candidate item of user every time is all different, therefore user can In a manner of by refreshing different reply candidate items is shown in first screen.
After based at least one reply candidate item of step S103 outputs, user can be from least one reply candidate item In select partial recovery candidate item data to be replied to first and reply, if the user feels that at least one reply candidate item In there is no oneself want reply candidate item, reply candidate item can also be manually entered, the embodiment of the present invention is not restricted.
As a kind of optional embodiment, the method can also include:Detecting the communication friendship by communication software When the input method application program is called at mutual interface, the peer user information of the communication interactive interface is obtained;By described right End subscriber information determines the input candidate item of the input method application program.
For example, after before the user of current electronic device and peer user there are no chat record is generated, then There is no the first data to be replied, and if user often actively sends Content of communciation to peer user, can first determine Go out peer user information, then by peer user acquisition of information user to history log caused by peer user, and Input candidate item of the higher content of the generation frequency of acquisition user as input method application program from history log, So as in the case of there is no the first data to be replied, can also prepare to be that input method application program provides input candidate item, To improve input efficiency.
Second aspect, based on same inventive concept, the embodiment of the present invention provides a kind of input recommendation apparatus, please refers to Fig.2, Including:
First obtains module 20, for when detecting calling input method application program, obtaining the first data to be replied;
First determining module 21, for determining that at least one reply corresponding to the described first data to be replied is candidate ;
Output module 22, at least one candidate item of replying to be waited as the input of the input method application program Option exports.
Optionally, the described first data to be replied include:Pass through the Content of Communication received by communication software;Described first Module 20 is obtained, is used for:
The Content of Communication is obtained from the communication software by the interface that the communication software is provided;And/or
Obtain the sectional drawing of the communication interactive interface of the communication software;The Content of Communication is obtained by the sectional drawing.
Optionally, first determining module 21, is used for:
It is searched and obtained in the first correspondence of the data to be replied with replying candidate item by the described first data to be replied Obtain first data to be replied.
Optionally, described device further comprises:
Second obtains module, for obtaining the historical communication data of user;
Third obtains module, obtains at least one set of history Question Log for being based on the history communication data, every group is gone through History Question Log includes data to be replied and its corresponding reply content;
Extraction module extracts its corresponding reply content for being directed to every data to be replied;
Module is established, for the reply content for meeting preset condition using data to be replied are corresponded to as corresponding number to be replied According to reply candidate item, and then establish data to be replied and reply candidate item between first correspondence.
Optionally, first determining module 21, including:
First extraction unit, for extracting the fisrt feature information of the described first data to be replied;
First determination unit, for based on the characteristic information that pre-establishes and replying the second correspondence between rule, Determine that first corresponding to the fisrt feature information replys rule;
Construction unit builds at least one reply candidate item for replying rule by described first.
Optionally, the construction unit, including:
Subelement is extracted, for extracting at least one of the described first data to be replied particular keywords;
Subelement is combined, at least one particular keywords and the described first reply rule to be combined, from And obtain at least one reply candidate item.
Optionally, first determining module 21, including:
Second determination unit, for determining the input corresponding to the character string inputted by the input method application program Candidate item;
Second extraction unit, for extracting at least one keyword included in the described first data to be replied;
Third determination unit, for be based on the input candidate item and at least one keyword determine it is described at least One reply candidate item.
Optionally, described device further comprises:
First sequencing unit, for being based at least one keyword pair included in the described first data to be replied At least one reply candidate item is ranked up.
Optionally, described device further comprises:
Third obtains module, for detecting the communication interactive interface calling input method application by communication software During program, the peer user information of the communication interactive interface is obtained;
Second determining module, for determining that the input of the input method application program is waited by the peer user information Option.
Optionally, described device further comprises:
Third determining module, for detecting the communication interactive interface calling input method application by communication software During program, the peer user of the communication interactive interface is determined;
4th determining module, for determining the social relationships of the peer user and the electronic device user;
The output module, including:
Second sequencing unit is ranked up at least one reply candidate item for being based on the social relationships;
Output unit, for exporting at least one reply candidate item after sorting.
Optionally, the 4th determining module, including:
Acquiring unit, for obtaining the Content of Communication between the peer user and the user;
Third extraction unit, for extracting the first predetermined keyword included in the Content of Communication;
4th determination unit, for be based on the described first predetermined keyword determine the peer user and the user it Between the social relationships.
By the device that second aspect of the present invention is introduced, the input introduced to implement first aspect of the embodiment of the present invention Method is recommended in device used by recommendation method, the input introduced based on first aspect of the embodiment of the present invention, belonging to this field Technical staff can understand concrete structure and the deformation of the device that second aspect of the embodiment of the present invention is introduced, so herein no longer It repeats, device used by every input recommendation method implemented first aspect of the embodiment of the present invention and introduced belongs to this hair The range to be protected of bright embodiment.
The third aspect, based on same inventive concept, the embodiment of the present invention provides a kind of electronic equipment, includes memory, And one either more than one program one of them or more than one program be stored in memory, and be configured to The one or more programs are performed by one or more than one processor and include the finger for being operated below It enables:
When detecting calling input method application program, the first data to be replied are obtained;
Determine at least one reply candidate item corresponding to the described first data to be replied;
At least one candidate item of replying is exported as the input candidate item of the input method application program.
Optionally, the described first data to be replied include:Pass through the Content of Communication received by communication software;The electronics Equipment be also configured to by one or more than one processor perform the one or more programs include for into The following instruction operated of row:
The Content of Communication is obtained from the communication software by the interface that the communication software is provided;And/or
Obtain the sectional drawing of the communication interactive interface of the communication software;The Content of Communication is obtained by the sectional drawing.
Optionally, the electronic equipment be also configured to by one either more than one processor perform it is one or More than one program includes the instruction for being operated below:
It is searched and obtained in the first correspondence of the data to be replied with replying candidate item by the described first data to be replied Obtain first data to be replied.
Optionally, the electronic equipment be also configured to by one either more than one processor perform it is one or More than one program includes the instruction for being operated below:
Obtain the historical communication data of user;
At least one set of history Question Log is obtained based on the history communication data, every group of history Question Log, which includes, to be treated back Complex data and its corresponding reply content;
Its corresponding reply content is extracted for every data to be replied;
The reply content for meeting preset condition of corresponding data to be replied is candidate as the reply of corresponding data to be replied , and then establish data to be replied and reply first correspondence between candidate item.
Optionally, the electronic equipment be also configured to by one either more than one processor perform it is one or More than one program includes the instruction for being operated below:
Extract the fisrt feature information of the described first data to be replied;
Based on the characteristic information pre-established and the second correspondence between rule is replied, determines the fisrt feature First corresponding to information replys rule;
Rule, which is replied, by described first builds at least one reply candidate item.
Optionally, the electronic equipment be also configured to by one either more than one processor perform it is one or More than one program includes the instruction for being operated below:
Extract at least one of the described first data to be replied particular keywords;
At least one particular keywords and the described first reply rule are combined, so as to obtain described at least one A reply candidate item.
Optionally, the electronic equipment be also configured to by one either more than one processor perform it is one or More than one program includes the instruction for being operated below:
Determine the input candidate item corresponding to the character string inputted by the input method application program;
Extract at least one keyword included in the described first data to be replied;
At least one reply candidate item is determined based on the input candidate item and at least one keyword.
Optionally, the electronic equipment be also configured to by one either more than one processor perform it is one or More than one program includes the instruction for being operated below:
Based at least one keyword described included in the described first data to be replied at least one reply Candidate item is ranked up.
Optionally, the electronic equipment be also configured to by one either more than one processor perform it is one or More than one program includes the instruction for being operated below:
When detecting that the communication interactive interface by communication software calls the input method application program, obtain described logical Interrogate the peer user information of interactive interface;
The input candidate item of the input method application program is determined by the peer user information.
Optionally, the electronic equipment be also configured to by one either more than one processor perform it is one or More than one program includes the instruction for being operated below:
When detecting that the communication interactive interface by communication software calls the input method application program, determine described logical Interrogate the peer user of interactive interface;
Determine the social relationships of the peer user and the electronic device user;
At least one reply candidate item is ranked up based on the social relationships;
At least one reply candidate item after output sequence.
Optionally, the electronic equipment be also configured to by one either more than one processor perform it is one or More than one program includes the instruction for being operated below:
Obtain the Content of Communication between the peer user and the user;
Extract the first predetermined keyword included in the Content of Communication;
The social relationships between the peer user and the user are determined based on the described first predetermined keyword.
By the electronic equipment that third aspect present invention is introduced, implement first aspect of the embodiment of the present invention and introduced Electronic equipment used by input recommendation method recommends method based on the input that first aspect of the embodiment of the present invention is introduced, this Those skilled in the art can understand concrete structure and the deformation of the electronic equipment that the third aspect of the embodiment of the present invention is introduced, So details are not described herein, electronics used by every input recommendation method implemented first aspect of the embodiment of the present invention and introduced Equipment belongs to the range to be protected of the embodiment of the present invention.
Fig. 3 is the block diagram according to a kind of electronic equipment 800 of communication information encryption method shown in an exemplary embodiment. For example, electronic equipment 800 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console puts down Panel device, Medical Devices, body-building equipment, personal digital assistant etc..
With reference to Fig. 3, electronic equipment 800 can include following one or more components:Processing component 802, memory 804, Power supply module 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, And communication component 816.
The integrated operation of 802 usual control electronics 800 of processing component, such as with display, call, data lead to Letter, camera operation and record operate associated operation.Processing element 802 can be held including one or more processors 820 Row instruction, to perform all or part of the steps of the methods described above.In addition, processing component 802 can include one or more moulds Block, convenient for the interaction between processing component 802 and other assemblies.For example, processing component 802 can include multi-media module, with Facilitate the interaction between multimedia component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in equipment 800.These data are shown Example includes the instruction of any application program or method for being operated on electronic equipment 800, contact data, telephone directory number According to, message, picture, video etc..Memory 804 can by any kind of volatibility or non-volatile memory device or they Combination realize, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable Programmable read only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, quick flashing Memory, disk or CD.
Power supply module 806 provides electric power for the various assemblies of electronic equipment 800.Power supply module 806 can include power supply pipe Reason system, one or more power supplys and other generate, manage and distribute electric power associated component with for electronic equipment 800.
Multimedia component 808 is included in the screen of one output interface of offer between the electronic equipment 800 and user. In some embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface Plate, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or slip The boundary of action, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, Multimedia component 808 includes a front camera and/or rear camera.When electronic equipment 800 is in operation mode, such as clap When taking the photograph pattern or video mode, front camera and/or rear camera can receive external multi-medium data.It is each preposition Camera and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when electronic equipment 800 is in operation mode, during such as call model, logging mode and speech recognition mode, microphone It is configured as receiving external audio signal.The received audio signal can be further stored in memory 804 or via logical Letter component 816 is sent.In some embodiments, audio component 810 further includes a loud speaker, for exports audio signal.
I/O interfaces 812 provide interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, for providing the state of various aspects for electronic equipment 800 Assessment.For example, sensor module 814 can detect opening/closed state of equipment 800, the relative positioning of component, such as institute The display and keypad that component is electronic equipment 800 are stated, sensor module 814 can also detect electronic equipment 800 or electronics The position change of 800 1 components of equipment, the existence or non-existence that user contacts with electronic equipment 800,800 orientation of electronic equipment Or acceleration/deceleration and the temperature change of electronic equipment 800.Sensor module 814 can include proximity sensor, be configured to It detects the presence of nearby objects without any physical contact.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, which can be with Including acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between electronic equipment 800 and other equipment. Electronic equipment 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.Show at one In example property embodiment, communication component 816 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel Relevant information.In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, short to promote Cheng Tongxin.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, electronic equipment 800 can be by one or more application application-specific integrated circuit (ASIC), number Word signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 804 of instruction, above-metioned instruction can be performed to complete the above method by the processor 820 of electronic equipment 800.Example Such as, the non-transitorycomputer readable storage medium can be ROM, it is random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of electronic equipment When device performs so that electronic equipment is able to carry out a kind of input recommendation method, the method includes:
When detecting calling input method application program, the first data to be replied are obtained;
Determine at least one reply candidate item corresponding to the described first data to be replied;
At least one candidate item of replying is exported as the input candidate item of the input method application program.
Optionally, the described first data to be replied include:Pass through the Content of Communication received by communication software;It is described readable Storage medium is also configured to include use to perform the one or more programs by one or more than one processor In the instruction for carrying out following operation:
The Content of Communication is obtained from the communication software by the interface that the communication software is provided;And/or
Obtain the sectional drawing of the communication interactive interface of the communication software;The Content of Communication is obtained by the sectional drawing.
Optionally, the readable storage medium storing program for executing is also configured to one to be performed by one or more than one processor Or more than one program includes the instruction for being operated below:
It is searched and obtained in the first correspondence of the data to be replied with replying candidate item by the described first data to be replied Obtain first data to be replied.
Optionally, the readable storage medium storing program for executing is also configured to one to be performed by one or more than one processor Or more than one program includes the instruction for being operated below:
Obtain the historical communication data of user;
At least one set of history Question Log is obtained based on the history communication data, every group of history Question Log, which includes, to be treated back Complex data and its corresponding reply content;
Its corresponding reply content is extracted for every data to be replied;
The reply content for meeting preset condition of corresponding data to be replied is candidate as the reply of corresponding data to be replied , and then establish data to be replied and reply first correspondence between candidate item.
Optionally, the readable storage medium storing program for executing is also configured to one to be performed by one or more than one processor Or more than one program includes the instruction for being operated below:
Extract the fisrt feature information of the described first data to be replied;
Based on the characteristic information pre-established and the second correspondence between rule is replied, determines the fisrt feature First corresponding to information replys rule;
Rule, which is replied, by described first builds at least one reply candidate item.
Optionally, the readable storage medium storing program for executing is also configured to one to be performed by one or more than one processor Or more than one program includes the instruction for being operated below:
Extract at least one of the described first data to be replied particular keywords;
At least one particular keywords and the described first reply rule are combined, so as to obtain described at least one A reply candidate item.
Optionally, the readable storage medium storing program for executing is also configured to one to be performed by one or more than one processor Or more than one program includes the instruction for being operated below:
Determine the input candidate item corresponding to the character string inputted by the input method application program;
Extract at least one keyword included in the described first data to be replied;
At least one reply candidate item is determined based on the input candidate item and at least one keyword.
Optionally, the readable storage medium storing program for executing is also configured to one to be performed by one or more than one processor Or more than one program includes the instruction for being operated below:
Based at least one keyword described included in the described first data to be replied at least one reply Candidate item is ranked up.
Optionally, the readable storage medium storing program for executing is also configured to one to be performed by one or more than one processor Or more than one program includes the instruction for being operated below:
When detecting that the communication interactive interface by communication software calls the input method application program, obtain described logical Interrogate the peer user information of interactive interface;
The input candidate item of the input method application program is determined by the peer user information.
Optionally, the readable storage medium storing program for executing is also configured to one to be performed by one or more than one processor Or more than one program includes the instruction for being operated below:
When detecting that the communication interactive interface by communication software calls the input method application program, determine described logical Interrogate the peer user of interactive interface;
Determine the social relationships of the peer user and the electronic device user;
At least one reply candidate item is ranked up based on the social relationships;
At least one reply candidate item after output sequence.
Optionally, the readable storage medium storing program for executing is also configured to one to be performed by one or more than one processor Or more than one program includes the instruction for being operated below:
Obtain the Content of Communication between the peer user and the user;
Extract the first predetermined keyword included in the Content of Communication;
The social relationships between the peer user and the user are determined based on the described first predetermined keyword.
One or more embodiment of the invention, at least has the advantages that:
Due to that in embodiments of the present invention, when detecting calling input method application program, first can be obtained and wait to reply Data, and determine at least one reply candidate item corresponding to the described first data to be replied;It is most described at least one at last The input candidate item that candidate item is replied as the input method application program exports, so that user is based at least one reply Candidate item replys the described first data to be replied.That is, it can be automatically determined out based on the first data to be replied The input candidate item of input method application program, and the input of user is not necessarily relied on, so improve acquisition input candidate item Efficiency, so as to reach the technique effect improved through the reply efficiency of input method application program data to be replied to first.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real The equipment of function specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to Enable the manufacture of equipment, the commander equipment realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then additional changes and modifications may be made to these embodiments.So appended claims be intended to be construed to include it is excellent It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (13)

  1. A kind of 1. input recommendation method, which is characterized in that including:
    When detecting calling input method application program, the first data to be replied are obtained;
    Determine at least one reply candidate item corresponding to the described first data to be replied;
    At least one candidate item of replying is exported as the input candidate item of the input method application program.
  2. 2. the method as described in claim 1, which is characterized in that first data to be replied include:Pass through communication software institute The Content of Communication received;The first data to be replied of the acquisition, including:
    The Content of Communication is obtained from the communication software by the interface that the communication software is provided;And/or
    Obtain the sectional drawing of the communication interactive interface of the communication software;The Content of Communication is obtained by the sectional drawing.
  3. 3. the method as described in claim 1, which is characterized in that described to determine corresponding to the described first data to be replied extremely Few reply candidate item, including:
    It is searched in first correspondence of the data to be replied with replying candidate item by the described first data to be replied and obtains institute State the first data to be replied.
  4. 4. method as claimed in claim 3, which is characterized in that the method further includes:
    Obtain the historical communication data of user;
    At least one set of history Question Log is obtained based on the history communication data, every group of history Question Log includes number to be replied According to and its corresponding reply content;
    Its corresponding reply content is extracted for every data to be replied;
    Reply candidate item of the reply content for meeting preset condition as corresponding data to be replied of data to be replied will be corresponded to, into And it establishes data to be replied and replys first correspondence between candidate item.
  5. 5. the method as described in claim 1, which is characterized in that described to determine corresponding to the described first data to be replied extremely Few reply candidate item, including:
    Extract the fisrt feature information of the described first data to be replied;
    Based on the characteristic information pre-established and the second correspondence between rule is replied, determines the fisrt feature information Corresponding first replys rule;
    Rule, which is replied, by described first builds at least one reply candidate item.
  6. 6. method as claimed in claim 5, which is characterized in that described to be replied at least one described in rule structure by described first A reply candidate item, including:
    Extract at least one of the described first data to be replied particular keywords;
    At least one particular keywords and the described first reply rule are combined, so as to obtain described at least one time Multiple candidate item.
  7. 7. the method as described in claim 1, which is characterized in that described to determine corresponding to the described first data to be replied extremely Few reply candidate item, including:
    Determine the input candidate item corresponding to the character string inputted by the input method application program;
    Extract at least one keyword included in the described first data to be replied;
    At least one reply candidate item is determined based on the input candidate item and at least one keyword.
  8. 8. the method for claim 7, which is characterized in that described based on the input candidate item and described at least one After keyword determines at least one reply candidate item, the method further includes:
    It is candidate at least one reply based at least one keyword described included in the described first data to be replied Item is ranked up.
  9. 9. the method as described in claim 1-8 is any, which is characterized in that the method further includes:
    When detecting that the communication interactive interface by communication software calls the input method application program, obtain the communication and hand over The peer user information at mutual interface;
    The input candidate item of the input method application program is determined by the peer user information.
  10. 10. the method as described in claim 1-8 is any, which is characterized in that the method further includes:
    When detecting that the communication interactive interface by communication software calls the input method application program, determine that the communication is handed over The peer user at mutual interface;
    Determine the social relationships of the peer user and the electronic device user;
    It is described to export at least one candidate item of replying as the input candidate item of the input method application program, including:
    At least one reply candidate item is ranked up based on the social relationships;
    At least one reply candidate item after output sequence.
  11. 11. method as claimed in claim 10, which is characterized in that described to determine the peer user and the electronic equipment The social relationships of user, including:
    Obtain the Content of Communication between the peer user and the user;
    Extract the first predetermined keyword included in the Content of Communication;
    The social relationships between the peer user and the user are determined based on the described first predetermined keyword.
  12. 12. a kind of input recommendation apparatus, which is characterized in that including:
    First obtains module, for when detecting calling input method application program, obtaining the first data to be replied;
    First determining module, for determining at least one reply candidate item corresponding to the described first data to be replied;
    Output module, at least one reply candidate item is defeated as the input candidate item of the input method application program Go out.
  13. 13. a kind of electronic equipment, which is characterized in that include memory and one or more than one program, wherein one A either more than one program is stored in memory and is configured to perform described one by one or more than one processor A or more than one program includes the instruction for being operated below:
    When detecting calling input method application program, the first data to be replied are obtained;
    Determine at least one reply candidate item corresponding to the described first data to be replied;
    At least one candidate item of replying is exported as the input candidate item of the input method application program.
CN201611101605.5A 2016-12-05 2016-12-05 Method, apparatus and electronic equipment are recommended in a kind of input Pending CN108153755A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611101605.5A CN108153755A (en) 2016-12-05 2016-12-05 Method, apparatus and electronic equipment are recommended in a kind of input

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611101605.5A CN108153755A (en) 2016-12-05 2016-12-05 Method, apparatus and electronic equipment are recommended in a kind of input

Publications (1)

Publication Number Publication Date
CN108153755A true CN108153755A (en) 2018-06-12

Family

ID=62470733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611101605.5A Pending CN108153755A (en) 2016-12-05 2016-12-05 Method, apparatus and electronic equipment are recommended in a kind of input

Country Status (1)

Country Link
CN (1) CN108153755A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032726A (en) * 2018-06-29 2018-12-18 北京明朝万达科技股份有限公司 The acquisition methods and device of chat message
WO2020056948A1 (en) * 2018-09-20 2020-03-26 北京搜狗科技发展有限公司 Method and device for data processing and device for use in data processing
CN111273786A (en) * 2018-12-04 2020-06-12 北京搜狗科技发展有限公司 Intelligent input method and device
CN111831130A (en) * 2019-04-18 2020-10-27 成都鼎桥通信技术有限公司 Input content recommendation method, terminal device and storage medium
CN113127613A (en) * 2020-01-10 2021-07-16 北京搜狗科技发展有限公司 Chat information processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365833A (en) * 2012-03-28 2013-10-23 百度在线网络技术(北京)有限公司 Context scene based candidate word input prompt method and system for implementing same
CN103399906A (en) * 2013-07-29 2013-11-20 百度在线网络技术(北京)有限公司 Method and device for providing candidate words on the basis of social relationships during input
CN103500016A (en) * 2013-09-27 2014-01-08 北京邮电大学 Character input optimization method based on interaction
CN104484486A (en) * 2015-01-14 2015-04-01 北京搜狗科技发展有限公司 Information recommending method and electronic device
CN105095182A (en) * 2014-05-22 2015-11-25 华为技术有限公司 Reply information recommendation method and apparatus
CN105515938A (en) * 2014-09-24 2016-04-20 北京三星通信技术研究有限公司 Communication information generating method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365833A (en) * 2012-03-28 2013-10-23 百度在线网络技术(北京)有限公司 Context scene based candidate word input prompt method and system for implementing same
CN103399906A (en) * 2013-07-29 2013-11-20 百度在线网络技术(北京)有限公司 Method and device for providing candidate words on the basis of social relationships during input
CN103500016A (en) * 2013-09-27 2014-01-08 北京邮电大学 Character input optimization method based on interaction
CN105095182A (en) * 2014-05-22 2015-11-25 华为技术有限公司 Reply information recommendation method and apparatus
CN105515938A (en) * 2014-09-24 2016-04-20 北京三星通信技术研究有限公司 Communication information generating method and device
CN104484486A (en) * 2015-01-14 2015-04-01 北京搜狗科技发展有限公司 Information recommending method and electronic device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032726A (en) * 2018-06-29 2018-12-18 北京明朝万达科技股份有限公司 The acquisition methods and device of chat message
WO2020056948A1 (en) * 2018-09-20 2020-03-26 北京搜狗科技发展有限公司 Method and device for data processing and device for use in data processing
CN111273786A (en) * 2018-12-04 2020-06-12 北京搜狗科技发展有限公司 Intelligent input method and device
CN111273786B (en) * 2018-12-04 2024-05-10 北京搜狗科技发展有限公司 Intelligent input method and device
CN111831130A (en) * 2019-04-18 2020-10-27 成都鼎桥通信技术有限公司 Input content recommendation method, terminal device and storage medium
CN113127613A (en) * 2020-01-10 2021-07-16 北京搜狗科技发展有限公司 Chat information processing method and device
CN113127613B (en) * 2020-01-10 2024-01-09 北京搜狗科技发展有限公司 Chat information processing method and device

Similar Documents

Publication Publication Date Title
CN106446054B (en) A kind of information recommendation method, device and electronic equipment
US20230052073A1 (en) Privacy awareness for personal assistant communications
CN108153755A (en) Method, apparatus and electronic equipment are recommended in a kind of input
CN109635130A (en) The intelligent automation assistant explored for media
CN107480161A (en) The intelligent automation assistant probed into for media
US20180253219A1 (en) Personalized presentation of content on a computing device
CN107977928A (en) Expression generation method, apparatus, terminal and storage medium
CN106415527B (en) Information communication method and device
US10599916B2 (en) Methods and systems for playing musical elements based on a tracked face or facial feature
CN105447149A (en) Interaction method, apparatus and electronic device for network searching
Yu et al. Inferring user profile attributes from multidimensional mobile phone sensory data
CN107621886A (en) Method, apparatus and electronic equipment are recommended in one kind input
CN109640142B (en) Content recommendation method and device, equipment and storage medium
CN104735243A (en) Method and device for displaying contact list
Onyeator et al. Human communication in a digital age: Perspectives on interpersonal communication in the family
CN109241441A (en) Content recommendation method, device, electronic equipment and storage medium
CN106095868A (en) Obtain the method and device of mood information
CN105427443A (en) Voting message sending method and device
CN111523053A (en) Information flow processing method and device, computer equipment and storage medium
CN105357388B (en) A kind of method and electronic equipment of information recommendation
KR101620728B1 (en) System for generating mutual relation between artist and fan
JP5844334B2 (en) Ending note creation server, server program, and ending note creation system
CN108205534A (en) A kind of skin resource exhibition method, device and electronic equipment
WO2018069912A1 (en) An apparatus and method for discovering computerized connections between persons and generating computerized introductions
US20220191214A1 (en) Information processing system, information processing method, and program

Legal Events

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