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 by search terms accurately.
For achieving the above object, the embodiment of the invention provides following technical scheme:
A kind of method of definite search terms comprises:
Obtain collection of search terms undetermined;
With each search terms undetermined in the collection of search terms undetermined is search condition, searches for by search engine, and obtain the Search Results text from Search Results;
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, determine search terms according to ranking results.
Described search terms undetermined comprises the default search terms and the first recommendation search terms.
Obtaining search terms undetermined comprises:
By search engine default search terms is searched for;
Search Results according to described default search terms obtains the first recommendation search terms.
Described search terms undetermined also comprises: second recommends search terms; Describedly obtain search terms undetermined and also comprise:
Recommend search terms to search for by search engine to first;
Recommend the Search Results of search terms to obtain the second recommendation search terms according to described first.
The described Search Results text that obtains from Search Results comprises:
From the Search Results of each search terms undetermined, extract URL(uniform resource locator);
Internet resources to each URL(uniform resource locator) correspondence are downloaded, and obtain corresponding Search Results 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 by 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;
Determining unit is used for determining search terms according to ranking results from search terms undetermined.
Described first acquiring unit comprises:
The first search subelement is used for by search engine default search terms being searched for;
First obtains subelement, is used for obtaining the first recommendation search terms according to the Search Results of described default search terms.
Described search terms undetermined comprises that also second recommends search terms, and described first acquiring unit also comprises:
The second search subelement is used for recommending search terms to search for by 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 described first.
Described second acquisition unit comprises:
Extract subelement, be used for extracting URL(uniform resource locator) from the Search Results of each search terms undetermined;
Download subelement, be used for the Internet resources of each URL(uniform resource locator) correspondence are downloaded, obtain corresponding Search Results text.
As seen, in embodiments of the present invention, obtain collection of search terms undetermined; With each search terms undetermined in the collection of search terms undetermined is search condition, searches for by search engine, and obtain the Search Results text from Search Results; 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, determine search terms according to ranking results.The technical scheme that the embodiment of the invention provided can be in conjunction with the default search terms assisting users of user input when needs be searched for, and find accurate target information by search terms accurately.
Embodiment
In order to make those skilled in the art person understand technical scheme among the present invention better, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, 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 should belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
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 described collection of search terms undetermined.This search terms undetermined comprises default search terms and recommends search terms.
Search terms undetermined is a kind of when presetting search terms.Default search terms can be the search terms that the user imports, and for example, the user wishes by the present once popular word of search engine searches, just can import " cri dernier cri language " such search terms in search engine.But this search terms is for its target item that wish to obtain---search terms very accurately not necessarily the concrete cri dernier cri language.So in the method that the embodiment of the invention provided, search terms to be determined is replenished by recommending search terms.
Recommend search terms to obtain by default search terms.After by search engine default search terms being searched for, search engine can provide the search terms relevant or close with default search terms.These are correlated with or close search terms is exactly the recommendation search terms of default search terms.
For example, utilize a search engine that default 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 default search terms.From the result of page searching of default 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 default search terms obtains and recommend search terms; To be designated as second according to the first recommendation search terms of recommending search terms to obtain and recommend search terms.
S102, be search condition, search for by 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(uniform resource locator); Then the Internet resources of each URL(uniform resource locator) correspondence are downloaded, obtained corresponding Search Results text.
For example, the search terms undetermined in the collection of search terms undetermined that obtains by 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 by search engine, obtains Search Results.Can comprise a plurality of URL(uniform resource locator) in this Search Results, from Search Results, URL(uniform resource locator) is extracted, then the Internet resources of each URL(uniform resource locator) correspondence are downloaded, resulting content is the Search Results text of this search terms correspondence 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, can set in advance some candidate target items at search terms undetermined.
With the search to popular word is example, in order to determine at the search terms of search during popular word, can be provided with in advance some determined 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:
The occurrence number of candidate target item in the Search Results text can 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 determine voluntarily according to actual conditions.
S104, from search terms undetermined, determine search terms according to ranking results.
After search terms to be determined being sorted, just can determine 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, be that the quantity of popular word and the number of times of each popular word appearance all come before other search termses undetermined, be the search terms corresponding with popular word so can determine " network flow lang in 2009 ".
S105, search terms is offered the user, so that the user utilizes the target item of definite search terms by the search engine searches correspondence.
The method that the embodiment of the invention provided can find search terms accurately in conjunction with the default search terms assisting users of user input, thereby makes the user find accurate target information by search terms accurately.
Below in conjunction with concrete example the method that the embodiment of the invention provided is described in detail.
In the present embodiment, the user wishes to find buzzword on the present network by search engine.So in search engine, imported " cri dernier cri language ", and utilized search engine search.Then the method that the embodiment of the invention provided comprises:
S201, obtain default search terms " cri dernier cri language ".
S202, be search condition, search for, obtain to recommend search terms by search engine with " cri dernier cri language ".
Particularly, can at first search for acquisition first to " cri dernier cri language " and recommend search terms by 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 described results page, obtain the recommendation search terms.
Recommend the search terms undetermined in search terms and the default search terms formation embodiment of the invention.
S203, utilize search engine that each search terms undetermined is searched for after, obtain the Search Results of each search terms correspondence undetermined.
S204, from the result of page searching of search terms undetermined, extract URL(uniform resource locator).
URL(uniform resource locator) in the result of page searching of S205, download search terms undetermined obtains the Search Results text.
S206, add up in the pairing described resulting text of each search terms undetermined corresponding candidate target item.
In the embodiment of the invention, be to extract URL(uniform resource locator) in the result of page searching at the cri dernier cri language.According to each URL(uniform resource locator), the Internet resources of this URL(uniform resource locator) correspondence are downloaded the Search Results text that obtains correspondence.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.For example the candidate target item that comprises in the Search Results text that " cri dernier cri language " is corresponding 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 the Search Results text of " cri dernier cri language " this search terms correspondence 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 default number of times.
S207, the occurrence number of candidate target item in the Search Results text of search terms correspondence undetermined is added up, the total degree that occurs according to the candidate target item sorts to search terms undetermined.
S208, determine 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, set up the match pattern of neologisms, because popular word and neologisms mostly are not in conjunction with forming according to traditional word-building mode, rule-based method can't contain these and be in 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 word of degree of correlation maximum 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 finish in the prior art in addition.By excavation, carry out the discovery of neologisms to input journal.As 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, based on search engine, find search terms accurately in conjunction with the default neologisms of user input or the search terms assisting users of buzzword, thereby make the user find neologisms or buzzword accurately by search terms accurately.The method that the embodiment of the invention provided is not subjected to 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 by 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 determining the contrast of search English by the embodiment of the invention.
For example, the default 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 by 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(uniform resource locator).Download the Internet resources of the URL(uniform resource locator) correspondence in the result of page searching of search terms undetermined, obtain the Search Results text.Add up candidate target item corresponding in the pairing described resulting text of each search terms undetermined.The candidate target item here is definite in order to determine bilingual, is used for being used for surely finding exactly really from a plurality of search termses undetermined the search terms of bilingual.
For example, by implementing the method that the embodiment of the invention provided, determine that at last " bilingual " this search terms can find the related content of bilingual exactly, so " buying soy sauce " and " Chinese and English " contrast is combined, just can find the content of the bilingual 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(uniform resource locator) that is present in the result of page searching, also needs from each URL(uniform resource locator) corresponding page search terms to 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 ", can from the Internet resources of the URL(uniform resource locator) correspondence that obtains, extract the content of modifying 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, described search terms undetermined comprises the default 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 by 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;
Determining unit 305 is used for determining search terms according to ranking results from search terms undetermined.
Referring to Fig. 4, in another embodiment of the present invention, described first acquiring unit 301 comprises:
The first search subelement 3011 is used for by search engine default search terms being searched for;
First obtains subelement 3012, is used for obtaining the first recommendation search terms according to the Search Results of described default search terms.
In another embodiment of the present invention, described search terms undetermined comprises that also second recommends search terms, and described first acquiring unit 301 also comprises:
The second search subelement 3013 is used for recommending search terms to search for by 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 described first.
In the embodiment of the invention, referring to Fig. 5, described second acquisition unit 303 comprises:
Extract subelement 3031, be used for extracting URL(uniform resource locator) from the Search Results of each search terms undetermined;
Download subelement 3032, be used for the Internet resources of each URL(uniform resource locator) correspondence are downloaded, obtain corresponding Search Results 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 can find search terms accurately in conjunction with the default search terms assisting users of user input, thereby makes the user find accurate target information by 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 enforcement is of the present invention, can in same or a plurality of softwares and/or hardware, realize the function of each unit.
As seen through the above description of the embodiments, 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 embody with the form of software product, this computer software product can be stored in the storage medium, as ROM/RAM, magnetic disc, CD etc., comprise 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 difference with other embodiment.Especially, for system embodiment, because it is substantially 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 distributed computing environment 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 distributed computing environment, put into practice the present invention, in these distributed computing environment, by by communication network connected teleprocessing equipment execute the task.In distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
Though described the present invention by 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, wish that appended claim comprises these distortion and variation and do not break away from spirit of the present invention.