CN109857926A - The method and apparatus of information for rendering - Google Patents

The method and apparatus of information for rendering Download PDF

Info

Publication number
CN109857926A
CN109857926A CN201910162577.5A CN201910162577A CN109857926A CN 109857926 A CN109857926 A CN 109857926A CN 201910162577 A CN201910162577 A CN 201910162577A CN 109857926 A CN109857926 A CN 109857926A
Authority
CN
China
Prior art keywords
information
similarity
query
current queries
result information
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
CN201910162577.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 Baidu Netcom Science and Technology Co Ltd
Shanghai Xiaodu Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910162577.5A priority Critical patent/CN109857926A/en
Publication of CN109857926A publication Critical patent/CN109857926A/en
Pending legal-status Critical Current

Links

Abstract

Embodiment of the disclosure discloses the method and apparatus of information for rendering.One specific embodiment of this method includes: to determine the time interval for receiving the current time of current queries information with receiving the last moment of a query information in response to receiving current queries information;In response to determining that time interval is less than preset interval threshold, the similarity of current queries information Yu a upper query information is determined;The query result information for being directed to current queries information is determined according to similarity, and query result information is presented.The embodiment, which helps to realize, is presented to the user the query result information for being more in line with user's real demand.

Description

The method and apparatus of information for rendering
Technical field
Embodiment of the disclosure is related to field of computer technology, and in particular to the method and apparatus of information for rendering.
Background technique
With the promotion and popularization of Internet application and the infiltration to people's life, more and more users start to get used to from Internet obtains the information needed for it.
Currently, usually user is by the query information inquired needed for terminal device input, then terminal device will be searched To result information be presented to the user.User is when consulting presented result information, it may be found that the result information presented There are gaps for the result information obtained with expectation.At this point, user may continue to input new inquiry relevant to previous query information Information.In the related technology, there is the demand that previous query information and new query information are combined to consideration.
Summary of the invention
Embodiment of the disclosure proposes the method and apparatus of information for rendering.
In a first aspect, embodiment of the disclosure provides a kind of method of information for rendering, this method comprises: in response to Current queries information is received, is determined and is received the current time of current queries information and receive upper the one of a query information The time interval at moment;In response to determine time interval be less than preset interval threshold, determine current queries information with it is upper The similarity of one query information;The query result information for being directed to current queries information is determined according to similarity, and inquiry is presented Result information.
In some embodiments, the query result information for being directed to current queries information is determined according to similarity, comprising: response It is greater than preset similarity threshold in similarity, current queries information is sent to search server, and receive search Server is directed to the first search result information that current queries information is sent;First search result information is determined as query result Information.
In some embodiments, before receiving current queries information, this method further include: send a upper query information The second search result information that a upper query information is sent is directed to search server, and reception search server;And root The query result information for being directed to current queries information is determined according to similarity, comprising: be greater than preset phase in response to similarity Like degree threshold value, the second search result information is determined as query result information.
In some embodiments, the query result information for being directed to current queries information is determined according to similarity, comprising: response In similarity be greater than preset similarity threshold, according to preset processing step to current queries information at Reason;The processing result information that processing obtains is sent to search server, and receives search server and believes for processing result Cease the third search result information sent;Third search result information is determined as query result information.
In some embodiments, the query result information for being directed to current queries information is determined according to similarity, comprising: response Be less than or equal to preset similarity threshold in similarity, from pre-stored candidate pushed information set, determine with The candidate pushed information that current queries information matches, as query result information.
Second aspect, embodiment of the disclosure provide a kind of device of information for rendering, which includes: that interval is true Order member, is configured in response to receive current queries information, determines and receives current time of current queries information and connect Receive the time interval of the last moment of a query information;Similarity determining unit was configured in response between the determining time Every being less than preset interval threshold, the similarity of current queries information Yu a upper query information is determined;As a result display unit, It is configured to determine the query result information for being directed to current queries information according to similarity, and query result information is presented.
In some embodiments, as a result in display unit, the inquiry knot for being directed to current queries information is determined according to similarity Fruit information, comprising: be greater than preset similarity threshold in response to similarity, current queries information is sent to search service Device, and receive search server and be directed to the first search result information that current queries information is sent;First search result is believed Breath is determined as query result information.
In some embodiments, device further include: result receiving unit is configured to for a upper query information being sent to Search server, and receive search server and be directed to the second search result information that a upper query information is sent;And result In display unit, the query result information for being directed to current queries information is determined according to similarity, comprising: be greater than in response to similarity Second search result information is determined as query result information by preset similarity threshold.
In some embodiments, as a result in display unit, the inquiry knot for being directed to current queries information is determined according to similarity Fruit information, comprising: be greater than preset similarity threshold in response to similarity, according to preset processing step to current Query information is handled;The processing result information that processing obtains is sent to search server, and receives search server The third search result information sent for processing result information;Third search result information is determined as query result information.
In some embodiments, as a result in display unit, the inquiry knot for being directed to current queries information is determined according to similarity Fruit information, comprising: be less than or equal to preset similarity threshold in response to similarity, from pre-stored candidate push letter In breath set, the determining candidate pushed information to match with current queries information, as query result information.
The third aspect, embodiment of the disclosure provide a kind of electronic equipment, which includes: one or more places Manage device;Storage device is stored thereon with one or more programs;When the one or more program is by the one or more processors It executes, so that the one or more processors realize the method as described in implementation any in first aspect.
Fourth aspect, embodiment of the disclosure provide a kind of computer-readable medium, are stored thereon with computer program, The method as described in implementation any in first aspect is realized when the program is executed by processor.
The method and apparatus for the information for rendering that embodiment of the disclosure provides, can be in response to receiving current queries Information, between the determining time of last moment for receiving the current time of current queries information and receiving a query information Every.Then, in response to determining that time interval is less than preset interval threshold, determine that current queries information and a upper inquiry are believed The similarity of breath.Finally, determining the query result information for being directed to current queries information according to similarity, and query result is presented Information.The method and apparatus of the present embodiment can be come true according to the similarity between current queries information and a upper query information Surely it is directed to the query result information of current queries information, the query result letter of user's real demand will be more in line with by helping to realize Breath is presented to the user.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the disclosure is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the disclosure can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the method for the information for rendering of the disclosure;
Fig. 3 is the schematic diagram of an application scenarios of the method for information for rendering according to an embodiment of the present disclosure;
Fig. 4 is the flow chart according to another embodiment of the method for the information for rendering of the disclosure;
Fig. 5 is the structural schematic diagram according to one embodiment of the device of the information for rendering of the disclosure;
Fig. 6 is adapted for the structural schematic diagram for realizing the electronic equipment of embodiment of the disclosure.
Specific embodiment
The disclosure is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the disclosure can phase Mutually combination.The disclosure is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the method or the dress of information for rendering of the information for rendering of embodiment of the disclosure The exemplary system architecture 100 set.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105. Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
Terminal device 101,102,103 can be interacted by network 104 with server 105, to receive or send message etc.. Various applications, such as searching class application, the application of debugging class etc. can be installed on terminal device 101,102,103.
Terminal device 101,102,103 can be hardware, be also possible to software.When terminal device 101,102,103 is hard When part, can be with display screen and support query information input various electronic equipments, including but not limited to smart phone, Tablet computer, pocket computer on knee and desktop computer etc..It, can be with when terminal device 101,102,103 is software It is mounted in above-mentioned cited electronic equipment.Multiple softwares or software module may be implemented into (such as providing distribution in it Formula service), single software or software module also may be implemented into.It is not specifically limited herein.
Server 105 can be to provide the server of various services, such as to being inputted on terminal device 101,102,103 Query information execute search service search server.Search server can receive terminal device 101,102,103 When the query information of transmission, terminal device 101,102,103 will be sent to for the search result information of query information.
It should be noted that server can be hardware, it is also possible to software.When server is hardware, may be implemented At the distributed server cluster that multiple servers form, individual server also may be implemented into.It, can when server is software To be implemented as multiple softwares or software module (such as providing Distributed Services), single software or software also may be implemented into Module.It is not specifically limited herein.
It should be noted that provided by embodiment of the disclosure for rendering the method for information generally by terminal device 101, it 102,103 executes, correspondingly, the device of information is generally positioned in terminal device 101,102,103 for rendering.It needs , it is noted that provided by embodiment of the disclosure for rendering the method for information independent of network 104 and server 105, Thus, network 104 and server 105 can be not present in Fig. 1.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the process of one embodiment of the method for the information for rendering according to the disclosure is shown 200.The method of the information for rendering, comprising the following steps:
Step 201, it in response to receiving current queries information, determines and receives current time of current queries information and connect Receive the time interval of the last moment of a query information.
In the present embodiment, for rendering the method for information executing subject (such as terminal device shown in FIG. 1 101, 102,103) can receive the current queries information of user's input.
Wherein, above-mentioned current queries information typically refers to query information currently entered.An above-mentioned upper query information is usual Refer to relative to current queries information in preceding query information.Above-mentioned query information can be the various information for inquiry.On The form of expression for stating query information can include but is not limited to text, voice, picture etc..
When receiving current queries information, executing subject can be respectively obtained: receive the current of current queries information Moment receives the last moment of a query information.
Wherein, current time is temporal information when receiving current queries information.As an example, above-mentioned current time can Think at 17 points 11 minutes and 20 seconds.Last moment is temporal information when receiving a query information.As an example, above-mentioned upper a period of time Carve can for 17 points 00 second 11 minutes.In this way, executing subject can be calculated currently when known to current time and last moment Time interval between moment and last moment.As an example, if current time be 17 points 20 seconds 11 minutes, and last moment be 17 points 00 second 11 minutes, then time interval be 20 seconds.
Step 202, in response to determine time interval be less than preset interval threshold, determine current queries information with it is upper The similarity of one query information.
In the present embodiment, executing subject can be by the obtained time interval of step 201 and preset interval threshold Value is compared, to obtain the size relation between time interval and interval threshold.Wherein, above-mentioned interval threshold can be skill The preset data value of art personnel.Above-mentioned interval threshold can be 20 seconds, be also possible to 1 minute.
Here, when determining that time interval is less than preset interval threshold, executing subject can be used and be preset Similarity calculating method calculate the similarity between current queries information and a upper query information.Wherein, above-mentioned current queries Similarity between information and a upper query information typically refers to the corresponding vector of current queries information and a upper query information pair The similarity between vector answered.As an example, to can be cosine similarity calculation method, Europe several for above-mentioned similarity calculating method In distance (Eucledian Distance) calculation method, manhatton distance (Manhattan Distance) calculation method Deng.
In each embodiment of the disclosure, it is corresponding that executing subject can obtain current queries information using following steps Vector: firstly, executing subject can be using participle mode (for example, short path participle method (N-Short Path), maximum probability point Morphology (Maximum Probability), maximum matching method (Maximum Matching) etc.) current queries information is divided Word processing.Obtain at least one segmenting word of current queries information.Wherein, above-mentioned segmenting word is to divide current queries information The word obtained after word processing.Then, executing subject can using word2vec model determine the corresponding word of each segmenting word to Amount.Wherein, word2vec model is used to characterize the corresponding relationship of word and term vector, and word2vec model is those skilled in the art The common neural network model for being used to for word being converted to term vector.Finally, executing subject can be by obtained term vector group Conjunction obtains the corresponding vector of current queries information.Wherein, above-mentioned to combine obtained term vector to obtain current queries information pair The vector answered can be using the mean value of obtained term vector as the corresponding vector of current queries information.It is also possible to institute Obtained term vector is stitched together, and the vector of the sum of dimension that dimension is all term vectors is formed, as current queries information pair The vector answered.In addition, the mode that executing subject obtains the corresponding vector of a query information is corresponding with current queries information is obtained Vector mode it is essentially identical, be not described herein.
It should be pointed out that time interval is less than interval threshold, generally it can be thought that the upper inquiry letter that user is inputted There may be associated with current queries information for breath.
Step 203, the query result information for being directed to current queries information is determined according to similarity, and query result is presented Information.
In the present embodiment, above-mentioned executing subject can determine the query result for being directed to current queries information according to similarity Information, and identified query result information is presented to the user by display screen.
In some optional implementations of the present embodiment, above-mentioned executing subject can be determined as follows and be directed to The query result information of current queries information:
The first step is greater than preset similarity threshold in response to similarity, current queries information is sent to search Server, and receive search server and be directed to the first search result information that current queries information is sent.
Here, executing subject can lead to current queries information when similarity is greater than preset similarity threshold It crosses network and is sent to search server.In this way, current queries can be used after receiving current queries information in search server Information scans for, and searches at least one search result information.Search server can be by search at least one search Result information is sent to above-mentioned executing subject by network.It is based in this way, executing subject can receive above-mentioned search server The search result information that current queries information is sent.Wherein, above-mentioned first search result information refers to that search server is directed to and works as The search result information that preceding query information searches.
In each embodiment of the disclosure, above-mentioned search server is usually to provide the server of search service.Search Result information can be text, audio, video, picture etc..It is pre- that above-mentioned preset similarity threshold can be technical staff The data value first set.
It should be pointed out that search server is then forwarded to after being ranked up to each search result information searched State executing subject.In practical application, search result information and the degree of correlation of current queries information are higher, then the search result is believed The sequence of breath is more forward.Therefore, in order to reduce calculation amount, it is forward (that is, serial number is less than that executing subject can choose only acquisition sequence Set serial number threshold value) setting quantity search result information.
In the optional implementation of each embodiment of the disclosure, search server can be search engine server. Here, since the data in search engine server are to be stored by fixed index rule, and search engine takes The data volume that storage is indexed in business device is huge.It is, therefore, possible to provide more accurate, comprehensive search result information.
First search result information is determined as query result information by second step.
Here, by search server send the first search result information be determined as query result information, may be implemented by More accurately, the query result information for meeting user's real demand is presented to the user.
In some optional implementations of the present embodiment, the method for above-mentioned information for rendering further includes walking as follows It is rapid: a upper query information being sent to search server, and receives search server is sent for a upper query information the Two search result informations.At this point, above-mentioned executing subject can also be determined as follows the inquiry for current queries information Result information: being greater than preset similarity threshold in response to similarity, and the second search result information is determined as inquiry knot Fruit information.
In this implementation, executing subject can be when receiving a upper query information, directly by a upper query information It is sent to search server.It so may be implemented to obtain the second search that search server is sent based on a upper query information in advance Result information.Wherein, above-mentioned second search result information refers to that search server is directed to the search that a upper query information searches Result information.
In this way, when the similarity of current queries information and a upper query information is greater than preset similarity threshold, Time interval due to receiving two query informations is less than interval threshold, and the similarity of two query informations is greater than similarity Threshold value.At this point, generally it can be thought that the purpose of two query informations is same or similar.Therefore, executing subject can be direct Using the second search result information obtained in advance as query result information.This implementation, which helps to realize, is ensureing accuracy rate While improve search efficiency.
In some optional implementations of the present embodiment, above-mentioned executing subject can also be determined as follows needle To the query result information of current queries information:
The first step is greater than preset similarity threshold in response to similarity, according to preset processing step pair Current queries information is handled.
Here, when similarity is greater than preset similarity threshold, executing subject can use preset place Reason step handles current queries information.
Optionally, above-mentioned preset processing step, can be with are as follows: current queries information is added into a upper query information, Multiplied by similarity.For example, if current queries information is A, a upper query information is that the similarity of B, A and B are S.On then State use preset processing step to handle current queries information can be with are as follows: (A+B) × S.Wherein, "+" is plus sige. "×" is multiplication sign.It should be pointed out that above-mentioned typically refer to current queries information by current queries plus a upper query information The corresponding vector of information adds the corresponding vector of a upper query information.
Optionally, above-mentioned preset processing step, or: current queries information is added into a upper query information With the product of similarity.For example, if current queries information is A, a upper query information is that the similarity of B, A and B are S.Then It is above-mentioned use preset processing step to handle current queries information can be with are as follows: A+ (B × S).It should be pointed out that The above-mentioned product that current queries information is added to upper a query information and similarity, typically refers to current queries information is corresponding Vector, in addition the product of a upper query information corresponding vector and similarity.
The processing result information that processing obtains is sent to search server, and receives search server needle by second step The third search result information that processing result information is sent.
Here, the processing result information that processing obtains can be sent to search server by executing subject.In this way, can connect Receive the third search result information that search server is sent based on processing result information.Wherein, above-mentioned third search result letter Breath refers to that search server is directed to the search result information that processing result information searches.
It should be pointed out that since the time interval for receiving two query informations is less than interval threshold, and two inquiries The similarity of information is greater than similarity threshold.At this point, generally it can be thought that the purpose of two query informations is same or similar. Therefore, executing subject simultaneously accounts for a upper query information and current queries information, will both include a upper query information Content includes the processing result information of the content of current queries information again, is sent to search server, helps to realize two and looks into Ask information being complementary to one another in terms of content, the available third search result information for being more in line with user's real demand.
Third search result information is determined as query result information by third step.
Here, third search result information is determined as query result information, helps to improve inquiry accuracy rate.Meanwhile Inquiry times can be reduced, help to promote user experience.
In the optional implementation of the various embodiments described above of the disclosure, above-mentioned executing subject can also pass through such as lower section Formula determines the query result information for being directed to current queries information: being less than or equal to preset similarity threshold in response to similarity Value, from pre-stored candidate pushed information set, the determining candidate pushed information to match with current queries information, as Query result information.
Wherein, it is preparatory to can be technical staff for the candidate pushed information in above-mentioned pre-stored candidate pushed information set The various information of setting.The form of expression of candidate pushed information can include but is not limited to: text, picture, audio, video etc..
In this implementation, similarity be less than or equal to similarity threshold when, executing subject can in several ways, The determining candidate pushed information to match with current queries information from candidate pushed information set.
One way in which can be with are as follows: firstly, executing subject can calculate current queries information and candidate pushed information collection Similarity value between each of conjunction candidate's pushed information.Then, executing subject can be based on obtained multiple similarities Value, the candidate pushed information of the setting number for selecting corresponding similarity value big.Finally, selected candidate pushed information is determined For the candidate pushed information to match with current queries information.Wherein, above-mentioned setting number can be technical staff and preset Data value.
Wherein another way can be with are as follows: executing subject can be for the candidate push letter in candidate pushed information set Breath, calculates the similarity value between candidate's pushed information and current queries information.It is greater than in response to similarity value preset Candidate's pushed information is determined as the candidate pushed information to match with current queries information by similarity value.Wherein, above-mentioned pre- The similarity value first set can be the preset data value of technical staff.
With continued reference to one that Fig. 3, Fig. 3 are according to the application scenarios 300 of the method for the information for rendering of the present embodiment Schematic diagram.In the application scenarios of Fig. 3, user 301 to terminal device 302 has input current queries information, and " XX singer, which turns over, to be sung XXXX song ".
Firstly, terminal device 302 can receive the current queries information that user 301 inputs, " XX singer turns over the XXXX sung Song ".Later, it determines that the time for receiving current queries information " XX singer turns over the XXXX song sung " is T1, and receives The time of a upper query information " XXXX song " is T2.At this point it is possible to which the time interval for obtaining T1 and T2 is M.
Then, terminal device 302 can be when time interval M be less than preset interval threshold thres-M, further Calculate the similarity between current queries information " XX singer turns over the XXXX song sung " and a upper query information " XXXX song ".This Sample, available similarity are S.
Finally, terminal device 302 can determine that " XX singer turns over the XXXX sung for current queries information according to similarity S The query result information of song ".Later, query result information can be presented.
The method of the information for rendering provided by the above embodiment of the disclosure, can be in response to receiving current queries letter Breath determines the time interval for receiving the current time of current queries information with receiving the last moment of a query information. Then, in response to determining that time interval is less than preset interval threshold, current queries information and a upper query information are determined Similarity.Finally, determining the query result information for being directed to current queries information according to similarity, and query result letter is presented Breath.The method of the present embodiment can be worked as according to the similarity between current queries information and a upper query information to determine to be directed to The query result information of preceding query information helps to realize the presentation efficiency for being presented to the user query result information.
With further reference to Fig. 4, it illustrates the processes 400 of another embodiment of the method for information for rendering.The use In the process 400 for the method that information is presented, comprising the following steps:
Step 401, it in response to receiving current queries information, determines and receives current time of current queries information and connect Receive the time interval of the last moment of a query information.
Step 402, in response to determine time interval be less than preset interval threshold, determine current queries information with it is upper The similarity of one query information.
Step 403, the query result information for being directed to current queries information is determined according to similarity, and query result is presented Information.
In the present embodiment, the behaviour of the concrete operations of step 401-403 and step 201-203 in embodiment shown in Fig. 2 Make essentially identical, details are not described herein.
Step 404, in response to determining that time interval is greater than or equal to interval threshold, from pre-stored candidate pushed information In set, the determining candidate pushed information to match with current queries information, and candidate pushed information is presented.
In the present embodiment, when determining that time interval is greater than or equal to interval threshold, executing subject can be by a variety of Mode, the determining candidate pushed information to match with current queries information from candidate pushed information set.Here, it is pushed away from candidate The mode for sending the determining candidate pushed information to match with current queries information in information aggregate, refers to step 203 part Determine that the mode of the candidate pushed information to match with current queries information is essentially identical from candidate pushed information set, here It does not repeat them here.
Figure 4, it is seen that compared with the corresponding embodiment of Fig. 2, the method for the information for rendering in the present embodiment Process 400 highlight determining time interval be greater than or equal to interval threshold after information rendering step.The present embodiment as a result, The scheme of description, can be directly from candidate pushed information when the time interval of current queries information and a upper query information is larger It selects candidate pushed information to be presented in set, helps to improve the efficiency that information is presented.
It should be pointed out that the number due to the candidate pushed information in candidate pushed information set is much smaller than search service The number of information in device selects the time spent by candidate pushed information from candidate pushed information set, will be substantially less that from Search obtains the time spent by search result information in search server.Therefore, it is directly selected from candidate pushed information set It selects candidate pushed information to be presented, the time can be saved, realization quickly presents information to user, helps to realize and is protecting Search efficiency is improved while hindering accuracy rate.On the other hand, the time that user waits query result can also be reduced, helps to mention Rise user experience.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, present disclose provides one kind to believe for rendering One embodiment of the device of breath, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer For in various electronic equipments.
As shown in figure 5, the device 500 of the information for rendering of the present embodiment includes: interval determination unit 501, it is configured At in response to receiving current queries information, determines the current time for receiving current queries information and receive an inquiry and believe The time interval of the last moment of breath;Similarity determining unit 502, be configured in response to determine time interval be less than set in advance Fixed interval threshold determines the similarity of current queries information Yu a upper query information;As a result display unit 503 are configured to The query result information for being directed to current queries information is determined according to similarity, and query result information is presented.
In some optional implementations of the present embodiment, as a result in display unit 503, it is directed to according to similarity determination The query result information of current queries information may include: to be greater than preset similarity threshold in response to similarity, will work as Preceding query information is sent to search server.Receive the first search result letter that search server is sent for current queries information Breath.First search result information is determined as query result information.
In some optional implementations of the present embodiment, which can also be including result receiving unit (in figure not Show), wherein result receiving unit may be configured to for a upper query information to be sent to search server, and receives and search Rope server is directed to the second search result information that a upper query information is sent.At this point, in result display unit 503, according to phase The query result information for being directed to current queries information is determined like degree, may include: to be greater than preset phase in response to similarity Like degree threshold value, the second search result information is determined as query result information.
In some optional implementations of the present embodiment, as a result in display unit 503, it is directed to according to similarity determination The query result information of current queries information may include: to be greater than preset similarity threshold in response to similarity, according to Preset processing step handles current queries information.The processing result information that processing obtains is sent to search clothes Business device, and receive search server and be directed to the third search result information that processing result information is sent.By third search result Information is determined as query result information.
In some optional implementations of the present embodiment, as a result in display unit 503, it is directed to according to similarity determination The query result information of current queries information may include: to be less than or equal to preset similarity threshold in response to similarity Value, from pre-stored candidate pushed information set, the determining candidate pushed information to match with current queries information, as Query result information.
The device provided by the above embodiment of the disclosure, be spaced determination unit 501 in response to receiving current queries information, Determine the time interval for receiving the current time of current queries information with receiving the last moment of a query information.So Afterwards, similarity determining unit 502 determines current queries information in response to determining that time interval is less than preset interval threshold With the similarity of a upper query information.Finally, result display unit 503 determines looking into for current queries information according to similarity Result information is ask, and query result information is presented.The device of the present embodiment, can be according to current queries information and a upper inquiry Similarity between information, to determine the query result information for current queries information, use will be more in line with by helping to realize The query result information of family real demand is presented to the user.
Below with reference to Fig. 6, it illustrates the electronic equipment that is suitable for being used to realize embodiment of the disclosure, (example is as shown in figure 1 Terminal device) 600 structural schematic diagram.Terminal device in embodiment of the disclosure can include but is not limited to such as move electricity Words, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia Player), the mobile terminal and such as number TV, desktop computer etc. of car-mounted terminal (such as vehicle mounted guidance terminal) etc. Fixed terminal.Terminal device shown in Fig. 6 is only an example, function to embodiment of the disclosure and should not use model Shroud carrys out any restrictions.
As shown in fig. 6, electronic equipment 600 may include processing unit (such as central processing unit (CPU), graphics process Device etc.) 601, can according to the program being stored in read-only memory (ROM) 602 or from storage device 608 be loaded into Machine accesses the program in memory (RAM) 603 and executes various movements appropriate and processing.In RAM 603, it is also stored with electricity Sub- equipment 600 operates required various programs and data.Processing unit 601, ROM 602 and RAM 603 by bus 604 that This is connected.Input/output (I/O) interface 605 is also connected to bus 604.
In general, following device can connect to I/O interface 605: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 606 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 607 of dynamic device etc.;Storage device 608 including such as tape, hard disk etc.;And communication device 609.Communication device 609, which can permit electronic equipment 600, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 6 shows tool There is the electronic equipment 600 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with Alternatively implement or have more or fewer devices.Each box shown in Fig. 6 can represent a device, can also root According to needing to represent multiple devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 609, or from storage device 608 It is mounted, or is mounted from ROM 602.When the computer program is executed by processing unit 601, the implementation of the disclosure is executed The above-mentioned function of being limited in the method for example.It should be noted that the computer-readable medium of embodiment of the disclosure can be meter Calculation machine readable signal medium or computer readable storage medium either the two any combination.Computer-readable storage Medium for example may be-but not limited to-system, device or the device of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, Or any above combination.The more specific example of computer readable storage medium can include but is not limited to: have one Or the electrical connections of multiple conducting wires, portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light Memory device, magnetic memory device or above-mentioned any appropriate combination.In embodiment of the disclosure, computer-readable to deposit Storage media can be any tangible medium for including or store program, which can be commanded execution system, device or device Part use or in connection.And in embodiment of the disclosure, computer-readable signal media may include in base band In or as carrier wave a part propagate data-signal, wherein carrying computer-readable program code.This propagation Data-signal can take various forms, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Meter Calculation machine readable signal medium can also be any computer-readable medium other than computer readable storage medium, which can Read signal medium can be sent, propagated or be transmitted for being used by instruction execution system, device or device or being tied with it Close the program used.The program code for including on computer-readable medium can transmit with any suitable medium, including but not It is limited to: electric wire, optical cable, RF (radio frequency) etc. or above-mentioned any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.Above-mentioned computer-readable medium carries one or more program, when said one or more When a program is executed by the electronic equipment, so that the electronic equipment: in response to receiving current queries information, determining to receive and work as The time interval at the current time of preceding query information and the last moment for receiving a query information;In response between the determining time Every being less than preset interval threshold, the similarity of current queries information Yu a upper query information is determined;It is true according to similarity Surely it is directed to the query result information of current queries information, and query result information is presented.
The behaviour for executing embodiment of the disclosure can be write with one or more programming languages or combinations thereof The computer program code of work, programming language include object oriented program language-such as Java, Smalltalk, C++ further include conventional procedural programming language-such as " C " language or similar program design language Speech.Program code can be executed fully on the user computer, partly be executed on the user computer, as an independence Software package execute, part on the user computer part execute on the remote computer or completely in remote computer or It is executed on server.In situations involving remote computers, remote computer can pass through the network of any kind --- packet It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in embodiment of the disclosure can be realized by way of software, can also be passed through The mode of hardware is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor Including interval determination unit, similarity determining unit and result display unit.Wherein, the title of these units is under certain conditions The restriction to the unit itself is not constituted, for example, interval determination unit is also described as " currently looking into response to receiving Information is ask, between the determining time of last moment for receiving the current time of current queries information and receiving a query information Every unit ".
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (12)

1. a kind of method of information for rendering, comprising:
In response to receiving current queries information, determining the current time for receiving the current queries information and receiving one The time interval of the last moment of query information;
In response to the determination time interval be less than preset interval threshold, determine the current queries information and it is described on The similarity of one query information;
The query result information for being directed to the current queries information is determined according to the similarity, and the query result is presented Information.
2. according to the method described in claim 1, wherein, described determined according to the similarity is directed to the current queries information Query result information, comprising:
It is greater than preset similarity threshold in response to the similarity, the current queries information is sent to search service Device, and receive described search server and be directed to the first search result information that the current queries information is sent;
First search result information is determined as the query result information.
3. according to the method described in claim 1, wherein, it is described receive current queries information before, the method also includes:
A upper query information is sent to search server, and receives described search server for a upper inquiry The second search result information that information is sent;And
It is described that the query result information for being directed to the current queries information is determined according to the similarity, comprising:
It is greater than preset similarity threshold in response to the similarity, second search result information is determined as described Query result information.
4. according to the method described in claim 1, wherein, described determined according to the similarity is directed to the current queries information Query result information, comprising:
It is greater than preset similarity threshold in response to the similarity, according to preset processing step to described current Query information is handled;
The processing result information that processing obtains is sent to search server, and receives described search server and is directed to the place Manage the third search result information that result information is sent;
The third search result information is determined as the query result information.
5. method described in one of -4 according to claim 1, wherein described determined according to the similarity is currently looked into for described Ask the query result information of information, comprising:
It is less than or equal to preset similarity threshold in response to the similarity, from pre-stored candidate pushed information collection In conjunction, the determining candidate pushed information to match with the current queries information, as the query result information.
6. a kind of device of information for rendering, comprising:
It is spaced determination unit, is configured in response to receive current queries information, determination receives the current queries information Current time with receive a query information last moment time interval;
Similarity determining unit is configured in response to determine that the time interval is less than preset interval threshold, determine The similarity of the current queries information and a upper query information;
As a result display unit is configured to determine that the query result for the current queries information is believed according to the similarity Breath, and the query result information is presented.
7. device according to claim 6, wherein described to be determined according to the similarity in the result display unit For the query result information of the current queries information, comprising:
It is greater than preset similarity threshold in response to the similarity, the current queries information is sent to search service Device, and receive described search server and be directed to the first search result information that the current queries information is sent;
First search result information is determined as the query result information.
8. device according to claim 6, wherein described device further include:
As a result receiving unit is configured to for a upper query information being sent to search server, and receives described search The second search result information that server is sent for a upper query information;And
It is described to determine that the query result for the current queries information is believed according to the similarity in the result display unit Breath, comprising:
It is greater than preset similarity threshold in response to the similarity, second search result information is determined as described Query result information.
9. device according to claim 6, wherein described to be determined according to the similarity in the result display unit For the query result information of the current queries information, comprising:
It is greater than preset similarity threshold in response to the similarity, according to preset processing step to described current Query information is handled;
The processing result information that processing obtains is sent to search server, and receives described search server and is directed to the place Manage the third search result information that result information is sent;
The third search result information is determined as the query result information.
10. the device according to one of claim 6-9, wherein described according to described similar in the result display unit Degree determines the query result information for being directed to the current queries information, comprising:
It is less than or equal to preset similarity threshold in response to the similarity, from pre-stored candidate pushed information collection In conjunction, the determining candidate pushed information to match with the current queries information, as the query result information.
11. a kind of electronic equipment, comprising:
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer-readable medium, is stored thereon with computer program, wherein the realization when program is executed by processor Such as method as claimed in any one of claims 1 to 5.
CN201910162577.5A 2019-03-05 2019-03-05 The method and apparatus of information for rendering Pending CN109857926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910162577.5A CN109857926A (en) 2019-03-05 2019-03-05 The method and apparatus of information for rendering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910162577.5A CN109857926A (en) 2019-03-05 2019-03-05 The method and apparatus of information for rendering

Publications (1)

Publication Number Publication Date
CN109857926A true CN109857926A (en) 2019-06-07

Family

ID=66899786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910162577.5A Pending CN109857926A (en) 2019-03-05 2019-03-05 The method and apparatus of information for rendering

Country Status (1)

Country Link
CN (1) CN109857926A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279486A (en) * 2013-04-24 2013-09-04 百度在线网络技术(北京)有限公司 Method and device for providing related searches
CN105117383A (en) * 2015-08-14 2015-12-02 百度在线网络技术(北京)有限公司 Search result providing method and apparatus
CN105701155A (en) * 2015-12-30 2016-06-22 百度在线网络技术(北京)有限公司 Information push method and the device
CN106489146A (en) * 2014-09-15 2017-03-08 谷歌公司 Query rewrite using session information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279486A (en) * 2013-04-24 2013-09-04 百度在线网络技术(北京)有限公司 Method and device for providing related searches
CN106489146A (en) * 2014-09-15 2017-03-08 谷歌公司 Query rewrite using session information
CN105117383A (en) * 2015-08-14 2015-12-02 百度在线网络技术(北京)有限公司 Search result providing method and apparatus
CN105701155A (en) * 2015-12-30 2016-06-22 百度在线网络技术(北京)有限公司 Information push method and the device

Similar Documents

Publication Publication Date Title
CN108804532A (en) A kind of recognition methods, the device of the excavation and query intention of query intention
US11762931B2 (en) Feedback method and apparatus based on online document comment, and non-transitory computer-readable storage medium
CN108540831B (en) Method and apparatus for pushed information
CN109189938A (en) Method and apparatus for updating knowledge mapping
CN110096655A (en) Sort method, device, equipment and the storage medium of search result
CN110069698A (en) Information-pushing method and device
CN109271556A (en) Method and apparatus for output information
CN110213614A (en) The method and apparatus of key frame are extracted from video file
CN110391938A (en) Method and apparatus for deployment services
CN110321447A (en) Determination method, apparatus, electronic equipment and the storage medium of multiimage
CN109785072A (en) Method and apparatus for generating information
CN110059172B (en) Method and device for recommending answers based on natural language understanding
CN112182255A (en) Method and apparatus for storing media files and for retrieving media files
CN110083677A (en) Searching method, device, equipment and the storage medium of contact person
CN110232920A (en) Method of speech processing and device
CN109992719A (en) Method and apparatus for determining push precedence information
CN109829117A (en) Method and apparatus for pushed information
CN108509442B (en) Search method and apparatus, server, and computer-readable storage medium
CN108667875B (en) Information updating method and device
CN110765357A (en) Method, device and equipment for searching online document and storage medium
CN112148962B (en) Method and device for pushing information
CN110457598A (en) User's lookup method, the device and computer-readable medium searched for user
CN110109597A (en) A kind of single switching method of song, device, system, terminal and storage medium
CN109857926A (en) The method and apparatus of information for rendering
CN108984678A (en) wearable device, information processing method, device and system

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
TA01 Transfer of patent application right

Effective date of registration: 20210508

Address after: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing

Applicant after: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

Applicant after: Shanghai Xiaodu Technology Co.,Ltd.

Address before: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing

Applicant before: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20190607

RJ01 Rejection of invention patent application after publication