Summary of the invention
In view of this, the purpose of the embodiment of the invention provides a kind of method and system of definite search terms, when assisting users is searched at needs, can find information accurately through search terms accurately.
For realizing above-mentioned purpose, the embodiment of the invention provides following technical scheme:
A kind of method of definite search terms comprises:
Obtain collection of search terms undetermined;
Each search terms undetermined with in the collection of search terms undetermined is a search condition, searches for through search engine, and from Search Results, obtains the Search Results text;
Add up the occurrence number of candidate target item in each Search Results text, and each search terms undetermined is sorted according to the occurrence number of candidate target item;
From search terms undetermined, confirm search terms according to ranking results.
Said search terms undetermined comprises the preset search terms and the first recommendation search terms.
Obtaining search terms undetermined comprises:
Through search engine preset search terms is searched for;
Search Results according to said preset search terms obtains the first recommendation search terms.
Said search terms undetermined also comprises: second recommends search terms; Saidly obtain search terms undetermined and also comprise:
Recommend search terms to search for through search engine to first;
Recommend the Search Results of search terms to obtain the second recommendation search terms according to said first.
The said Search Results text that from Search Results, obtains comprises:
From the Search Results of each search terms undetermined, extract URL;
Internet resources to each URL is corresponding are downloaded, and obtain the corresponding search resulting text.
A kind of system of definite search terms comprises:
First acquiring unit is used to obtain collection of search terms undetermined;
Search unit, each search terms undetermined that is used for collection of search terms undetermined is a search condition, searches for through search engine;
Second acquisition unit is used for obtaining the Search Results text from Search Results;
Statistic unit, the occurrence number that is used for adding up each Search Results text candidate target item, and according to the occurrence number of candidate target item each search terms undetermined is sorted;
Confirm the unit, be used for confirming search terms from search terms undetermined according to ranking results.
Said first acquiring unit comprises:
The first search subelement is used for through search engine preset search terms being searched for;
First obtains subelement, is used for obtaining the first recommendation search terms according to the Search Results of said preset search terms.
Said search terms undetermined comprises that also second recommends search terms, and said first acquiring unit also comprises:
The second search subelement is used for recommending search terms to search for through search engine to first;
Second obtains subelement, is used for recommending the Search Results of search terms to obtain the second recommendation search terms according to said first.
Said second acquisition unit comprises:
Extract subelement, be used for extracting URL from the Search Results of each search terms undetermined;
Download subelement, be used for the corresponding Internet resources of each URL are downloaded, obtain the corresponding search resulting text.
Thus it is clear that, in embodiments of the present invention, obtain collection of search terms undetermined; Each search terms undetermined with in the collection of search terms undetermined is a search condition, searches for through search engine, and from Search Results, obtains the Search Results text; Add up the occurrence number of candidate target item in each Search Results text, and each search terms undetermined is sorted according to the occurrence number of candidate target item; From search terms undetermined, confirm search terms according to ranking results.The technical scheme that the embodiment of the invention provided can combine preset search terms assisting users that the user imports when needs are searched for, and finds accurate target information through search terms accurately.
Embodiment
In order to make those skilled in the art person understand the technical scheme among the present invention better; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all should belong to the scope of the present invention's protection.
Referring to Fig. 1, the method for a kind of definite search terms that the embodiment of the invention provides comprises:
S101, obtain collection of search terms undetermined;
In the embodiment of the invention, comprise a plurality of search termses undetermined in the said collection of search terms undetermined.This search terms undetermined comprises preset search terms and recommends search terms.
Search terms undetermined is a kind of when presetting search terms.Preset search terms can be the search terms that the user imports, and for example, the user hopes through the present once popular word of search engine searches, just can in search engine, import " cri dernier cri language " such search terms.But this search terms is hoped the target item of acquisition for it---speaking, concrete cri dernier cri is not necessarily search terms very accurately.So in the method that the embodiment of the invention provided, search terms to be determined is replenished through recommending search terms.
Recommend search terms to obtain through preset search terms.After through search engine preset search terms being searched for, search engine can provide relevant with preset search terms or close search terms.These relevant perhaps close search termses are exactly the recommendation search terms of preset search terms.
For example; Utilize a search engine that preset search terms " cri dernier cri language " is searched for; The relevant search of " cri dernier cri language " in the result of page searching that obtains, can be provided in result of page searching, comprise " network flow lang in 2009 ", " 2009 cri dernier cris language " or the like.These relevant searches are exactly the recommendation search terms of preset search terms.From the result of page searching of preset search terms, recommend search terms to extract these, become search terms undetermined.A plurality of search termses undetermined are formed collection of search terms undetermined.
Need to prove; In obtaining the process of search terms undetermined; In order to obtain more search terms undetermined, after obtaining recommending search terms, can utilize search engine further to search for to recommending search terms; From to obtaining recommending the relevant search of search terms the result of page searching of recommending search terms, these relevant searches are also listed in the search terms to be determined.For the convenience on describing, in the embodiment of the invention, will be designated as first according to the recommendation search terms that preset search terms obtains and recommend search terms; To be designated as second according to the recommendation search terms that the first recommendation search terms obtains and recommend search terms.
S102, be search condition, search for through search engine, and from Search Results, obtain the Search Results text with each search terms undetermined in the collection of search terms undetermined;
Particularly, can from the Search Results of each search terms undetermined, extract URL; Then the corresponding Internet resources of each URL are downloaded, obtained the corresponding search resulting text.
For example, the search terms undetermined in the collection of search terms undetermined that obtains through step S101 comprises " cri dernier cri language ", " 2009 cri dernier cris language ", " 09 cri dernier cri language " or the like.With each search terms undetermined is search condition, searches for through search engine, obtains Search Results.Can comprise a plurality of URLs in this Search Results; From Search Results, URL is extracted; Then the corresponding Internet resources of each URL are downloaded, resulting content is this search terms corresponding search resulting text undetermined.
S103, the appearance situation of adding up candidate target item in each Search Results text, and according to the appearance situation of candidate target item each search terms undetermined is sorted;
In order from search terms undetermined, accurately to select search terms, in the method that the embodiment of the invention provided, some candidate target items can be set in advance to search terms undetermined.
With the search to popular word is example, in order to confirm at the search terms of search during popular word, can be provided with in advance some confirmed be the word of popular word as the candidate target item, a plurality of candidate target items are formed the set of candidate target items.The candidate target item that for example can comprise a plurality of buzzwords such as " buying soy sauce ", " peekaboo ", " push-up " in the set of candidate target item.Add up the situation that the candidate target item occurs in each Search Results text, comprise what candidate target items having occurred that how many times or the like has appearred in each candidate target item.Each Search Results text is all corresponding with a search terms undetermined, and the appearance situation of candidate target item sorts to each search terms to be determined in the Search Results text that can search according to each search terms to be determined at last, for example:
Can the occurrence number of candidate target item in the Search Results text be added up, the total degree that occurs according to the candidate target item sorts to search terms undetermined;
Perhaps, in conjunction with the number of candidate target item appearance, and the number of times that each candidate target item occurs comprehensively sorts to search terms to be determined.
The present invention does not limit according to the specific analytical method of candidate target item to target item to be determined, can confirm voluntarily according to actual conditions.
S104, from search terms undetermined, confirm search terms according to ranking results.
After search terms to be determined being sorted, just can confirm search terms according to ranking results according to the appearance situation of candidate target item in the Search Results text.
For example; If buzzword is searched for; At last; The candidate target speech that occurs in the Search Results text that " network flow lang in 2009 " this search terms search undetermined obtains, promptly the quantity of popular word all comes before other search termses undetermined with the number of times that each popular word occurs, and is and popular word corresponding search item so can confirm " network flow lang in 2009 ".
S105, search terms is offered the user, so that the user utilizes definite search terms through the corresponding target item of search engine searches.
The method that the embodiment of the invention provided, the preset search terms assisting users that can combine the user to import finds search terms accurately, thereby makes the user find accurate target information through search terms accurately.
Below in conjunction with concrete instance the method that the embodiment of the invention provided is carried out detailed explanation.
In the present embodiment, the user hopes to find the buzzword on the present network through search engine.So in search engine, imported " cri dernier cri language ", and utilized search engine search.The method that then embodiment of the invention provided comprises:
S201, obtain preset search terms " cri dernier cri language ".
S202, be search condition, search for, obtain to recommend search terms through search engine with " cri dernier cri language ".
Particularly, can at first search for acquisition first to " cri dernier cri language " and recommend search terms through search engine; Then, utilize search engine to recommend search terms to search for again and obtain the second recommendation search terms first.
Recommend search terms generally can below result of page searching, provide.In the embodiment of the invention, from said page, obtain the recommendation search terms.
Recommend search terms and preset search terms to constitute the search terms undetermined in the embodiment of the invention.
S203, utilize search engine that each search terms undetermined is searched for after, obtain each search terms corresponding search result undetermined.
S204, from the result of page searching of search terms undetermined, extract URL.
URL in the result of page searching of S205, download search terms undetermined obtains the Search Results text.
S206, add up in the pairing said resulting text of each search terms undetermined corresponding candidate target item.
In the embodiment of the invention, be to extract URL in the result of page searching at the cri dernier cri language.According to each URL, the corresponding Internet resources of this URL are downloaded obtain the corresponding search resulting text.These Search Results texts are exactly the language material that obtains popular word.The situation of the candidate target item that statistics is wherein had from these Search Results texts.The candidate target item that for example comprises in " cri dernier cri language " corresponding search resulting text comprises popular words such as " buying soy sauce ", " push-up ".Add up these candidate target items and add up the number of times that each candidate target item occurs.For example; In " cri dernier cri language " this search terms corresponding search resulting text undetermined; Totally 15 candidate target items such as common appearance " buying soy sauce " etc., account for 80% of all candidate target items, and the number of times that each candidate target item occurs has all surpassed preset number of times.
S207, the occurrence number of candidate target item in the search terms corresponding search resulting text undetermined is added up, the total degree that occurs according to the candidate target item sorts to search terms undetermined.
S208, confirm search terms according to ranking results, search terms is shown to the user, the prompting user can search for this search terms.
In the prior art; Depend on word-building or statistical nature more and find neologisms or popular word; For example rule-based new word discovery method mainly is to utilize word-building and morphological pattern structure, sets up the match pattern of neologisms, because popular word and neologisms mostly are not to combine to form according to traditional word-building mode; Rule-based method can't contain these and be in the morphological pattern structure in the variation, and rule-based method often is limited to a certain field; Method based on statistics is to utilize the statistical property of word, extracts neologisms candidate string earlier, utilizes the method for rule to get rid of then; Perhaps utilize similarity to calculate, seek the maximum word of the degree of correlation and the combination of word, be often used in the identification of short speech.Two kinds of methods all are to be prerequisite with a large amount of relevant language materials and background knowledge, for the identification of network flow lang, do not have practicality, and versatility is also poor.
In addition, utilize some input journals to accomplish in the prior art in addition.Through excavation, carry out the discovery of neologisms to input journal.Like the new word discovery in the search dog input method.This method needs a large amount of input journals, for common application, does not have feasibility, and its use also is very limited.
The method that the embodiment of the invention provided; With the search engine is the basis; Find search terms accurately in conjunction with the preset neologisms of user input or the search terms assisting users of buzzword, thereby make the user find neologisms or buzzword accurately through search terms accurately.The method that the embodiment of the invention provided does not receive the restriction in field, need not to import a large amount of input journals simultaneously yet, and is convenient and swift, and high availability is arranged.
In the practical application, can also obtain the combinatorial search item according to the method that the embodiment of the invention provided.For example, obtain search terms " cri dernier cri language " afterwards through the method that the embodiment of the invention provided respectively, utilize search engine to search for obtaining a target item is " buying soy sauce ", needs further to obtain the English contrast of " buying soy sauce ".At this moment, the method that can further provide, the search terms accurately when confirming the contrast of search English through the embodiment of the invention.
For example, the preset search terms of user's input is " contrast between Chinese and English ", and obtains recommending search terms to comprise Sino-British intertranslation, English lexical or textual analysis or the like through search engine.Then, utilize search engine that these search termses undetermined are searched for respectively, obtain result of page searching respectively, from the result of page searching of search terms undetermined, extract URL.Download the corresponding Internet resources of URL in the result of page searching of search terms undetermined, obtain the Search Results text.Add up candidate target item corresponding in the pairing said resulting text of each search terms undetermined.The candidate target item here is in order to confirm the Chinese and English contrast and to confirm, is used for enough surely really search termses that finds Chinese and English to contrast exactly from a plurality of search termses undetermined.
For example; The method that is provided through embodiment of the present invention embodiment; Confirm that at last " Chinese and English contrast " this search terms can find the related content of Chinese and English contrast exactly; So " buying soy sauce " and " Chinese and English " contrast is combined, just can find the content of the Chinese and English contrast of buying soy sauce.
Need to prove; When the definite search terms of the use method that the embodiment of the invention provided comes the ferret out item; Target item remains in the middle of the pairing content of the URL that is present in the result of page searching, also need from each URL corresponding page, search terms be extracted.In the practical application, can come the decimated search item according to the characteristics of search terms itself.For example when utilizing search engine searches " cri dernier cri language ", extract the content of modifying can be from the URL that the obtains corresponding Internet resources and speak as cri dernier cri by double quotation marks.
The method that the embodiment of the invention provided mainly provides a kind of assisting users to find the method that can find the search terms of target item exactly, and as for how from the content that finds according to this search terms, target item to be accepted or rejected, the present invention does not do qualification.
Referring to Fig. 3, one embodiment of the invention also provides a kind of system of definite search terms, comprising:
First acquiring unit 301 is used to obtain collection of search terms undetermined;
In the embodiment of the invention, said search terms undetermined comprises the preset search terms and the first recommendation search terms.
Search unit 302, each search terms undetermined that is used for collection of search terms undetermined is a search condition, searches for through search engine;
Second acquisition unit 303 is used for obtaining the Search Results text from Search Results;
Statistic unit 304, the occurrence number that is used for adding up each Search Results text candidate target item, and according to the occurrence number of candidate target item each search terms undetermined is sorted;
Confirm unit 305, be used for confirming search terms from search terms undetermined according to ranking results.
Referring to Fig. 4, in another embodiment of the present invention, said first acquiring unit 301 comprises:
The first search subelement 3011 is used for through search engine preset search terms being searched for;
First obtains subelement 3012, is used for obtaining the first recommendation search terms according to the Search Results of said preset search terms.
In another embodiment of the present invention, said search terms undetermined comprises that also second recommends search terms, and said first acquiring unit 301 also comprises:
The second search subelement 3013 is used for recommending search terms to search for through search engine to first;
Second obtains subelement 3014, is used for recommending the Search Results of search terms to obtain the second recommendation search terms according to said first.
In the embodiment of the invention, referring to Fig. 5, said second acquisition unit 303 comprises:
Extract subelement 3031, be used for extracting URL from the Search Results of each search terms undetermined;
Download subelement 3032, be used for the corresponding Internet resources of each URL are downloaded, obtain the corresponding search resulting text.
Particularly, in another embodiment of the present invention, device shown in Figure 3 also comprises:
Tip element 306 is used for search terms is shown to the user, and the prompting user can search for this search terms.
The system that the embodiment of the invention provided, the preset search terms assisting users that can combine the user to import finds search terms accurately, thereby makes the user find accurate target information through search terms accurately.
For the convenience of describing, the embodiment of the invention is divided into various unit with function and describes respectively when tracing device.Certainly, when embodiment of the present invention, can in same or a plurality of softwares and/or hardware, realize the function of each unit.
Description through above embodiment can know, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product can be stored in the storage medium, like ROM/RAM, magnetic disc, CD etc., comprises that some instructions are with so that a computer equipment (can be a personal computer; Server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and identical similar part is mutually referring to getting final product between each embodiment, and each embodiment stresses all is the difference with other embodiment.Especially, for system embodiment, because it is basically similar in appearance to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
The present invention can be used in numerous general or special purpose computingasystem environment or the configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, small-size computer, mainframe computer, comprise DCE of above any system or equipment or the like.
The present invention can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract, program, object, assembly, data structure or the like.Also can in DCE, put into practice the present invention, in these DCEs, by through communication network connected teleprocessing equipment execute the task.In DCE, program module can be arranged in this locality and the remote computer storage medium that comprises memory device.
Though described the present invention through embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, hope that appended claim comprises these distortion and variation and do not break away from spirit of the present invention.