Method and device for generating search result page, equipment and medium

By obtaining the user's search request and filtering the keywords of the search object, a search result page containing the first information and the second information is generated, which solves the problem of user's difficulty in selecting multiple information and improves the efficiency of information acquisition.

CN119089055APending Publication Date: 2024-12-06ALIPAY (HANGZHOU) INFORMATION TECH CO LTD

Patent Information

Application Number
CN202411136565.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The existing method of generating search results pages is difficult to effectively help users select the required information from search results containing a variety of relevant information, which makes it difficult for users to choose.

Method used

By obtaining the user's search request, a search object matching the search information is determined, and a second information with a similarity less than or equal to a preset threshold is filtered from the keyword set of the search object based on the first information, and a second information including the first information and The search result page of the second information to provide a variety of non-repetitive information.

Benefits of technology

The generated search result page contains a variety of non-repetitive information, helping users to select required information or objects more conveniently, and improving user experience and information acquisition efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119089055A_ABST
    Figure CN119089055A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a method and device for generating a search result page, equipment and a medium. The scheme can comprise the steps of obtaining a search request generated based on a search operation of a user; the search request comprises search information provided by a user; based on the search information, determining a search object matched with the search information; based on the search information, determining first information which corresponds to the search object and is used for being displayed in a first area; based on the first information, determining second information used for being displayed in a second area from a keyword set corresponding to the search object; the similarity between the second information and the first information is smaller than or equal to a preset threshold value; and generating a search result page containing the first information and the second information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment and medium for generating a search result page. Background Art

[0002] With the development of computer technology, the Internet has brought more and more convenience to people's lives. For example, people can search for the information they want to know through the Internet, and can handle life affairs such as shopping and paying bills through small programs and terminal application APPs. As more and more information can be provided through the Internet, when people look for or search for the information they need, search results containing a large number of relevant information may appear, and people can choose the information they need from them. Therefore, how to provide a search result page that is more convenient for users to select the information they need is a technical problem that needs to be solved urgently. Summary of the invention

[0003] The embodiments of the present specification provide a method, apparatus, device and medium for generating a search result page to solve the problem that the existing generated search result page is inconvenient for users to select required information.

[0004] To solve the above technical problems, the embodiments of this specification are implemented as follows:

[0005] A method for generating a search result page provided by an embodiment of the present specification includes:

[0006] Obtaining a search request generated based on a user's search operation; the search request includes search information provided by the user;

[0007] Based on the search information, determining a search object matching the search information;

[0008] Based on the search information, determining first information corresponding to the search object for display in a first area;

[0009] Based on the first information, determining second information for display in the second area from a keyword set corresponding to the search object; the similarity between the second information and the first information is less than or equal to a preset threshold;

[0010] A search result page including the first information and the second information is generated.

[0011] An embodiment of the present specification provides a device for generating a search result page, including:

[0012] A search information acquisition module, used to acquire a search request generated based on a user's search operation; the search request includes search information provided by the user;

[0013] A search object determination module, used to determine a search object matching the search information based on the search information;

[0014] A first information determination module, configured to determine, based on the search information, first information corresponding to the search object for display in the first area;

[0015] A second information determination module, configured to determine, based on the first information, second information for display in the second area from a keyword set corresponding to the search object; the similarity between the second information and the first information is less than or equal to a preset threshold;

[0016] A page generation module is used to generate a search result page including the first information and the second information.

[0017] An embodiment of the present specification provides a device for generating a search result page, including:

[0018] at least one processor; and,

[0019] a memory communicatively connected to the at least one processor; wherein,

[0020] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

[0021] Obtaining a search request generated based on a user's search operation; the search request includes search information provided by the user;

[0022] Based on the search information, determining a search object matching the search information;

[0023] Based on the search information, determining first information corresponding to the search object for display in a first area;

[0024] Based on the first information, determining second information for display in the second area from a keyword set corresponding to the search object; the similarity between the second information and the first information is less than or equal to a preset threshold;

[0025] A search result page including the first information and the second information is generated.

[0026] An embodiment of the present specification provides a computer-readable medium on which computer-readable instructions are stored. The computer-readable instructions can be executed by a processor to implement a method for generating a search result page.

[0027] An embodiment of this specification can achieve the following beneficial effects:

[0028] Based on the search information provided by the user, the first information displayed in the first area corresponding to the search object can be determined, and the second information used for the information in the second area can also be determined based on the first information, and a search result page containing the first information and the second information is generated. Wherein, if the similarity between the second information and the first information is less than or equal to a preset threshold, it can be indicated that the second information and the first information are non-repetitive information, and the search result page generated in this way can contain a variety of non-repetitive information, that is, a variety of non-repetitive information for the search object can be provided to the user, which is more conducive to the user to select the required information or object. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0030] Figure 1 A schematic diagram of an application scenario of a method for generating a search result page in an embodiment of this specification;

[0031] Figure 2 A flowchart of a method for generating a search result page provided in an embodiment of this specification;

[0032] Figure 3 A schematic diagram of a search result page provided in an embodiment of this specification;

[0033] Figure 4 A schematic diagram of the structure of a device for generating a search result page provided in an embodiment of this specification;

[0034] Figure 5 A schematic diagram of the structure of a device for generating a search result page provided in an embodiment of the present specification. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solutions and advantages of one or more embodiments of this specification clearer, the technical solutions of one or more embodiments of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of one or more embodiments of this specification.

[0036] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0037] In order to solve the defects in the prior art, this solution provides the following embodiments:

[0038] Figure 1 FIG. 1 is a schematic diagram of an application scenario of a method for generating a search result page in an embodiment of this specification. Figure 1 As shown, the user can enter search information in the terminal page 1. For example, the user wants to search for a small program that provides mobile phone rental services and enters the word "rent a mobile phone" in the search bar. The server 2 can determine the search object that matches the search information based on the search information provided by the user. For example, it can determine multiple small programs that can provide mobile phone rental services, and it can also determine non-repetitive first information and second information corresponding to the search object, and generate a search result page. The terminal can display a search result page 3, which can include different descriptive information for the search object, such as information about the main functions of the determined small program, information about specific services that can be provided, and so on.

[0039] Next, a method for generating a search result page provided in an embodiment of the specification will be specifically described with reference to the accompanying drawings.

[0040] Figure 2 A flowchart of a method for generating a search result page provided in an embodiment of the present specification. From a program perspective, the execution subject of the process may be a program or application client installed on an application server. From a hardware perspective, the execution subject of the process may be a server or terminal with a function of generating a search page.

[0041] like Figure 2 As shown, the process may include the following steps.

[0042] Step 202: Obtain a search request generated based on a user's search operation; the search request includes search information provided by the user.

[0043] The search operation may refer to an operation performed by a user in a terminal to search for required information. In actual applications, a user may enter search information in a terminal, such as entering search information in a page of an application in the terminal, or entering search information in a web page, etc. A user may provide search information by entering text, or by voice, gesture, etc., or by selecting search information from optional information, etc. The search information may be one or more words, or may be information such as sentences, etc., and the method of providing the search information and the specific content are not specifically limited here.

[0044] The terminal may generate a search request according to the search information provided by the user and send it to the server. The server may provide search results that the user may need based on the search information included in the search request.

[0045] Step 204: Based on the search information, determine a search object that matches the search information.

[0046] The search object may represent an object that can provide the user with the required information or service, which can be provided by the platform or server providing the search function. In the embodiments of this specification, the search object may include a mini-program, a terminal application APP (Application), a merchant who can provide services, a product, etc.

[0047] In the embodiments of this specification, based on the search information, a search object that matches the search information can be determined. Among them, the search object that matches the search information can represent a search object that can provide the user with information or services related to the search information. For example, if a user wants to find a small program that can provide photo resizing in a terminal application, he can enter search information such as photo, take a photo, etc. The server can determine the small program that matches the search information from the various small programs contained in the terminal application based on the search information provided by the user, such as a small program that can adjust the photo size, a small program that can take a photo according to a preset size, etc.

[0048] Step 206: Based on the search information, determine first information corresponding to the search object for display in the first area.

[0049] The first area may represent a display area in the search results page for displaying information. For example, the search results page may include information such as the name or logo of the search object. The first area may be an area near the name or logo of the search object, and may be used to display first information related to the search object.

[0050] The first information may represent information related to the search object, such as introduction information for the search object, or product information, service information, discount information, etc. contained in the search object. In the embodiments of this specification, the first information for display in the search result page may be determined based on the search information provided by the user, and the first information may be information related to the search information in the information related to the search object.

[0051] For example, an application or mini program may provide a bicycle rental service or a car rental service. If the search information provided by the user is for bicycle rental, the first information may be information about the bicycle rental service provided by the application or mini program.

[0052] Step 208: Based on the first information, determine second information for display in the second area from a keyword set corresponding to the search object; the similarity between the second information and the first information is less than or equal to a preset threshold.

[0053] The second area may represent a display area in the search results page, and may be an area different from the first area. The keyword set corresponding to the search object may include multiple keywords for the search object, such as keywords used to describe the function of the search object, keywords used to describe the reputation of the search object, etc. In the embodiment of this specification, second information whose similarity with the first information is less than or equal to a preset threshold can be obtained from the keyword set based on the first information, that is, the second information and the first information may not be repeated.

[0054] Step 210: Generate a search result page including the first information and the second information.

[0055] The search results page may represent a page containing search results information obtained for the search information, and the page may be displayed on the terminal, from which the user may obtain the information that he wants to search. In practical applications, the server may send various information used to generate the search results page to the terminal, and the terminal may render and display the search results page based on a preset page architecture; the server may also generate the search results page and send it to the terminal, and the terminal may render and display the search results page. If the terminal has search capabilities, the terminal may also complete the above steps of generating the search results page. The specific page generation method is not specifically limited here, as long as a search results page containing non-repetitive first information and second information can be obtained.

[0056] It should be understood that the order of some steps in the methods described in one or more embodiments of this specification can be interchanged according to actual needs, or some steps can be omitted or deleted.

[0057] Figure 2 In the method, based on the search information provided by the user, the first information displayed in the first area corresponding to the search object can be determined, and the second information used for the information in the second area can be determined based on the first information, and a search result page containing the first information and the second information is generated. Wherein, the similarity between the second information and the first information is less than or equal to the preset threshold, which can indicate that the second information and the first information are non-repetitive information, so that the generated search result page can contain a variety of non-repetitive information, that is, a variety of non-repetitive information for the search object can be provided to the user, which is more conducive to the user to select the required information or object.

[0058] Moreover, in actual applications, the amount of information that can be displayed in a display page is usually limited. In the embodiment of the present specification, the similarity between the second information and the first information is less than or equal to a preset threshold, so that the search results page can contain a variety of non-repetitive information, making full use of the display area. That is, in a limited display area, the user can see more different dimensions or introductory information for the search object, which is also more conducive to the user's understanding of the search object from multiple aspects. The user can judge whether it is the search object he needs based on the different information displayed in the search results page, which helps the user make quick and accurate choices.

[0059] based on Figure 2 The method, the examples of this specification also provide some specific implementation plans of the method, which are described below.

[0060] Optionally, determining a search object matching the search information based on the search information may specifically include the following steps:

[0061] Based on the search information, a search object matching the search information is determined from a database of first introduction information containing multiple optional search objects; the first introduction information includes at least one of the name information, description information, available service information, available product information, and available discount information of the optional search object.

[0062] Among them, the optional search objects can represent objects that can be searched, such as various mini-programs included in the terminal application, various applications downloaded and installed in the terminal or applications already installed in the terminal, various service providers or merchants that can provide services in the service platform, or various commodities that can be provided by a service provider, etc.

[0063] The description information may include information about the functions of the optional search object, and may also include information about the service provider of the searchable object. The available service information may indicate information about the services that can be provided in the searchable object, such as the service name that indicates the services that can be provided, or the name of the operable service control provided in the searchable object, etc. The available commodity information may indicate information about the commodities sold in the searchable object, such as the commodity name, commodity introduction information, etc., or may be link information that can lead to the purchase page of the commodity that can be sold, etc. The available discount information identifies information about the discount activities provided in the optional search object, such as full-reduction information, discount information, etc.

[0064] The database of the first introduction information may include the first introduction information of multiple optional search objects. In the embodiment of the present specification, the search objects matching the search information may be determined from the database of the first introduction information according to the search information provided by the user. The existing matching algorithm may be used for matching, for example, a semantic analysis model, a text matching model or other model capable of information matching may be used to determine the matching degree between the search information and the first introduction information of each optional search object, and a preset number of optional search objects with high matching degrees may be selected as the search objects matching the search information.

[0065] In actual applications, different weight values ​​can be set for the information of each dimension in the first introduction information, the matching degree between the search information and the information of each dimension can be calculated, and then the overall matching degree can be determined based on the corresponding weight values. Based on the overall matching degree of each optional search object, a preset number of optional search objects with high overall matching degree can be selected as search objects matching the search information. If multiple search objects are determined, they can also be arranged and displayed in descending order according to the matching degree.

[0066] The first introduction information may be various information about the searchable object provided by the service provider of the searchable object, or may be information extracted from various display pages of the searchable object. For example, a page information crawler may be used to crawl information from various pages of the optional search object to determine the name and description information of the searchable object, or to determine the service information, product information, discount information, etc. that may be provided in the optional search object.

[0067] In order to improve the efficiency of the search in the embodiments of this specification, the first introduction information of each optional search object can be saved in a database, and when searching, the database can be searched. To ensure the accuracy of the search results, the information contained in the database of the first introduction information can be updated according to a preset period, which is also conducive to providing effective information to the user. In actual applications, the first introduction information displayed in the optional search object can also be directly matched based on the search information to determine the search object that matches the search information.

[0068] In the embodiments of this specification, if multiple search objects are determined, they can also be grouped according to the categories to which each search object belongs and displayed according to the categories. For example, if a user performs a search operation in a terminal application, the terminal application includes a mini-program, and also includes video services for publishing or playing videos, financial services for providing financial services, citizen services for providing public services, and other different categories of services. The server can match the optional search objects contained in each category based on the search information provided by the user, and obtain the search objects under each category. The terminal can display the search objects according to each category. In actual applications, if the degree of match between the optional search objects contained in any category in each category and the search information is low, the obtained search object may not include the optional search objects under the arbitrary category.

[0069] In actual applications, users can also input search information under specific categories, and the server can determine the search object that matches the search information from the optional search objects contained in the category. Users can also provide search category information after providing the search information. For example, the display page can include optional category information, and the user can select the required category. The server can determine the search object under the category based on the category information provided by the user.

[0070] Optionally, in the embodiments of this specification, determining the first information corresponding to the search object for display in the first area based on the search information may specifically include the following steps:

[0071] Acquire a set of business information corresponding to the search object and capable of being displayed in the first area;

[0072] Based on the search information, several business information matching the search information are determined from the business information set; the business information includes at least one of service information, product information and discount information that can be provided by the search object.

[0073] In the embodiments of this specification, a model with a text matching function, such as a text matching model and a semantic analysis matching model, can be used to determine a number of business information that matches the search information from a business information set based on the search information. The determined number of business information can be used as the first information for information display in the first area. Specifically, the search information can be matched with each business information contained in the business information set to determine the matching degree corresponding to each business information, and the business information with a matching degree greater than or equal to a preset threshold can be selected as the first information. The business information can also be sorted according to the matching degree, and a preset number of business information with a matching degree can be selected as the first information. In actual applications, the business information set can also be an empty set, or there is no business information with a matching degree greater than or equal to a preset threshold, so that the first information corresponding to the search object can be empty, that is, the first information can also not be displayed in the search results page.

[0074] Among them, the business information may represent information about various business services that the search object can provide, such as service information that the search object can provide, commodity information that can be provided, discount information that can be provided, etc. As an implementation method, the business information may be determined from the service page provided by the search object, and may correspond to the operation controls contained in the service page provided by the search object. Specifically, a crawler tool may be used to extract information about the operation controls corresponding to the business information such as services, commodities, discount information, etc. contained in the search object, and the display text information corresponding to the controls that provide the business information may be saved as business information in the business information collection.

[0075] In order to facilitate user operation, the first information displayed in the first area may also be operable control information, such as the information of the control corresponding to the above-mentioned service, product, and discount information. The corresponding business operation control can be determined according to the text information of each matched business information, and the business operation control is displayed in the first area. Among them, the control information displayed in the first area may be consistent with the text information corresponding to the control included in the search object, and the control information displayed in the first area may also be associated with the page corresponding to the control included in the search object. When the user clicks the control information displayed in the first area, the terminal can also access the corresponding page.

[0076] In order to provide more effective information to users, the first information displayed in the first area can also be non-repetitive information. The above-mentioned business information set can include several non-repetitive business information. In practical applications, the first information displayed in the first area can also be determined based on the number of times the business information is used. For example, the popular business information can be determined based on the historical user usage of each business in the search object, and the popular business information can be used as the first information displayed in the first area. The first information to be displayed in the first area can also be determined based on the search information provided by the user and the usage of each business in the search object.

[0077] As an implementation method, the first information in the embodiment of this specification may be the control name information of the business control that can be operated and provided in the search object. The first information displayed in the search results page may be an operable control. If the user clicks on the location where the first information is displayed, the user can enter the corresponding business page, and the terminal can display the business page associated with the first information.

[0078] The first information may specifically include the name information of the service control corresponding to the service that can be provided in the search object. For example, if the search object contains a control for providing users with the service of renting a mobile phone, the user can click the control to enter the service page that provides the mobile phone rental service, and the terminal can display the service page. The first information may also include information about a product control associated with a product information page of a product that can be provided in the search object. If the user clicks the control, the terminal can display the corresponding product information page, such as a product introduction page, a page where the product can be purchased, etc. The first information may also include control information for claiming preferential resources that can be provided in the search object. If the user clicks the control, the terminal can display a page for preferential resources in the field, or it can also send preferential resources to the user account, such as coupons and other resources.

[0079] In the embodiment of the present specification, a keyword set for the search object can also be generated based on the relevant information of the search object, and the keyword set can include feature information of the search object. Optionally, before determining the second information for display in the second area from the keyword set corresponding to the search object, the following steps can be included:

[0080] Acquire second introduction information for the search object; the second introduction information includes introduction information for the search object provided by the service provider of the search object and / or evaluation information for the search object provided by the service recipient of the search object;

[0081] Keywords are extracted from the second introduction information to obtain a keyword set corresponding to the search object.

[0082] The introduction information provided by the service provider for the search object may include description information for the search object, service information that the search object can provide, product information that can be provided, discount information that can be provided, etc. In actual applications, the introduction information for the search object can also be extracted from the service page of the search object. For details, please refer to the above-mentioned related introduction, which will not be repeated here.

[0083] The evaluation price information may indicate the evaluation information of the service recipient on the search object, which may be obtained based on the user's authorization.

[0084] The keywords may be words, short sentences, etc. contained in the second introduction information, or may be words, short sentences, etc. obtained by semantic arrangement and induction based on the second introduction information.

[0085] As an implementation manner, the step of extracting keywords from the second introduction information specifically includes the following steps:

[0086] Utilizing a natural language processing model, keywords are extracted from the second introduction information; the keywords include at least one of text used to represent the core functions of the search object, text used to represent the service features of the search object, text used to represent the product information that can be provided by the search object, text used to represent the preferential information that can be provided by the search object, and text used to represent that the number of times the keywords appear in the evaluation information is greater than or equal to a preset number of times.

[0087] Among them, the natural language processing model can be some existing natural language processing models, such as keyword extraction models based on statistical features, such as TF (Term Frequency), TF-IDF (term frequency-inverse document frequency), etc.; keyword extraction models based on word graph models, such as PageRank, TextRank, etc.; keyword extraction models based on topic models, such as LDA (Latent Dirichlet Allocation, document topic generation model), etc., and keyword extraction models such as Word2Vec word clustering, etc.

[0088] The natural language model can also be a keyword extraction model trained based on the corresponding introduction information of the same type as the search object. It can also be a large language model, such as a large language model such as GPT. The specific type of the natural language model is not limited here, as long as it can extract keywords from the second introduction information.

[0089] To ensure that the user can obtain as much different information as possible in the search results page, in the embodiment of this specification, the obtained keywords can also be deduplicated so that the second area can display non-repeated keywords. Optionally, extracting keywords from the second introduction information to obtain a keyword set corresponding to the search object can specifically include the following steps:

[0090] extracting keywords from the second introduction information;

[0091] The extracted keywords are deduplicated to obtain a keyword set corresponding to the search object.

[0092] Keyword deduplication can refer to the process of removing duplicate keywords in the text processing process in order to improve the quality of data and analysis efficiency. In the embodiments of this specification, some existing deduplication methods can be used to deduplicate keywords, and a network model for keyword deduplication can also be constructed or trained according to actual needs. Deduplication can be performed based on the structure and / or semantics of the keywords. For example, the similarity between any keyword and other keywords extracted from each keyword can be calculated based on the text structure and / or semantics of the keywords. If there is a keyword in other keywords whose similarity to the arbitrary keyword is greater than or equal to a preset threshold, the arbitrary keyword can be deleted, and so on to obtain a number of keywords whose similarity is less than the preset threshold, that is, non-duplicate keywords.

[0093] In practical applications, deduplication can be performed based on the data structure of the set. For example, deduplication can be performed using the Set or HashSet data structure, which can store non-repeated elements, that is, non-repeated keywords. Deduplication can also be performed based on programming language-specific methods, such as using Set and deconstruction assignment in ES6, using for loops and splice methods, using the indexOf method to dedupe, using sort() and adjacent element comparison to dedupe, etc. Deduplication can also be performed using database query languages, such as the GROUP BY and DISTINCT keywords in SQL can be used to remove duplicate records. Deduplication can also be performed using text processing tools, such as the deduplication function in Excel, the deduplication plug-in or function of a text editor, etc.

[0094] In practical applications, natural language processing (NLP) technology can also be used for deduplication, such as a text semantic deduplication algorithm based on keyword graph representation. This method considers the semantic relationship of keywords in the text and uses deep learning models such as graph attention network (GAT). Machine learning and deep learning models can also be used for deduplication, such as using neural network models such as LSTM, GRU or Transformer to understand and distinguish keywords in the text, thereby achieving deduplication; for example, pre-trained natural language processing models such as BERT, RoBERTa, etc. can be used to identify and process repeated keywords. Statistical and probabilistic methods can also be used for deduplication, such as using TF-IDF and other technologies to evaluate the importance of keywords, so as to decide which keywords to retain and which to remove. Artificial intelligence-assisted tools can also be used for deduplication, such as intelligent weight reduction tools, such as Passyyds's intelligent weight reduction model, etc. The specific deduplication method is not specifically limited in the embodiments of this specification, and can be set according to actual needs.

[0095] In the embodiments of this specification, the second information that can be displayed on the search results page can be determined based on the similarity between the keyword and the first information. Optionally, the second information to be displayed in the second area is determined from the keyword set corresponding to the search object based on the first information, and specifically includes the following steps:

[0096] Acquire a first keyword from the keyword set, and determine a similarity between the first keyword and the first information;

[0097] If the similarity is less than or equal to a preset threshold, the first keyword is determined as the second information to be displayed in the second area.

[0098] Among them, the first keyword can represent any keyword in the keyword set. In the embodiment of this specification, the similarity between the first keyword and the first information can be determined based on the keyword and the text structure and / or semantics of the first information. Specifically, a computer model capable of calculating text similarity can be used for calculation. The preset threshold can be set according to actual needs, for example, it can be 0.7, 0.6, or 0.9 or 1, etc., and the specific value is not limited here.

[0099] In actual applications, the preset threshold can also be determined based on the number of keywords included in the keyword set. If the number of keywords included in the keyword set is large, the preset threshold can be set smaller. If the number of keywords included in the keyword set is small, the preset threshold can be set larger. This is to determine the keywords that can be displayed in the second area, so that the second area can be fully utilized to display as many complete display keywords as possible.

[0100] In the embodiments of this specification, natural language processing (NLP) tools can be used to determine similarity. Specifically, similarity can be determined based on statistical methods, such as TF-IDF (Term Frequency-Inverse Document Frequency). Vector space data can be combined to calculate the similarity between different text vectors. For example, Word2Vec is a neural network model that predicts target words through context or predicts context through target words, converts words into dense vector representations, and facilitates the calculation of similarity between words or sentences. For example, LSA (Latent Semantic Analysis) and LSI (Latent Semantic Indexing) can use singular value decomposition (SVD) to reduce dimensions and discover implicit topic structures in texts, and then calculate similarity. BM25 is an information retrieval ranking function that takes into account factors such as word frequency, inverse document frequency, and document length.

[0101] The similarity can also be determined based on deep learning methods, such as using deep network models such as convolutional neural networks, recurrent neural networks, long short-term memory networks, gated recurrent units, and Transformer models to automatically learn complex representations of texts. By training these models, the performance of similarity calculations of these models can be optimized, and the network models that can calculate similarity after training can be used to calculate similarity. For example, BERT (Bidirectional Encoder Representations from Transformers) and other pre-trained models can be used. These models are pre-trained on a large amount of text and can generate high-quality text embeddings. Models that can calculate text similarity can be trained.

[0102] The similarity between the first keyword and the first information can also be determined by calculating the ratio of the intersection and the union of the first keyword and the first information. The similarity can also be determined based on the edit distance between the first keyword and the first information, where the edit distance is the minimum number of edit operations that measures the difference between two character strings.

[0103] In practical applications, similarity can also be determined based on knowledge graphs, such as semantic similarity based on Wikipedia link features, where the link structure of Wikipedia can be used to construct a feature vector of a word and calculate semantic similarity. The specific method for determining similarity is not specifically limited in the embodiments of this specification, as long as the similarity can be determined.

[0104] As an implementation manner, the method in the embodiment of this specification may further include the following steps:

[0105] Constructing a knowledge graph of each keyword in the keyword set and the first information;

[0106] Based on the knowledge graph, determine the similarity between each keyword in the keyword set and the first information.

[0107] Knowledge Graph is a semantic network used to describe the relationship between entities. It is a representation method of semi-structured data, used to describe entities, attributes and relationships between entities. The core idea of ​​knowledge graph is to convert information into graphs, where nodes represent entities and edges represent relationships between entities. Knowledge graph is not only a graphical knowledge base, it also contains semantic descriptions of entities and relationships, which can be understood and processed by computers. In the embodiments of this specification, each keyword and the first information can be used as an entity in the knowledge graph, and the lines between each keyword and the first information can represent the relationship between entities.

[0108] The keywords and the first information contained in the keyword set in the embodiment of this specification can be information such as words and short sentences. If it is a word, the word can be used as an entity in the knowledge graph. If it is a short sentence, the entity can be extracted as an entity in the knowledge graph. Among them, the identification of entities in the text can be completed by named entity recognition technology. The entity may include information for representing things such as product names, service names, functions, events, etc. Then, the relationship between entities can be extracted based on the introduction information for the search object, such as the first introduction information and the second introduction information mentioned above. Among them, it can be achieved by relationship extraction technology, the purpose of which is to identify the relationship type between entities, such as working relationship, ownership relationship, inclusion relationship, etc. It is also possible to extract the key features of the text based on entities and relationships, including the attributes of the entity, the conceptual hierarchy, etc. Then the identified entities and relationships are constructed into a knowledge graph. Find the shortest path or multiple paths between entities in the knowledge graph, and the length and nature of the path can reflect the closeness of the connection between the entities.

[0109] In practical applications, similarity can be determined based on paths. Specifically, the length of the shortest path between two entities can be calculated. The shorter the path, the higher the similarity. Similarity can also be determined based on information content. Specifically, it can be calculated based on the frequency of occurrence of concepts in the knowledge graph. More specific or less common concepts will be given higher weights, which reflects the degree of exclusivity of the concepts. Similarity can also be determined based on semantic roles. Specifically, the role of the entity in the relationship, such as the active or passive, can be considered. Similarity can also be determined based on common contexts. Specifically, if two entities often appear in the same context, their similarity may be higher. In practical applications, the above different similarity calculation methods can also be combined to give a final similarity score.

[0110] In order to better meet the user's search needs, the embodiment of this specification can also determine the keywords for display in the second area according to the search information provided by the user. Optionally, the method in the embodiment of this specification can also include the following steps:

[0111] Based on the search information, determining a matching degree between each keyword in the keyword set and the search information;

[0112] Based on the matching degree, each keyword in the keyword set is sorted to obtain sorted keywords.

[0113] Among them, the matching degree between each keyword in the keyword set and the search information can be determined based on semantic analysis. For example, a supervised learning training model can be used to determine the correlation between each keyword and the search information file using the trained model. The correlation can represent the matching degree, and the higher the correlation, the higher the matching degree. Deep learning models, such as neural networks, can also be used to capture the semantic relationship and contextual information of keywords to determine the matching degree between keywords and search information. Knowledge graphs can also be used to determine the matching degree between each keyword and search information. Some existing matching degree calculation methods can also be used to determine the matching degree between each keyword and search information. The specific matching degree calculation method is not limited here, as long as the matching degree between each keyword and search information can be determined.

[0114] The obtaining of the first keyword from the keyword set may specifically include:

[0115] According to the sorting order of each keyword, the first keyword is obtained from the sorted keywords.

[0116] In the embodiment of the present specification, each keyword can be sorted in order from high to low in terms of matching degree, and a first keyword can be obtained from the sorted keywords in the sorted order, and the similarity between the obtained first keyword and the first information displayed in the first area is determined. If the similarity is less than or equal to a preset threshold, the first keyword can be determined as the second information displayed in the second area. If the similarity is greater than the preset threshold, a keyword located after the first keyword can be obtained from the sorted keywords in the sorted order, and then the similarity between the keyword and the first information displayed in the first area is determined. If the similarity between the keyword and the first information displayed in the first area is less than or equal to the preset threshold, the keyword can also be determined as the second information displayed in the second area. If the similarity between the keyword and the first information displayed in the first area is greater than the preset threshold, other keywords located after the keyword can be obtained from the sorted keywords in the sorted order. By analogy, one or more keywords for display in the second area can be obtained. In this way, keywords matching the search information can be displayed as much as possible in the second area, which is also conducive to users selecting the required objects from the search results.

[0117] In actual applications, if only one keyword needs to be displayed, the step of determining the keyword can be terminated after determining one keyword; if multiple keywords can be displayed, other keywords can be determined after determining one keyword. For example, if the first keyword is determined to be the second information displayed in the second area, the keyword after the first keyword can be obtained from the sorted keywords in the sorted order. If it is determined that the keyword after the first keyword is the second information displayed in the second area, other keywords can be obtained from the sorted keywords in the sorted order.

[0118] It is understandable that in actual applications, the keywords can be sorted in order of matching degree from low to high, and then the first keyword can be obtained from the end of the sorting, and the second keyword before the first keyword can be obtained, and so on, so that the keywords matching the search information can be displayed as much as possible in the second area. The specific sorting method is not limited here.

[0119] In actual applications, in order to ensure that the user can clearly know the information displayed on the page, the information displayed on the terminal display page is usually limited. In order to ensure that the user can obtain complete information, the second information to be displayed in the second area can also be determined according to the size of the second area. Optionally, the method in the embodiment of this specification can also include the following steps:

[0120] determining the number of first characters of the first keyword;

[0121] Determining the remaining number of characters that can be displayed in the second area based on the first number of characters and the total number of characters that can be displayed in the second area;

[0122] Acquire a second keyword from the keyword set;

[0123] Determining whether the number of second characters of the second keyword is less than or equal to the number of remaining characters that can be displayed in the second area;

[0124] If the second number of characters is less than or equal to the remaining number of characters, the second keyword is determined as the second information to be displayed in the second area.

[0125] The first keyword and the second keyword may be keywords randomly selected from the keyword set, or keywords determined from the above-mentioned sorted keywords. In practical applications, the total number of characters that can be displayed in the second area may be known, or the total number of characters that can be displayed in the second area may be determined based on the size of the second area and the font and font size of the information displayed in the second area.

[0126] The number of remaining characters may represent the number of character information that can be displayed in the second area. In practical applications, the number of remaining characters may be obtained by subtracting the number of first characters of the first keyword from the total number of characters that can be displayed in the second area. To ensure that the user can clearly obtain the information displayed in the second area, a blank area may be reserved in the second area for separating different keywords. In this way, the number of remaining characters may be obtained by subtracting the number of first characters of the first keyword and the number of preset blank characters from the total number of characters that can be displayed in the second area.

[0127] In the embodiment of the present specification, the second keyword that can be displayed in the second area can be determined based on the number of first characters of the determined first keyword and the total number of characters that can be displayed in the second area, so that the second area can fully display multiple keywords, allowing users to obtain more complete information and improving user experience.

[0128] In actual applications, if the number of the second characters of the acquired second keyword is greater than the number of remaining characters that can be displayed in the second area, a third keyword with a smaller number of characters than the second character of the second keyword may be selected from other keywords except the first keyword and the second keyword, and the third keyword may be used as the second information to be displayed in the second area. The selected third keyword may be any keyword selected from other keywords except the first keyword and the second keyword, or may be a keyword selected from the ranked keywords obtained above in the ranked order.

[0129] As another implementation, after determining the number of remaining characters that can be displayed in the second area, a keyword with a number of characters less than or equal to the number of remaining characters can be selected from the keyword set based on the number of remaining characters as the second information to be displayed in the second area. Specifically, the method in the embodiment of this specification may also include the following steps:

[0130] determining the number of first characters of the first keyword;

[0131] Determining the remaining number of characters that can be displayed in the second area based on the first number of characters and the total number of characters that can be displayed in the second area;

[0132] Based on the remaining number of characters, a fourth keyword is selected from the keyword set, the number of characters of the fourth keyword being less than or equal to the remaining number of characters.

[0133] The fourth keyword and the first keyword are different keywords in the keyword set. The fourth keyword can be selected randomly or selected from the ranked keywords obtained above in the ranked order.

[0134] If there is no keyword in the keyword set whose number of characters is less than or equal to the number of remaining characters that can be displayed in the second area, only the first keyword may be used as the second information to be displayed in the second area.

[0135] In actual applications, after determining the second keyword or the fourth keyword, the remaining number of characters that can be displayed in the second area can be updated based on the number of characters of the second keyword or the fourth keyword, and other keywords that can be fully displayed can continue to be selected from the keyword set based on the updated remaining number of characters, so that as many complete keywords as possible can be displayed in the second area.

[0136] To more clearly illustrate the method for generating a search result page provided in the embodiments of this specification, Figure 3 A schematic diagram of a search result page provided in an embodiment of this specification.

[0137] Suppose a user wants to find a mini-app that can rent a mobile phone, such as Figure 3 As shown, the user can enter search information, such as the words "rent a mobile phone" in the search box 302, and the terminal can send a search request containing the search information to the server. The server can determine the search object that matches the search information based on the search information, such as several applets, as well as the first information corresponding to the search object and the non-repetitive second information, generate a search result page and feed it back to the terminal, and the terminal can display the search result page.

[0138] like Figure 3As shown, the search result page may include a first area 304 for displaying first information, which may be used to display a plurality of first information, such as services, products, discounts, etc. that can be provided by the mini program. The information displayed in the first area for different search objects may be the same or different, which is determined based on the information that can be displayed in the first area corresponding to the search object.

[0139] The search results page may also include a second area 306 for displaying second information. The second area may be located above the first area, or may be set according to actual needs, and is not specifically limited here. One or more keywords may be displayed in the second area corresponding to each search object, and the displayed keywords do not overlap with the first information displayed in the first area. The displayed keywords may include service information specific to the search object, historical user evaluation information, available discount information, etc., and may also include brand information of goods that can be provided by the search object, etc. The keywords displayed in the second area for different search objects may be the same or different, and are determined based on the keywords that can be displayed in the second area corresponding to the search object.

[0140] like Figure 3 As shown, the first area can display two lines of text and can also display image information; the first area can display a line of text. In actual applications, the sizes of the first area and the second area can be set according to actual needs. The above is only for illustration.

[0141] In actual applications, the first area or the second area may not display information. For example, if the services or products provided by the mini program do not match the information the user wants to search for, or there is no operable service control in the mini program, the information displayed in the first area may be empty.

[0142] like Figure 3 As shown, the search results page may also include information about the service provider of the search object, such as information about the service provider of a small program, and may also include information about the usage of the search object, such as how many people have used it, which can also help users select the desired object.

[0143] In actual applications, a feedback control can be set for each search object in the search result page, and the user can provide feedback information about the search results to the server based on the feedback control, such as dislike, irrelevant, poor quality, screen, etc. In this way, the server can provide users with more accurate search results based on the user's feedback information.

[0144] It is understandable that the explanation here is only based on the example of searching for mini-programs that can rent mobile phones. In actual applications, a search result page that meets actual needs can be generated based on the relevant information of the actual search object and the page structure. There is no specific limitation on the specific search object, page structure, and page display content.

[0145] In the embodiments of the present specification, keywords can be extracted from a long description of the search object and displayed to the user, thereby reducing the user's reading cost and improving the user's information acquisition efficiency. In addition, the first information and the second information can be deduplicated, and the second information that is not duplicated with the first information can be determined based on the first information, thereby reducing duplicate information on the search result page and improving the user's information acquisition efficiency.

[0146] In the embodiment of the present specification, keywords can also be extracted from user reviews and displayed to the user, which reduces the operational cost of the user clicking into each search object to find user reviews and improves the efficiency of the user selecting the desired search object.

[0147] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method. Figure 4 The following is a schematic diagram of a device for generating a search result page according to an embodiment of the present specification. Figure 4 As shown, the device may include the following modules.

[0148] Search information acquisition module 402, used to acquire a search request generated based on a user's search operation; the search request includes search information provided by the user;

[0149] A search object determination module 404, configured to determine a search object matching the search information based on the search information;

[0150] A first information determining module 406, configured to determine, based on the search information, first information corresponding to the search object for display in the first area;

[0151] A second information determination module 408, configured to determine, based on the first information, second information for display in the second area from a keyword set corresponding to the search object; the similarity between the second information and the first information is less than or equal to a preset threshold;

[0152] The page generation module 410 is used to generate a search result page including the first information and the second information.

[0153] based on Figure 4 The present specification also provides some specific implementation plans of the method, which are described below.

[0154] Optionally, the search object determination module may specifically include the following units:

[0155] A first matching unit is used to determine, based on the search information, a search object that matches the search information from a database of first introduction information containing multiple optional search objects; the first introduction information includes at least one of the name information, description information, available service information, available product information, and available discount information of the optional search object.

[0156] Optionally, the first information determination module may specifically include the following units:

[0157] A business information acquisition unit, configured to acquire a set of business information corresponding to the search object and capable of being displayed in the first area;

[0158] The second matching unit is used to determine a number of business information matching the search information from the business information set based on the search information; the business information includes at least one of the service information, product information and discount information that can be provided by the search object.

[0159] Optionally, the device in the embodiment of this specification may further include a keyword extraction module, which may specifically include the following units:

[0160] an introduction information acquisition unit, configured to acquire second introduction information for the search object; the second introduction information includes introduction information for the search object provided by a service provider of the search object and / or evaluation information for the search object provided by a service recipient of the search object;

[0161] The keyword extraction unit is used to extract keywords from the second introduction information to obtain a keyword set corresponding to the search object.

[0162] Optionally, the keyword extraction unit may be specifically used for:

[0163] extracting keywords from the second introduction information;

[0164] The extracted keywords are deduplicated to obtain a keyword set corresponding to the search object.

[0165] Optionally, the keyword extraction module can be used to:

[0166] Utilizing a natural language processing model, keywords are extracted from the second introduction information; the keywords include at least one of text used to represent the core functions of the search object, text used to represent the service features of the search object, text used to represent the product information that can be provided by the search object, text used to represent the preferential information that can be provided by the search object, and text used to represent that the number of times the keywords appear in the evaluation information is greater than or equal to a preset number of times.

[0167] Optionally, the second information determination module may specifically include the following units:

[0168] a similarity calculation unit, configured to obtain a first keyword from the keyword set and determine a similarity between the first keyword and the first information;

[0169] The information determining unit is configured to determine the first keyword as second information to be displayed in a second area if the similarity is less than or equal to a preset threshold.

[0170] Optionally, the keyword extraction module may specifically include the following units:

[0171] a matching degree determining unit, configured to determine, based on the search information, a matching degree between each keyword in the keyword set and the search information;

[0172] A sorting unit, configured to sort the keywords in the keyword set based on the matching degree to obtain sorted keywords;

[0173] The obtaining of the first keyword from the keyword set may specifically include:

[0174] According to the sorting order of each keyword, the first keyword is obtained from the sorted keywords.

[0175] Optionally, the second information determination module may further include the following units:

[0176] A first character determination unit, used to determine the number of first characters of the first keyword;

[0177] a remaining character determination unit, configured to determine the number of remaining characters that can be displayed in the second area based on the first number of characters and the total number of characters that can be displayed in the second area;

[0178] A keyword acquisition unit, configured to acquire a second keyword from the keyword set;

[0179] a determination unit, configured to determine whether the number of second characters of the second keyword is less than or equal to the number of remaining characters that can be displayed in the second area;

[0180] The second determining unit is configured to determine the second keyword as second information to be displayed in a second area if the second number of characters is less than or equal to the remaining number of characters.

[0181] Optionally, the apparatus in the embodiment of this specification may further include a similarity calculation module, which may specifically include the following units:

[0182] A graph construction unit, used to construct a knowledge graph of each keyword in the keyword set and the first information;

[0183] A similarity determination unit is used to determine the similarity between each keyword in the keyword set and the first information based on the knowledge graph.

[0184] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method.

[0185] Figure 5 This is a schematic diagram of a device for generating a search result page provided in an embodiment of this specification. Figure 5 As shown, the device 500 may include:

[0186] at least one processor 510; and,

[0187] A memory 530 in communication with the at least one processor; wherein,

[0188] The memory 530 stores instructions 520 executable by the at least one processor 510. The instructions are executed by the at least one processor 510 to enable the at least one processor 510 to:

[0189] Obtaining a search request generated based on a user's search operation; the search request includes search information provided by the user;

[0190] Based on the search information, determining a search object matching the search information;

[0191] Based on the search information, determining first information corresponding to the search object for display in a first area;

[0192] Based on the first information, determining second information for display in the second area from a keyword set corresponding to the search object; the similarity between the second information and the first information is less than or equal to a preset threshold;

[0193] A search result page including the first information and the second information is generated.

[0194] Based on the same idea, the embodiment of this specification also provides a computer-readable medium corresponding to the above method. The computer-readable medium stores computer-readable instructions, which can be executed by a processor to implement the above method for generating a search result page.

[0195] Each embodiment in this specification is described in a progressive manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. Figure 5 As for the device shown, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0196] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0197] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0198] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0199] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0200] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0201] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0202] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0203] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0204] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0205] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0206] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0207] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0208] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0209] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0210] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0211] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for generating a search results page, include: Obtaining a search request generated based on a user's search operation; The search request includes search information provided by the user; Based on the search information, determining a search object matching the search information; Based on the search information, determining first information corresponding to the search object for display in a first area; Based on the first information, determining second information for display in a second area from a keyword set corresponding to the search object; The similarity between the second information and the first information is less than or equal to a preset threshold; A search result page including the first information and the second information is generated.

2. The method according to claim 1, wherein the search object matching the search information is determined based on the search information, specifically: include: Based on the search information, determining a search object matching the search information from a database of first introduction information containing a plurality of selectable search objects; The first introduction information includes at least one of name information, description information, available service information, available commodity information, and available discount information of the optional search object.

3. The method according to claim 1, wherein the first information corresponding to the search object and to be displayed in the first area is determined based on the search information, specifically: include: Acquire a set of business information corresponding to the search object and capable of being displayed in the first area; Based on the search information, several business information matching the search information are determined from the business information set; the business information includes at least one of service information, product information and discount information that can be provided by the search object.

4. The method according to claim 1, before determining the second information to be displayed in the second area from the keyword set corresponding to the search object, include: Acquire second introduction information for the search object; The second introduction information includes introduction information on the search object provided by the service provider of the search object and / or evaluation information on the search object provided by the service recipient of the search object; Keywords are extracted from the second introduction information to obtain a keyword set corresponding to the search object.

5. The method according to claim 4, wherein the keyword is extracted from the second introduction information to obtain a keyword set corresponding to the search object, specifically include: extracting keywords from the second introduction information; The extracted keywords are deduplicated to obtain a keyword set corresponding to the search object.

6. The method according to claim 4, wherein the keywords are extracted from the second introduction information. include: Utilizing a natural language processing model, keywords are extracted from the second introduction information; the keywords include at least one of text used to represent the core functions of the search object, text used to represent the service features of the search object, text used to represent the product information that can be provided by the search object, text used to represent the preferential information that can be provided by the search object, and text used to represent that the number of times the keywords appear in the evaluation information is greater than or equal to a preset number of times.

7. The method according to claim 1, wherein based on the first information, second information for display in the second area is determined from a keyword set corresponding to the search object, specifically: include: Acquire a first keyword from the keyword set, and determine a similarity between the first keyword and the first information; If the similarity is less than or equal to a preset threshold, the first keyword is determined as the second information to be displayed in the second area.

8. The method according to claim 7, further comprising: include: Based on the search information, determining a matching degree between each keyword in the keyword set and the search information; Based on the matching degree, sorting each keyword in the keyword set to obtain sorted keywords; The acquiring the first keyword from the keyword set specifically includes: According to the sorting order of each keyword, the first keyword is obtained from the sorted keywords.

9. The method according to claim 7, further comprising: include: determining the number of first characters of the first keyword; Determining the remaining number of characters that can be displayed in the second area based on the first number of characters and the total number of characters that can be displayed in the second area; Acquire a second keyword from the keyword set; Determining whether the number of second characters of the second keyword is less than or equal to the number of remaining characters that can be displayed in the second area; If the second number of characters is less than or equal to the remaining number of characters, the second keyword is determined as the second information to be displayed in the second area.

10. The method according to claim 1, further comprising: include: Constructing a knowledge graph of each keyword in the keyword set and the first information; Based on the knowledge graph, determine the similarity between each keyword in the keyword set and the first information.

11. A device for generating a search result page, include: A search information acquisition module, used to acquire a search request generated based on a user's search operation; The search request includes search information provided by the user; A search object determination module, used to determine a search object matching the search information based on the search information; A first information determination module, configured to determine, based on the search information, first information corresponding to the search object for display in the first area; A second information determination module, configured to determine, based on the first information, second information for display in a second area from a keyword set corresponding to the search object; The similarity between the second information and the first information is less than or equal to a preset threshold; A page generation module is used to generate a search result page including the first information and the second information.

12. A device for generating a search results page, include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Obtaining a search request generated based on a user's search operation; the search request includes search information provided by the user; Based on the search information, determining a search object matching the search information; Based on the search information, determining first information corresponding to the search object for display in a first area; Based on the first information, determining second information for display in the second area from a keyword set corresponding to the search object; the similarity between the second information and the first information is less than or equal to a preset threshold; A search result page including the first information and the second information is generated.

13. A computer-readable medium having computer-readable instructions stored thereon, wherein the computer-readable instructions can be executed by a processor to implement the method for generating a search result page according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Method and device for providing search result, electronic equipment and medium

    CN114238745A

  • Search result display method and device, equipment and medium

    CN114741626A

Cited By

  • Article page generation method and device, storage medium and program product

    CN120045805A

  • Apparatus, method, and recording medium for displaying video on a web page

    TWI942525B