Search statement recommendation method, device, equipment and medium
By displaying the mixed search relationship between the central keyword and its related candidate recommendation keywords in the search result page, the problem of low recommendation accuracy in traditional search software is solved, and more accurate search statement recommendations are achieved.
Patent Information
- Application Number
- CN202210719027.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-23
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2042-06-23
AI Technical Summary
The accuracy of the recommended search statements in traditional search software is low, mainly due to the limited amount of reference information, which leads to the inaccurateness of the recommended search statements.
The central keyword and its related candidate recommended keywords are displayed in the search guide area of the search result page, and in response to the user's selection operation, display the mixed search relationship and recommend the search statement corresponding to the keyword combination matching the mixed search relationship.
By expanding users' knowledge interest preferences, more accurate searches are achieved, and the accuracy of search statement recommendations is improved, allowing users to easily conduct high-interest search interactions.
Smart Images

Figure CN115203513B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of search and recommendation technology, and in particular to a search statement recommendation method, apparatus, device and medium. Background Art
[0002] A search engine is a system that uses specific computer programs to collect information from the internet based on specific strategies. After organizing and processing the information, it provides retrieval services and displays the retrieved information to users. With the development of network technology, more and more search software has been applied to daily life and work. Through search engines, people can access a large amount of information online, bringing great convenience to their work and life. Most search software has an information recommendation function. That is, based on the search text entered by the user, it can recommend relevant information to the user, allowing users to conduct more precise searches and quickly obtain the desired information.
[0003] In traditional methods, hot words related to the search text entered by the user are usually recommended to the user. The user clicks on any hot word to perform a word search, and search statements related to the clicked hot word are recommended to the user. That is, the amount of information referenced when searching in traditional methods is limited, resulting in a relatively low accuracy rate of the recommended search statements. Summary of the Invention
[0004] Based on this, it is necessary to provide a search statement recommendation method, device, equipment and medium that can improve the accuracy of search statement recommendations in response to the above technical problems.
[0005] In a first aspect, the present application provides a search statement recommendation method, the method comprising:
[0006] In response to an input search text, displaying a central keyword in the search text and at least one candidate recommended keyword related to the central keyword in a search guide area of a search result page corresponding to the search text;
[0007] In response to a keyword selection operation on at least one target recommended keyword among the candidate recommended keywords, displaying a mixed search relationship between the at least one target recommended keyword and the central keyword;
[0008] When displaying the hybrid search relationship, a recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship is displayed in the recommendation area in the search results page; each of the keyword combinations includes at least one of the at least one target recommended keyword and the central keyword.
[0009] In a second aspect, the present application provides a search statement recommendation device, the device comprising:
[0010] A display module, configured to, in response to an input search text, display a central keyword in the search text and at least one candidate recommended keyword related to the central keyword in a search guide area of a search result page corresponding to the search text;
[0011] The display module is further configured to display a mixed search relationship between at least one target recommended keyword and the central keyword in response to a keyword selection operation on at least one target recommended keyword among the candidate recommended keywords;
[0012] The display module is also used to display a recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship in the recommendation area of the search results page when displaying the hybrid search relationship; each of the keyword combinations includes at least one of the at least one target recommended keyword and the central keyword.
[0013] In one embodiment, the display module is also used to display the central keyword in the search text in response to the input search text in the search guide area of the search result page corresponding to the search text; according to the word association between each candidate recommended keyword and the central keyword, at least one candidate recommended keyword related to the central keyword is displayed in the search guide area; the candidate recommended keyword is at least one candidate keyword related to the central keyword and used for search recommendation; wherein, for each candidate recommended keyword, the display position distance corresponding to the candidate recommended keyword is related to the word association; the display position distance is the distance between the display position of the candidate recommended keyword and the display position of the central keyword; the word association refers to the correlation between the candidate recommended keyword and the central keyword.
[0014] In one embodiment, the candidate recommended keywords are keywords that have a graph relationship with the central keyword in a pre-constructed knowledge graph; the word association is represented by the distance of the graph relationship path; the display module is also used to display at least one candidate recommended keyword related to the central keyword in the search guide area according to the distance of the graph relationship path between each candidate recommended keyword and the central keyword; wherein, for each candidate recommended keyword, the display position distance corresponding to the candidate recommended keyword is positively correlated with the distance of the current graph relationship path, and the current graph relationship path is the graph relationship path between the candidate recommended keyword and the central keyword.
[0015] In one embodiment, the display module is also used to display the central keyword in the search text in the first area of the search guide area in response to the input search text; and to display at least one candidate recommended keyword related to the central keyword in the second area of the search guide area.
[0016] In one embodiment, the first area is a circular area; the second area includes a partial area of at least one concentric circle; the center of the concentric circle is the center of the circular area; each of the concentric circles surrounds the circular area; the display module is also used to display at least one candidate recommended keyword related to the central keyword on the arc of each concentric circle according to the word association between each candidate recommended keyword and the central keyword; wherein, for each candidate recommended keyword, the radius of the concentric circle where the candidate recommended keyword is located is related to the word association.
[0017] In one embodiment, the central keyword is displayed in the first area in the search guide area; the candidate recommended keywords are displayed in the second area in the search guide area; the keyword selection operation includes a keyword moving operation; the display module is also used to move the target recommended keyword from the second area to the first area in response to a keyword moving operation for at least one target recommended keyword among the candidate recommended keywords; when the target recommended keyword is moved to the first area, a mixed search relationship between the at least one target recommended keyword and the central keyword is displayed in the first area.
[0018] In one embodiment, the display module is also used to display the central keyword at the center position of the first area and display the at least one target recommended keyword at the position where the keyword moving operation ends in response to the target recommended keyword moving to the first area; wherein, there is a mixed search relationship between the central keyword displayed at the center position of the first area and the at least one target recommended keyword displayed at the position where the keyword moving operation ends.
[0019] In one embodiment, the display module is further configured to display, for each target recommended keyword, a new candidate recommended keyword at the original position of the target recommended keyword before being moved within the second area.
[0020] In one embodiment, the display module is also used to display a recommended search statement matching the central keyword in the recommendation area in response to the input search text; when displaying the mixed search relationship, the recommended search statement matching the central keyword displayed in the recommendation area is replaced with a recommended search statement corresponding to at least one keyword combination matching the mixed search relationship.
[0021] In one embodiment, the display module is also used to display the advanced mixed search relationship of the at least one target recommended keyword, the advanced recommended keyword and the central keyword in response to a keyword selection operation for the advanced recommended keyword; the advanced recommended keyword is at least one recommended keyword selected again from the candidate recommended keywords except the target recommended keyword; when displaying the advanced mixed search relationship, the recommended search statement corresponding to at least one keyword combination matching the mixed search relationship displayed in the recommendation area is replaced with a recommended search statement corresponding to at least one keyword combination matching the advanced mixed search relationship.
[0022] In one embodiment, the display module is also used to determine the priority recommendation level corresponding to each keyword combination matching the advanced hybrid search relationship based on the distance between the display position of the target recommended keyword and the display position of the central keyword, and the distance between the display position of the advanced recommended keyword and the display position of the central keyword when displaying the advanced hybrid search relationship; and replace the recommended search statements corresponding to each keyword combination matching the advanced hybrid search relationship with the recommended search statements corresponding to at least one keyword combination matching the hybrid search relationship displayed in the recommendation area according to the priority recommendation level corresponding to each keyword combination matching the advanced hybrid search relationship.
[0023] In one embodiment, the display module is also used to respond to a trigger operation on the recommended search statement, use the recommended search statement as the input search text for a new round of search, and execute the step of displaying the central keyword in the search text and displaying at least one candidate recommended keyword related to the central keyword in the search guide area in the search results page corresponding to the search text in response to the input search text.
[0024] In one embodiment, the apparatus further comprises:
[0025] A merging module is used to obtain an initial recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship; using the initial recommended search statement as the current recommended search statement, and determining the similarity between any two current recommended search statements during this round of iterative merging; for each pair of current recommended search statements, merging the pair of current recommended search statements whose similarities satisfy a similarity proximity condition to obtain a merged recommended search statement; using the merged recommended search statement as the current recommended search statement, and taking the next round as this round, returning to the step of determining the similarity between any two current recommended search statements during this round of iterative merging to iteratively execute until the similarity between any two current recommended search statements does not satisfy the similarity proximity condition, and stopping, and using the merged recommended search statement obtained in the last round of iterative merging process as the recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship.
[0026] In a third aspect, the present application provides a computer device including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps in the method embodiments of the present application are implemented.
[0027] In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the various method embodiments of the present application.
[0028] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the steps in the various method embodiments of the present application when the computer program is executed by a processor.
[0029] The above-mentioned search statement recommendation method, apparatus, device, medium and computer program product, in response to the input search text, displays the central keyword in the search text and at least one candidate recommended keyword related to the central keyword in the search guide area of the search results page corresponding to the search text. Since the candidate recommended keywords are candidate keywords related to the central keyword and used for search recommendations, by displaying the candidate recommended keywords to the user, the user's knowledge can be expanded, thereby guiding the user to interact according to their own interests and preferences to achieve a more accurate search, that is, the user can select at least one target recommended keyword of interest. Furthermore, in response to the keyword selection operation for at least one target recommended keyword among the candidate recommended keywords, a mixed search relationship between the at least one target recommended keyword and the central keyword is displayed, and when the mixed search relationship is displayed, a recommended search statement corresponding to at least one keyword combination matching the mixed search relationship is recommended to the user in the recommendation area of the search results page. Since each keyword combination includes at least one of the target recommended keywords selected by the user and the central keyword, that is, the central keyword in the search text input by the user and the target recommended keyword selected by the user based on his interest preference are jointly recommended. Therefore, compared with the traditional search statement recommendation method of performing a word change search by replacing the search text input by the user with a hot word, the search statement recommendation method of the present application can recommend search statements with higher user interest to the user for user interaction on the search results page of the preliminary search based on the search text, so as to conveniently realize hybrid search recommendation, thereby improving the accuracy of search statement recommendation. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A diagram illustrating an application environment of a search statement recommendation method according to an embodiment;
[0031] Figure 2 A flowchart of a search statement recommendation method according to one embodiment;
[0032] Figure 3 A schematic diagram of a search results page in one embodiment;
[0033] Figure 4 A schematic diagram of a process in which a user performs a selection interaction operation on a search result page in one embodiment;
[0034] Figure 5 A schematic diagram of a process in which a user performs a mobile interaction operation on a search results page in one embodiment;
[0035] Figure 6 A schematic diagram of displaying a search results page after user interaction in one embodiment;
[0036] Figure 7 A schematic diagram of a process of a user performing a selection interaction operation on a search result page in another embodiment;
[0037] Figure 8 A schematic diagram of a process of a user performing a mobile interactive operation on a search result page in another embodiment;
[0038] Figure 9 A schematic diagram of displaying a search results page after the user interacts again in one embodiment;
[0039] Figure 10 A schematic diagram of a recommended search statement search in one embodiment;
[0040] Figure 11 A schematic diagram of the knowledge graph construction model training process in one embodiment;
[0041] Figure 12 A flowchart of a search statement recommendation method according to another embodiment;
[0042] Figure 13 A schematic diagram of a flow chart of a method for interactively executing a search statement recommendation between a terminal and a server in one embodiment;
[0043] Figure 14 A flowchart of a search statement recommendation method in another embodiment;
[0044] Figure 15 is a structural block diagram of a search statement recommendation device in one embodiment;
[0045] Figure 16 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0047] The search statement recommendation method provided in this application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other servers. Among them, the terminal 102 can be, but is not limited to, various desktop computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal 102 and the server 104 can be directly or indirectly connected via wired or wireless communication, and this application does not limit this.
[0048] In response to an input search text, terminal 102 displays a central keyword in the search text and at least one candidate recommended keyword related to the central keyword in a search guide area on a search results page corresponding to the search text. Furthermore, in response to a keyword selection operation for at least one target recommended keyword among the candidate recommended keywords, terminal 102 displays a mixed search relationship between the at least one target recommended keyword and the central keyword. When displaying the mixed search relationship, terminal 102 displays, in a recommendation area on the search results page, recommended search statements corresponding to at least one keyword combination matching the mixed search relationship; each keyword combination includes at least one of the at least one target recommended keyword and the central keyword.
[0049] It is understandable that the terminal 102 can generate a central keyword in the search text based on the input search text, and query at least one candidate recommended keyword related to the central keyword, and then display the central keyword in the search text and at least one candidate recommended keyword related to the central keyword. It is also understandable that the terminal 102 can send the input search text to the server 104, and the server 104 can generate a central keyword in the search text based on the search text, and query at least one candidate recommended keyword related to the central keyword, and then the server 104 can send the generated central keyword and the queried candidate recommended keyword to the terminal 102 for display by the terminal 102. This embodiment does not limit this, and it is understandable that Figure 1 The application scenarios are only for illustration and are not limited to this.
[0050] It should be noted that the search statement recommendation methods in some embodiments of this application utilize artificial intelligence technology. For example, the central keyword in the search text is generated using artificial intelligence technology, and at least one candidate recommended keyword related to the central keyword is also retrieved using artificial intelligence technology.
[0051] In one embodiment, Figure 2 As shown, a search statement recommendation method is provided. This embodiment applies this method to Figure 1 Taking the terminal 102 in FIG. 1 as an example, the method includes the following steps:
[0052] Step 202 : In response to the input search text, display a central keyword in the search text and at least one candidate recommended keyword related to the central keyword in a search guide area on a search result page corresponding to the search text.
[0053] Among them, the search text is the text entered by the user and used for search recommendations. The central keyword is the keyword among the various keywords included in the search text and serves as the core search basis. It can be understood that the number of central keywords is at least one. It should be noted that the search text itself can also be the central keyword. The candidate recommended keyword is a candidate keyword recommended to the user as a search reference and has an associated relationship with the central keyword. The search results page is a page used to display the search results obtained by searching the search text. The search guide area is an area used to guide users to perform interactive searches.
[0054] For example, if the user enters the search text "X Museum's opening hours," the search text includes the keywords "X Museum" and "opening hours," with "X Museum" being the central keyword in the search text. The candidate recommended keywords may include at least one of the following: artifacts collected in X Museum, people related to X Museum, and popular attractions near X Museum.
[0055] Specifically, a user may enter a search text, and the terminal may, in response to the user's search text, perform keyword extraction on the search text to obtain the keywords included in the search text, determine a central keyword from the keywords, and query at least one candidate recommended keyword related to the central keyword. Furthermore, the terminal may display the central keyword in the search text and at least one candidate recommended keyword related to the central keyword in a search guide area on a search results page corresponding to the search text.
[0056] In one embodiment, the distance between the display position of each candidate recommendation keyword and the display position of the central keyword is random.
[0057] In one embodiment, after receiving the search text entered by the user, the terminal may send the search text to a server. The server may perform keyword extraction on the search text to obtain the keywords included in the search text, determine a central keyword from the keywords, and query at least one candidate recommended keyword related to the central keyword. Furthermore, the server may send the central keyword and at least one candidate recommended keyword related to the central keyword to the terminal for display.
[0058] In one embodiment, the terminal can determine the word weight corresponding to each keyword included in the search text. It can be understood that keywords with larger word weights have a greater impact on the accuracy of search results. The terminal can determine the central keyword from each keyword based on the word weights corresponding to each keyword.
[0059] It is understandable that the search results page also includes search results obtained from a preliminary search for the central keyword.
[0060] For easier understanding, refer to Figure 3 "West Lake" is the search text, and "West Lake" is also the central keyword. The candidate recommended keywords related to the central keyword are "weather", "beautiful scenery", "food", "Longjing", "history" and "university". Figure 3 301 is the search results page. 302 is the search results from the initial search for "West Lake." 303 is the search guide area, which displays the central keyword "West Lake" and candidate recommended keywords: "weather," "scenic spots," "food," "Longjing tea," "history," and "university." 304 is the recommendation area, which displays recommended search terms matching "West Lake."
[0061] Step 204 : In response to a keyword selection operation on at least one target recommended keyword among the candidate recommended keywords, a mixed search relationship between the at least one target recommended keyword and the central keyword is displayed.
[0062] The target recommendation keyword is the candidate recommendation keyword selected by the user. The keyword selection operation is the operation of selecting at least one target recommendation keyword from each candidate recommendation keyword. The mixed search relationship is used to represent the mixed search of the target recommendation keyword and the central keyword.
[0063] It is understood that displaying a mixed search relationship between target recommended keywords and central keywords means displaying the target recommended keywords and central keywords in a specific style. For example, the target recommended keywords and central keywords may be displayed in the same area, or the target recommended keywords and central keywords may be highlighted, or the target recommended keywords and central keywords may be connected by a line. The highlighted display includes at least one of highlighting, bolding, or displaying them in the same color.
[0064] Specifically, the user can select at least one target recommended keyword from the displayed candidate recommended keywords, and the terminal can display a mixed search relationship between at least one target recommended keyword and the central keyword in response to the keyword selection operation for at least one target recommended keyword from the candidate recommended keywords.
[0065] In one embodiment, the keyword selection operation includes at least one of a keyword move operation, a keyword click operation, and a keyword frame selection operation. The keyword move operation is an operation to move the target recommended keyword. The keyword click operation is an operation to select the target recommended keyword by clicking. The keyword frame selection operation is an operation to select the target recommended keyword by framing.
[0066] Step 206: When displaying a hybrid search relationship, a recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship is displayed in the recommendation area of the search results page; each keyword combination includes at least one of at least one target recommended keyword and a central keyword.
[0067] The recommendation area is used to display recommended search phrases. A keyword combination is a set consisting of at least one of the target recommended keywords and a central keyword. The recommended search phrase corresponding to a keyword combination is a phrase recommended to users for search and includes all the keywords in the keyword combination.
[0068] For example, if the target recommended keywords include recommended keyword 1 and recommended keyword 2, the keyword combinations can include the following three groups: keyword combination A: {central keyword, recommended keyword 1, recommended keyword 2}, keyword combination B: {central keyword, recommended keyword 1}, and keyword combination C: {central keyword, recommended keyword 2}. The recommended search statement corresponding to keyword combination A includes the central keyword, recommended keyword 1, and recommended keyword 2. The recommended search statement corresponding to keyword combination B includes the central keyword and recommended keyword 1. The recommended search statement corresponding to keyword combination C includes the central keyword and recommended keyword 2.
[0069] Specifically, when a hybrid search relationship is displayed, the terminal may determine at least one keyword combination that matches the hybrid search relationship and search for a recommended search statement corresponding to the at least one keyword combination that matches the hybrid search relationship. Furthermore, the terminal may display the recommended search statement corresponding to the at least one keyword combination that matches the hybrid search relationship in the recommendation area on the search results page.
[0070] In one embodiment, the terminal may search for an initial recommended search statement corresponding to at least one keyword combination that matches the hybrid search relationship, filter out at least one target recommended search statement from the searched initial recommended search statement, and use the filtered target recommended search statement as the recommended search statement corresponding to at least one keyword combination that matches the hybrid search relationship.
[0071] In the above-mentioned search statement recommendation method, in response to the input search text, the central keyword in the search text and at least one candidate recommended keyword related to the central keyword are displayed in the search guide area of the search results page corresponding to the search text. Since the candidate recommended keywords are candidate keywords related to the central keyword and used for search recommendations, by displaying the candidate recommended keywords to the user, the user's knowledge can be expanded, thereby guiding the user to interact according to their own interests and preferences to achieve a more accurate search, that is, the user can select at least one target recommended keyword of interest. Furthermore, in response to the keyword selection operation for at least one target recommended keyword among the candidate recommended keywords, a mixed search relationship between the at least one target recommended keyword and the central keyword is displayed, and when the mixed search relationship is displayed, a recommended search statement corresponding to at least one keyword combination matching the mixed search relationship is recommended to the user in the recommendation area of the search results page. Since each keyword combination includes at least one of the target recommended keywords selected by the user and the central keyword, that is, the central keyword in the search text input by the user and the target recommended keyword selected by the user based on his interest preference are jointly recommended. Therefore, compared with the traditional search statement recommendation method of performing a word change search by replacing the search text input by the user with a hot word, the search statement recommendation method of the present application can recommend search statements with higher user interest to the user for user interaction on the search results page of the preliminary search based on the search text, so as to conveniently realize hybrid search recommendation, thereby improving the accuracy of search statement recommendation.
[0072] It can be understood that, through the search statement recommendation method of the present application, an initial search can be performed on the input search text to display a search result page corresponding to the search text and including a search guide area and a recommendation area. Since at least one candidate recommended keyword related to the central keyword of the search text is displayed in the search guide area. Therefore, after the initial search is performed based on the input search text, the user can determine the mixed search relationship by interacting with the candidate recommended keywords displayed in the search guide area, and then directly perform the next round of search based on at least one keyword combination matched by the mixed search relationship. In this way, the user does not need to enter the search term related to the central keyword again to trigger the next round of search, making the search and recommendation process more convenient and efficient.
[0073] In one embodiment, in response to an input search text, a central keyword in the search text and at least one candidate recommended keyword related to the central keyword are displayed in a search guide area in a search results page corresponding to the search text, including: in response to the input search text, a central keyword in the search text is displayed in a search guide area in a search results page corresponding to the search text; at least one candidate recommended keyword related to the central keyword is displayed in the search guide area according to the word association between each candidate recommended keyword and the central keyword; a candidate recommended keyword is at least one candidate keyword related to the central keyword and used for search recommendation; wherein, for each candidate recommended keyword, the display position distance corresponding to the candidate recommended keyword is related to the word association; the display position distance is the distance between the display position of the candidate recommended keyword and the display position of the central keyword; the word association refers to the correlation between the candidate recommended keyword and the central keyword.
[0074] Specifically, a user may enter a search text, and the terminal may, in response to the entered search text, display the central keyword in the search text within a search guide area on a search results page corresponding to the search text. Simultaneously, the terminal may determine the degree of word association between each candidate recommended keyword and the central keyword, and based on the degree of word association between each candidate recommended keyword and the central keyword, display at least one candidate recommended keyword related to the central keyword within the search guide area.
[0075] In one embodiment, for each candidate recommendation keyword, the distance between the display position of the candidate recommendation keyword and the word association is negatively correlated. It can be understood that for each candidate recommendation keyword, the stronger the word association between the candidate recommendation keyword and the central keyword, the smaller the distance between the display position of the candidate recommendation keyword and the display position of the central keyword.
[0076] In one embodiment, for each candidate recommendation keyword, the distance between the display position of the candidate recommendation keyword and the word association is positively correlated. It can be understood that for each candidate recommendation keyword, the stronger the word association between the candidate recommendation keyword and the central keyword, the greater the distance between the display position of the candidate recommendation keyword and the display position of the central keyword.
[0077] In one embodiment, the candidate recommended keywords related to the central keyword can specifically be hot words that have been searched in the historical search records and are related to the central keyword. It can be understood that the word association between each candidate recommended keyword and the central keyword can refer to the associated search heat between each candidate recommended keyword and the central keyword. For example, in the historical records, many users searched for "Y cultural relics" and "Z attractions" after searching for "X Museum", so "Y cultural relics" and "Z attractions" are candidate recommended keywords. The number of users searching for "Y cultural relics" is greater than the number of users searching for "Z attractions", which indicates that the associated search heat between "Y cultural relics" and "X Museum" is higher than the associated search heat between "Z cultural relics" and "X Museum".
[0078] In the above embodiment, since the display position distance corresponding to each candidate recommended keyword is related to its corresponding word association, at least one candidate recommended keyword related to the central keyword is displayed in the search guide area according to the word association between each candidate recommended keyword and the central keyword. The word association between each candidate recommended keyword and the central keyword can be displayed in a visual manner, thereby improving the display effect of each candidate recommended keyword.
[0079] In one embodiment, the candidate recommended keywords are keywords that have a graph relationship with the central keyword in a pre-constructed knowledge graph; the word association is represented by the distance of the graph relationship path; according to the word association between each candidate recommended keyword and the central keyword, at least one candidate recommended keyword related to the central keyword is displayed in the search guide area, including: according to the distance of the graph relationship path between each candidate recommended keyword and the central keyword, at least one candidate recommended keyword related to the central keyword is displayed in the search guide area; wherein, for each candidate recommended keyword, the display position distance corresponding to the candidate recommended keyword is positively correlated with the distance of the current graph relationship path, and the current graph relationship path is the graph relationship path between the candidate recommended keyword and the central keyword.
[0080] Among them, the knowledge graph is a structured semantic knowledge base used to describe concepts and their relationships in the physical world in symbolic form. Its basic component unit is the "entity-relationship-entity" triple, and entities are connected to each other through relationships to form a network-like knowledge structure. It can be understood that the central keyword and the candidate recommended keywords are both entities in the knowledge graph. Keywords that have a graph relationship with the central keyword refer to keywords that have a direct or indirect relationship with the central keyword in the knowledge graph. The graph relationship path refers to the relationship chain between the central keyword and the candidate recommended keyword in the knowledge graph. It can be understood that the distance of the graph relationship path refers to the length of the relationship chain between the central keyword and the candidate recommended keyword.
[0081] For each candidate recommendation keyword, the distance between the display position of the candidate recommendation keyword and the distance of the current graph relationship path is positively correlated. It can be understood that for each candidate recommendation keyword, the longer the graph relationship path between the candidate recommendation keyword and the central keyword, the greater the distance between the display position of the candidate recommendation keyword and the display position of the central keyword.
[0082] Specifically, the terminal can determine the distance of the graph relationship path between each candidate recommended keyword and the central keyword, and display at least one candidate recommended keyword related to the central keyword in the search guide area based on the distance of the graph relationship path between each candidate recommended keyword and the central keyword.
[0083] In one embodiment, the terminal can obtain source data for constructing a knowledge graph, and perform entity extraction and relationship extraction on the source data, and then construct a knowledge graph based on the extracted entities and the relationships between entities to obtain a pre-constructed knowledge graph.
[0084] In one embodiment, the terminal can extract entities from source data using any of a rule-based and dictionary-based approach, a machine learning-based approach, or a method that combines supervision with prior knowledge. Machine learning-based methods may include the K-nearest neighbor algorithm, the hidden Markov model, and the conditional random field algorithm. Methods that combine prior knowledge include the maximum entropy algorithm with the assistance of a dictionary and remote supervised learning.
[0085] In one embodiment, the terminal may employ any of supervised learning, semi-supervised learning, and unsupervised learning methods to extract relationships from source data. Supervised learning methods include statistical methods, neural network-based algorithms, and deep learning methods. Semi-supervised learning methods include bootstrap-based methods. Unsupervised learning methods include clustering algorithms.
[0086] In the above embodiment, since the display position distance corresponding to each candidate recommended keyword is positively correlated with the distance of the current graph relationship path, at least one candidate recommended keyword related to the central keyword is displayed in the search guide area according to the distance of the graph relationship path between each candidate recommended keyword and the central keyword. The distance of the graph relationship path between each candidate recommended keyword and the central keyword can be displayed in a visual manner, further improving the display effect of each candidate recommended keyword.
[0087] In one embodiment, in response to an input search text, a central keyword in the search text and at least one candidate recommended keyword related to the central keyword are displayed in a search guide area in a search results page corresponding to the search text, including: in response to the input search text, the central keyword in the search text is displayed in a first area in the search guide area; and at least one candidate recommended keyword related to the central keyword is displayed in a second area in the search guide area.
[0088] The first area is an area in the search guide area for displaying a central keyword in the search text, and the second area is an area in the search guide area for displaying at least one candidate recommended keyword related to the central keyword.
[0089] Specifically, a user may enter a search text, and the terminal may, in response to the entered search text, display a search results page for the search text. It will be appreciated that the search results page includes a search guide area, which may include a first area and a second area. The terminal may display a central keyword in the search text in the first area of the search guide area, and at least one candidate recommended keyword related to the central keyword in the second area of the search guide area.
[0090] For easier understanding, please refer to Figure 3 , Figure 3 The 301 in the URL is the search results page. Figure 3 303 is the search guide area. The gray circular area within the search guide area is the first area, and the white circular areas within the search guide area are the second area. It can be understood that "West Lake" displayed in the first area is the central keyword, and "weather," "scenic spots," "food," "Longjing tea," "history," and "university" displayed in the second area are candidate recommended keywords related to the central keyword.
[0091] In the above embodiment, by displaying the central keyword in the search text in the first area of the search guide area, and displaying at least one candidate recommended keyword related to the central keyword in the second area of the search guide area, the central keyword and the candidate recommended keyword can be displayed in a differentiated manner, thereby improving the display effect of the central keyword and the candidate recommended keyword.
[0092] In one embodiment, the first area is a circular area; the second area includes a partial area of at least one concentric circle; the center of the concentric circle is the center of the circular area; each of the concentric circles surrounds the circular area; in the second area of the search guide area, at least one candidate recommended keyword related to the central keyword is displayed, including: according to the word association between each candidate recommended keyword and the central keyword, at least one candidate recommended keyword related to the central keyword is displayed on the arc of each concentric circle; wherein, for each candidate recommended keyword, the radius of the concentric circle where the candidate recommended keyword is located is related to the word association.
[0093] Specifically, the terminal may determine the word association between each candidate recommendation keyword and the central keyword, and display at least one candidate recommendation keyword related to the central keyword on each concentric arc based on the word association between each candidate recommendation keyword and the central keyword. It is understood that candidate recommendation keywords with the same word association may be displayed on the same concentric arc.
[0094] In one embodiment, for each candidate recommendation keyword, the radius of the concentric circle in which the candidate recommendation keyword is located is negatively correlated with the word association. It is understood that for each candidate recommendation keyword, the stronger the word association between the candidate recommendation keyword and the central keyword, the candidate recommendation keyword is located in the arc of the concentric circle with a shorter radius.
[0095] In one embodiment, for each candidate recommendation keyword, the radius of the concentric circle in which the candidate recommendation keyword is located is positively correlated with the word association. It is understood that for each candidate recommendation keyword, the stronger the word association between the candidate recommendation keyword and the central keyword, the candidate recommendation keyword is located in the arc of the concentric circle with a longer radius.
[0096] For easier understanding, please refer to Figure 3 , Figure 3303 is the search guide area. The gray circular area within the search guide area is the first area, and the white areas defined by the arcs on the concentric circles with the same center as the circular area are the second area. It can be understood that "weather," "scenic views," "food," "Longjing tea," "history," and "university" are candidate recommendation keywords related to the central keyword "West Lake," and these candidate recommendation keywords are displayed on the arcs of the concentric circles.
[0097] In the above embodiment, since the radius of the concentric circle where the candidate recommended keywords are located is related to the word association, at least one candidate recommended keyword related to the central keyword is displayed on the arc of each concentric circle according to the word association between each candidate recommended keyword and the central keyword. The word association between each candidate recommended keyword and the central keyword can be displayed in a radius visualization manner, further improving the display effect of each candidate recommended keyword.
[0098] In one embodiment, the central keyword is displayed in the first area in the search guide area; the candidate recommended keywords are displayed in the second area in the search guide area; the keyword selection operation includes a keyword moving operation; in response to the keyword selection operation for at least one target recommended keyword among the candidate recommended keywords, a mixed search relationship between at least one target recommended keyword and the central keyword is displayed, including: in response to the keyword moving operation for at least one target recommended keyword among the candidate recommended keywords, the target recommended keyword is moved from the second area to the first area; when the target recommended keyword is moved to the first area, a mixed search relationship between at least one target recommended keyword and the central keyword is displayed in the first area.
[0099] Specifically, the search guide area includes a first area and a second area. The central keyword is displayed in the first area of the search guide area, and the candidate recommended keywords are displayed in the second area of the search guide area. The user can move at least one target recommended keyword among the candidate recommended keywords, and the terminal can move the target recommended keyword from the second area to the first area in response to a keyword move operation for at least one target recommended keyword among the candidate recommended keywords. When the target recommended keyword is moved to the first area, a mixed search relationship between the at least one target recommended keyword and the central keyword is displayed in the first area.
[0100] In one embodiment, when the target recommended keyword has just moved to the first area, a mixed search relationship between at least one target recommended keyword and the central keyword is displayed in the first area.
[0101] In one embodiment, when the target recommended keyword moves to a preset position in the first area, a mixed search relationship between at least one target recommended keyword and the central keyword is displayed in the first area.
[0102] In one embodiment, the keyword movement operation includes a keyword dragging operation and a keyword triggering control movement operation. The keyword dragging operation refers to moving the target recommended keyword into the first area by dragging it. The keyword triggering control movement operation refers to automatically controlling the target recommended keyword to move to the first area by triggering it. For example, if a user clicks on a target recommended keyword, the target recommended keyword will automatically move to the first area.
[0103] In one embodiment, the keyword moving operation is a keyword dragging operation. Figure 4 , Figure 4 401 in the figure is the search guide area, the gray circular area in the search guide area is the first area, and the white circular areas in the search guide area are the second area. The central keyword "West Lake" is displayed in the first area of the search guide area, and the candidate recommended keywords, namely "weather", "scenery", "food", "Longjing", "history" and "university" are all displayed in the second area of the search guide area. The user clicks on the candidate recommended keyword "university" in the second area, and it can be understood that "university" is the target recommended keyword. Furthermore, referring to Figure 5 , the user can drag the "University" displayed in the second area to the first area (i.e. Figure 5 The gray circle area within 501).
[0104] In some embodiments, during the process of dragging the target recommended keyword, only the target recommended keyword and the central keyword can be displayed in the search guide area, while other candidate recommended keywords are not displayed in the search guide area. Before the dragging is finished, even if the target recommended keyword is dragged into the first area, the hybrid search may not be triggered temporarily, that is, the recommended search statement in the recommendation area may not be updated temporarily. When the target recommended keyword is dragged into the first area where the central keyword is located and the target recommended keyword is released (that is, the dragging of the target recommended keyword is ended), the target recommended keyword and the central keyword are displayed together in the first area, that is, the hybrid search relationship between the two is displayed, and then the hybrid search is triggered based on the hybrid search relationship between the displayed target recommended keyword and the central keyword, and the recommended search statement corresponding to at least one keyword combination that matches the hybrid search relationship is updated and displayed in the recommendation area, and the other candidate recommended keywords are restored to display. It can be understood that this can avoid triggering too many unnecessary hybrid searches before the dragging is ended, saving system resources.
[0105] For details, please refer to Figures 5 and 6 For example, refer to Figure 5 As can be seen from the search guide area 501 in the figure, when the user drags the "University" displayed in the second area to the first area, the search guide area 501 only displays the central keyword "West Lake" and the dragged target recommended keyword "University", and other candidate recommended keywords are not displayed in the search guide area 501. Figure 5 The user did not release the dragged target recommendation keyword "university", so at this time Figure 5 The recommended search sentence displayed in the recommendation area 502 has not been updated to the recommended search sentence corresponding to the keyword combination {West Lake, University}, that is, at this time Figure 5 The recommended search sentence displayed in the recommendation area 502 is still the recommended search sentence that matches the central keyword "West Lake". Figure 6 As shown, when dragging the target recommendation keyword "university" to the first area (ie Figure 6 After the user enters the gray circular area in 601 and releases the search result, the terminal displays "West Lake" and "University" in the first area and restores the display of other candidate recommended keywords such as Broken Bridge, Beautiful Scenery, and Weather. It can be understood that there is a mixed search relationship between "West Lake" and "University" displayed in the first area.
[0106] In the above embodiment, by moving the target recommendation keyword from the second area to the first area and displaying the mixed search relationship of at least one target recommendation keyword and the central keyword in the first area, the display effect of the mixed search relationship can be improved.
[0107] In one embodiment, when the target recommended keyword moves to the first area, a mixed search relationship between at least one target recommended keyword and a central keyword is displayed in the first area, including: when the target recommended keyword moves to the first area, in response to the end of the keyword moving operation, the central keyword is displayed at the center position of the first area, and at least one target recommended keyword is displayed at the position where the keyword moving operation ends; wherein, there is a mixed search relationship between the central keyword displayed at the center position of the first area and the at least one target recommended keyword displayed at the position where the keyword moving operation ends.
[0108] Specifically, when the target recommended keyword moves to the first area, the user can complete the keyword movement operation at any position in the first area. When the user completes the keyword movement operation, it indicates that the keyword movement operation is completed. At this time, in response to the completion of the keyword movement operation, the terminal can display the central keyword at the center of the first area and display at least one target recommended keyword at the position where the keyword movement operation is completed. It can be understood that there is a mixed search relationship between the central keyword displayed at the center of the first area and the at least one target recommended keyword displayed at the position where the keyword movement operation is completed.
[0109] For easier understanding, refer to Figure 6 , Figure 6 601 is the search guide area, and the gray circular area in the search guide area is the first area. The position where "university" displayed in the first area is the position where the keyword moving operation ends.
[0110] In the above embodiment, by displaying the central keyword at the center position of the first area and displaying at least one target recommended keyword at the position where the keyword moving operation ends, the correlation between each target recommended keyword personalized by the user and the central keyword can be visualized, thereby improving the display effect of the hybrid search relationship.
[0111] In one embodiment, the search statement recommendation method further includes: for each target recommended keyword, displaying a new candidate recommended keyword at the original position of the target recommended keyword in the second area before being moved.
[0112] Specifically, when the terminal displays the central keyword at the center position of the first area in response to the completion of the keyword moving operation, and displays at least one target recommended keyword at the position where the keyword moving operation ends, for each target recommended keyword, the terminal may display a new candidate recommended keyword at the original position where the target recommended keyword is located in the second area and before being moved. It is understandable that after the target recommended keyword is moved to the first area, the target recommended keyword is no longer displayed in the second area, and the terminal may display a new candidate recommended keyword at the original position where the target recommended keyword is located in the second area and before being moved. It is understandable that the new candidate recommended keyword is related to the central keyword.
[0113] For easier understanding, refer to Figure 6 , Figure 6601 is the search guide area. The gray circular area within the search guide area is the first area, and the white areas containing the arcs on the concentric circles with the same center as the circular area are the second area. The position of "Broken Bridge" in the second area is the original position of the target recommendation keyword "University" before it was moved within the second area. It can be understood that "Broken Bridge" is the new candidate recommendation keyword displayed in the supplementary display.
[0114] In the above embodiment, by displaying a new candidate recommended keyword in the second area at the original position of the target recommended keyword before being moved, the user's knowledge can be further expanded, thereby further improving the recommendation accuracy of the recommended search statement.
[0115] In one embodiment, the search statement recommendation method further includes: displaying, in response to the input search text, recommended search statements matching the central keyword in a recommendation area. When a hybrid search relationship is displayed, displaying, in the recommendation area of the search results page, recommended search statements corresponding to at least one keyword combination matching the hybrid search relationship, including: when the hybrid search relationship is displayed, replacing the recommended search statement matching the central keyword displayed in the recommendation area with a recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship.
[0116] The recommended search sentence matching the central keyword refers to the recommended search sentence including the central keyword.
[0117] Specifically, the user can enter a search text, and the terminal can display a recommended search statement matching the central keyword in the recommendation area in response to the entered search text. At the same time, the terminal can also display the central keyword in the search text and at least one candidate recommended keyword related to the central keyword in the search guide area. In response to a keyword selection operation for at least one target recommended keyword among the candidate recommended keywords, the terminal can display a mixed search relationship between at least one target recommended keyword and the central keyword. In the case of displaying a mixed search relationship, the terminal can replace the recommended search statement matching the central keyword displayed in the recommendation area with a recommended search statement corresponding to at least one keyword combination matching the mixed search relationship.
[0118] For easier understanding, refer to Figure 3 , the user enters "West Lake". It can be understood that "West Lake" itself is the central keyword here. Figure 3 The recommended search sentences in the 304 results (i.e., "What are the ten scenic spots of West Lake", "Photos of West Lake scenery", "What are the delicacies of West Lake", "What is the weather like in West Lake", and "Introduction to the history of West Lake") are recommended search sentences that match the central keyword "West Lake". It should be noted that Figure 3The recommended search terms in the 304 results all contain "West Lake". Figure 6 , Figure 6 The recommended search statements in 602 (i.e., "How many points are required to get into Westlake University", "Westlake University's advantageous disciplines", "How much is Westlake University's tuition", "Is Westlake University a first-tier or second-tier university", and "Westlake University's evaluation") are replaced recommended search statements corresponding to at least one keyword combination that matches the hybrid search relationship. It should be noted that Figure 6 The recommended search statements in 602 all contain "West Lake" and "university".
[0119] In the above embodiment, since the recommended search statements matching the central keyword are the initial recommended search statements, these initial recommended search statements are not necessarily the recommended search statements that the user is interested in. However, by replacing the recommended search statements matching the central keyword displayed in the recommendation area with recommended search statements corresponding to at least one keyword combination that matches the hybrid search relationship, the recommended search statements of interest can be recommended to the user, thereby improving the accuracy of the recommended search statements.
[0120] In one embodiment, the search statement recommendation method also includes: in response to a keyword selection operation for an advanced recommended keyword, displaying an advanced mixed search relationship of at least one target recommended keyword, an advanced recommended keyword and a central keyword; the advanced recommended keyword is at least one recommended keyword selected again from each recommended keyword other than the target recommended keyword in the candidate recommended keywords; when the advanced mixed search relationship is displayed, the recommended search statement corresponding to at least one keyword combination matching the mixed search relationship displayed in the recommendation area is replaced with a recommended search statement corresponding to at least one keyword combination matching the advanced mixed search relationship.
[0121] The advanced hybrid search relationship is used to represent a hybrid search of target recommendation keywords, advanced recommendation keywords, and central keywords. Each keyword combination that matches the advanced hybrid search relationship includes at least one target recommendation keyword and / or at least one advanced recommendation keyword, as well as the central keyword.
[0122] It can be understood that displaying the advanced mixed search relationship of the target recommended keywords, advanced recommended keywords, and central keywords means displaying the target recommended keywords, advanced recommended keywords, and central keywords in a specific style. For example, the target recommended keywords, advanced recommended keywords, and central keywords are displayed in the same area, or the target recommended keywords, advanced recommended keywords, and central keywords are highlighted, or the target recommended keywords, advanced recommended keywords, and central keywords are displayed in a line, etc. The highlighted display includes at least one of highlighting, bolding, or marking with the same color.
[0123] Specifically, the user can select an advanced recommended keyword, wherein the advanced recommended keyword is at least one recommended keyword selected again from among the candidate recommended keywords except the target recommended keyword. In response to the keyword selection operation for the advanced recommended keyword, the terminal can display an advanced mixed search relationship of at least one target recommended keyword, an advanced recommended keyword, and a central keyword. When the advanced mixed search relationship is displayed, the terminal can replace the recommended search statement corresponding to at least one keyword combination matching the mixed search relationship previously displayed in the recommendation area with a recommended search statement corresponding to at least one keyword combination matching the advanced mixed search relationship.
[0124] In one embodiment, the keyword moving operation is a keyword dragging operation. Figure 7 , Figure 7 701 is the search guide area, the gray circular area in the search guide area is the first area, and the white circular areas in the search guide area are the second area. The first area has displayed a mixed search relationship between target recommendation keywords and central keywords, that is, the first area has displayed target recommendation keywords (i.e., "university") and central keywords (i.e., "West Lake"). The "food" in the second area is the advanced recommendation keyword selected by the user. The user can drag the "food" displayed in the second area to the first area (i.e. Figure 8 The gray circle area in 801). Figure 8 As can be seen from the search guide area 801 in the image, when the user drags the "food" displayed in the second area to the first area, the search guide area 801 only displays the central keyword "West Lake" and the dragged target recommended keyword "food". Other candidate recommended keywords and the target recommended keywords that have been dragged to the first area are not displayed in the search guide area 801. Figure 8 The user did not release the dragged target recommendation keyword "food", so at this time Figure 8 The recommended search sentence displayed in the recommendation area 802 has not been updated to match the new keyword combination, for example, the recommended search sentence corresponding to {West Lake, University, Food}, that is, at this time Figure 8 The recommended search sentence displayed in the recommendation area 802 is still the recommended search sentence corresponding to the keyword combination {West Lake, University}. Figure 9 As shown in FIG, after dragging the dragged target recommendation keyword "food" to the first area and releasing it, the terminal can Figure 9In the gray circular area in 901 of FIG, “West Lake”, “University” and “Food” are displayed, and other candidate recommendation keywords that have not been dragged by the user can be restored to display in the second area, for example, other candidate recommendation keywords such as Broken Bridge, Beautiful Scenery, Weather, etc. can be restored to display in the second area. In addition, the terminal can add a new candidate recommendation keyword “Picture” at the original position before “Food” was dragged in the second area. At the same time, referring to Figure 9 In the recommendation area 902, the recommended search phrases displayed in the recommendation area 902 have been updated to correspond to the new keyword combination, for example, {West Lake, University, Food}. It can be understood that there is an advanced hybrid search relationship between "West Lake," "University," and "Food" displayed in the first area.
[0125] In the above embodiment, since the advanced hybrid search relationship is further interactively determined by the user based on interest preferences, the recommendation accuracy of the recommended search statement can be further improved by replacing the recommended search statement corresponding to at least one keyword combination that matches the hybrid search relationship displayed in the recommendation area with a recommended search statement corresponding to at least one keyword combination that matches the advanced hybrid search relationship.
[0126] In one embodiment, when an advanced hybrid search relationship is displayed, the recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship displayed in the recommendation area is replaced with a recommended search statement corresponding to at least one keyword combination matching the advanced hybrid search relationship, including: when an advanced hybrid search relationship is displayed, the priority recommendation level corresponding to each keyword combination matching the advanced hybrid search relationship is determined according to the distance between the display position of the target recommended keyword and the display position of the central keyword, and the distance between the display position of the advanced recommended keyword and the display position of the central keyword; according to the priority recommendation level corresponding to each keyword combination matching the advanced hybrid search relationship, the recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship displayed in the recommendation area is replaced with the recommended search statement corresponding to each keyword combination matching the advanced hybrid search relationship.
[0127] Specifically, in the case of displaying an advanced hybrid search relationship, the terminal can determine the distance between the display position of the target recommended keyword and the display position of the central keyword, as well as the distance between the display position of the advanced recommended keyword and the display position of the central keyword, and further determine the priority recommendation level corresponding to each keyword combination matching the advanced hybrid search relationship based on the determined distance between the display position of the target recommended keyword and the display position of the central keyword, as well as the distance between the display position of the advanced recommended keyword and the display position of the central keyword. The terminal can replace the recommended search statements corresponding to each keyword combination matching the advanced hybrid search relationship with the recommended search statements corresponding to each keyword combination matching the advanced hybrid search relationship, which are displayed in the recommendation area and correspond to at least one keyword combination matching the hybrid search relationship, based on the priority recommendation level corresponding to each keyword combination matching the advanced hybrid search relationship.
[0128] For easier understanding, refer to Figure 9 , an advanced mixed search relationship is displayed in the gray circular area of the search guide area 901, that is, the central keyword (i.e. "West Lake"), the target recommended keyword (i.e. "university") and the advanced recommended keyword (i.e. "food"). If the keyword combination matching the mixed search relationship includes {West Lake, food} and {West Lake, university}. Since the distance between the display position of the advanced recommended keyword (i.e. "food") and the display position of the central keyword (i.e. "West Lake") is smaller than the distance between the display position of the target recommended keyword (i.e. "university") and the display position of the central keyword (i.e. "West Lake"), the priority recommendation level corresponding to the keyword combination {West Lake, food} is higher than the priority recommendation level corresponding to the keyword combination {West Lake, university}. Therefore, the terminal will give priority to recommending the recommended search statement corresponding to {West Lake, food}, and then recommend the recommended search statement corresponding to {West Lake, university}. Specifically, the number of recommended search statements corresponding to {West Lake, Food} will be greater than the number of recommended search statements corresponding to {West Lake, University}, and / or the display order of the recommended search statements corresponding to {West Lake, Food} will be before the display order of the recommended search statements corresponding to {West Lake, University}. However, it should be noted that, if you continue to refer to Figure 9, if the keyword combination that matches the mixed search relationship also includes {West Lake, food, university}, then the priority recommendation level corresponding to the keyword combination {West Lake, food, university} is higher than the priority recommendation level corresponding to the keyword combination {West Lake, food} and {West Lake, university}. The terminal will give priority to recommending the recommended search statement corresponding to {West Lake, food, university}, then recommend the recommended search statement corresponding to {West Lake, food}, and finally recommend the recommended search statement corresponding to {West Lake, university}. It should be noted that when there are a large number of recommended search statements corresponding to {West Lake, food, university}, since the recommended search statements that can be displayed in the recommendation area are limited, the terminal can only display the recommended search statement corresponding to {West Lake, food, university} in the recommendation area. For example, Figure 9 The five recommended search statements displayed in 902 are all recommended search statements corresponding to {West Lake, food, university} (i.e., "What food is there in the West Lake University cafeteria", "What food is there around West Lake University", "Top ten food in West Lake University", "Guide to eating food in West Lake University" and "West Lake University cafeteria food rankings").
[0129] In the above embodiment, by replacing the recommended search statements corresponding to each keyword combination matching the advanced hybrid search relationship with the recommended search statements corresponding to at least one keyword combination matching the hybrid search relationship displayed in the recommendation area according to the priority recommendation levels corresponding to each keyword combination matching the advanced hybrid search relationship, the display effect of the recommended search statements can be improved, thereby improving the click-through rate of the recommended search statements.
[0130] In one embodiment, the search statement recommendation method also includes: in response to a trigger operation for the recommended search statement, using the recommended search statement as the input search text for a new round of search, and executing a step of displaying the central keyword in the search text and displaying at least one candidate recommended keyword related to the central keyword in the search guide area in the search results page corresponding to the search text in response to the input search text.
[0131] Specifically, the user can click on any displayed recommended search statement, and the terminal can respond to the trigger operation on the recommended search statement, use the recommended search statement as the input search text for a new round of search, and execute the steps and subsequent steps of displaying the central keyword in the search text and at least one candidate recommended keyword related to the central keyword in the search guide area in the search results page corresponding to the search text in response to the input search text.
[0132] For easier understanding, refer to Figure 9 If the user clicks Figure 9If the recommended search sentence "What delicacies are available in the West Lake University cafeteria" is displayed in the recommendation area 902, the terminal can respond to the trigger operation for "What delicacies are available in the West Lake University cafeteria" and use "What delicacies are available in the West Lake University cafeteria" as the search text input for a new round of search.
[0133] In the above embodiment, in response to the triggering operation on the recommended search statement, the recommended search statement is used as the search text input for a new round of search, thereby initiating a new round of search recommendations, further improving the recommendation accuracy of the recommended search statement.
[0134] In one embodiment, the search statement recommendation method also includes: obtaining an initial recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship; using the initial recommended search statement as the current recommended search statement, and determining the similarity between any two current recommended search statements during this round of iterative merging; for each pair of current recommended search statements, merging the pair of current recommended search statements whose similarities meet the similarity proximity condition to obtain a merged recommended search statement; using the merged recommended search statement as the current recommended search statement, and the next round as this round, returning to the step of determining the similarity between any two current recommended search statements during this round of iterative merging to iteratively execute until the similarity between any two current recommended search statements does not meet the similarity proximity condition, and stopping, and using the merged recommended search statement obtained in the last round of iterative merging process as the recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship.
[0135] The initial recommended search statement is a recommended search statement corresponding to at least one keyword combination that matches the hybrid search relationship before the merger.
[0136] Specifically, the terminal may obtain, from historical search data, initial recommended search statements corresponding to at least one keyword combination matching the hybrid search relationship. Since the initial recommended search statements may include semantically identical or similar recommended search statements, the terminal may iteratively merge the obtained initial recommended search statements to eliminate duplication within the initial recommended search statements. Specifically, the terminal may use the obtained initial recommended search statements as the current recommended search statements. During this round of iterative merging, the terminal determines the similarity between any two current recommended search statements. For each pair of current recommended search statements, the terminal may merge the two current recommended search statements whose similarity satisfies a similarity proximity condition to obtain a merged recommended search statement. Furthermore, the terminal may use the merged recommended search statement as the current recommended search statement, and the next round as the current round. The terminal will iteratively return to the step of determining the similarity between any two current recommended search statements in the current round of iterative merging, terminating when the similarity between any two current recommended search statements no longer satisfies the similarity proximity condition. The terminal may then use the merged recommended search statement obtained during the final round of iterative merging as the recommended search statement corresponding to the at least one keyword combination matching the hybrid search relationship.
[0137] In one embodiment, Figure 10 As shown, the search history data includes historical search process data and historical result viewing data. The terminal can obtain an initial recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship from the historical search process data and historical result viewing data stored on the server, and iteratively deduplicate the initial recommended search statement to obtain a deduplicated recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship. The terminal can then display the deduplicated recommended search statement corresponding to the at least one keyword combination matching the hybrid search relationship.
[0138] In one embodiment, the historical search process data may include at least one of the search text, search time, location information during the search, and account information of each user during the search process.
[0139] In one embodiment, the historical result viewing data may include at least one of click operation data, click time, and location information at the time of click.
[0140] In the above embodiment, by iteratively merging the obtained initial recommended search statements, recommended search statements with high similarity can be merged to avoid displaying similar recommended search statements to users, improve the display effect of recommended search statements, and thus improve the click-through rate of recommended search statements.
[0141] In one embodiment, Figure 11As shown, the terminal can obtain sample source data for training the knowledge graph construction model and perform data annotation on the obtained sample source data. The terminal can repeatedly optimize and train the knowledge graph construction model using the annotated sample source data to obtain a trained knowledge graph construction model. Furthermore, the terminal can obtain source data for constructing the knowledge graph and perform entity and relationship extraction on the source data using the trained knowledge graph construction model. The terminal then constructs a knowledge graph based on the extracted entities and the relationships between them, resulting in a pre-constructed knowledge graph.
[0142] In one embodiment, Figure 12 As shown, the central keyword in the search text input by the user is displayed in the first area, and the various candidate recommended keywords related to the central keyword are displayed in the second area. The terminal can display the recommended search statement matching the central keyword in the recommendation area in response to the search text input by the user. The terminal can select the target recommended keyword from the various candidate recommended keywords displayed in the second area. In response to the keyword drag operation for the target recommended keyword, the terminal can move the target recommended keyword to the first area and determine whether the target recommended keyword falls within the first area. If the target recommended keyword falls within the first area, a mixed search relationship between the target recommended keyword and the central keyword is displayed in the first area, and the recommended search statement displayed in the recommendation area is updated, that is, the recommended search statement matching the central keyword is replaced with a recommended search statement corresponding to at least one keyword combination matching the mixed search relationship. If the target recommended keyword does not fall within the first area, the recommended search statement displayed in the recommendation area is not updated. If a hybrid search relationship is already displayed in the first area, and the user drags at least one of the other candidate recommended keywords back into the first area, an advanced hybrid search relationship is displayed in the first area, and the recommended search statements corresponding to at least one keyword combination matching the hybrid search relationship displayed in the recommendation area are updated. In response to this operation, the terminal may use the clicked recommended search statement for any recommended search statement as the search text for a new search, thereby initiating a new search.
[0143] In one embodiment, Figure 13As shown, the terminal can obtain a search text entered by the user and send the search text to a server via a corresponding sending instruction. The server can perform keyword extraction on the search text to obtain a central keyword in the search text. The server can search for at least one candidate recommended keyword related to the central keyword based on the central keyword and send the central keyword and each candidate recommended keyword to the terminal. The terminal can display the central keyword in a first area, each candidate recommended keyword in a second area, and recommended search statements matching the central keyword in a recommendation area. The terminal can select a target recommended keyword from the candidate recommended keywords displayed in the second area. In response to a keyword drag operation on the target recommended keyword, the terminal can move the target recommended keyword to the first area. If the target recommended keyword falls within the first area, a hybrid search relationship between the target recommended keyword and the central keyword can be displayed in the first area. Furthermore, the terminal can send a keyword combination matching the hybrid search relationship to the server via a corresponding sending instruction. The server can search for an initial recommended search statement corresponding to the keyword combination matching the hybrid search relationship, merge the initial recommended search statements, obtain a recommended search statement corresponding to the keyword combination matching the hybrid search relationship, and send the recommended search statement to the terminal. The terminal can update the recommended search statements displayed in the recommendation area, that is, replace the recommended search statements that match the central keyword with recommended search statements corresponding to at least one keyword combination that matches the hybrid search relationship. If a hybrid search relationship is already displayed in the first area, if the user drags at least one of the other candidate recommended keywords to the first area again, an advanced hybrid search relationship will be displayed in the first area, and the recommended search statements corresponding to at least one keyword combination that matches the hybrid search relationship displayed in the recommendation area will be updated. In response to the operation, the terminal can use the recommended search statement clicked on any recommended search statement as the search text for a new round of search to initiate a new round of search.
[0144] like Figure 14 As shown, in one embodiment, a search statement recommendation method is provided, which is applied to Figure 1 The terminal 102 in the embodiment of the present invention. The method specifically comprises the following steps:
[0145] Step 1402: In response to the input search text, the central keyword in the search text is displayed in the circular area of the search guide area on the search results page, and the recommended search statements matching the central keyword are displayed in the recommendation area on the search results page.
[0146] Step 1404: Display at least one candidate recommended keyword related to the central keyword on the arc of each concentric circle according to the distance of the graph relationship path between each candidate recommended keyword and the central keyword; wherein the center of the concentric circle is the center of the circular area; each concentric circle surrounds the circular area; for each candidate recommended keyword, the radius of the concentric circle where the candidate recommended keyword is located is positively correlated with the distance of the graph relationship path.
[0147] Step 1406 : In response to a keyword move operation on at least one target recommended keyword among the candidate recommended keywords, the target recommended keyword is moved from the arc of the corresponding concentric circle to the circular area.
[0148] Step 1408, when the target recommended keyword moves to the circular area, in response to the completion of the keyword moving operation, the central keyword is displayed at the center position of the circular area, and at least one target recommended keyword is displayed at the position where the keyword moving operation ends; wherein, there is a mixed search relationship between the central keyword displayed at the center position of the circular area and the at least one target recommended keyword displayed at the position where the keyword moving operation ends.
[0149] Step 1410 : For each target recommended keyword, a new candidate recommended keyword is displayed at the original position of the target recommended keyword before it is moved and located on the arc of the corresponding concentric circle.
[0150] Step 1412: When a mixed search relationship is displayed, the recommended search statement that matches the central keyword is replaced with a recommended search statement corresponding to at least one keyword combination that matches the mixed search relationship; each keyword combination includes at least one of at least one target recommended keyword and the central keyword.
[0151] Step 1414, in response to the keyword selection operation for the advanced recommended keyword, an advanced mixed search relationship of at least one target recommended keyword, an advanced recommended keyword and a central keyword is displayed; the advanced recommended keyword is at least one recommended keyword selected again from each recommended keyword in the candidate recommended keywords except the target recommended keyword.
[0152] Step 1416, when displaying the advanced hybrid search relationship, determine the priority recommendation level corresponding to each keyword combination matching the advanced hybrid search relationship based on the distance between the display position of the target recommended keyword and the display position of the central keyword, and the distance between the display position of the advanced recommended keyword and the display position of the central keyword.
[0153] Step 1418, according to the priority recommendation levels corresponding to each keyword combination matching the advanced hybrid search relationship, the recommended search statements corresponding to at least one keyword combination matching the hybrid search relationship will be displayed to replace the recommended search statements corresponding to each keyword combination matching the advanced hybrid search relationship.
[0154] Step 1420, in response to a trigger operation for a recommended search statement, uses the recommended search statement as the input search text for a new round of search, and executes a step of displaying the central keyword in the search text and displaying at least one candidate recommended keyword related to the central keyword in response to the input search text.
[0155] The present application also provides an application scenario, which applies the above-mentioned search statement recommendation method. Specifically, the search statement recommendation method can be applied to the search recommendation scenario in the browser. In response to the search text entered by the user in the search box of the browser, the terminal can display the central keyword in the search text in the circular area in the search guide area on the browser search results page, and display the recommended search statement matching the central keyword in the recommendation area on the browser search results page. According to the distance of the graph relationship path between each candidate recommended keyword and the central keyword, at least one candidate recommended keyword related to the central keyword is displayed on the arc of each concentric circle; wherein the center of the concentric circle is the center of the circular area; each concentric circle surrounds the circular area; for each candidate recommended keyword, the radius of the concentric circle where the candidate recommended keyword is located is positively correlated with the distance of the graph relationship path.
[0156] The terminal can move the target recommended keyword from the arc of the corresponding concentric circle to the circular area in response to a keyword moving operation for at least one target recommended keyword among the candidate recommended keywords. In the case where the target recommended keyword is moved to the circular area, in response to the completion of the keyword moving operation, the central keyword is displayed at the center position of the circular area, and at least one target recommended keyword is displayed at the position where the keyword moving operation ends; wherein, there is a mixed search relationship between the central keyword displayed at the center position of the circular area and the at least one target recommended keyword displayed at the position where the keyword moving operation ends. For each target recommended keyword, a new candidate recommended keyword is displayed at the original position where the target recommended keyword is located on the arc of the corresponding concentric circle and before being moved. In the case of displaying a mixed search relationship, the recommended search statement that matches the central keyword is replaced with a recommended search statement corresponding to at least one keyword combination that matches the mixed search relationship; each keyword combination includes at least one of the at least one target recommended keyword and the central keyword.
[0157] The terminal can display an advanced mixed search relationship of at least one target recommended keyword, an advanced recommended keyword and a central keyword in response to a keyword selection operation for an advanced recommended keyword; the advanced recommended keyword is at least one recommended keyword selected again from among the recommended keywords other than the target recommended keyword in the candidate recommended keywords. In the case of displaying the advanced mixed search relationship, the priority recommendation level corresponding to each keyword combination matching the advanced mixed search relationship is determined based on the distance between the display position of the target recommended keyword and the display position of the central keyword, and the distance between the display position of the advanced recommended keyword and the display position of the central keyword. According to the priority recommendation level corresponding to each keyword combination matching the advanced mixed search relationship, the recommended search statement corresponding to each keyword combination matching the advanced mixed search relationship is replaced with the recommended search statement corresponding to each keyword combination matching the advanced mixed search relationship.
[0158] The terminal can respond to a trigger operation for the recommended search statement, use the recommended search statement as the input search text for a new round of browser search, and execute the steps of displaying the central keyword in the search text in response to the input search text, and displaying at least one candidate recommended keyword related to the central keyword.
[0159] This application also provides an application scenario that applies the above-mentioned search statement recommendation method. Specifically, the search statement recommendation method can be applied to the search recommendation scenario in an instant messaging application. Specifically, the instant messaging application itself has a search function. When a user enters a search text in the search page of the instant messaging application, the search statement recommendation method of this application can also be executed to display relevant recommended search statements to the user on the interface of the instant messaging application, thereby improving the recommendation accuracy of the search statements in the instant messaging application.
[0160] It should be understood that, although the various steps in the flow chart of the above-mentioned embodiments are shown in sequence, these steps are not necessarily performed in sequence. Unless clearly stated herein, the execution of these steps does not have strict order restrictions, and these steps can be performed in other sequences. Moreover, at least a portion of the steps in the above-mentioned embodiments may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0161] In one embodiment, Figure 15As shown, a search statement recommendation device 1500 is provided. The device can be a software module or a hardware module, or a combination of the two to form a part of a computer device. The device specifically includes:
[0162] The display module 1502 is configured to display a central keyword in the search text and at least one candidate recommended keyword related to the central keyword in a search guide area on a search result page corresponding to the search text in response to the input search text.
[0163] The display module 1502 is further configured to display a mixed search relationship between the at least one target recommended keyword and the central keyword in response to a keyword selection operation on at least one target recommended keyword among the candidate recommended keywords.
[0164] The display module 1502 is also used to display a recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship in the recommendation area of the search results page when displaying the hybrid search relationship; each keyword combination includes at least one of at least one target recommended keyword and a central keyword.
[0165] In one embodiment, the display module 1502 is also used to display the central keyword in the search text in response to the input search text in the search guide area of the search results page corresponding to the search text; according to the word association between each candidate recommended keyword and the central keyword, at least one candidate recommended keyword related to the central keyword is displayed in the search guide area; the candidate recommended keyword is at least one candidate keyword related to the central keyword and used for search recommendation; wherein, for each candidate recommended keyword, the display position distance corresponding to the candidate recommended keyword is related to the word association; the display position distance is the distance between the display position of the candidate recommended keyword and the display position of the central keyword; the word association refers to the correlation between the candidate recommended keyword and the central keyword.
[0166] In one embodiment, the candidate recommended keywords are keywords that have a graph relationship with the central keyword in a pre-constructed knowledge graph; the word association is represented by the distance of the graph relationship path; the display module 1502 is also used to display at least one candidate recommended keyword related to the central keyword in the search guide area according to the distance of the graph relationship path between each candidate recommended keyword and the central keyword; wherein, for each candidate recommended keyword, the display position distance corresponding to the candidate recommended keyword is positively correlated with the distance of the current graph relationship path, and the current graph relationship path is the graph relationship path between the candidate recommended keyword and the central keyword.
[0167] In one embodiment, the display module 1502 is also used to display the central keyword in the search text in the first area of the search guide area in response to the input search text; and to display at least one candidate recommended keyword related to the central keyword in the second area of the search guide area.
[0168] In one embodiment, the first area is a circular area; the second area includes a partial area of at least one concentric circle; the center of the concentric circle is the center of the circular area; each concentric circle surrounds the circular area; the display module 1502 is also used to display at least one candidate recommended keyword related to the central keyword on the arc of each concentric circle according to the word association between each candidate recommended keyword and the central keyword; wherein, for each candidate recommended keyword, the radius of the concentric circle where the candidate recommended keyword is located is related to the word association.
[0169] In one embodiment, the central keyword is displayed in the first area in the search guide area; the candidate recommended keywords are displayed in the second area in the search guide area; the keyword selection operation includes a keyword moving operation; the display module 1502 is also used to move the target recommended keyword from the second area to the first area in response to the keyword moving operation for at least one target recommended keyword among the candidate recommended keywords; when the target recommended keyword is moved to the first area, a mixed search relationship between at least one target recommended keyword and the central keyword is displayed in the first area.
[0170] In one embodiment, the display module 1502 is also used to display the central keyword at the center position of the first area in response to the completion of the keyword moving operation when the target recommended keyword is moved to the first area, and to display at least one target recommended keyword at the position where the keyword moving operation ends; wherein, there is a mixed search relationship between the central keyword displayed at the center position of the first area and the at least one target recommended keyword displayed at the position where the keyword moving operation ends.
[0171] In one embodiment, the display module 1502 is further configured to display, for each target recommended keyword, a new candidate recommended keyword at the original position of the target recommended keyword in the second area before being moved.
[0172] In one embodiment, the display module 1502 is also used to display recommended search statements that match the central keyword in the recommendation area in response to the input search text; in the case of displaying a mixed search relationship, the recommended search statement that matches the central keyword displayed in the recommendation area is replaced with a recommended search statement corresponding to at least one keyword combination that matches the mixed search relationship.
[0173] In one embodiment, the display module 1502 is also used to display an advanced mixed search relationship of at least one target recommended keyword, an advanced recommended keyword and a central keyword in response to a keyword selection operation for an advanced recommended keyword; the advanced recommended keyword is at least one recommended keyword selected again from each recommended keyword other than the target recommended keyword in the candidate recommended keywords; when the advanced mixed search relationship is displayed, the recommended search statement corresponding to at least one keyword combination matching the mixed search relationship displayed in the recommendation area is replaced with a recommended search statement corresponding to at least one keyword combination matching the advanced mixed search relationship.
[0174] In one embodiment, the display module 1502 is also used to determine the priority recommendation level corresponding to each keyword combination matching the advanced hybrid search relationship based on the distance between the display position of the target recommended keyword and the display position of the central keyword, and the distance between the display position of the advanced recommended keyword and the display position of the central keyword when displaying the advanced hybrid search relationship; according to the priority recommendation level corresponding to each keyword combination matching the advanced hybrid search relationship, the recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship displayed in the recommendation area is replaced with the recommended search statement corresponding to each keyword combination matching the advanced hybrid search relationship.
[0175] In one embodiment, the display module 1502 is also used to respond to a trigger operation on a recommended search statement, use the recommended search statement as the input search text for a new round of search, and execute the steps of displaying the central keyword in the search text and displaying at least one candidate recommended keyword related to the central keyword in the search guide area in the search results page corresponding to the search text in response to the input search text.
[0176] In one embodiment, the apparatus further comprises:
[0177] A merging module is used to obtain an initial recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship; take the initial recommended search statement as the current recommended search statement, and determine the similarity between any two current recommended search statements during this round of iterative merging; for each pair of current recommended search statements, merge the pair of current recommended search statements whose similarities meet the similarity proximity condition to obtain a merged recommended search statement; take the merged recommended search statement as the current recommended search statement, take the next round as this round, return to the step of determining the similarity between any two current recommended search statements during this round of iterative merging, and iteratively execute until the similarity between any two current recommended search statements does not meet the similarity proximity condition, and stop, and use the merged recommended search statement obtained in the last round of iterative merging process as the recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship.
[0178] The above-mentioned search statement recommendation device, in response to the input search text, displays the central keyword in the search text and at least one candidate recommended keyword related to the central keyword in the search guide area of the search results page corresponding to the search text. Since the candidate recommended keywords are candidate keywords related to the central keyword and used for search recommendations, by displaying the candidate recommended keywords to the user, the user's knowledge can be expanded, thereby guiding the user to interact according to their own interests and preferences to achieve a more accurate search, that is, the user can select at least one target recommended keyword of interest. Furthermore, in response to the keyword selection operation for at least one target recommended keyword among the candidate recommended keywords, a mixed search relationship between the at least one target recommended keyword and the central keyword is displayed, and when the mixed search relationship is displayed, a recommended search statement corresponding to at least one keyword combination matching the mixed search relationship is recommended to the user in the recommendation area of the search results page. Since each keyword combination includes at least one of the target recommended keywords selected by the user and the central keyword, that is, the central keyword in the search text input by the user and the target recommended keyword selected by the user based on his interest preference are jointly recommended. Therefore, compared with the traditional search statement recommendation method of performing a word change search by replacing the search text input by the user with a hot word, the search statement recommendation method of the present application can recommend search statements with higher user interest to the user for user interaction on the search results page of the preliminary search based on the search text, so as to conveniently realize hybrid search recommendation, thereby improving the accuracy of search statement recommendation.
[0179] Each module in the aforementioned search statement recommendation device may be implemented in whole or in part through software, hardware, or a combination thereof. Each module may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a computer device memory in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0180] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 16 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a search statement recommendation method is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.
[0181] Those skilled in the art will understand that Figure 16 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0182] In one embodiment, a computer device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.
[0183] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above-mentioned method embodiments when executed by a processor.
[0184] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0185] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions.
[0186] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0187] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0188] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.
Claims
1. A search statement recommendation method, characterized in that: The method comprises: In response to an input search text, displaying a central keyword in the search text and at least one candidate recommended keyword related to the central keyword in a search guide area of a search result page corresponding to the search text; In response to a keyword selection operation on at least one target recommended keyword among the candidate recommended keywords, displaying a mixed search relationship between the at least one target recommended keyword and the central keyword; In the case of displaying the hybrid search relationship, a recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship is displayed in a recommendation area on the search results page; each keyword combination includes at least one of the at least one target recommended keyword and the central keyword; In response to a keyword selection operation on an advanced recommended keyword among the candidate recommended keywords, displaying an advanced mixed search relationship among the at least one target recommended keyword, the advanced recommended keyword, and the central keyword; Among them, when displaying the advanced hybrid search relationship, in the recommendation area, the recommended search statements corresponding to each keyword combination matching the advanced hybrid search relationship are displayed according to the priority recommendation level corresponding to each keyword combination; the priority recommendation level is determined according to the distance between the display position of the target recommended keyword and the display position of the central keyword, and the distance between the display position of the advanced recommended keyword and the display position of the central keyword.
2. The method according to claim 1, characterized in that The method of displaying, in response to an input search text, a central keyword in the search text and at least one candidate recommended keyword related to the central keyword in a search guide area on a search result page corresponding to the search text, includes: In response to an input search text, displaying a central keyword in the search text in a search guide area on a search result page corresponding to the search text; According to the word association between each candidate recommendation keyword and the central keyword, at least one candidate recommendation keyword related to the central keyword is displayed in the search guide area; the candidate recommendation keyword is at least one candidate keyword related to the central keyword and used for search recommendation; Among them, for each candidate recommended keyword, the display position distance corresponding to the candidate recommended keyword is related to the word association; the display position distance is the distance between the display position of the candidate recommended keyword and the display position of the central keyword; the word association refers to the correlation between the candidate recommended keyword and the central keyword.
3. The method according to claim 2, characterized in that The candidate recommended keywords are keywords that have a graph relationship with the central keyword in the pre-built knowledge graph; the word association is represented by the distance of the graph relationship path; The step of displaying at least one candidate recommendation keyword related to the central keyword in the search guide area according to the word association between each candidate recommendation keyword and the central keyword includes: Displaying at least one candidate recommended keyword related to the central keyword in the search guide area according to the distance of the graph relationship path between each candidate recommended keyword and the central keyword; Among them, for each candidate recommended keyword, the display position distance corresponding to the candidate recommended keyword is positively correlated with the distance of the current graph relationship path, and the current graph relationship path is the graph relationship path between the candidate recommended keyword and the central keyword.
4. The method according to claim 1, wherein The method of displaying, in response to an input search text, a central keyword in the search text and at least one candidate recommended keyword related to the central keyword in a search guide area on a search result page corresponding to the search text, includes: In response to an input search text, displaying a central keyword in the search text in a first area in the search guide area; In the second area of the search guide area, at least one candidate recommendation keyword related to the central keyword is displayed.
5. The method according to claim 4, characterized in that The first area is a circular area; the second area includes a partial area of at least one concentric circle; the center of the concentric circle is the center of the circular area; each of the concentric circles surrounds the circular area; The step of displaying at least one candidate recommended keyword related to the central keyword in the second area of the search guide area includes: Displaying at least one candidate recommendation keyword related to the central keyword on each of the concentric circles according to the word association between each candidate recommendation keyword and the central keyword; For each candidate recommendation keyword, the radius of the concentric circle where the candidate recommendation keyword is located is related to the word association degree.
6. The method according to claim 1, wherein The central keyword is displayed in a first area of the search guide area; the candidate recommended keywords are displayed in a second area of the search guide area; the keyword selection operation includes a keyword movement operation; The step of displaying the mixed search relationship between the at least one target recommended keyword and the central keyword in response to a keyword selection operation on at least one target recommended keyword among the candidate recommended keywords includes: In response to a keyword move operation on at least one target recommended keyword among the candidate recommended keywords, moving the target recommended keyword from the second area to the first area; In a case where the target recommended keyword moves to the first area, a mixed search relationship between the at least one target recommended keyword and the central keyword is displayed in the first area.
7. The method according to claim 6, characterized in that When the target recommended keyword moves to the first area, displaying the mixed search relationship between the at least one target recommended keyword and the central keyword in the first area includes: In a case where the target recommended keyword is moved to the first area, in response to the keyword moving operation being completed, displaying the central keyword at a center position of the first area, and displaying the at least one target recommended keyword at a position where the keyword moving operation is completed; There is a mixed search relationship between the central keyword displayed at the center position of the first area and the at least one target recommended keyword displayed at the position where the keyword moving operation ends.
8. The method according to claim 7, characterized in that The method further comprises: For each target recommended keyword, a new candidate recommended keyword is displayed at the original position of the target recommended keyword in the second area before being moved.
9. The method according to claim 1, characterized in that The method further comprises: In response to the input search text, displaying recommended search sentences matching the central keyword in the recommendation area; In the case of displaying the hybrid search relationship, displaying a recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship in a recommendation area on the search results page includes: In the case of displaying the hybrid search relationship, the recommended search statement displayed in the recommendation area and matching the central keyword is replaced with a recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship.
10. The method according to claim 1, characterized in that The advanced recommended keyword is at least one recommended keyword selected again from among the candidate recommended keywords except the target recommended keyword; the method further includes: When the advanced hybrid search relationship is displayed, the recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship displayed in the recommendation area is replaced with a recommended search statement corresponding to at least one keyword combination matching the advanced hybrid search relationship.
11. The method according to claim 10, characterized in that The step of replacing, in the case where the advanced hybrid search relationship is displayed, a recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship displayed in the recommendation area with a recommended search statement corresponding to at least one keyword combination matching the advanced hybrid search relationship includes: In the case of displaying the advanced hybrid search relationship, determining the priority recommendation level corresponding to each keyword combination matching the advanced hybrid search relationship according to the distance between the display position of the target recommended keyword and the display position of the central keyword, and the distance between the display position of the advanced recommended keyword and the display position of the central keyword; According to the priority recommendation levels corresponding to each keyword combination matching the advanced hybrid search relationship, the recommended search statements corresponding to at least one keyword combination matching the hybrid search relationship displayed in the recommendation area are replaced by the recommended search statements corresponding to each keyword combination matching the advanced hybrid search relationship.
12. The method according to claim 1, characterized in that The method further comprises: In response to a trigger operation for the recommended search statement, the recommended search statement is used as the input search text for a new round of search, and the steps of displaying the central keyword in the search text and displaying at least one candidate recommended keyword related to the central keyword in the search guide area in the search results page corresponding to the search text in response to the input search text are executed.
13. The method according to any one of claims 1 to 12, characterized in that The method further comprises: Obtaining an initial recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship; Taking the initial recommended search statement as the current recommended search statement, and determining the similarity between any two current recommended search statements during this round of iterative merging; For each pair of currently recommended search statements, merging the pair of currently recommended search statements whose similarities satisfy a similarity close condition to obtain a merged recommended search statement; The merged recommended search statement is used as the current recommended search statement, the next round is used as the current round, and the step of determining the similarity between any two current recommended search statements in the iterative merging process of the current round is returned to iterative execution until the similarity between any two current recommended search statements does not meet the similarity proximity condition, and the merged recommended search statement obtained in the last round of iterative merging process is used as the recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship.
14. A search statement recommendation device, characterized in that: The device comprises: A display module, configured to, in response to an input search text, display a central keyword in the search text and at least one candidate recommended keyword related to the central keyword in a search guide area of a search result page corresponding to the search text; The display module is further configured to display a mixed search relationship between at least one target recommended keyword and the central keyword in response to a keyword selection operation on at least one target recommended keyword among the candidate recommended keywords; The display module is further configured to display, in a recommendation area on the search results page, a recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship when displaying the hybrid search relationship; each keyword combination includes at least one of the at least one target recommended keyword and the central keyword; The display module is further configured to display an advanced mixed search relationship among the at least one target recommended keyword, the advanced recommended keyword, and the central keyword in response to a keyword selection operation on an advanced recommended keyword among the candidate recommended keywords; The display module is also used to display the recommended search statements corresponding to each keyword combination matching the advanced hybrid search relationship according to the priority recommendation level corresponding to each keyword combination when displaying the advanced hybrid search relationship; the priority recommendation level is determined based on the distance between the display position of the target recommended keyword and the display position of the central keyword, and the distance between the display position of the advanced recommended keyword and the display position of the central keyword.
15. The search phrase recommendation device according to claim 14, wherein: The display module is also used to display the central keyword in the search text in the search guide area of the search result page corresponding to the search text in response to the input search text; display at least one candidate recommendation keyword related to the central keyword in the search guide area according to the word association between each candidate recommendation keyword and the central keyword; the candidate recommendation keyword is at least one candidate keyword related to the central keyword and used for search recommendation; wherein, for each candidate recommendation keyword, the display position distance corresponding to the candidate recommendation keyword is related to the word association; the display position distance is the distance between the display position of the candidate recommendation keyword and the display position of the central keyword; the word association refers to the correlation between the candidate recommendation keyword and the central keyword.
16. The search phrase recommendation device according to claim 15, characterized in that: The candidate recommended keywords are keywords that have a graph relationship with the central keyword in a pre-constructed knowledge graph; the word association is represented by the distance of the graph relationship path; the display module is also used to display at least one candidate recommended keyword related to the central keyword in the search guide area according to the distance of the graph relationship path between each candidate recommended keyword and the central keyword; wherein, for each candidate recommended keyword, the display position distance corresponding to the candidate recommended keyword is positively correlated with the distance of the current graph relationship path, and the current graph relationship path is the graph relationship path between the candidate recommended keyword and the central keyword.
17. The search phrase recommendation device according to claim 14, wherein: The display module is also used to display a central keyword in the search text in a first area of the search guide area in response to an input search text; and to display at least one candidate recommended keyword related to the central keyword in a second area of the search guide area.
18. The search phrase recommendation device according to claim 17, wherein: The first area is a circular area; the second area includes a partial area of at least one concentric circle; the center of the concentric circle is the center of the circular area; each of the concentric circles surrounds the circular area; the display module is also used to display at least one candidate recommended keyword related to the central keyword on the arc of each concentric circle according to the word association between each candidate recommended keyword and the central keyword; wherein, for each candidate recommended keyword, the radius of the concentric circle where the candidate recommended keyword is located is related to the word association.
19. The search phrase recommendation device according to claim 14, wherein: The central keyword is displayed in the first area of the search guide area; the candidate recommended keywords are displayed in the second area of the search guide area; the keyword selection operation includes a keyword moving operation; the display module is also used to respond to a keyword moving operation for at least one target recommended keyword among the candidate recommended keywords, and move the target recommended keyword from the second area to the first area; when the target recommended keyword is moved to the first area, the mixed search relationship between the at least one target recommended keyword and the central keyword is displayed in the first area.
20. The search phrase recommendation device according to claim 19, wherein: The display module is also used to display the central keyword at the center position of the first area and display the at least one target recommended keyword at the position where the keyword moving operation ends in response to the completion of the keyword moving operation when the target recommended keyword moves to the first area; wherein, there is a mixed search relationship between the central keyword displayed at the center position of the first area and the at least one target recommended keyword displayed at the position where the keyword moving operation ends.
21. The search phrase recommendation device according to claim 20, wherein: The display module is further configured to display, for each target recommended keyword, a new candidate recommended keyword at the original position of the target recommended keyword before being moved within the second area.
22. The search phrase recommendation device according to claim 14, wherein: The display module is also used to display a recommended search statement matching the central keyword in the recommendation area in response to the input search text; when displaying the mixed search relationship, the recommended search statement matching the central keyword displayed in the recommendation area is replaced with a recommended search statement corresponding to at least one keyword combination matching the mixed search relationship.
23. The search phrase recommendation device according to claim 14, wherein: The advanced recommended keyword is at least one recommended keyword selected again from the candidate recommended keywords except the target recommended keyword; the display module is also used to replace the recommended search statement corresponding to at least one keyword combination matching the mixed search relationship displayed in the recommendation area with a recommended search statement corresponding to at least one keyword combination matching the advanced mixed search relationship when displaying the advanced mixed search relationship.
24. The search phrase recommendation device according to claim 23, wherein: The display module is also used to determine the priority recommendation level corresponding to each keyword combination matching the advanced hybrid search relationship based on the distance between the display position of the target recommended keyword and the display position of the central keyword, and the distance between the display position of the advanced recommended keyword and the display position of the central keyword when displaying the advanced hybrid search relationship; and replace the recommended search statements corresponding to each keyword combination matching the advanced hybrid search relationship with the recommended search statements corresponding to at least one keyword combination matching the hybrid search relationship displayed in the recommendation area according to the priority recommendation level corresponding to each keyword combination matching the advanced hybrid search relationship.
25. The search phrase recommendation device according to claim 14, wherein: The display module is also used to respond to a trigger operation on the recommended search statement, use the recommended search statement as the input search text for a new round of search, and execute the steps of displaying the central keyword in the search text and displaying at least one candidate recommended keyword related to the central keyword in the search guide area in the search results page corresponding to the search text in response to the input search text.
26. The search phrase recommendation device according to any one of claims 14 to 25, characterized in that: The apparatus further includes a merging module configured to obtain an initial recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship; use the initial recommended search statement as a current recommended search statement, and determine the similarity between any two current recommended search statements during this round of iterative merging; For each pair of current recommended search statements, the pair of current recommended search statements whose similarities meet the similarity proximity condition are merged to obtain a merged recommended search statement; the merged recommended search statement is used as the current recommended search statement, and the next round is used as the current round, and the step of determining the similarity of any pair of current recommended search statements in the iterative merging process of the current round is returned to iterative execution until the similarity of any pair of current recommended search statements does not meet the similarity proximity condition, and the merged recommended search statement obtained in the last round of iterative merging process is used as the recommended search statement corresponding to at least one keyword combination matching the hybrid search relationship.
27. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 13 is implemented.
28. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 13 is implemented.
29. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 13 is implemented.
Citation Information
Patent Citations
A hot word recommendation method and apparatus
CN109271574A
Searching method and device, electronic equipment and storage medium
CN114329162A
Method and System for searching using Related Keywords of Searching object
KR1020160054785A