Summary of the invention
In view of this, the embodiment of the invention provides a kind of situation searching method and system, can make much of user's retrieval intention, realizes the seamless connection of current operation of user and search.
Technical scheme of the present invention is achieved in that
The invention provides a kind of situation searching method, comprising:
From the current operation interface of user, obtain the query string that the user will import, and the query string that obtains is carried out pre-service;
Operation interface content according to the user is current is carried out contextual analysis and situation calculating to pretreated query string;
Be intended to according to contextual analysis result and situation result of calculation identification user search, and carry out the situation search, return result for retrieval according to the user search intention that identifies.
In the such scheme, this method also comprises: result for retrieval is shown to the user.
In the such scheme; Saidly from the current operation interface of user, obtain the query string that the user will import and comprise: when the user adopts immediate communication tool chatting; From the chat record context of present chatting window, obtain the query string of the retrieval word of user's selection as input; Perhaps, when the user reads web page contents, obtain query string as input through the identification of words of clicking in the current web page; Perhaps, when user's browsed web content produces search need, from the current web page content, select the retrieval word and pass through to click search option the query string of selected retrieval word as input.
In the such scheme, saidly query string is carried out contextual analysis be: confirm the current related topic of user according to the current operation interface content analysis of user.The said situation of carrying out is calculated as: obtain with user-dependent userspersonal information, retrieval cause information, retrieval time information, retrieve location information, term information, retrieval purpose information and retrieval behavioural information at least a information.
In the such scheme, saidly result for retrieval is shown to the user is: show result for retrieval or directly in browser, show result for retrieval or show result for retrieval through superposed layer at the instant messaging chat window.
The present invention also provides a kind of situation search system, comprising: query string acquisition module, query string processing module, contextual analysis module, situation computing module, situation search module;
Said query string acquisition module is used for obtaining the query string that the user will import from the current operation interface of user, and said query string is sent to the query string processing module;
Said query string processing module is used for query string is carried out pre-service, and pretreated query string is sent to contextual analysis module and situation computing module;
Said contextual analysis module is used for according to the current operation interface content of user pretreated query string being carried out contextual analysis, and the contextual analysis result is sent to the situation search module;
Said situation computing module is used for according to the current operation interface content of user pretreated query string being carried out situation and calculates, and situation result of calculation is sent to the situation search module;
Said situation search module is used for according to contextual analysis result and situation result of calculation identification user search intention, and carries out the situation search according to the user search intention that identifies, and obtains result for retrieval.
In the such scheme, this system also comprises: the result for retrieval display module is used for the result for retrieval that the situation search module obtains is shown to the user.
In the such scheme, said query string processing module also comprises pretreatment unit, recognition unit; Wherein, pretreatment unit is used for the query string of input is carried out pre-service, and pretreated query string is sent to recognition unit; Recognition unit is used for according to word segmentation result identification user search intention.
In the such scheme, said query string acquisition module specifically is used for: when the user adopts immediate communication tool chatting, from the chat record context of present chatting window, obtain the query string of the retrieval word of user's selection as input; Perhaps, when the user reads web page contents, obtain query string as input through the identification of words of clicking in the current web page; Perhaps, when user's browsed web content produces search need, from the current web page content, select the retrieval word and pass through to click search option the query string of selected retrieval word as input.
Situation searching method provided by the present invention and system; From the current operation interface of user, obtain the query string that the user will import; Said query string is carried out pre-service, according to the current operation interface content of user pretreated query string is carried out contextual analysis and situation calculating again, according to contextual analysis result and situation result of calculation identification user search intention; User search intention according to identifying triggers the market border search of going forward side by side, and returns the result for retrieval that meets user's request.Owing to be to obtain term search, can not only understand user's retrieval intention more fully, more accurately from the current operation interface of user; And can make the user current operation and the search between realize seamless connection.
In addition, the present invention can be in several ways obtain the query string of user's input from the current operation interface of user, such as: obtain the query string of the word of the need retrieval that the user selects from the current IM chat window of user as user's input; Perhaps, from the news of the current reading of user or blog, obtain and click or the mouse emphasis identification of words pointed to the query string that suspends as user's input; Perhaps, obtain the user and browsing the need retrieval word selected when current web page produces search need as query string of user's input or the like.So, not only make more convenient operation, flexibly, be easy to realize; And, make result for retrieval more accurate.
Embodiment
In the embodiment of the invention; From the current operation interface of user, obtain the query string that the user will import; Said query string is carried out pre-service, according to the current operation interface content of user pretreated query string is carried out contextual analysis and situation calculating again, according to contextual analysis result and situation result of calculation identification user search intention; User search intention according to identifying triggers the market border search of going forward side by side, and returns the result for retrieval that meets user's request.
Further, the result for retrieval with the situation search is shown to the user.
Here; Saidly from the current operation interface of user, obtain the query string that the user will import and include but not limited to following situation: when the user adopts immediate communication tool chatting; Can from the chat record context of present chatting window, obtain the query string of the retrieval word of user's selection as input; When the user reads web page contents such as news/blog, can obtain query string through the identification of words of clicking in the current web page as input; When user's browsed web content produces search need, can from the current web page content, select the retrieval word and pass through to click search option the query string of selected retrieval word as input.
Below in conjunction with accompanying drawing and embodiment realization of the present invention is at length explained.
Situation searching method of the present invention is as shown in Figure 1, may further comprise the steps:
Step 101: from the current operation interface of user, obtain the query string that the user will import, and the query string that obtains is carried out pre-service;
Here, the current operation interface of said user can be a chat window; Also can be reading webpage such as the news/blog web page that the emphasis sign is arranged; It can also be general browsing page; Or the like.
Accordingly, from the current operation interface of user, obtain the query string that the user will import and comprise following three kinds of modes at least:
First kind; The user is in the process of using instant messaging (IM) tool chatting; If desired certain is just understood in depth with the topic that the good friend talks about, just need retrieve as term, further inquire the more relevant information of this topic with the keyword of this topic.In this case; The user only needs the word that selection need be retrieved from the chat record context of present chatting window; Will occur the icon searched for aside, click search icon and can the word of the need retrieval of the current selection query string as input be triggered the associative operation of situation search.Thus it is clear that, in this case,, need not withdraw from current chat window and get into special search interface, or newly create a special search interface, but can accomplish the triggering of search at current operation interface if the user need search for.Wherein, how when selection needs the word of retrieval, search icon just to occur, correlation function need be set in advance.
Second kind; The user is reading news, when reading blog web page, can excavate the point identification of laying equal stress on to the emphasis keyword in the literary compositions such as news, blog, in this case; If the user need further understand in depth certain interested problem; Only need to click word that the emphasis sign is arranged or mouse be suspended to the word of emphasis sign, can be with current click or the word that points to of suspending as the query string of input, trigger the associative operation of situation search.It is thus clear that; In this case, if the user need search for, need not withdraw from current news of reading/blog page and get into special search interface; Or newly create a special search interface, but can accomplish the triggering of search at current operation interface.Wherein, how clicking or mouse just can need be provided with relevant routine interface with this word as the query string of choosing when being suspended to the word of emphasis sign in advance.
The third when user's browsed web content produces search need, that is to say; In user's browsing web page contents process, want certain interested problem is further understood in depth, in this case; Only need choose the word that needs retrieval earlier; Press the search option in right button and the click right menu then, the word of the needs retrieval that can will choose triggers the associative operation of situation search as the query string of input.It is thus clear that in this case, if the user need search for, the page that need not withdraw from current browsing gets into special search interface, or newly creates a special search interface, but can accomplish the triggering of search at current operation interface.Wherein, need in the menu that right button produces, to increase search option in advance.
In this step, said pre-service is meant that the query string to receiving carries out word segmentation processing, or deletes unnecessary symbol, like the space in the middle of the Delete query string, or the deletion apparent error, and word that repeats to import like deletion or the like; 26,, three words of Games for university students wherein, said word segmentation processing is exactly the query string of receiving by the identification of phonetically implication, and is a plurality of words with the query string cutting, and for example, the query string of receiving is: 26 Games for university students, this query string can be by cutting:.Specifically how query string is carried out pre-service and belong to prior art, no longer detail here.
Step 102: the operation interface content according to the user is current is carried out contextual analysis and situation calculating to pretreated query string;
Here; Said query string is carried out contextual analysis; Be meant according to the current current related topic of operation interface content analysis user of user etc., such as: the user is through the JICQ chat, so; Carry out contextual analysis and be meant the context of analyzing chat record in the present chatting window, understand what the current topic of chatting of user is; For another example: the user is current to read news or is reading blog; So; Carry out contextual analysis and be meant the content of literal that analysis user is read, the topic of understanding the current care of user is the problem of which aspect, like physical culture aspect, video display aspect, military aspect, education aspect or the like; Determined search field of contextual analysis and scope can be very wide in range in the prior art; And the present invention carries out contextual analysis according to the current operation interface content of user; Determined topic field that relates to and scope are more accurate relatively; But preliminary topic field and scope also just confirmed in contextual analysis, and more the retrieving detail of refinement also needs situation to calculate to accomplish.
Said situation is calculated, and is meant to obtain and user-dependent userspersonal information (Who), retrieval cause information (Why), information retrieval time (When), retrieve location information (Where), term information (What), retrieval purpose information (Want) and at least a information of retrieving in behavioural information (How) seven element informations; Further, accomplish the search of user's information needed in conjunction with seven element informations that obtain.Owing to can fully reflect user's current states, related topic, will understand the cause and effect of said topic, the time range that will understand said topic, regional extent or the like details situation with user-dependent seven key elements; Therefore; Can combine query word to retrieve the required information material of user accurately and rapidly; Greatly improve user's search experience, improve user's search routine.Wherein, specifically how to obtain seven element information the applicant and propose to have related application.
Step 103: be intended to according to contextual analysis result and situation result of calculation identification user search, and carry out the situation search, return the result for retrieval that meets user's request according to the user search intention that identifies.
Here, can calculate, identify user's retrieval intention according to the current related topic of user and the relation between the query string and to the situation that query string carries out.Such as: the user is current to chat through the chat tool of instant messaging; And the query string of selecting to import from current chat window is an antivirus software; Usually being the result that query word retrieves with the antivirus software, only is information such as some operation instructions to antivirus software, download, introduction; And among the present invention, earlier according to the current operation interface content of user the input inquiry string being carried out the topic that contextual analysis confirms that the user need understand is antivirus software, simultaneously; Find that according to the chat record context in user's present chatting window the user complains that machine poisons the most in a couple of days; And suffered the virus of category-A type, so, calculated through query string being carried out situation; Can confirm further that the user need download antivirus software; And be to be directed against the antivirus software of category-A type virus and to should be distance nearest latest edition of time the most in a couple of days, like this, the result for retrieval that returns just can be: the antivirus software that can kill category-A type latest edition virus, that the time is nearest at least only is provided.
For another example: the user imports through the present chatting window selection, the pretreated query string of process is " apple "; " apple " itself has the implication of a lot of aspects; Can be fruit, can also refer to Apple Computers, can be meant that also name is called a film of " apple "; Because the current topic of in instant messaging, chatting of user is the content aspect the video display; So; Earlier confirm that through contextual analysis the topic that the user need understand is the content of video display aspect, simultaneously, according to the chat record context in user's present chatting window; Find that user and good friend are in some problems that hero and heroine are discussed; So, query string being carried out situation, to calculate the retrieval intention can further confirm the user be to want to understand relevant information, especially hero and heroine performer's background information about performer in " apple " this film, film that participation was performed and up-to-date trend thereof or the like information.
Wherein, specifically how query string being carried out contextual analysis is prior art, no longer details here.
Saidly carry out different according to triggering mode of contextual analysis and situation search meeting; The display mode of corresponding result for retrieval is also different: the situation search for the user triggers in the IM chat process can demonstrate Search Results on the right side of IM chat window such as chat window.Situation search for the user triggers when reading news or blog if adopt the mode of clicking identification of words, can demonstrate the Search Results that combines to read linguistic context and search situation in browser; If adopt mouse to be suspended to the mode of identification of words, floating layer can appear searching for, and on the surface of institute's reading content a superposed layer appears promptly, and content displayed is the corresponding result for retrieval of identification of words in the floating layer.For the situation search that triggers through search option in the click right menu, can in browser, demonstrate the Search Results that combines to read linguistic context and search situation.
In practical application; In order better to realize said method; Need some search inlets be provided for the user; For example: click search icon, click identification of words, mouse are suspended to identification of words, sign emphasis word, some right button generation menu, increase search option or the like, with the seamless connection of realization search with the current operation of user.
The simple principle synoptic diagram that carries out the embodiment that situation calculates in the said method of Fig. 1 is as shown in Figure 2, and specifically comprise: the query string of input carries out pre-service earlier, and present embodiment is example with the word segmentation processing, with word segmentation result as one of condition of situation retrieval; The query string institute current environment of living in of respective user is carried out scenario analysis, obtain at least a information in Who, What, When, Where, Why, Want and seven key elements of How, with obtaining seven element informations another condition as the situation retrieval; Carry out the situation retrieval then, obtain meeting the result for retrieval of user's request, result for retrieval can further be shown to the user.
Embodiment one:
Present embodiment triggers the situation retrieval in the IM chat process, the word that the user selects to need retrieval from chat window is as query string.As shown in Figure 3, comprise following process:
The user is in the IM chat process, and the word of from chat window, selecting to need retrieval carries out contextual analysis as query string according to query string, and calculate in the market of going forward side by side border; Afterwards, in conjunction with contextual analysis result and situation result of calculation identification user's retrieval intention, carry out the situation search according to the retrieval intention that identifies again, obtain meeting the result for retrieval of user's request, result for retrieval can further be shown to the user.
In the present embodiment, directly show result for retrieval on IM chat window right side.
Embodiment two:
Present embodiment triggers the situation retrieval when the user reads news or blog, and is through clicking identification of words as query string.As shown in Figure 4, comprise following process:
The user excavates keyword earlier from the content of being read when reading news or reading blog, and be that the keyword that is excavated carries out the emphasis sign, is keyword and makes marks; Afterwards, when the user clicks certain word that emphasis sign is arranged, the word of the emphasis sign of being clicked as query string, is carried out contextual analysis according to query string, calculate in the market of going forward side by side border; Afterwards, in conjunction with contextual analysis result and situation result of calculation identification user's retrieval intention, carry out the situation search according to the retrieval intention that identifies again, obtain meeting the result for retrieval of user's request, result for retrieval can further be shown to the user.
Wherein, can be to add the color of all kinds underscore or change corresponding contents or add frame or the like for keyword makes marks to the corresponding contents overstriking or with corresponding contents, the limit markers mode needs only with other parts and has any different.
In the present embodiment, directly in browser, show result for retrieval.
Embodiment three:
Present embodiment triggers the situation retrieval, and is that mouse is suspended to identification of words as query string when the user reads news or blog.As shown in Figure 5, comprise following process:
The user excavates keyword earlier from the content of being read when reading news or reading blog, and be that the keyword that is excavated carries out the emphasis sign, is keyword and makes marks; Afterwards, when user's mouse was suspended to the word of certain emphasis sign, the word of the emphasis sign of pointing to suspending carried out contextual analysis as query string according to query string, and calculate in the market of going forward side by side border; Afterwards, in conjunction with contextual analysis result and situation result of calculation identification user's retrieval intention, carry out the situation search according to the retrieval intention that identifies again, obtain meeting the result for retrieval of user's request, result for retrieval can further be shown to the user.
Wherein, can be to add the color of all kinds underscore or change corresponding contents or add frame or the like for keyword makes marks to the corresponding contents overstriking or with corresponding contents, the limit markers mode needs only with other parts and has any different.
In the present embodiment, show result for retrieval through superposed layer.
Embodiment four:
Present embodiment triggers the situation retrieval through selecting the search option in the right-click menu.As shown in Figure 6, comprise following process:
The user select to need the word of retrieval from the content of current reading when browsing page, and with the word of selecting as query string; Press right button then, from the menu that right button produces, select the search option of increase in advance, can begin to carry out contextual analysis according to query string, calculate in the market of going forward side by side border; Afterwards, in conjunction with contextual analysis result and situation result of calculation identification user's retrieval intention, carry out the situation search according to the retrieval intention that identifies again, obtain meeting the result for retrieval of user's request, result for retrieval can further be shown to the user.
In the present embodiment, directly in browser, show result for retrieval.
The present invention has changed traditional search engine pattern, has reduced the threshold that the user uses engine, and for the user provides a kind of search pattern simply and easily, no matter what the user doing, and just can realize when wanting to search at once.Let search can be followed the user to chat, see blog, sees news, browsing page or the like, the information that provides value, need understand in depth for the user whenever and wherever possible, thus realized the seamless connection of current operation behavior of user and search, make to search for to become ubiquitous.Such as: the current share price of chatting A company of certain user with network game; Want how many share prices of understanding A company is now; If the query string of user's input is an A company; Traditional universal search process not only needs the new special searched page of creating, and also need attempt repeatedly just finding satisfied result for retrieval; And adopt scheme of the present invention; Can confirm that through contextual analysis the topic field that the user need understand is a stock and relevant with A company earlier; Further calculate and to confirm from the chat record of network game that the user need understand the up-to-date share price information of A corporate share according to situation; Therefore, according to contextual analysis result and situation result of calculation identification user's retrieval intention, so just can be directly information such as the share price of A corporate share, peak, minimum point be shown to the user as Search Results; Make search become faster, convenient, more accurate.So, can deeply understand user's search need according to the current operation behavior of user, for the user provides more intimate search service.
For realizing said method, the present invention also provides a kind of situation searching system, comprises query string acquisition module, query string processing module, contextual analysis module, situation computing module, situation search module; Wherein,
The query string acquisition module is used for obtaining the query string that the user will import from the current operation interface of user, and said query string is sent to the query string processing module;
The query string processing module is used for query string is carried out pre-service, and pretreated query string is sent to contextual analysis module and situation computing module;
The contextual analysis module is used for according to the current operation interface content of user pretreated query string being carried out contextual analysis, and the contextual analysis result is sent to the situation search module;
The situation computing module is used for according to the current operation interface content of user pretreated query string being carried out situation and calculates, and situation result of calculation is sent to the situation search module; Wherein, it specifically is exactly one or more information that obtain in seven element informations relevant with user's situation of living in that said situation is calculated, and said seven element informations are Who, What, When, Where, Why, Want and How;
The situation search module is used for according to contextual analysis result and situation result of calculation identification user search intention, and carries out the situation search according to the retrieval intention that identifies, and obtains meeting the result for retrieval of user's request.
This system further comprises the result for retrieval display module, is used for the result for retrieval that the situation search module obtains is shown to the user.
Here, saidly from the current operation interface of user, obtain the query string that the user will import different obtain manners can be arranged:
Can obtain the word of the need retrieval of user's selection from the current IM chat window of user, and the word of the need that will select retrieval is as the query string of user's input; Also can be from the news of the current reading of user or blog, to obtain to click or emphasis identification of words that mouse suspends and points to, and the query string imported as the user of the emphasis identification of words that will click or point to; Can also be the word of browsing the need retrieval of from the webpage of user's current browsing, obtaining user's selection when current web page produces search need the user, and the word of the need that will select retrieval be as the query string of user's input.Wherein, when adopting the second way, also need in advance the news or the blog of reading to be carried out the keyword excavation, mark the emphasis word, form the emphasis sign; When adopting the third mode, obtain through selecting the search option in the right-click menu to trigger.
Said query string processing module also comprises pretreatment unit, recognition unit; Wherein, pretreatment unit is used for the query string of input is carried out pre-service, and pretreated query string is sent to recognition unit; Recognition unit is used for according to word segmentation result identification user search intention.
Wherein, said pretreatment unit can be the participle unit, and said participle unit is used for the query string of receiving is divided into one or more words according to the linguistics implication, afterwards word segmentation result is sent to recognition unit.
The above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to replacement and improvement etc., all should be included within protection scope of the present invention.