Recall method, device, electronic device and storage medium
By segmenting and combining the search terms to be searched, and recalling the search results based on the number of historical clicks, the problem of low accuracy in calculating the degree of semantic correlation in the existing technology is solved, and the accuracy of the search results is improved, making it more relevant to the user's interests. Degree related.
Patent Information
- Application Number
- CN202110311914.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-24
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-03-24
AI Technical Summary
In the existing technology, when calculating the degree of semantic correlation based on the distance between keywords in the terms to be searched, it may cause originally unrelated keywords to be considered to have a high degree of semantic correlation due to their close distance, resulting in low accuracy and inaccurate search results. Reflect the actual needs of users.
By performing word segmentation processing on the search terms to be searched, the word segmentation combinations are combined, and the search results are recalled based on the historical clicks of the search data for each word segmentation combination. The word segmentation combination with a high number of historical clicks is selected as the target combination and recalled as the search result.
The accuracy of search results is improved, the recalled search results are related to the user's level of interest, and the probability that the results meet the actual needs of the user is increased.
Smart Images

Figure CN113158091B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a recall method, device, electronic equipment and storage medium. Background Art
[0002] In a term search scenario, it is usually necessary to obtain the term to be searched, search for data related to the term to be searched from a database, and then display the data to the user, thereby recalling the search results corresponding to the term to be searched.
[0003] In the prior art, when recalling the search results corresponding to the search term, it is usually necessary to obtain the keywords in the search term, and calculate the semantic association degree between the keywords according to the interval distance between the keywords. For example, assuming that the search term is "tomato and potato", since the keywords "tomato" and "potato" are located in close proximity, it is considered that the semantic association degree between the above keywords is high. Finally, the semantic association degree between the above keywords is used to recall the search results corresponding to the search term.
[0004] In this way, calculating the degree of semantic association based on the spacing between keywords in the search terms may cause originally unrelated keywords to be considered to have a higher degree of semantic association due to their close distance, resulting in low accuracy of the degree of semantic association between keywords, and further resulting in low accuracy of the recalled search results, so that the search results corresponding to the recalled search terms cannot accurately reflect the actual needs of users. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a recall method, device, electronic device and storage medium to improve the accuracy of the recalled search results. The specific technical solution is as follows:
[0006] In a first aspect of the present invention, a recall method is provided, the method comprising:
[0007] Get the search terms;
[0008] Performing word segmentation processing on the to-be-searched terms, and combining the obtained word segmentation results to obtain a word segmentation combination;
[0009] For each word combination, the historical click count of the search data corresponding to the word combination is obtained, wherein the search data corresponding to each word combination is: the search data containing the word combination in the content;
[0010] According to the historical click counts of the search data corresponding to each word segmentation combination, the search results corresponding to the to-be-searched terms are recalled.
[0011] In one embodiment of the present invention, the step of recalling search results corresponding to the to-be-searched terms according to the historical click counts of the search data corresponding to each word segmentation combination includes:
[0012] Select a word combination whose historical click count of the corresponding search data meets the preset recall condition as the target word combination;
[0013] Determine the search data containing the target word combination in the content, and recall the determined search data as the search result of the to-be-searched term.
[0014] In one embodiment of the present invention, the method further comprises:
[0015] Determine the word combinations whose historical click counts of the corresponding search data do not satisfy the recall condition as non-target word combinations;
[0016] Determine the search data containing at least two non-target word combinations in the content, and recall the determined search data as the search result of the to-be-searched term.
[0017] In one embodiment of the present invention, the recall conditions include:
[0018] The historical click count is greater than the preset click count threshold; and / or
[0019] The ratio of the historical click count to the total click count is greater than a preset ratio threshold, wherein the total click count is the sum of the historical click counts of the search data corresponding to each word segmentation combination.
[0020] In one embodiment of the present invention, obtaining the historical number of clicks of the search data corresponding to each word segmentation combination includes:
[0021] For each word segmentation combination, determine the search data whose content contains the word segmentation combination and whose word segmentation results corresponding to the word segmentation combination are arranged adjacently, as the search data corresponding to the word segmentation combination;
[0022] The historical click counts of the search data corresponding to each word segmentation combination are obtained respectively.
[0023] In one embodiment of the present invention, obtaining the term to be searched includes:
[0024] Receiving a search instruction sent by a client, and obtaining a term carried in the search instruction as a term to be searched; or
[0025] Obtaining preset terms to be recommended as terms to be searched;
[0026] After the step of recalling the search results corresponding to the to-be-searched terms, the method further includes:
[0027] Establish an association relationship between the preset term and the recalled search results.
[0028] In one embodiment of the present invention, the method further comprises:
[0029] The recalled search results are sorted according to the historical click counts of the search data corresponding to each word segmentation combination.
[0030] In a second aspect of the present invention, a recall device is provided, the device comprising:
[0031] A term acquisition module is used to obtain the term to be searched;
[0032] A word segmentation processing module, used for performing word segmentation processing on the to-be-searched terms, and combining the obtained word segmentation results to obtain a word segmentation combination;
[0033] A click count acquisition module is used to obtain the historical click count of the search data corresponding to each word combination, wherein the search data corresponding to each word combination is: the search data containing the word combination in the content;
[0034] The result recall module recalls the search results corresponding to the to-be-searched terms according to the historical click counts of the search data corresponding to each word segmentation combination.
[0035] In a third aspect of the present invention, there is also provided an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0036] Memory, used to store computer programs;
[0037] The processor is used to implement any method described in the first aspect when executing a program stored in the memory.
[0038] In another aspect of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any of the above-mentioned recall methods is implemented.
[0039] In another aspect of the present invention, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute any of the above-mentioned recall methods.
[0040] In the scheme provided by the embodiment of the present invention, first, the search terms to be searched are obtained; the search terms to be searched are segmented, and the obtained segmentation results are combined to obtain a segmentation combination; for each segmentation combination, the historical click count of the search data corresponding to the segmentation combination is obtained, wherein the search data corresponding to each segmentation combination is: the search data containing the segmentation combination in the content; according to the historical click count of the search data corresponding to each segmentation combination, the search results corresponding to the search terms to be searched are recalled. Since the historical click count of each search data can reflect the user's interest in the search results, the search results corresponding to the search terms to be searched are recalled based on the historical click count of the search data corresponding to each segmentation combination, so that the search results corresponding to the recalled search terms can be related to the user's interest, thereby improving the probability that the recalled results meet the user's actual needs. It can be seen that the application of the recall scheme provided by the embodiment of the present invention can improve the accuracy of the recalled search results. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0042] Figure 1 A flowchart of a recall method provided by an embodiment of the present invention;
[0043] Figure 2 A flowchart of another recall method provided by an embodiment of the present invention;
[0044] Figure 3 A schematic diagram of the structure of a recall device provided by an embodiment of the present invention;
[0045] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0047] Since the prior art has the problem of low accuracy of the semantic association between the obtained keywords, in order to solve this technical problem, the embodiments of the present invention provide a recall method, device, electronic device and storage medium.
[0048] In one embodiment of the present invention, a recall method is provided, the method comprising:
[0049] Get the search terms;
[0050] Perform word segmentation on the search terms, and combine the obtained word segmentation results to obtain a word segmentation combination;
[0051] For each word combination, the historical click count of the search data corresponding to the word combination is obtained, wherein the search data corresponding to each word combination is: the search data containing the word combination in the content;
[0052] According to the historical click counts of the search data corresponding to each word segmentation combination, the search results corresponding to the search terms are recalled.
[0053] In the solution provided by the above embodiment, since the historical click count of each search data can reflect the user's interest in the search results, the search results corresponding to the search terms are recalled based on the historical click count of the search data corresponding to each word segmentation combination, so that the search results corresponding to the recalled search terms are related to the user's interest, thereby increasing the probability that the recalled results meet the user's actual needs. It can be seen that the recall solution provided by the above embodiment can improve the accuracy of the recalled search results.
[0054] The recall method, device, electronic device and storage medium provided by the embodiments of the present invention are described in detail below through specific embodiments.
[0055] See also Figure 1 , Figure 1 A flowchart of a recall method provided in an embodiment of the present invention is provided. The method can be applied to electronic devices such as servers, desktop computers, laptop computers, mobile phones, and can also be applied to clients such as video search, news search, and product search, but the embodiment of the present invention is not limited to this.
[0056] The method includes the following steps S101 to S104.
[0057] S101, obtaining a term to be searched.
[0058] The above-mentioned search terms may be the terms that the user inputs and expects to search, or the terms that the user copies from a text and expects to search. The above-mentioned search terms may include English characters, Chinese characters, numeric characters, etc.
[0059] In one embodiment of the present invention, the above-mentioned search terms can be words, such as names of people, animals, places, and objects, or sentences, such as poems, article titles, and program titles.
[0060] S102, performing word segmentation processing on the search terms, and combining the obtained word segmentation results to obtain a word segmentation combination.
[0061] Specifically, the search terms may be segmented to obtain at least one segmentation result, and then the segmentation results may be combined to obtain at least one segmentation combination.
[0062] For example, assuming that the search term is "movie launch conference time", after segmenting the search term, we can get three segmentation results of "movie", "launch conference", and "time". Then, we can combine the segmentation results to get segmentation combinations such as "movie+launch conference", "movie+time", and "launch conference+time".
[0063] In one embodiment of the present invention, when performing word segmentation processing on the search terms, a preset word segmentation algorithm can be used to segment the search terms, and each word obtained after the word segmentation is used as a word segmentation result. The word segmentation algorithm can be FMM (Forward Maximum Matching Method), shortest path word segmentation algorithm, etc.
[0064] In addition, a pre-trained word segmentation network model can be used to perform word segmentation processing on the search terms. Specifically, the search terms can be input into the above-mentioned word segmentation network model to obtain the word segmentation results output by the model.
[0065] In one embodiment of the present invention, when combining the word segmentation results of the search terms, the word segmentation results can be selected in pairs to achieve the combination of all the word segmentation results; two adjacent word segmentation results can also be combined. For example, assuming that the search term is "knowledge competition registration conditions", the corresponding word segmentation results are "knowledge", "competition", and "registration". By combining two adjacent word segmentation results, the word segmentation combinations that can be obtained include "knowledge+competition" and "competition+registration".
[0066] In addition, in an embodiment of the present invention, each word segmentation combination may also include three word segmentation results, four word segmentation results, etc., which is not limited in the embodiment of the present invention.
[0067] S103, for each word segmentation combination, obtaining the historical click count of the search data corresponding to the word segmentation combination.
[0068] The search data corresponding to each word combination is: the search data containing the word combination in the content. The above search data is: the data pre-stored in the database and used as the search result. The content of the above search data includes the word combination, which can be understood as the title or text of the search data contains the group of keywords.
[0069] Specifically, for each word segmentation combination, the search data containing the word segmentation combination in the content can be searched as the search data corresponding to the word segmentation combination, and then the historical click count of the search data corresponding to the word segmentation combination can be obtained. The click count can reflect the user's interest in the search results. The higher the historical click count, the higher the user's interest in the search data, and further indicates that the user has a high interest in the word segmentation combination; the lower the click count, the lower the user's interest in the search data, and further indicates that the user has a low interest in the word segmentation combination.
[0070] When obtaining the historical click count of the search data, the historical click count of the search data can be counted from the historical click record. The historical click record records: click records of different users on each search data. The historical click record can be obtained from the search log.
[0071] For example, see Table 1 below, which is a schematic table of historical click counts of different search data provided by an embodiment of the present invention. Assuming that the search term is "intelligent model", the corresponding word combination is "intelligent + model", as shown in Table 1 below, the search data containing the above word combination, such as "the origin and development of intelligent model", etc., and the historical click counts of different users for each search data are obtained, such as the historical click count of users for the search data "what are the artificial intelligence network models" is 200.
[0072] Table 1
[0073] Search Results Number of hits The Origin and Development of Intelligent Models 100 Smart home appliance network model 400 The origin of software development model 100 What are the artificial intelligence network models? 200 Application of artificial intelligence in autonomous driving 200
[0074] In one embodiment of the present invention, the historical click records may be search records within a preset time period from the current time, and the preset time period may be one day, one week, one month, etc. For example, assuming that the current time is 20.12.30 and the preset time period is one week, the historical click records may be search records between 20.12.23 and 20.12.30.
[0075] In this way, the historical click counts of different word segmentation combinations of the search term can be obtained from the historical click records in a short period of time. Since the historical click records in a short period of time are more real-time, the historical click counts of different word segmentation combinations obtained are more representative.
[0076] In addition, the above historical click records can also be: all click records before the current time. In this way, the click counts of different search data can be obtained from all historical click records, and the obtained click counts are more comprehensive and true.
[0077] S104, recalling search results corresponding to the search terms according to the historical click counts of the search data corresponding to each word segmentation combination.
[0078] Specifically, for each word segment combination, when the number of historical clicks corresponding to the word segment combination is higher, it means that the user has a higher interest in the word segment combination, and therefore the search data corresponding to the word segment combination can be recalled with priority; when the number of historical clicks corresponding to the word segment combination is lower, it means that the user has a lower interest in the word segment combination, and therefore the search data corresponding to the word segment combination may not be recalled with priority, ultimately achieving the recall of search results for the search terms.
[0079] In one embodiment of the present invention, at least one word combination with the highest number of historical clicks of the corresponding search data can be selected as the target combination, and then the search data containing the above target combination can be selected in the search content, and the searched search data can be recalled as the search result corresponding to the search term.
[0080] In addition, you can also select a word combination whose historical click count of the corresponding search data exceeds a preset click count threshold as a target combination, and then select search data containing the above target combination in the search content, and recall the search data as the search result corresponding to the search term.
[0081] In the scheme provided by the above embodiment, first, the search terms to be searched are obtained; the search terms to be searched are segmented, and the obtained segmentation results are combined to obtain a segmentation combination; for each segmentation combination, the historical number of clicks on the search data corresponding to the segmentation combination is obtained, wherein the search data corresponding to each segmentation combination is: the search data containing the segmentation combination in the content; according to the historical number of clicks on the search data corresponding to each segmentation combination, the search results corresponding to the search terms to be searched are recalled. Since the historical number of clicks on each search data can reflect the user's interest in the search results, the search results corresponding to the search terms to be searched are recalled based on the historical number of clicks on the search data corresponding to each segmentation combination, so that the search results corresponding to the recalled search terms are related to the user's interest, thereby improving the probability that the recalled results meet the user's actual needs. It can be seen that the application of the recall scheme provided by the above embodiment can improve the accuracy of the recalled search results.
[0082] In one embodiment of the present invention, for the above-mentioned step S103, when obtaining the historical number of clicks corresponding to each word segmentation combination, for each word segmentation combination, the search data whose content contains the word segmentation combination and whose corresponding word segmentation results are arranged adjacently can be determined as the search data corresponding to the word segmentation combination; and then the historical number of clicks of the search data corresponding to each word segmentation combination can be obtained respectively.
[0083] Specifically, after obtaining each word combination corresponding to the search term, the search data containing the word combination and the word combination arranged adjacently can be searched, and then the historical click count of the search data can be obtained. For example, assuming that the word combination of the search term is "mobile phone" and "film", and the title of one of the data is "mobile phone film tutorial", since the above two word results are arranged adjacently in the title of the data, the data can be used as the search data corresponding to the above word combination.
[0084] In this way, since the content of the search data contains the above-mentioned word combination, and the word combination is closely arranged in the content of the above-mentioned search data, the higher the historical number of clicks on the search data corresponding to the word combination, it means that when the word combination is closely arranged, the user's interest in the search data corresponding to the word combination is higher, which further indicates that the degree of correlation between the word combinations is higher; the lower the historical number of clicks on the search data corresponding to the word combination, it means that when the word combination is closely arranged, the user's interest in the search data corresponding to the word combination is lower, which further indicates that the degree of correlation between the word combinations is lower.
[0085] In one embodiment of the present invention, the search data corresponding to each word segmentation combination includes the word segmentation combination arranged adjacently, and the arrangement order of the word segmentation combination in the corresponding search data is the same as the arrangement order of the word segmentation combination in the search term. For example, assuming that the search term is "technological development trend", where the word segmentation combination includes "technology + development", and "technology" is in front and "development" is in the back, then the search data corresponding to the word segmentation combination also needs to include the above words, and "technology" is in front and "development" is in the back.
[0086] In one embodiment of the present invention, for each word combination corresponding to the search term, the semantic association degree of the word combination can be determined based on the number of historical clicks of search data containing the word combination and adjacent to the word combination in the content. The above semantic association degree is used to characterize the association degree between each word combination in the word combination, and can be expressed in the form of a score, a ratio, etc.
[0087] In one implementation, the correspondence between the historical click counts and the semantic association degree can be preset. After obtaining the historical click counts, the semantic association degree corresponding to the historical click counts can be found from the above correspondence as the semantic association degree between the word combinations.
[0088] For example, see Table 2 below, which is a schematic table of the corresponding relationship between the number of historical clicks and the degree of semantic association provided by an embodiment of the present invention.
[0089] Table 2
[0090] Number of hits Semantic Relevance 0~100 30 101~300 40 301~500 50 501~800 60 801~1200 80
[0091] Assuming that the historical number of clicks of the search data corresponding to the obtained word segmentation combination is 450, according to the above Table 2, the historical number of clicks is in the range of "301-500", and the corresponding semantic association degree is 50, so it can be determined that the semantic association degree of the word segmentation combination is 50.
[0092] In another implementation method, the ratio of the historical number of clicks to the historical number of clicks of the total search data can also be calculated as the degree of semantic association between the word combinations, wherein the above-mentioned total search data is: search data related to the word combination, for example, it can be search data whose content contains the word combination, or search data whose semantics are related to the word combination, etc.
[0093] Specifically, the sum of the historical click counts of the total search data corresponding to the word combination can also be counted as the target click count. After obtaining the historical click count of the search data corresponding to a word combination, the ratio of the above historical click count to the above target click count can be calculated as the degree of semantic association between the word combinations.
[0094] Taking the embodiment shown in Table 1 as an example, the search term is "intelligent model", and the word combination is "intelligent + model". In the title of the search data "The Origin and Development of Intelligent Model", the word combination is arranged adjacent to each other, so the search data can be used as the search data corresponding to the word combination, and the historical click count of the search data is 100. The target click count is 100+400+100+200+200=1000, and the ratio of the historical click count to the target click count is calculated to be 100 / 1000=0.1, so it can be determined that the semantic association degree of "intelligent + model" is 0.1.
[0095] In one embodiment of the present invention, each word segmentation combination may also be composed of at least two words that are sequentially adjacent to each other in the to-be-searched terms. For each word segmentation combination composed of at least two words that are sequentially adjacent to each other in the to-be-searched terms, search data of the word segmentation combination that is adjacent to each other may be determined as search data corresponding to the word segmentation combination, and then the number of clicks of the search data may be determined from the obtained number of clicks as the number of historical clicks, and the degree of semantic association between the word segmentation combinations may be obtained based on the historical number of clicks.
[0096] For example, see Table 3 below, which is another schematic table of different search data history click counts provided by an embodiment of the present invention. Assume that the search term is "table tennis schedule", which includes "table tennis", "schedule", and "arrangement", where "table tennis" and "schedule" are adjacent, and "schedule" and "arrangement" are adjacent, so "table tennis" and "schedule" can be combined as a participle, and "schedule" and "arrangement" can be combined as a participle.
[0097] It can be seen from Table 3 below that for the word combination "table tennis + schedule", in the titles of the search data "Know about the table tennis schedule in advance" and "How to view the current table tennis schedule", the two words "table tennis" and "schedule" are arranged adjacent to each other. Therefore, the above search data can be used as the search data corresponding to the above word combination "table tennis + schedule". The number of clicks on the above search data are 400 and 500 respectively, so the historical number of clicks is 900. The target number of clicks is 50+400+500+10+40=1000. The ratio of the above historical number of clicks to the target number of clicks is calculated to be 900 / 1000=0.9. Therefore, it can be determined that the semantic correlation between "table tennis" and "schedule" is 0.9. Similarly, it can be determined that the semantic correlation between "schedule" and "arrangement" is also 0.9.
[0098] Table 3
[0099] Search Data Number of hits Halfway through the season, which team do you think is the best? 50 Table tennis schedule early 400 How to view the current table tennis schedule 500 Top 10 goals of today's match 10 Table tennis veterans perform wonderful moments 40
[0100] In one embodiment of the present invention, when recalling search results, a word segmentation combination whose historical click count of the corresponding search data meets the preset recall conditions can be selected as the target word segmentation combination, and the search data containing the target word segmentation combination in the content can be determined, and the determined search data can be recalled as the search result of the term to be searched.
[0101] Specifically, after obtaining the historical click counts of the search data corresponding to each word combination of the search term, a target word combination whose corresponding historical click counts meet the above recall conditions can be selected, and then the search data containing the target word combination can be recalled as the recall result.
[0102] In addition, it is also possible to determine the word combinations whose historical click counts of the corresponding search data do not meet the recall conditions as non-target word combinations, determine the search data whose content contains at least two non-target word combinations, and recall the determined search data as the search result of the search term to be searched.
[0103] Specifically, for the target word combination, since the historical click count of the search data corresponding to the target word combination meets the recall condition, it means that the user is highly interested in the target word combination, so the search data containing the target word combination can be directly recalled;
[0104] For non-target word combinations, since the historical click counts of the search data corresponding to the non-target word combinations do not meet the recall conditions, it means that the user is less interested in the target word combination. Therefore, search data containing multiple non-target word combinations can be searched, and then the above search data can be recalled.
[0105] In one embodiment of the present invention, the recall condition may be that the number of historical clicks is greater than a preset click threshold, which may be 500, 1000, 10000, etc.
[0106] In addition, the above recall condition may also be that the ratio of historical clicks to total clicks is greater than a preset ratio threshold.
[0107] The total number of clicks is the sum of the historical number of clicks of the search data corresponding to each word combination. The above ratio threshold can be 0.2, 0.3, 0.5, etc.
[0108] Specifically, the sum of the historical click counts of the search data corresponding to each word combination of the search term can be counted as the total number of clicks, and then for each word combination, the proportion of the historical click count of the search data corresponding to the word combination to the above total number of clicks is calculated. When the above proportion is greater than the proportion threshold, the word combination is considered to meet the recall condition; otherwise, the word combination is considered to not meet the above recall condition.
[0109] In one embodiment of the present invention, when obtaining the term to be searched, the above step S101 may receive a search instruction sent by the client, and obtain the term carried in the search instruction as the term to be searched.
[0110] Specifically, the client may send a search instruction to the server, and the search instruction may carry a desired search term. After receiving the search instruction, the server may parse the term carried in the instruction as the term to be searched.
[0111] In addition, preset terms to be recommended may be obtained as terms to be searched, and when the search results corresponding to the terms to be searched are recalled, an association relationship between the preset terms and the recalled search results may be established.
[0112] Specifically, preset terms to be recommended to users, such as current hot words, current events, entertainment hot spots, etc., can be obtained as terms to be searched, recall results of the above preset terms can be obtained, and then an association relationship between the preset terms and the recall results can be created.
[0113] In this way, the above-mentioned preset terms can be sent to the client and displayed to the user by the client. For example, they can be displayed below the search box of the client, or directly displayed in the search box, so that the client can recommend the above-mentioned preset terms to the user. After the user clicks on the above-mentioned preset terms, the server can directly obtain the recall result corresponding to the preset term from the pre-established association relationship, and then send the recall result to the client, so that the client can display the received recall result to the user, thereby realizing efficient and quick display of the recall results to the user and improving the user experience.
[0114] See also Figure 2 , Figure 2 A flowchart of another recall method provided by an embodiment of the present invention is provided. After the recall result is obtained in the above step S104, the following step S105 may be further included:
[0115] S105, sorting the recalled search results according to the historical click counts of the search data corresponding to each word segmentation combination.
[0116] Specifically, the search results of the search terms can be sorted in descending order according to the historical click counts of the word combinations contained in the content. This can make the arrangement order of the search results more organized, thereby improving the user experience.
[0117] The search results of the search terms may be sorted in descending order according to the number of historical clicks on the word combinations contained in the titles of the search data;
[0118] In addition, the historical click counts of the word combinations contained in the content may be added up, and the search results for the search terms may be sorted in descending order of the sum of the historical click counts.
[0119] In one embodiment of the present invention, for each search data, the user's interest in the search data can be determined based on the arrangement information and semantic association of the word combinations contained in the search data, and the search data can be sorted based on the determined interest level.
[0120] The arrangement information is used to reflect whether the word combinations contained in the search data are arranged adjacently. If the word combinations contained in the search data are arranged adjacently, they are usually more closely related to the search terms, and thus it can be considered that the user is more interested in the search data;
[0121] The higher the semantic correlation of the word combination contained in the search data, the greater the number of historical clicks by users on the search data corresponding to the word combination, which means that the user may also be interested in the search data.
[0122] Specifically, for each search data, the arrangement information and semantic association degree of the word combination contained in the search data can be obtained, the user's interest in the search data can be evaluated, and then the search data can be sorted in descending order of interest. In this way, the search data with higher user interest can be arranged in front and the search data with lower user interest can be arranged in the back, which is convenient for users to read the above search data, thereby improving user experience.
[0123] In the scheme provided by the above embodiment, first, the search terms to be searched are obtained; the search terms to be searched are segmented, and the obtained segmentation results are combined to obtain a segmentation combination; for each segmentation combination, the historical number of clicks on the search data corresponding to the segmentation combination is obtained, wherein the search data corresponding to each segmentation combination is: the search data containing the segmentation combination in the content; according to the historical number of clicks on the search data corresponding to each segmentation combination, the search results corresponding to the search terms to be searched are recalled. Since the historical number of clicks on each search data can reflect the user's interest in the search results, the search results corresponding to the search terms to be searched are recalled based on the historical number of clicks on the search data corresponding to each segmentation combination, so that the search results corresponding to the recalled search terms are related to the user's interest, thereby improving the probability that the recalled results meet the user's actual needs. It can be seen that the application of the recall scheme provided by the above embodiment can improve the accuracy of the recalled search results.
[0124] See also Figure 3 , Figure 3 A schematic diagram of a recall device provided in an embodiment of the present invention, the device comprising:
[0125] The term acquisition module 301 is used to obtain the term to be searched;
[0126] The word segmentation processing module 302 is used to perform word segmentation processing on the to-be-searched terms and combine the obtained word segmentation results to obtain a word segmentation combination;
[0127] The click count acquisition module 303 is used to obtain the historical click count of the search data corresponding to each word combination, wherein the search data corresponding to each word combination is: the search data containing the word combination in the content;
[0128] The first result recall module 304 recalls the search results corresponding to the to-be-searched terms according to the historical click counts of the search data corresponding to each word segmentation combination.
[0129] In one embodiment of the present invention, the first result recall module is specifically used to:
[0130] Select a word combination whose historical click count of the corresponding search data meets the preset recall condition as the target word combination;
[0131] Determine the search data containing the target word combination in the content, and recall the determined search data as the search result of the to-be-searched term.
[0132] In one embodiment of the present invention, the device further includes a second result recall module, which is used to:
[0133] Determine the word combinations whose historical click counts of the corresponding search data do not satisfy the recall condition as non-target word combinations;
[0134] Determine the search data containing at least two non-target word combinations in the content, and recall the determined search data as the search result of the to-be-searched term.
[0135] In one embodiment of the present invention, the recall conditions include:
[0136] The historical click count is greater than the preset click count threshold; and / or
[0137] The ratio of the historical click count to the total click count is greater than a preset ratio threshold, wherein the total click count is the sum of the historical click counts of the search data corresponding to each word segmentation combination.
[0138] In one embodiment of the present invention, the click count obtaining module 303 is specifically used for:
[0139] For each word segmentation combination, determine the search data whose content contains the word segmentation combination and whose word segmentation results corresponding to the word segmentation combination are arranged adjacently, as the search data corresponding to the word segmentation combination;
[0140] The historical click counts of the search data corresponding to each word segmentation combination are obtained respectively.
[0141] In one embodiment of the present invention, the entry acquisition module 301 is specifically used for:
[0142] Receiving a search instruction sent by a client, and obtaining a term carried in the search instruction as a term to be searched; or
[0143] Obtaining preset terms to be recommended as terms to be searched;
[0144] The device also includes a relationship establishment module, which is used to:
[0145] After the search results corresponding to the to-be-searched terms are recalled, an association relationship between the preset terms and the recalled search results is established.
[0146] In one embodiment of the present invention, the device further includes a result sorting module, which is used to:
[0147] The recalled search results are sorted according to the historical click counts of the search data corresponding to each word segmentation combination.
[0148] In the scheme provided by the above embodiment, first, the search terms to be searched are obtained; the search terms to be searched are segmented, and the obtained segmentation results are combined to obtain a segmentation combination; for each segmentation combination, the historical number of clicks on the search data corresponding to the segmentation combination is obtained, wherein the search data corresponding to each segmentation combination is: the search data containing the segmentation combination in the content; according to the historical number of clicks on the search data corresponding to each segmentation combination, the search results corresponding to the search terms to be searched are recalled. Since the historical number of clicks on each search data can reflect the user's interest in the search results, the search results corresponding to the search terms to be searched are recalled based on the historical number of clicks on the search data corresponding to each segmentation combination, so that the search results corresponding to the recalled search terms are related to the user's interest, thereby improving the probability that the recalled results meet the user's actual needs. It can be seen that the application of the recall scheme provided by the above embodiment can improve the accuracy of the recalled search results.
[0149] The embodiment of the present invention further provides an electronic device, such as Figure 4 As shown, it includes a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402, and the memory 403 communicate with each other through the communication bus 404.
[0150] Memory 403, used for storing computer programs;
[0151] The processor 401 is used to implement the recall method when executing the program stored in the memory 403.
[0152] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0153] The communication interface is used for communication between the above terminal and other devices.
[0154] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0155] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0156] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the recall method described in any one of the above embodiments is implemented.
[0157] In another embodiment of the present invention, a computer program product including instructions is provided, which, when executed on a computer, enables the computer to execute any of the recall methods described in the above embodiments.
[0158] In the scheme provided by the above embodiment, first, the search terms to be searched are obtained; the search terms to be searched are segmented, and the obtained segmentation results are combined to obtain a segmentation combination; for each segmentation combination, the historical number of clicks on the search data corresponding to the segmentation combination is obtained, wherein the search data corresponding to each segmentation combination is: the search data containing the segmentation combination in the content; according to the historical number of clicks on the search data corresponding to each segmentation combination, the search results corresponding to the search terms to be searched are recalled. Since the historical number of clicks on each search data can reflect the user's interest in the search results, the search results corresponding to the search terms to be searched are recalled based on the historical number of clicks on the search data corresponding to each segmentation combination, so that the search results corresponding to the recalled search terms are related to the user's interest, thereby improving the probability that the recalled results meet the user's actual needs. It can be seen that the application of the recall scheme provided by the above embodiment can improve the accuracy of the recalled search results.
[0159] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0160] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0161] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, electronic device embodiment, computer-readable storage medium embodiment, and computer program product embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0162] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A recall method, characterized in that: The method comprises: Get the search terms; Performing word segmentation processing on the to-be-searched terms, and combining the obtained word segmentation results to obtain a word segmentation combination; wherein the word segmentation combination includes selecting word segmentation results in pairs to realize the combination of all word segmentation results; For each word combination, the historical click count of the search data corresponding to the word combination is obtained, wherein the search data corresponding to each word combination is: the search data containing the word combination in the content, and the search data is: the data pre-stored in the database and used as the search result; Recalling the search results corresponding to the search terms according to the historical click counts of the search data corresponding to each word segmentation combination; The step of recalling search results corresponding to the to-be-searched terms according to the historical click counts of the search data corresponding to each word segmentation combination includes: Select a word combination whose historical click count of the corresponding search data meets the preset recall condition as the target word combination; Determine search data containing the target word combination in the content, and recall the determined search data as the search result of the to-be-searched term; The method further comprises: Sort the recalled search results according to the historical click counts of the search data corresponding to each word segmentation combination; The step of sorting the recalled search results according to the historical click counts of the search data corresponding to each word segmentation combination includes: For each word combination corresponding to the to-be-searched term, the semantic association degree of the word combination is determined according to the number of historical clicks of the search data containing the word combination and arranged adjacent to the word combination in the content. The semantic association degree is used to characterize the association degree between each word result in the word combination. The higher the semantic association degree of the word combination contained in the search data, the more likely the user is to be interested in the search data. For each search data, the user's interest in the search data is determined based on the arrangement information and semantic association degree of the word combinations contained in the search data. The arrangement information is used to reflect whether the word combinations contained in the search data are arranged adjacently. If the word combinations contained in the search data are arranged adjacently, it means that the higher the association degree between the search data and the to-be-searched term is, the higher the user's interest in the search data is; The search data are sorted according to the determined interest levels, so that search data with higher user interest levels are arranged in front and search data with lower user interest levels are arranged in the back, making it easier for users to read the search data, thereby improving user experience.
2. The method according to claim 1, characterized in that The method further comprises: Determine the word combinations whose historical click counts of the corresponding search data do not satisfy the recall condition as non-target word combinations; Determine the search data containing at least two non-target word combinations in the content, and recall the determined search data as the search result of the to-be-searched term.
3. The method according to claim 1, characterized in that: The recall conditions include: The historical click count is greater than the preset click count threshold; and / or The ratio of the historical click count to the total click count is greater than a preset ratio threshold, wherein the total click count is the sum of the historical click counts of the search data corresponding to each word segmentation combination.
4. The method according to claim 1, characterized in that: The step of obtaining the historical click count of the search data corresponding to each word segmentation combination includes: For each word segmentation combination, determine the search data whose content contains the word segmentation combination and whose word segmentation results corresponding to the word segmentation combination are arranged adjacently, as the search data corresponding to the word segmentation combination; The historical click counts of the search data corresponding to each word segmentation combination are obtained respectively.
5. The method according to claim 1, characterized in that The obtaining of the term to be searched includes: Receiving a search instruction sent by a client, and obtaining a term carried in the search instruction as a term to be searched; or Obtaining preset terms to be recommended as terms to be searched; After the step of recalling the search results corresponding to the to-be-searched terms, the method further includes: Establish an association relationship between the preset term and the recalled search results.
6. A recall device, characterized in that: The device comprises: A term acquisition module is used to obtain the term to be searched; A word segmentation processing module, used for performing word segmentation processing on the to-be-searched terms, and combining the obtained word segmentation results to obtain a word segmentation combination; wherein the word segmentation combination includes selecting word segmentation results in pairs, so as to realize the combination of all word segmentation results; A click count acquisition module is used to obtain the historical click count of the search data corresponding to each word combination, wherein the search data corresponding to each word combination is: the search data containing the word combination in the content, and the search data is: the data pre-stored in the database and used as the search result; A result recall module, which recalls the search results corresponding to the searched terms according to the historical click counts of the search data corresponding to each word segmentation combination; The result recall module is specifically used to select a word combination whose historical click count of the corresponding search data meets the preset recall condition as a target word combination; determine the search data containing the target word combination in the content, and recall the determined search data as the search result of the to-be-searched term; The device also includes a result sorting module, which is used to: Sort the recalled search results according to the historical click counts of the search data corresponding to each word segmentation combination; The result sorting module is specifically used for: For each word combination corresponding to the to-be-searched term, the semantic association degree of the word combination is determined according to the number of historical clicks of the search data containing the word combination and arranged adjacent to the word combination in the content. The semantic association degree is used to characterize the association degree between each word result in the word combination. The higher the semantic association degree of the word combination contained in the search data, the more likely the user is to be interested in the search data. For each search data, the user's interest in the search data is determined based on the arrangement information and semantic association degree of the word combinations contained in the search data. The arrangement information is used to reflect whether the word combinations contained in the search data are arranged adjacently. If the word combinations contained in the search data are arranged adjacently, it means that the higher the association degree between the search data and the to-be-searched term is, the higher the user's interest in the search data is; The search data are sorted according to the determined interest levels, so that search data with higher user interest levels are arranged in front and search data with lower user interest levels are arranged in the back, making it easier for users to read the search data, thereby improving user experience.
7. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-5 when executing a program stored in a memory.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
