WO2018149115A1 - Method and apparatus for providing search results - Google Patents

Method and apparatus for providing search results Download PDF

Info

Publication number
WO2018149115A1
WO2018149115A1 PCT/CN2017/100474 CN2017100474W WO2018149115A1 WO 2018149115 A1 WO2018149115 A1 WO 2018149115A1 CN 2017100474 W CN2017100474 W CN 2017100474W WO 2018149115 A1 WO2018149115 A1 WO 2018149115A1
Authority
WO
WIPO (PCT)
Prior art keywords
search
content
solution
recommended
search term
Prior art date
Application number
PCT/CN2017/100474
Other languages
French (fr)
Chinese (zh)
Inventor
刘国庆
贾银芳
朱延峰
韩聪
韩友
李鹏
党悦然
陈敏
Original Assignee
百度在线网络技术(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 百度在线网络技术(北京)有限公司 filed Critical 百度在线网络技术(北京)有限公司
Priority to EP17896335.1A priority Critical patent/EP3579124A4/en
Priority to JP2019543924A priority patent/JP6864107B2/en
Publication of WO2018149115A1 publication Critical patent/WO2018149115A1/en
Priority to US16/540,599 priority patent/US11669579B2/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/335Filtering based on additional data, e.g. user or group profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9558Details of hyperlinks; Management of linked annotations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/73Querying
    • G06F16/738Presentation of query results

Definitions

  • the present application relates to the field of computer technologies, and in particular, to the field of search technologies, and in particular, to a method and apparatus for providing search results.
  • the present application provides methods and apparatus for providing search results.
  • the present application provides a method for providing search results, including: performing search intent analysis on an input search term to determine whether a search term contains a solution requirement; and if so, using the search term to retrieve a response request The content of the solution; the content to be recommended associated with the solution content; the combination of the solution content and the content to be recommended to generate at least one search result.
  • performing search intent analysis on the input search term to determine whether the search term includes a solution requirement including: matching the search term with a preset question keyword library; and if the matching is successful, determining the search The word contains the solution requirements.
  • performing the search intent analysis on the input search term to determine whether the search term includes a solution requirement including: obtaining a historical search result of the search term and category information of the historical search result; and responding to determining the acquired
  • the category information is a question or answer category or a content recommendation category, and the search term is determined to include the answer requirement.
  • the obtaining the to-be-recommended content associated with the solution content includes: extracting a keyword corresponding to the solution requirement in the solution content; and performing the extracted keyword and the preset keyword configured by the preset recommendation content. Matching; determining the preset recommended content corresponding to the successfully matched preset keyword as the to-be-recommended content associated with the solution content.
  • combining the solution content with the content to be recommended to generate at least one search result includes: combining the extracted keyword with the corresponding preset recommendation content to generate a corresponding search result.
  • the above method further comprises: pushing each search result.
  • pushing the search results of the various items includes: pushing each search result to a search result page for display; and/or creating a link for pointing to a page containing the plurality of search results, and pushing The above link.
  • the present application provides an apparatus for providing search results, including: an analyzing unit configured to perform search intent analysis on an input search term to determine whether a search term includes a solution request; a retrieval unit, configuration And in response to determining that the search term includes a solution requirement, using the search term to retrieve a solution content corresponding to the solution requirement; the obtaining unit configured to acquire the to-be-recommended content associated with the solution content; and the generating unit configured to use the solution content To combine the recommended content to generate at least one search result.
  • the analysis unit is further configured to determine whether the search term includes a search requirement by matching the search term with a preset question keyword library; if the match is successful, determining that the search term includes a solution requirement.
  • the analyzing unit is further configured to determine whether the search term includes a search requirement by acquiring a historical search result of the search term and category information of the historical search result; and responding to determining that the acquired category information is a question and answer class Or content push Recommended class to determine the search term contains the answer to the request.
  • the obtaining unit is further configured to acquire the to-be-recommended content associated with the solution content by extracting keywords corresponding to the solution requirements in the solution content; and extracting the extracted keywords and the preset recommended content.
  • the configured preset keyword is matched; the preset recommended content corresponding to the successfully matched preset keyword is determined as the to-be-recommended content associated with the solution content.
  • the generating unit is further configured to generate at least one search result by combining the extracted keyword with the corresponding preset recommended content to generate a corresponding search result.
  • the apparatus further includes: a pushing unit configured to push each search result.
  • the push unit is further configured to push each search result by: pushing each of the search results: pushing each of the search results to a search result page for display; and/or creating A link to a page that contains multiple search results and push the link.
  • the application provides a server comprising: one or more processors; a storage device for storing one or more programs, when one or more programs are executed by one or more processors, such that one Or a plurality of processors implement a method for providing search results as provided by the first aspect of the present application.
  • the present application provides a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements a method for providing search results as provided by the first aspect of the present application.
  • the method and apparatus for providing search results provided by the present application, by performing search intent analysis on a search term to determine whether the search term contains a solution requirement, and then using the search term to retrieve and answer the request when determining that the input search term contains the solution request Corresponding answer content, and then obtaining the content to be recommended associated with the solution content, and finally combining the solution content with the content to be recommended, generating at least one search result, and being able to quickly provide rich search results satisfying the potential needs of the user.
  • FIG. 1 is an exemplary system architecture diagram to which the present application can be applied;
  • FIG. 2 is a flow diagram of one embodiment of a method for providing search results in accordance with the present application
  • FIG. 3 is a flow diagram of a specific embodiment of a method of determining whether a search term contains a solution requirement in accordance with the present application
  • FIG. 4 is a flow diagram of another embodiment of a method for providing search results in accordance with the present application.
  • 5a, 5b, and 5c are schematic diagrams of effects of an application scenario for providing search results according to the present application.
  • FIG. 6 is a schematic structural diagram of an embodiment of an apparatus for providing search results of the present application.
  • FIG. 7 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server of an embodiment of the present application.
  • FIG. 1 illustrates an exemplary system architecture 100 of an embodiment of a method for providing search results or for providing search results to which the present application may be applied.
  • system architecture 100 can include terminal devices 101, 102, 103, network 104, and server 105.
  • the network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105.
  • Network 104 may include various types of connections, such as wired, wireless communication links, fiber optic cables, and the like.
  • the user can interact with the server 105 over the network 104 using the terminal devices 101, 102, 103 to receive or transmit messages and the like.
  • Various information acquisition applications such as a web browser class, a search application, social platform software, and the like can be installed on the terminal devices 101, 102, and 103.
  • the terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablets, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, dynamic The video specialist compresses the standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV) player, laptop portable computer and desktop computer, and the like.
  • MP3 players Motion Picture Experts Group Audio Layer III, dynamic The video specialist compresses the standard audio layer 3
  • MP4 Moving Picture Experts Group Audio Layer IV
  • the server 105 may be a server that provides various services, such as a web page data server that provides data support for search requests of the terminal devices 101, 102, 103.
  • the webpage data server may perform processing such as word segmentation, webpage information capture, etc. on the received search request, and feed back the processing result (for example, the search result) to the terminal device.
  • the method for providing search results provided by the embodiments of the present application is generally performed by the server 105. Accordingly, the apparatus for providing search results is generally disposed in the server 105.
  • terminal devices, networks, and servers in Figure 1 is merely illustrative. Depending on the implementation needs, there can be any number of terminal devices, networks, and servers.
  • the method for providing search results includes the following steps:
  • Step 201 Perform a search intent analysis on the input search term to determine whether the search term contains a solution requirement.
  • the electronic device (for example, the server 105 shown in FIG. 1) on which the method for providing search results is run may acquire a search term input by the user, analyze and process the search term, and then determine the search term. Whether to include the answer requirement, that is, whether the user who inputs the search term has the need to obtain an answer through a question.
  • the input interface may be, for example, a search box, and the user may input a search term by typing a text; the input interface may also be, for example, an audio interface, and the user may In order to input voice information through the audio interface, the electronic device background can convert the voice information into corresponding text search words. The above electronic device may acquire the input search term after detecting that the input interface is called.
  • the electronic device may first segment the obtained search word, divide the input search form into separate words, and use the search word based on the word segmentation result and the sequence form to the user.
  • the search intent is analyzed.
  • the above search intent analysis can be performed in various ways.
  • the search intent corresponding to the search term may be analyzed by using a trained search intent analysis model in a machine learning manner.
  • Another alternative is to analyze whether the user has a preset category based on the search intent contained in the word segmented by the search term and its related words.
  • the foregoing preset categories may be configured in advance for each word, such as a problem class, a resource class, and the like. For example, words such as "where", “what", "when” may be pre-configured as problem classes, and words such as "download”, "view” may be pre-configured as resource classes. If the word segmentation result contains a word configured as a question class, it can be determined that the user has the requirement of the problem class, and it can be determined that the search term input by the user includes the solution requirement.
  • whether the input search term has a solution requirement can be analyzed by matching the search term with a preset question keyword library; if the match is successful, determining that the search term includes the solution requirement.
  • the foregoing electronic device may store a preset problem keyword library, and if the search word includes a word that matches a word in the preset question keyword library, it may be determined that the search word includes a solution requirement.
  • the preset keyword library may include words that have strong relevance to the questioning intention. As an example, in the actual scenario, if the search term input by the user is “a gift recommendation for the elders”, wherein “recommended” matches the question keyword in the preset question keyword library, the search term may be determined. "Recommended gifts for elders" contains answers to your needs.
  • the preset problem keyword library may be a thesaurus that is manually configured or trained based on a machine learning method and directly related to the solution requirement or has a potential solution requirement.
  • FIG. 3 shows a schematic diagram of a process 300 of a specific embodiment of a method for determining whether a search term contains a solution requirement in accordance with the present application.
  • step 301 a historical search result of the search term and a calendar are obtained. Category information for historical search results.
  • the above electronic device can store historical search results of each search term.
  • the above category information may include a question and answer class, a content recommendation class, a resource class, and the like.
  • the category information of each historical search result may be determined by the source website of the historical search result, the category of the content, and the like. Further, the category information of each historical search result may be related to the category information of the source website of the historical search result or the history. The category information of the content of the search results is consistent.
  • the category information of the historical search result is a question and answer class; or if a historical search is performed The result includes a dialogue of multiple question and answer sentences, then it can be determined that the category information of the historical search result is a question and answer class; or when a historical search result contains multiple recommended contents (in other words, the historical search word triggers the content recommendation) And determining that the content of the historical search result is a content recommendation class, the category information of the historical search result may be further determined to be a content recommendation class.
  • the historical search result includes a related search formula of the search term determined by the electronic device according to a query history of a large data amount of different users, and the related search formula may be used as a historical search result, according to the related search formula.
  • the category determines whether the search term contains a solution requirement. For example, when the relevant query contains a question, the category information of the historical search result of the search term may be determined as a question and answer class.
  • the category information of the historical search result may be pre-configured, or may be analyzed based on attributes such as the source website and content of the historical search result.
  • the category information of each website and the category information analysis of different contents may adopt various existing analysis methods of various categories, and are not specifically limited herein.
  • step 302 in response to determining that the acquired category information is a question-answer class or a content recommendation class, it is determined that the search term includes a solution requirement.
  • the category information of the historical search result obtained in step 301 is a question-answer class or a content recommendation class
  • the category information is not a question or answer category or a content recommendation category, it may be determined that the search term obtained in step 201 does not include a solution requirement.
  • the above electronic device can implement an estimation of the user's search intent to utilize the analysis result by the above process 300 for determining whether the search term includes an optional implementation of the solution requirement and other optional means for determining whether the search term contains a solution requirement. To provide information that meets the needs of users.
  • step 202 in response to determining that the search term contains a solution request, the search term is used to retrieve the solution content corresponding to the solution requirement.
  • the electronic device may retrieve a solution content corresponding to the solution requirement in the database.
  • the electronic device can directly search by using a search term, and filter out the search result of the solution class, and extract the solution content therein.
  • the solution demand corresponding to the search term can be parsed, and the solution is obtained based on the solution requirement, and the solution content is obtained.
  • the answer content corresponding to the answering requirement can be crawled in the knowledge-based website (for example, "Baidu Know").
  • the electronic device may perform a search by adding a related word and an auxiliary word according to the answer requirement to expand the search word into a query type of the question and answer type based on the search word, for example, when the input search word is “luxury bag”
  • the search term can be expanded to search for the question and answer type of the "luxury bag brand", so that the electronic device can quickly retrieve the answer content of the search formula corresponding to the question and answer class.
  • Step 203 Acquire content to be recommended associated with the solution content.
  • the electronic device may find the content to be recommended associated with the solution content in the content library to be recommended.
  • the content to be recommended includes the content to be recommended with the recommended attribute, and the recommended attribute is used to identify the attribute of the content to be recommended.
  • the recommended attribute may be the feature information that can match the content to be recommended.
  • the recommended attribute may be a preset keyword configured by the content to be recommended.
  • the content to be recommended associated with the solution content may be obtained by: first extracting the solution content corresponding to the solution Key words of demand, will be mentioned later The extracted keyword is matched with the preset keyword configured by the preset recommended content, and the preset recommended content corresponding to the successfully matched preset keyword is determined as the to-be-recommended content associated with the solution content.
  • the electronic device may extract one or more keywords in the solution content, and then determine whether the extracted keyword corresponds to the solution requirement, and use each of the extracted keywords corresponding to the solution requirement and each The preset keywords of the recommended content are matched.
  • the preset recommended content corresponding to the successfully matched preset keyword is used as the to-be-recommended content corresponding to the extracted keyword, that is, the content of the solution. Associated content to be recommended. In this way, when a plurality of keywords are included in the solution content, different to-be-recommended contents corresponding to each keyword can be matched.
  • the content to be recommended may be content pre-stored by the electronic device and configured with a preset keyword.
  • These to-be-recommended content may contain richer recommendation information, which may be, for example, news information, advertisements, and the like.
  • Step 204 Combine the solution content with the content to be recommended, and generate at least one search result.
  • the content to be recommended may be combined with the corresponding solution content to generate a search result.
  • a solution content retrieved in step 202 it may be combined with one or more items to be recommended associated with it to generate a search result.
  • the step 202 retrieves a plurality of pieces of solution content, the corresponding plurality of search results may be generated in the embodiment.
  • the combination may be performed by combining the solution content with the associated content to be recommended, or storing the relationship between the solution content and the content to be recommended in the database.
  • each search result contains the answer content and the related content to be recommended, so that the rich information can be quickly provided, and the user only needs to perform a search operation to obtain the answer content, that is, the related recommendation information, which simplifies the user's acquisition.
  • the operation of the information is the case where the answer content and the related content to be recommended.
  • the extracted keyword may be combined with the preset recommended content successfully matched to generate a corresponding search. result. That is to say, by using the keyword instead of the solution content and generating the search result in combination with the corresponding content to be recommended, the search result can be simplified, and the key information more interesting to the user is provided, which is beneficial for the user to quickly obtain the information.
  • the method for providing search results of the present embodiment by analyzing the search intent of the search term, obtains the to-be-recommended content associated with the solution request when determining that the search term includes the solution request, and retrieves the retrieved content.
  • the combination of the content of the solution and the content to be recommended generates search results, which can quickly provide more information in the search results that better meets the potential needs of users.
  • FIG. 4 shows a flowchart of another embodiment of a method for providing search results according to the present application.
  • the method flow 400 for providing search results includes the following steps:
  • Step 401 Perform a search intent analysis on the input search term to determine whether the search term contains a solution requirement.
  • the electronic device (for example, the server 105 shown in FIG. 1) on which the method for providing search results is run may acquire a search term input by the user, analyze and process the search term, and then determine the search term. Whether to include the answer requirement, that is, whether the user who inputs the search term has the need to obtain an answer through a question.
  • the electronic device may perform search intent analysis in various manners. For example, the trained search intent analysis model may be used to analyze the search intent corresponding to the search term, or the search intent included in the word segmented by the search term and the related search term may be analyzed to determine whether the user has a preset category.
  • the requirement, or the search term can be matched with the preset question keyword library; if the match is successful, it is determined that the search term contains the solution requirement.
  • the preset problem keyword library includes words that have strong relevance to the questioning intent. As an example, in the actual scenario, if the search term input by the user is “a gift recommendation for the elders”, wherein “recommended” matches the preset question keyword library, the search term “is given to the elders”. Gift recommendation" contains the answer to the request.
  • the method further includes: determining whether the search term includes a solution requirement: acquiring a historical search result of the search term and category information of the historical search result, and responding to determining that the acquired category information is a question-answer class or a content recommendation class, Make sure the search term contains the answer to the request. That is, it is possible to determine whether the search term contains a solution request according to the source website of the historical search result of the search term, the category of the content, and the like.
  • Step 402 in response to determining that the search term includes a solution requirement, using the search term to retrieve a solution content corresponding to the solution requirement.
  • the electronic device may retrieve a solution content corresponding to the solution requirement in the database.
  • Step 403 Acquire content to be recommended associated with the solution content.
  • the content to be recommended associated with the above solution content may be found in the content library to be recommended.
  • the relevance of the solution content and the content to be recommended may be determined by semantic analysis, and the content to be recommended with higher relevance is selected as the content to be recommended associated with the solution content.
  • the keywords corresponding to the solution requirements in the solution content may be extracted, and then the extracted keywords are matched with the preset keywords configured by the preset recommended content, and the matching success is pre-matched.
  • the preset recommended content corresponding to the keyword is determined as the content to be recommended associated with the answer content.
  • Step 404 combining the solution content with the content to be recommended, and generating at least one search result.
  • the content to be recommended may be combined with the corresponding solution content to generate a search result.
  • the combination may be performed by combining the solution content with the associated content to be recommended, or storing the relationship between the solution content and the content to be recommended in the database. In this way, each search result contains the answer content and the content to be recommended associated with it.
  • the extracted keyword may be combined with the preset recommended content successfully matched to generate a corresponding search. result. That is to say, by using the keyword instead of the solution content and generating the search result in combination with the corresponding content to be recommended, the search result can be simplified, and the information more interesting to the user can be provided, which is beneficial for the user to quickly obtain the information.
  • step 405 various search results are pushed.
  • the electronic device can push the search results to a terminal device (eg, terminal devices 101, 102, 103 shown in FIG. 1) that receives user input.
  • the terminal device can create a search result page, and the electronic device can push the search result to the search result page for display.
  • Terminal equipment can Render search results to the search results page for display. Multiple entry fields for presenting search results can be created within the search results page and each search result displayed in each entry column. Further, the electronic device may push the matching degree order corresponding to the search result (for example, the answer content in the search result is sorted with the matching degree of the solution requirement).
  • each search result includes at least one answer content and a to-be-recommended content associated with the answer content, and each of the answer content can be displayed in association with the to-be-recommended content associated with it.
  • the electronic device may push by creating a link for pointing to a page containing multiple search results and pushing the link.
  • Various search results In this way, the user can click on the link to open the corresponding page containing multiple search results to obtain the above search results.
  • the interrupting device is after receiving the search result pushed by the electronic device.
  • the above search results can be displayed in a variety of presentations.
  • An alternative implementation is to display multiple search results simultaneously on the search results page so that the user can get answers and recommendations without further action.
  • FIG. 5a illustrates an effect diagram of an application scenario for providing search results according to the present application.
  • the terminal may initiate a search request to the server, and the server searches for the search term.
  • the server can use the search term to retrieve the answer content corresponding to the solution needs: "sunscreen”, "toothpaste”, etc., after
  • the server can find the content to be recommended (such as a sunscreen advertisement) associated with the sunscreen from the background content library to be recommended in the background (for example, an advertisement database), and combine the answer content "sunscreen” with the sunscreen advertisement as a search result 502.
  • the content to be recommended for example, toothpaste advertisement
  • the server can then directly push the search result 502 and the search result 503 to the terminal device, and the terminal device can directly on the search result page 51. Search results 502 and search results 503 are displayed.
  • the search result terminal device pushed by the receiving server may also display various search results by creating a switchable tab on the search result page, and presenting each search result in each tab.
  • FIG. 5b illustrates an effect diagram of an application scenario for providing search results according to the present application.
  • the electronic device can initiate a search request to the server, and the server performs the search term.
  • the server can use the search term to retrieve the answer content corresponding to the answer: "TAG Heuer”, “Jorg Gray”, “ Armani”, after that, the server can find the corresponding profiles and advertisements of "TAG Heuer” Jorg Gray” and "Armani” watch brands from the background advertisement database, and combine the names of each watch brand with the corresponding profiles and advertisements.
  • the search results are then pushed to the electronic device.
  • the electronic device can create corresponding three tabs 512, 513, 514 in the search result page 52, and display corresponding watch brand names and corresponding brand profiles in each tab. And advertising. Further, it can be done by clicking or gesture Switch tabs to make it easy for users to get different answers and associated recommendations.
  • FIG. 5c is a schematic diagram showing the effect of an application scenario for providing search results according to the present application.
  • the terminal can initiate a search request to the server, and the server searches for The word is used for search intent analysis.
  • the search term can be determined according to the keyword “what” included in the search term.
  • the server can use the search term to retrieve the answer content corresponding to the solution requirement: “sunscreen” and “toothpaste”. After that, the server can find the sunscreen advertisement and the toothpaste advertisement from the background advertisement database, combine the content "sunscreen” and the sunscreen advertisement into a search result, and combine the answer "toothpaste” and the toothpaste advertisement into Another search knot fruit.
  • the server can then create a link 522 that points to the network address of page 54, which contains a search result of a combination of sunscreen and sunscreen ads and a search result formed by a combination of toothpaste and toothpaste ads.
  • the server can push the link 522 to the terminal device that issued the search request, and the terminal device can display the link 522 in the search results page 53, which is rendered on page 54 when clicked. This can reduce the display space occupied by the search results while enriching the search results and improving the user's information acquisition efficiency.
  • the flow 400 of the method for providing search results of the present embodiment increases the step 405 of pushing the search result, and by step 405, the generated search result can be pushed to the received search.
  • the terminal device of the word is displayed for the user to obtain information efficiently.
  • the present application provides an embodiment of an apparatus for providing search results, the apparatus embodiment corresponding to the method embodiment shown in FIG.
  • the device can be specifically applied to various electronic devices.
  • the apparatus 600 for providing search results of the present embodiment includes an analysis unit 601, a retrieval unit 602, an acquisition unit 603, and a generation unit 604.
  • the analyzing unit 601 is configured to perform a search intent analysis on the input search term to determine whether the search term contains a solution requirement;
  • the retrieving unit 602 is configured to retrieve and answer the request by using the search term in response to determining that the search term includes the solution requirement Corresponding solution content;
  • the obtaining unit 603 is configured to acquire the to-be-recommended content associated with the solution content;
  • the generating unit 604 is configured to combine the solution content with the content to be recommended to generate at least one search result.
  • the analyzing unit 601 can acquire the search words input by the user, and analyze and process the search words by using a word segmentation, machine learning, and the like to determine whether the search words include the solution requirements.
  • the retrieval unit 602 can directly search using the search term, and filter out the retrieval result of the solution class, and extract the solution content therein.
  • the solution demand corresponding to the search term can be parsed, and the solution is obtained based on the solution requirement, and the solution content is obtained.
  • the obtaining unit 603 can find the to-be-recommended content associated with the above solution content in the content library to be recommended. Among them, the content to be recommended associated with the answer content can be within the answer The semantic relevance of the content exceeds a preset threshold for the content to be recommended.
  • the generating unit 604 may combine the solution content and the content to be recommended associated with the solution content to generate a search result. If the retrieval unit 602 retrieves a plurality of pieces of solution content, the generating unit 604 may generate a corresponding plurality of search results in the embodiment.
  • the analyzing unit 601 may be further configured to determine whether the search term includes a search requirement by matching the search term with a preset problem keyword library; if the matching is successful, Make sure the search term contains the answer to the request.
  • the preset question keyword library may contain words that have strong relevance to the question intent.
  • the analyzing unit 601 may be further configured to determine whether the search term includes a search requirement by acquiring a historical search result of the search term and category information of the historical search result;
  • the obtained category information is a question or answer category or a content recommendation category, and the search term is determined to include the answer requirement. That is, the analyzing unit 601 can determine the category information according to the content of the historical search result of the search term, the source website, and the like. If the category information is a question answer class or a content recommendation class, it can be determined that the search term includes the search requirement.
  • the obtaining unit 603 may be further configured to obtain the content to be recommended associated with the solution content by extracting keywords corresponding to the solution requirements in the solution content; The word is matched with the preset keyword configured by the preset recommended content; and the preset recommended content corresponding to the successfully matched preset keyword is determined as the to-be-recommended content associated with the solution content.
  • the generating unit 604 is further configured to generate at least one search result by combining the extracted keyword with the corresponding preset recommended content to generate a corresponding search result.
  • the apparatus 600 further includes a push unit 605 (not shown) configured to push various search results.
  • the pushing unit 605 can be further configured to push each search result by pushing each search result to the search result page for display; and/or creating a link for pointing to a page containing multiple search results And push the link.
  • the above embodiment of the apparatus 600 for providing search results may analyze the user's search intent and find the to-be-recommended content associated with the retrieved answer content, which may be mentioned For richer search results, it improves the efficiency of providing information to users.
  • the application also provides a server that includes one or more processors, and a storage device.
  • the storage device is for storing one or more programs, and the one or more programs stored by the storage device are executed by one or more processors, such that the one or more processors implement the above-described embodiments of the present application for providing search results. method.
  • FIG. 7 a block diagram of a computer system 700 suitable for use with a server for implementing embodiments of the present application is shown.
  • the server shown in FIG. 7 is merely an example, and should not impose any limitation on the function and scope of use of the embodiments of the present application.
  • computer system 700 includes a central processing unit (CPU) 701 that can be loaded into a program in random access memory (RAM) 703 according to a program stored in read only memory (ROM) 702 or from storage portion 708. And perform various appropriate actions and processes.
  • RAM random access memory
  • ROM read only memory
  • RAM 703 various programs and data required for the operation of the system 700 are also stored.
  • the CPU 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704.
  • An input/output (I/O) interface 705 is also coupled to bus 704.
  • the following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, etc.; an output portion 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), and the like, and a speaker; a storage portion 708 including a hard disk or the like And a communication portion 709 including a network interface card such as a LAN card, a modem, or the like.
  • the communication section 709 performs communication processing via a network such as the Internet.
  • Driver 710 is also connected to I/O interface 705 as needed.
  • a removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory or the like, is mounted on the drive 710 as needed so that a computer program read therefrom is installed into the storage portion 708 as needed.
  • an embodiment of the present disclosure includes a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for executing the method illustrated in the flowchart.
  • the computer program can be downloaded and installed from the network via communication portion 709, and/or installed from removable media 711.
  • the central processing unit (CPU) 701 the above-described functions defined in the method of the present application are performed.
  • the computer readable medium described herein may be a computer readable signal medium or a computer readable medium.
  • the storage medium is either any combination of the two.
  • the computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • a computer readable storage medium may be any tangible medium that can contain or store a program, which can be used by or in connection with an instruction execution system, apparatus or device.
  • a computer readable signal medium may include a data signal that is propagated in the baseband or as part of a carrier, carrying computer readable program code. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer readable signal medium can also be any computer readable medium other than a computer readable storage medium, which can transmit, propagate, or transport a program for use by or in connection with the instruction execution system, apparatus, or device.
  • Program code embodied on a computer readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
  • each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the logic functions for implementing the specified.
  • Executable instructions can also occur in a different order than that illustrated in the drawings. For example, two successively represented blocks may in fact be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or operation. Or it can be implemented by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments of the present application can be implemented by software. Now, it can also be implemented by hardware.
  • the described unit may also be provided in the processor, for example, as a processor including an analysis unit, a retrieval unit, an acquisition unit, and a generation unit. Wherein, the names of these units do not constitute a limitation on the unit itself under certain circumstances.
  • the analysis unit may also be described as "searching for the search intention of the input search words to determine whether the search words contain the solution requirements. Unit.”
  • the present application also provides a computer readable medium, which may be included in the apparatus described in the above embodiments, or may be separately present and not incorporated into the apparatus.
  • the computer readable medium carries one or more programs, when the one or more programs are executed by the device, causing the device to: perform a search intent analysis on the input search words to determine whether the search term contains a solution requirement; If yes, the search term is used to retrieve the solution content corresponding to the solution requirement; the content to be recommended associated with the solution content is obtained; and the solution content is combined with the content to be recommended to generate at least one search result.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Mathematical Physics (AREA)
  • Artificial Intelligence (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Disclosed are a method and apparatus for providing search results. One particular embodiment of the method comprises: carrying out search intention analysis on an input search term so as to determine whether the search term includes an answer requirement (201); if so, using the search term to retrieve answer content corresponding to the answer requirement (202); obtaining content to be recommended associated with the answer content (203); and combining the answer content with the content to be recommended so as to generate at least one search result (204). The embodiment can efficiently provide abundant search results.

Description

用于提供搜索结果的方法和装置Method and apparatus for providing search results
相关申请的交叉引用Cross-reference to related applications
本申请要求于2017年2月15日提交的中国专利申请号为“201710081698.8”的优先权,其全部内容作为整体并入本申请中。The present application claims the priority of the Chinese Patent Application No. JP-A-------
技术领域Technical field
本申请涉及计算机技术领域,具体涉及搜索技术领域,尤其涉及用于提供搜索结果的方法和装置。The present application relates to the field of computer technologies, and in particular, to the field of search technologies, and in particular, to a method and apparatus for providing search results.
背景技术Background technique
随着互联网技术的发展,用户对问答类信息的搜索需求不断增加。当前的搜索技术中,将与用户的问题相匹配的答案展示在页面中间位置的搜索结果项中,并在页面的固定位置单独展示推荐的内容(例如页面的侧边或页面底端)。这样,用户搜索得到的答案和推荐内容较为分散。并且由于页面展示区域限制,用户在一个搜索结果页面内可以获取的信息非常有限,若希望获取更多的信息则需要在终端上进行页面切换、点击筛选、搜索词切换等操作,为用户提供信息的效率有待提升。With the development of Internet technology, users' search requirements for question and answer information are increasing. In the current search technology, the answer matching the user's question is displayed in the search result item in the middle of the page, and the recommended content (such as the side of the page or the bottom of the page) is separately displayed at a fixed position of the page. In this way, the answers and recommended content obtained by the user search are more scattered. And because of the limitation of the page display area, the information that the user can obtain in a search result page is very limited. If you want to obtain more information, you need to perform page switching, click filtering, search word switching, etc. on the terminal to provide information for the user. The efficiency needs to be improved.
发明内容Summary of the invention
为了解决背景技术中的一个或多个技术问题,本申请提供了用于提供搜索结果的方法和装置。In order to address one or more technical problems in the background, the present application provides methods and apparatus for providing search results.
一方面,本申请提供了一种用于提供搜索结果的方法,包括:对输入的搜索词进行搜索意图分析,以确定搜素词是否包含解答需求;若是,利用搜索词检索出与解答需求对应的解答内容;获取与解答内容关联的待推荐内容;将解答内容与待推荐内容组合,生成至少一项搜索结果。 In one aspect, the present application provides a method for providing search results, including: performing search intent analysis on an input search term to determine whether a search term contains a solution requirement; and if so, using the search term to retrieve a response request The content of the solution; the content to be recommended associated with the solution content; the combination of the solution content and the content to be recommended to generate at least one search result.
在一些实施例中,上述对输入的搜索词进行搜索意图分析,以确定搜素词是否包含解答需求,包括:将搜索词与预设的问题关键词库进行匹配;若匹配成功,则确定搜索词包含解答需求。In some embodiments, performing search intent analysis on the input search term to determine whether the search term includes a solution requirement, including: matching the search term with a preset question keyword library; and if the matching is successful, determining the search The word contains the solution requirements.
在一些实施例中,上述对输入的搜索词进行搜索意图分析,以确定搜素词是否包含解答需求,包括:获取搜索词的历史搜索结果以及历史搜索结果的类别信息;响应于确定所获取的类别信息为问答类或内容推荐类,确定搜索词包含解答需求。In some embodiments, performing the search intent analysis on the input search term to determine whether the search term includes a solution requirement, including: obtaining a historical search result of the search term and category information of the historical search result; and responding to determining the acquired The category information is a question or answer category or a content recommendation category, and the search term is determined to include the answer requirement.
在一些实施例中,上述获取与解答内容关联的待推荐内容,包括:提取解答内容中对应于解答需求的关键词;将提取出的关键词与预设推荐内容所配置的预设关键词进行匹配;将匹配成功的预设关键词对应的预设推荐内容确定为与解答内容关联的待推荐内容。In some embodiments, the obtaining the to-be-recommended content associated with the solution content includes: extracting a keyword corresponding to the solution requirement in the solution content; and performing the extracted keyword and the preset keyword configured by the preset recommendation content. Matching; determining the preset recommended content corresponding to the successfully matched preset keyword as the to-be-recommended content associated with the solution content.
在一些实施例中,上述将解答内容与待推荐内容组合,生成至少一项搜索结果,包括:将提取出的关键词与对应的预设推荐内容结合,生成对应的搜索结果。In some embodiments, combining the solution content with the content to be recommended to generate at least one search result includes: combining the extracted keyword with the corresponding preset recommendation content to generate a corresponding search result.
在一些实施例中,上述方法还包括:推送各项搜索结果。In some embodiments, the above method further comprises: pushing each search result.
在一些实施例中,上述推送各项所述搜索结果,包括:将各项搜索结果推送至搜索结果页面以供展示;和/或创建用于指向包含多项搜索结果的页面的链接,并推送上述链接。In some embodiments, pushing the search results of the various items includes: pushing each search result to a search result page for display; and/or creating a link for pointing to a page containing the plurality of search results, and pushing The above link.
第二方面,本申请提供了一种用于提供搜索结果的装置,包括:分析单元,配置用于对输入的搜索词进行搜索意图分析,以确定搜素词是否包含解答需求;检索单元,配置用于响应于确定搜索词包含解答需求,利用搜索词检索出与解答需求对应的解答内容;获取单元,配置用于获取与解答内容关联的待推荐内容;生成单元,配置用于将解答内容与待推荐内容组合,生成至少一项搜索结果。In a second aspect, the present application provides an apparatus for providing search results, including: an analyzing unit configured to perform search intent analysis on an input search term to determine whether a search term includes a solution request; a retrieval unit, configuration And in response to determining that the search term includes a solution requirement, using the search term to retrieve a solution content corresponding to the solution requirement; the obtaining unit configured to acquire the to-be-recommended content associated with the solution content; and the generating unit configured to use the solution content To combine the recommended content to generate at least one search result.
在一些实施例中,上述分析单元进一步配置用于按照如下方式确定搜索词是否包含搜索需求:将搜索词与预设的问题关键词库进行匹配;若匹配成功,则确定搜索词包含解答需求。In some embodiments, the analysis unit is further configured to determine whether the search term includes a search requirement by matching the search term with a preset question keyword library; if the match is successful, determining that the search term includes a solution requirement.
在一些实施例中,上述分析单元进一步配置用于按照如下方式确定搜索词是否包含搜索需求:获取搜索词的历史搜索结果以及历史搜索结果的类别信息;响应于确定所获取的类别信息为问答类或内容推 荐类,确定搜索词包含解答需求。In some embodiments, the analyzing unit is further configured to determine whether the search term includes a search requirement by acquiring a historical search result of the search term and category information of the historical search result; and responding to determining that the acquired category information is a question and answer class Or content push Recommended class to determine the search term contains the answer to the request.
在一些实施例中,上述获取单元进一步配置用于按照如下方式获取与解答内容关联的待推荐内容:提取解答内容中对应于解答需求的关键词;将提取出的关键词与预设推荐内容所配置的预设关键词进行匹配;将匹配成功的预设关键词对应的预设推荐内容确定为与解答内容关联的待推荐内容。In some embodiments, the obtaining unit is further configured to acquire the to-be-recommended content associated with the solution content by extracting keywords corresponding to the solution requirements in the solution content; and extracting the extracted keywords and the preset recommended content. The configured preset keyword is matched; the preset recommended content corresponding to the successfully matched preset keyword is determined as the to-be-recommended content associated with the solution content.
在一些实施例中,上述生成单元进一步配置用于按照如下方式生成至少一项搜索结果:将提取出的关键词与对应的预设推荐内容结合,生成对应的搜索结果。In some embodiments, the generating unit is further configured to generate at least one search result by combining the extracted keyword with the corresponding preset recommended content to generate a corresponding search result.
在一些实施例中,上述装置还包括:推送单元,配置用于推送各项搜索结果。In some embodiments, the apparatus further includes: a pushing unit configured to push each search result.
在一些实施例中,上述推送单元进一步配置用于按照如下方式推送各搜索结果:推送各项所述搜索结果:将各项所述搜索结果推送至搜索结果页面以供展示;和/或创建用于指向包含多项搜索结果的页面的链接,并推送所述链接。In some embodiments, the push unit is further configured to push each search result by: pushing each of the search results: pushing each of the search results to a search result page for display; and/or creating A link to a page that contains multiple search results and push the link.
第三方面,本申请提供了一种服务器,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如本申请第一方面提供的用于提供搜索结果的方法。In a third aspect, the application provides a server comprising: one or more processors; a storage device for storing one or more programs, when one or more programs are executed by one or more processors, such that one Or a plurality of processors implement a method for providing search results as provided by the first aspect of the present application.
第四方面,本申请提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现如本申请第一方面提供的用于提供搜索结果的方法。In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements a method for providing search results as provided by the first aspect of the present application.
本申请提供的用于提供搜索结果的方法和装置,通过对搜索词进行搜索意图分析以确定搜索词是否包含解答需求,随后在确定输入的搜索词包含解答需求时利用搜索词检索出与解答需求对应的解答内容,而后获取与解答内容关联的待推荐内容,最后将所述解答内容与待推荐内容组合,生成至少一项搜索结果,能够快速地提供丰富的、满足用户潜在需求的搜索结果。The method and apparatus for providing search results provided by the present application, by performing search intent analysis on a search term to determine whether the search term contains a solution requirement, and then using the search term to retrieve and answer the request when determining that the input search term contains the solution request Corresponding answer content, and then obtaining the content to be recommended associated with the solution content, and finally combining the solution content with the content to be recommended, generating at least one search result, and being able to quickly provide rich search results satisfying the potential needs of the user.
附图说明 DRAWINGS
通过阅读参照以下附图所作的对非限制性实施例详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects, and advantages of the present application will become more apparent from the detailed description of the accompanying drawings.
图1是本申请可以应用于其中的示例性系统架构图;1 is an exemplary system architecture diagram to which the present application can be applied;
图2是根据本申请的用于提供搜索结果的方法的一个实施例的流程图;2 is a flow diagram of one embodiment of a method for providing search results in accordance with the present application;
图3是根据本申请的确定搜素词是否包含解答需求的方法的一种具体实施方式的流程图;3 is a flow diagram of a specific embodiment of a method of determining whether a search term contains a solution requirement in accordance with the present application;
图4是根据本申请的用于提供搜索结果的方法的另一个实施例的流程图;4 is a flow diagram of another embodiment of a method for providing search results in accordance with the present application;
图5a、图5b和图5c是根据本申请的用于提供搜索结果的应用场景的效果示意图;5a, 5b, and 5c are schematic diagrams of effects of an application scenario for providing search results according to the present application;
图6是本申请的用于提供搜索结果的装置的一个实施例的结构示意图;6 is a schematic structural diagram of an embodiment of an apparatus for providing search results of the present application;
图7是适于用来实现本申请实施例的终端设备或服务器的计算机系统的结构示意图。FIG. 7 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server of an embodiment of the present application.
具体实施方式detailed description
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention, rather than the invention. It is also to be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings.
图1示出了可以应用本申请的用于提供搜索结果的方法或用于提供搜索结果的装置的实施例的示例性系统架构100。FIG. 1 illustrates an exemplary system architecture 100 of an embodiment of a method for providing search results or for providing search results to which the present application may be applied.
如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。 As shown in FIG. 1, system architecture 100 can include terminal devices 101, 102, 103, network 104, and server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various types of connections, such as wired, wireless communication links, fiber optic cables, and the like.
用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种信息获取类应用,例如网页浏览器类、搜索类应用、社交平台软件等。The user can interact with the server 105 over the network 104 using the terminal devices 101, 102, 103 to receive or transmit messages and the like. Various information acquisition applications such as a web browser class, a search application, social platform software, and the like can be installed on the terminal devices 101, 102, and 103.
终端设备101、102、103可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablets, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, dynamic The video specialist compresses the standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV) player, laptop portable computer and desktop computer, and the like.
服务器105可以是提供各种服务的服务器,例如对终端设备101、102、103的搜索请求提供数据支持的网页数据服务器。网页数据服务器可以对接收到的搜索请求进行分词、网页信息抓取等处理,并将处理结果(例如搜索结果)反馈给终端设备。The server 105 may be a server that provides various services, such as a web page data server that provides data support for search requests of the terminal devices 101, 102, 103. The webpage data server may perform processing such as word segmentation, webpage information capture, etc. on the received search request, and feed back the processing result (for example, the search result) to the terminal device.
需要说明的是,本申请实施例所提供的用于提供搜索结果的方法一般由服务器105执行,相应地,用于提供搜索结果的装置一般设置于服务器105中。It should be noted that the method for providing search results provided by the embodiments of the present application is generally performed by the server 105. Accordingly, the apparatus for providing search results is generally disposed in the server 105.
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the number of terminal devices, networks, and servers in Figure 1 is merely illustrative. Depending on the implementation needs, there can be any number of terminal devices, networks, and servers.
继续参考图2,示出了根据本申请的用于提供搜索结果的方法的一个实施例的流程200。该用于提供搜索结果的方法,包括以下步骤:With continued reference to FIG. 2, a flow 200 of one embodiment of a method for providing search results in accordance with the present application is illustrated. The method for providing search results includes the following steps:
步骤201,对输入的搜索词进行搜索意图分析,以确定所述搜素词是否包含解答需求。Step 201: Perform a search intent analysis on the input search term to determine whether the search term contains a solution requirement.
在本实施例中,用于提供搜索结果的方法运行于其上的电子设备(例如图1所示的服务器105)可以获取用户输入的搜索词,并对搜索词进行分析处理,进而判断搜索词是否包含解答需求,也即判断输入搜索词的用户是否具有通过提问来获取答案的需求。In this embodiment, the electronic device (for example, the server 105 shown in FIG. 1) on which the method for providing search results is run may acquire a search term input by the user, analyze and process the search term, and then determine the search term. Whether to include the answer requirement, that is, whether the user who inputs the search term has the need to obtain an answer through a question.
通常,用户可以利用浏览器提供的输入接口输入搜索词,并利用搜索引擎进行搜索。上述输入接口可例如为搜索框,用户可以通过键入文字来输入搜索词;上述输入接口也可以例如为音频接口,用户可 以通过音频接口输入语音信息,上述电子设备后台可以将语音信息转换为对应的文字搜索词。上述电子设备可以在检测到输入接口被调用后,获取输入的搜索词。Usually, users can use the input interface provided by the browser to input search terms and search using search engines. The input interface may be, for example, a search box, and the user may input a search term by typing a text; the input interface may also be, for example, an audio interface, and the user may In order to input voice information through the audio interface, the electronic device background can convert the voice information into corresponding text search words. The above electronic device may acquire the input search term after detecting that the input interface is called.
在获取到输入的搜索词之后,上述电子设备可以首先对获取到的搜索词进行分词,将输入的序列形式的搜索词切分为独立的词,并基于分词结果和序列形式的搜索词对用户的搜索意图进行分析。After obtaining the input search word, the electronic device may first segment the obtained search word, divide the input search form into separate words, and use the search word based on the word segmentation result and the sequence form to the user. The search intent is analyzed.
在本实施例中,可以采用多种方式来进行上述搜索意图分析。例如可以采用机器学习的方式,利用已训练的搜索意图分析模型来分析上述搜索词对应的搜索意图。另一种可选的方式为根据将搜索词切分后的词及其相关的词所包含的搜索意图进行分析,判断用户是否具有预设类别的需求。在一些可选的实现方式中,上述预设类别可以为预先为各个词配置的,例如问题类、资源类等。举例而言,“哪里”、“哪些”、“什么时间”等词可以被预先配置为问题类,“下载”、“观看”等词可以被预先配置为资源类。若分词结果中包含配置为问题类的词,则可以确定用户具有问题类的需求,即可以确定用户输入的搜索词包含解答需求。In the present embodiment, the above search intent analysis can be performed in various ways. For example, the search intent corresponding to the search term may be analyzed by using a trained search intent analysis model in a machine learning manner. Another alternative is to analyze whether the user has a preset category based on the search intent contained in the word segmented by the search term and its related words. In some optional implementation manners, the foregoing preset categories may be configured in advance for each word, such as a problem class, a resource class, and the like. For example, words such as "where", "what", "when" may be pre-configured as problem classes, and words such as "download", "view" may be pre-configured as resource classes. If the word segmentation result contains a word configured as a question class, it can be determined that the user has the requirement of the problem class, and it can be determined that the search term input by the user includes the solution requirement.
在一些可选的实现方式中,可以通过如下方式分析输入的搜索词是否具有解答需求:将搜索词与预设的问题关键词库进行匹配;若匹配成功,则确定搜索词包含解答需求。具体来说,上述电子设备中可以存储预设的问题关键词库,若搜索词中包含与预设的问题关键词库中的词相匹配的词,则可以确定搜索词包含解答需求。其中,预设关键词库可以包含与提问意图具有较强关联性的词。作为示例,在实际场景中,若用户输入的搜索词为“送给长辈的礼物推荐”,其中,“推荐”与预设的问题关键词库中的问题关键词相匹配,则可以确定搜索词“送给长辈的礼物推荐”包含解答需求。进一步可选地,上述预设的问题关键词库可以为人工配置的或基于机器学习方法训练得出的、与解答需求直接关联或具有潜在的解答需求的词库。In some optional implementations, whether the input search term has a solution requirement can be analyzed by matching the search term with a preset question keyword library; if the match is successful, determining that the search term includes the solution requirement. Specifically, the foregoing electronic device may store a preset problem keyword library, and if the search word includes a word that matches a word in the preset question keyword library, it may be determined that the search word includes a solution requirement. The preset keyword library may include words that have strong relevance to the questioning intention. As an example, in the actual scenario, if the search term input by the user is “a gift recommendation for the elders”, wherein “recommended” matches the question keyword in the preset question keyword library, the search term may be determined. "Recommended gifts for elders" contains answers to your needs. Further optionally, the preset problem keyword library may be a thesaurus that is manually configured or trained based on a machine learning method and directly related to the solution requirement or has a potential solution requirement.
请参考图3,其示出了根据本申请的确定搜素词是否包含解答需求的方法的一种具体实施方式的流程300的示意图。Please refer to FIG. 3, which shows a schematic diagram of a process 300 of a specific embodiment of a method for determining whether a search term contains a solution requirement in accordance with the present application.
如图3所示,在步骤301中,获取搜索词的历史搜索结果以及历 史搜索结果的类别信息。As shown in FIG. 3, in step 301, a historical search result of the search term and a calendar are obtained. Category information for historical search results.
上述电子设备可以存储各搜索词的历史搜索结果。在判断步骤201获取的搜索词是否包含解答需求时,上述电子设备可以在存储的大量的历史搜索结果中查找出步骤201获取的搜索词的历史搜索结果,并确定历史搜索结果的类别信息。上述类别信息可以包括问答类、内容推荐类、资源类等。每条历史搜索结果的类别信息可以由该历史搜索结果的来源网站、内容的类别等确定,进一步地,每条历史搜索结果的类别信息可以与该历史搜索结果的来源网站的类别信息或该历史搜索结果的内容的类别信息相一致。举例来说,若一条历史搜索结果的来源网站为“百度知道”,且“百度知道”的类别信息为问答类,则可以确定该条历史搜索结果的类别信息为问答类;或者若一条历史搜索结果包含多个问答句式的对话,则可以确定该条历史搜索结果的类别信息为问答类;又或者当一条历史搜索结果中包含多条推荐内容时(换言之该历史搜索词触发了内容推荐),可以确定该历史搜索结果的内容为内容推荐类,则可以进一步确定该历史搜索结果的类别信息为内容推荐类。在一些实现方式中,历史搜索结果中包含上述电子设备根据不同用户的大数据量的查询历史确定出的上述搜索词的相关检索式,可将这些相关检索式作为历史搜索结果,根据相关检索式的类别确定搜索词是否包含解答需求,例如当相关检索式中包含疑问句时,可以确定上述搜索词的历史搜索结果的类别信息为问答类。The above electronic device can store historical search results of each search term. The determining, by the electronic device, the historical search result of the search term acquired in step 201 in the stored large number of historical search results, and determining the category information of the historical search result. The above category information may include a question and answer class, a content recommendation class, a resource class, and the like. The category information of each historical search result may be determined by the source website of the historical search result, the category of the content, and the like. Further, the category information of each historical search result may be related to the category information of the source website of the historical search result or the history. The category information of the content of the search results is consistent. For example, if the source website of a historical search result is "Baidu Know" and the category information of "Baidu Know" is a question and answer class, it can be determined that the category information of the historical search result is a question and answer class; or if a historical search is performed The result includes a dialogue of multiple question and answer sentences, then it can be determined that the category information of the historical search result is a question and answer class; or when a historical search result contains multiple recommended contents (in other words, the historical search word triggers the content recommendation) And determining that the content of the historical search result is a content recommendation class, the category information of the historical search result may be further determined to be a content recommendation class. In some implementations, the historical search result includes a related search formula of the search term determined by the electronic device according to a query history of a large data amount of different users, and the related search formula may be used as a historical search result, according to the related search formula. The category determines whether the search term contains a solution requirement. For example, when the relevant query contains a question, the category information of the historical search result of the search term may be determined as a question and answer class.
需要说明的是,历史搜索结果的类别信息可以为预先配置的,也可以为根据历史搜索结果的来源网站、内容等属性进行分析得出的。各网站的类别信息和不同内容的类别信息分析可以采用已有的各种类别分析方法,此处不作特殊限定。It should be noted that the category information of the historical search result may be pre-configured, or may be analyzed based on attributes such as the source website and content of the historical search result. The category information of each website and the category information analysis of different contents may adopt various existing analysis methods of various categories, and are not specifically limited herein.
在步骤302中,响应于确定所述获取的类别信息为问答类或内容推荐类,确定搜索词包含解答需求。In step 302, in response to determining that the acquired category information is a question-answer class or a content recommendation class, it is determined that the search term includes a solution requirement.
当步骤301所获取的历史搜索结果的类别信息为问答类或内容推荐类时,可以确定输入搜索词的用户具有提问的潜在需求,即可以确定用户输入的搜索词包含解答需求。也就是说,如果上述类别信息为问答类或内容推荐类,可以确定用户的实际搜索意图是提出一个需要 解答的问题。When the category information of the historical search result obtained in step 301 is a question-answer class or a content recommendation class, it may be determined that the user who inputs the search term has a potential requirement for the question, and then the search term input by the user may be determined to include the solution requirement. That is to say, if the above category information is a question-answer class or a content recommendation class, it can be determined that the user's actual search intention is to present a need Answer the question.
在进一步的实施例中,若上述类别信息不是问答类或内容推荐类,则可以确定步骤201获取的搜索词不包含解答需求。In a further embodiment, if the category information is not a question or answer category or a content recommendation category, it may be determined that the search term obtained in step 201 does not include a solution requirement.
通过以上确定搜索词是否包含解答需求的可选实现方式的流程300及其他用于确定搜索词是否包含解答需求的可选方式,上述电子设备可以实现对用户的搜索意图的估计,以利用分析结果为提供切合用户需求的信息。The above electronic device can implement an estimation of the user's search intent to utilize the analysis result by the above process 300 for determining whether the search term includes an optional implementation of the solution requirement and other optional means for determining whether the search term contains a solution requirement. To provide information that meets the needs of users.
返回图2,在步骤202中,响应于确定搜索词包含解答需求,利用搜索词检索出与解答需求对应的解答内容。Returning to FIG. 2, in step 202, in response to determining that the search term contains a solution request, the search term is used to retrieve the solution content corresponding to the solution requirement.
在本实施例中,上述电子设备在确定搜索词包含解答需求,即确定用户具有提出待回答的问题的意图之后,可以在数据库中检索出与解答需求对应的解答内容。In this embodiment, after determining that the search term includes a solution requirement, that is, determining that the user has an intention to propose a question to be answered, the electronic device may retrieve a solution content corresponding to the solution requirement in the database.
具体来说,上述电子设备可以直接利用搜索词进行检索,并筛选出解答类的检索结果,提取出其中的解答内容。或者可以在对搜索词进行搜索意图分析时解析出搜索词对应的解答需求,基于解答需求进行检索,得到解答内容。举例而言,在确定用户的解答需求之后,可以在知识类网站中(例如“百度知道”)抓取与解答需求对应的解答内容。或者,上述电子设备可以在搜索词的基础上根据解答需求添加关联词和辅助词以将搜索词扩展为问答类的检索式来进行检索,例如,当输入的搜索词为“奢侈品包包”时,可以将搜索词扩展为“奢侈品包包品牌有哪些”等问答类的检索式进行检索,以便上述电子设备快速检索出对应与问答类的检索式的解答内容。Specifically, the electronic device can directly search by using a search term, and filter out the search result of the solution class, and extract the solution content therein. Or, in the search intention analysis of the search term, the solution demand corresponding to the search term can be parsed, and the solution is obtained based on the solution requirement, and the solution content is obtained. For example, after determining the user's answering needs, the answer content corresponding to the answering requirement can be crawled in the knowledge-based website (for example, "Baidu Know"). Alternatively, the electronic device may perform a search by adding a related word and an auxiliary word according to the answer requirement to expand the search word into a query type of the question and answer type based on the search word, for example, when the input search word is “luxury bag” The search term can be expanded to search for the question and answer type of the "luxury bag brand", so that the electronic device can quickly retrieve the answer content of the search formula corresponding to the question and answer class.
步骤203,获取与解答内容关联的待推荐内容。Step 203: Acquire content to be recommended associated with the solution content.
在本实施例中,上述电子设备可以在待推荐内容库中查找出与上述解答内容关联的待推荐内容。上述待推荐内容库中包含具有推荐属性的待推荐内容,推荐属性用于标识待推荐内容的属性特征,具体地,推荐属性可以为可匹配该待推荐内容的特征信息。In this embodiment, the electronic device may find the content to be recommended associated with the solution content in the content library to be recommended. The content to be recommended includes the content to be recommended with the recommended attribute, and the recommended attribute is used to identify the attribute of the content to be recommended. Specifically, the recommended attribute may be the feature information that can match the content to be recommended.
在一些可选的实现方式中,上述推荐属性可以为待推荐内容所配置的预设关键词,这时,可以通过如下方式获取与解答内容关联的待推荐内容:首先提取解答内容中对应于解答需求的关键词,之后将提 取出的关键词与预设推荐内容所配置的预设关键词进行匹配,将匹配成功的预设关键词对应的预设推荐内容确定为与解答内容关联的待推荐内容。具体地,上述电子设备可以将解答内容中的一个或多个关键词提取出来,然后确定提取出的关键词是否与解答需求对应,并利用提取出的每一个与解答需求对应的关键词与各待推荐内容的预设关键词进行匹配,若匹配成功,则将匹配成功的预设关键词对应的预设待推荐内容作为与该提取出的关键词对应的待推荐内容,即作为与解答内容关联的待推荐内容。这样,在解答内容中包含多个关键词时,可以匹配得出每个关键词对应的不同的待推荐内容。In some optional implementation manners, the recommended attribute may be a preset keyword configured by the content to be recommended. In this case, the content to be recommended associated with the solution content may be obtained by: first extracting the solution content corresponding to the solution Key words of demand, will be mentioned later The extracted keyword is matched with the preset keyword configured by the preset recommended content, and the preset recommended content corresponding to the successfully matched preset keyword is determined as the to-be-recommended content associated with the solution content. Specifically, the electronic device may extract one or more keywords in the solution content, and then determine whether the extracted keyword corresponds to the solution requirement, and use each of the extracted keywords corresponding to the solution requirement and each The preset keywords of the recommended content are matched. If the matching is successful, the preset recommended content corresponding to the successfully matched preset keyword is used as the to-be-recommended content corresponding to the extracted keyword, that is, the content of the solution. Associated content to be recommended. In this way, when a plurality of keywords are included in the solution content, different to-be-recommended contents corresponding to each keyword can be matched.
可选地,上述待推荐内容可以为上述电子设备预先存储的、并已配置预设关键词的内容。这些待推荐内容可以包含更丰富的推荐信息,可以例如为新闻信息、广告等。Optionally, the content to be recommended may be content pre-stored by the electronic device and configured with a preset keyword. These to-be-recommended content may contain richer recommendation information, which may be, for example, news information, advertisements, and the like.
步骤204,将解答内容与待推荐内容组合,生成至少一项搜索结果。Step 204: Combine the solution content with the content to be recommended, and generate at least one search result.
在获取与解答内容关联的待推荐内容之后,可以将待推荐内容与对应的解答内容相组合,生成搜索结果。具体来说,对于步骤202检索得出的一条解答内容,可以将其和与其关联的一个或多个待推荐内容相组合,生成一项搜索结果。若步骤202检索得出多条解答内容,则在本实施例中可以生成对应的多项搜索结果。组合的方式可以为将解答内容与关联的待推荐内容合并,或将解答内容与待推荐内容间的关联关系存储至数据库中。这样,每一项搜索结果包含解答内容和与其关联的待推荐内容,则可以快速地提供更丰富的信息,用户只需进行一次搜索操作即可获取解答内容即相关的推荐信息,简化了用户获取信息的操作。After obtaining the content to be recommended associated with the solution content, the content to be recommended may be combined with the corresponding solution content to generate a search result. Specifically, for a solution content retrieved in step 202, it may be combined with one or more items to be recommended associated with it to generate a search result. If the step 202 retrieves a plurality of pieces of solution content, the corresponding plurality of search results may be generated in the embodiment. The combination may be performed by combining the solution content with the associated content to be recommended, or storing the relationship between the solution content and the content to be recommended in the database. In this way, each search result contains the answer content and the related content to be recommended, so that the rich information can be quickly provided, and the user only needs to perform a search operation to obtain the answer content, that is, the related recommendation information, which simplifies the user's acquisition. The operation of the information.
在一些可选的实现方式中,若步骤203中提取了解答内容中对应于解答需求的关键词,则可以将提取出的关键词和与其匹配成功的预设推荐内容相结合,生成对应的搜索结果。也就是说,在这里利用关键词替代解答内容,并结合对应的待推荐内容生成搜索结果,可以简化搜索结果,并提供用户更感兴趣的关键信息,有利于用户快速获取信息。 In some optional implementation manners, if the keyword corresponding to the solution requirement in the solution content is extracted in step 203, the extracted keyword may be combined with the preset recommended content successfully matched to generate a corresponding search. result. That is to say, by using the keyword instead of the solution content and generating the search result in combination with the corresponding content to be recommended, the search result can be simplified, and the key information more interesting to the user is provided, which is beneficial for the user to quickly obtain the information.
由此,本实施例的上述用于提供搜索结果的方法,通过对搜索词的搜索意图进行分析,在确定搜索词包含解答需求时,获取与解答需求关联的待推荐内容,并将检索到的解答内容和待推荐内容相结合生成搜索结果,可以快速地在搜索结果中提供更丰富的、更好地满足用户潜在需求的信息。Thus, the method for providing search results of the present embodiment, by analyzing the search intent of the search term, obtains the to-be-recommended content associated with the solution request when determining that the search term includes the solution request, and retrieves the retrieved content. The combination of the content of the solution and the content to be recommended generates search results, which can quickly provide more information in the search results that better meets the potential needs of users.
请参考图4,其示出了根据本申请的用于提供搜索结果的方法的另一个实施例的流程图,该用于提供搜索结果的方法流程400,包括以下步骤:Please refer to FIG. 4, which shows a flowchart of another embodiment of a method for providing search results according to the present application. The method flow 400 for providing search results includes the following steps:
步骤401,对输入的搜索词进行搜索意图分析,以确定所述搜素词是否包含解答需求。Step 401: Perform a search intent analysis on the input search term to determine whether the search term contains a solution requirement.
在本实施例中,用于提供搜索结果的方法运行于其上的电子设备(例如图1所示的服务器105)可以获取用户输入的搜索词,并对搜索词进行分析处理,进而判断搜索词是否包含解答需求,也即判断输入搜索词的用户是否具有通过提问来获取答案的需求。具体地,在获取到输入的搜索词之后,上述电子设备可以采用多种方式来进行搜索意图分析。例如可以利用已训练的搜索意图分析模型来分析上述搜索词对应的搜索意图,或者根据将搜索词切分后的词及其相关的词所包含的搜索意图进行分析,判断用户是否具有预设类别的需求,又或者可以将搜索词与预设的问题关键词库进行匹配;若匹配成功,则确定搜索词包含解答需求。其中预设的问题关键词库包括与提问意图具有较强关联性的词。作为示例,在实际场景中,若用户输入的搜索词为“送给长辈的礼物推荐”,其中,“推荐”与预设的问题关键词库相匹配,则可以确定搜索词“送给长辈的礼物推荐”包含解答需求。In this embodiment, the electronic device (for example, the server 105 shown in FIG. 1) on which the method for providing search results is run may acquire a search term input by the user, analyze and process the search term, and then determine the search term. Whether to include the answer requirement, that is, whether the user who inputs the search term has the need to obtain an answer through a question. Specifically, after acquiring the input search term, the electronic device may perform search intent analysis in various manners. For example, the trained search intent analysis model may be used to analyze the search intent corresponding to the search term, or the search intent included in the word segmented by the search term and the related search term may be analyzed to determine whether the user has a preset category. The requirement, or the search term can be matched with the preset question keyword library; if the match is successful, it is determined that the search term contains the solution requirement. The preset problem keyword library includes words that have strong relevance to the questioning intent. As an example, in the actual scenario, if the search term input by the user is “a gift recommendation for the elders”, wherein “recommended” matches the preset question keyword library, the search term “is given to the elders”. Gift recommendation" contains the answer to the request.
可选地,还可以通过如下方式确定上述搜索词是否包含解答需求:获取搜索词的历史搜索结果以及历史搜索结果的类别信息,响应于确定所述获取的类别信息为问答类或内容推荐类,确定搜索词包含解答需求。也即可以根据搜索词的历史搜索结果的来源网站、内容的类别等来确定搜索词是否包含解答需求。Optionally, the method further includes: determining whether the search term includes a solution requirement: acquiring a historical search result of the search term and category information of the historical search result, and responding to determining that the acquired category information is a question-answer class or a content recommendation class, Make sure the search term contains the answer to the request. That is, it is possible to determine whether the search term contains a solution request according to the source website of the historical search result of the search term, the category of the content, and the like.
步骤402,响应于确定搜索词包含解答需求,利用搜索词检索出与解答需求对应的解答内容。 Step 402, in response to determining that the search term includes a solution requirement, using the search term to retrieve a solution content corresponding to the solution requirement.
在本实施例中,上述电子设备在确定搜索词包含解答需求,即确定用户具有提出待回答的问题的意图之后,可以在数据库中检索出与解答需求对应的解答内容。In this embodiment, after determining that the search term includes a solution requirement, that is, determining that the user has an intention to propose a question to be answered, the electronic device may retrieve a solution content corresponding to the solution requirement in the database.
步骤403,获取与解答内容关联的待推荐内容。Step 403: Acquire content to be recommended associated with the solution content.
在本实施例中,可以在待推荐内容库中查找出与上述解答内容关联的待推荐内容。例如可以通过对解答内容与待推荐内容的语义分析确定其相关度,选择相关度较高的待推荐内容作为与解答内容关联的待推荐内容。或者在一些可选的实现方式中,可以提取解答内容中对应于解答需求的关键词,之后将提取出的关键词与预设推荐内容所配置的预设关键词进行匹配,将匹配成功的预设关键词对应的预设推荐内容确定为与解答内容关联的待推荐内容。In this embodiment, the content to be recommended associated with the above solution content may be found in the content library to be recommended. For example, the relevance of the solution content and the content to be recommended may be determined by semantic analysis, and the content to be recommended with higher relevance is selected as the content to be recommended associated with the solution content. Or in some optional implementation manners, the keywords corresponding to the solution requirements in the solution content may be extracted, and then the extracted keywords are matched with the preset keywords configured by the preset recommended content, and the matching success is pre-matched. The preset recommended content corresponding to the keyword is determined as the content to be recommended associated with the answer content.
步骤404,将解答内容与待推荐内容组合,生成至少一项搜索结果。 Step 404, combining the solution content with the content to be recommended, and generating at least one search result.
在获取与解答内容关联的待推荐内容之后,可以将待推荐内容与对应的解答内容相组合,生成搜索结果。组合的方式可以为将解答内容与关联的待推荐内容合并,或将解答内容与待推荐内容间的关联关系存储至数据库中。这样,每一项搜索结果包含解答内容和与其关联的待推荐内容。After obtaining the content to be recommended associated with the solution content, the content to be recommended may be combined with the corresponding solution content to generate a search result. The combination may be performed by combining the solution content with the associated content to be recommended, or storing the relationship between the solution content and the content to be recommended in the database. In this way, each search result contains the answer content and the content to be recommended associated with it.
在一些可选的实现方式中,若步骤203中提取了解答内容中对应于解答需求的关键词,则可以将提取出的关键词和与其匹配成功的预设推荐内容相结合,生成对应的搜索结果。也就是说,在这里利用关键词替代解答内容,并结合对应的待推荐内容生成搜索结果,可以简化搜索结果,并提供用户更感兴趣的信息,有利于用户快速获取信息。In some optional implementation manners, if the keyword corresponding to the solution requirement in the solution content is extracted in step 203, the extracted keyword may be combined with the preset recommended content successfully matched to generate a corresponding search. result. That is to say, by using the keyword instead of the solution content and generating the search result in combination with the corresponding content to be recommended, the search result can be simplified, and the information more interesting to the user can be provided, which is beneficial for the user to quickly obtain the information.
需要说明的是,上述步骤401-步骤404中的具体操作与步骤201-步骤204的具体操作基本相同,在此不再赘述。It should be noted that the specific operations in the foregoing steps 401 to 404 are substantially the same as the specific operations in the steps 201 to 204, and details are not described herein again.
步骤405,推送各项搜索结果。In step 405, various search results are pushed.
在生成各项搜索结果之后,上述电子设备(例如图1所示服务器105)可以将搜索结果推送至接收用户输入的终端设备(例如图1所示终端设备101、102、103)。终端设备可以创建搜索结果页面,上述电子设备可以将搜索结果推送至搜索结果页面以供展示。终端设备可以 将搜索结果渲染至搜索结果页面中进行展示。可以在搜索结果页面内创建多个用于展示搜索结果的条目栏并将各搜索结果展示在各条目栏中。进一步地,上述电子设备可以将搜索结果对应的匹配度排序(例如搜索结果中的解答内容与上述解答需求的匹配度排序)一并推送。这样,终端设备可以依据各项搜索结果中的解答内容与上述解答需求的匹配度排序依次展示对应的各项搜素结果。在这里,每项搜索结果都包含至少一条解答内容和与该解答内容关联的待推荐内容,在展示时,可以将各项解答内容和与其关联的待推荐内容关联地展示。After generating the various search results, the electronic device (eg, server 105 shown in FIG. 1) can push the search results to a terminal device (eg, terminal devices 101, 102, 103 shown in FIG. 1) that receives user input. The terminal device can create a search result page, and the electronic device can push the search result to the search result page for display. Terminal equipment can Render search results to the search results page for display. Multiple entry fields for presenting search results can be created within the search results page and each search result displayed in each entry column. Further, the electronic device may push the matching degree order corresponding to the search result (for example, the answer content in the search result is sorted with the matching degree of the solution requirement). In this way, the terminal device can sequentially display the corresponding search results according to the matching content of the answer content in each search result and the matching requirement of the above solution. Here, each search result includes at least one answer content and a to-be-recommended content associated with the answer content, and each of the answer content can be displayed in association with the to-be-recommended content associated with it.
在一些可选的实现方式中,为了节省上述搜索结果所占用的展示空间,简化搜索结果页面,上述电子设备可以通过创建用于指向包含多项搜索结果的页面的链接,并推送该链接来推送各项搜索结果。这样,用户可以通过点击该链接打开对应的包含多项搜索结果的页面,以获取上述各项搜索结果。In some optional implementation manners, in order to save the display space occupied by the above search result and simplify the search result page, the electronic device may push by creating a link for pointing to a page containing multiple search results and pushing the link. Various search results. In this way, the user can click on the link to open the corresponding page containing multiple search results to obtain the above search results.
相应地,中断设备在接收到上述电子设备推送的搜索结果之后。可以采用多种展示方式对上述各项搜索结果进行展示。一种可选的实现方式为在搜索结果页面上同时展示多项搜索结果,这样用户无需再进行其他操作便可以获得解答内容和推荐的内容。Accordingly, the interrupting device is after receiving the search result pushed by the electronic device. The above search results can be displayed in a variety of presentations. An alternative implementation is to display multiple search results simultaneously on the search results page so that the user can get answers and recommendations without further action.
请参考图5a,其示出了根据本申请的用于提供搜索结果的一个应用场景的效果示意图。其中,用户在终端设备提供的浏览器或其他可支持搜索的应用中的搜索框501中键入搜索词“军训需要带什么东西”之后,终端可以向服务器发起搜索请求,服务器对搜索词进行搜索意图分析,可以根据搜索词中包含的关键词“什么”确定搜索词包含解答需求,这时服务器可以利用搜索词检索出与解答需求对应的解答内容:“防晒霜”、“牙膏”等,之后,服务器可以从后台的待推荐内容库(例如广告数据库)中查找出与防晒霜关联的待推荐内容(例如防晒霜广告),将解答内容“防晒霜”与防晒霜广告组合为一项搜索结果502;可以从后台的待推荐内容库(例如广告数据库)中查找出与牙膏关联的待推荐内容(例如牙膏广告),将解答内容“牙膏”与牙膏广告组合为一项搜索结果503。之后服务器可以直接将搜索结果502和搜索结果503推送至终端设备,终端设备可以直接在搜索结果页面51 中展示搜索结果502和搜索结果503。Please refer to FIG. 5a, which illustrates an effect diagram of an application scenario for providing search results according to the present application. After the user types the search term “What is required for military training” in the search box 501 in the browser provided by the terminal device or other searchable application, the terminal may initiate a search request to the server, and the server searches for the search term. Analysis, according to the keyword "what" contained in the search term to determine the search term contains the solution requirements, then the server can use the search term to retrieve the answer content corresponding to the solution needs: "sunscreen", "toothpaste", etc., after The server can find the content to be recommended (such as a sunscreen advertisement) associated with the sunscreen from the background content library to be recommended in the background (for example, an advertisement database), and combine the answer content "sunscreen" with the sunscreen advertisement as a search result 502. The content to be recommended (for example, toothpaste advertisement) associated with the toothpaste can be found from the background content library to be recommended (for example, an advertisement database), and the answer content “toothpaste” and the toothpaste advertisement can be combined into one search result 503. The server can then directly push the search result 502 and the search result 503 to the terminal device, and the terminal device can directly on the search result page 51. Search results 502 and search results 503 are displayed.
上述接收服务器推送的搜索结果终端设备还可以采用如下方式展示各项搜索结果:在搜索结果页面上创建可切换的选项卡,在各选项卡中分别呈现各项搜索结果。The search result terminal device pushed by the receiving server may also display various search results by creating a switchable tab on the search result page, and presenting each search result in each tab.
请参考图5b,其示出了根据本申请的用于提供搜索结果的一个应用场景的效果示意图。其中,用户在电子设备提供的浏览器或其他可支持搜索的应用中的搜索框511中键入搜索词“奥巴马戴的是什么手表”之后,电子设备可以向服务器发起搜索请求,服务器对搜索词进行搜索意图分析,可以根据搜索词中包含的关键词“什么”确定搜索词包含解答需求,这时服务器可以利用搜索词检索出与解答需求对应的解答内容:“豪雅”、“Jorg Gray”、“阿玛尼”,之后,服务器可以从后台的广告数据库中查找出“豪雅”Jorg Gray”、“阿玛尼”手表品牌分别对应的简介和广告,将各手表品牌名称与对应的简介和广告分别组合为各项搜索结果,然后推送至电子设备。电子设备可以在搜索结果页面52中创建对应的三个选项卡512、513、514,并在各选项卡中分别展示对应的手表品牌名称和与其对应的品牌简介及广告。进一步地,可以通过点击或手势操作来切换选项卡,以方便用户获取不同解答内容及关联的推荐内容。Please refer to FIG. 5b, which illustrates an effect diagram of an application scenario for providing search results according to the present application. After the user types the search term "What watch is Obama's watch" in the search box 511 in the browser provided by the electronic device or other search-enabled application, the electronic device can initiate a search request to the server, and the server performs the search term. Search intent analysis, according to the keyword "what" contained in the search term to determine the search term contains the answer needs, then the server can use the search term to retrieve the answer content corresponding to the answer: "TAG Heuer", "Jorg Gray", " Armani", after that, the server can find the corresponding profiles and advertisements of "TAG Heuer" Jorg Gray" and "Armani" watch brands from the background advertisement database, and combine the names of each watch brand with the corresponding profiles and advertisements. The search results are then pushed to the electronic device. The electronic device can create corresponding three tabs 512, 513, 514 in the search result page 52, and display corresponding watch brand names and corresponding brand profiles in each tab. And advertising. Further, it can be done by clicking or gesture Switch tabs to make it easy for users to get different answers and associated recommendations.
在一些可选的实现方式中,若服务器在生成搜索结果后创建了用于指向包含多项搜索结果的页面的链接,并推送了该链接,则上述终端设备可以在搜索结果页面内展示推送的链接。图5c所示为根据本申请的用于提供搜索结果的一个应用场景的效果示意图。In some optional implementations, if the server creates a link for a page that includes multiple search results after generating the search result, and pushes the link, the terminal device may display the push in the search result page. link. FIG. 5c is a schematic diagram showing the effect of an application scenario for providing search results according to the present application.
如图5c所示,用户在终端设备提供的浏览器或其他可支持搜索的应用中的搜索框521中键入搜索词“军训需要带什么东西”之后,终端可以向服务器发起搜索请求,服务器对搜索词进行搜索意图分析,可以根据搜索词中包含的关键词“什么”确定搜索词包含解答需求,这时服务器可以利用搜索词检索出与解答需求对应的解答内容:“防晒霜”、“牙膏”等,之后,服务器可以从后台广告数据库中查找出与防晒霜广告和牙膏广告,将解答内容“防晒霜”与防晒霜广告组合为一项搜索结果,将解答内容“牙膏”与牙膏广告组合为另一项搜索结 果。之后服务器可以创建一个链接522,该链接522指向页面54的网络地址,页面54中包含防晒霜与防晒霜广告组合形成的一项搜索结果以及牙膏与牙膏广告组合形成的一项搜索结果。服务器可以将链接522推送至发出搜索请求的终端设备,终端设备可以在搜索结果页面53中展示该链接522,该链接522被点击时呈现页面54。由此在丰富搜索结果、提升用户的信息获取效率的同时可以减小搜索结果所占用的展示空间。As shown in FIG. 5c, after the user types the search term "What is required for military training" in the search box 521 in the browser provided by the terminal device or other search-enabled application, the terminal can initiate a search request to the server, and the server searches for The word is used for search intent analysis. The search term can be determined according to the keyword “what” included in the search term. The server can use the search term to retrieve the answer content corresponding to the solution requirement: “sunscreen” and “toothpaste”. After that, the server can find the sunscreen advertisement and the toothpaste advertisement from the background advertisement database, combine the content "sunscreen" and the sunscreen advertisement into a search result, and combine the answer "toothpaste" and the toothpaste advertisement into Another search knot fruit. The server can then create a link 522 that points to the network address of page 54, which contains a search result of a combination of sunscreen and sunscreen ads and a search result formed by a combination of toothpaste and toothpaste ads. The server can push the link 522 to the terminal device that issued the search request, and the terminal device can display the link 522 in the search results page 53, which is rendered on page 54 when clicked. This can reduce the display space occupied by the search results while enriching the search results and improving the user's information acquisition efficiency.
以上可知,与图2所示实施例相比,本实施例的用于提供搜索结果的方法的流程400增加了推送搜索结果的步骤405,通过步骤405,可以将生成的搜索结果推送至接收搜索词的终端设备以供展示,使用户可以高效地获取信息。As can be seen from the above, the flow 400 of the method for providing search results of the present embodiment increases the step 405 of pushing the search result, and by step 405, the generated search result can be pushed to the received search. The terminal device of the word is displayed for the user to obtain information efficiently.
请参考图6,作为对上述各图所示方法的实现,本申请提供了一种用于提供搜索结果的装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。Referring to FIG. 6, as an implementation of the method shown in the above figures, the present application provides an embodiment of an apparatus for providing search results, the apparatus embodiment corresponding to the method embodiment shown in FIG. The device can be specifically applied to various electronic devices.
如图6所示,本实施例的用于提供搜索结果的装置600包括:分析单元601,检索单元602,获取单元603以及生成单元604。其中分析单元601配置用于对输入的搜索词进行搜索意图分析,以确定搜素词是否包含解答需求;检索单元602配置用于响应于确定搜索词包含解答需求,利用搜索词检索出与解答需求对应的解答内容;获取单元603配置用于获取与解答内容关联的待推荐内容;生成单元604配置用于将解答内容与待推荐内容组合,生成至少一项搜索结果。As shown in FIG. 6, the apparatus 600 for providing search results of the present embodiment includes an analysis unit 601, a retrieval unit 602, an acquisition unit 603, and a generation unit 604. The analyzing unit 601 is configured to perform a search intent analysis on the input search term to determine whether the search term contains a solution requirement; the retrieving unit 602 is configured to retrieve and answer the request by using the search term in response to determining that the search term includes the solution requirement Corresponding solution content; the obtaining unit 603 is configured to acquire the to-be-recommended content associated with the solution content; the generating unit 604 is configured to combine the solution content with the content to be recommended to generate at least one search result.
在本实施例中,分析单元601可以获取用户输入的搜索词,并利用分词、机器学习等方法对搜索词进行分析处理,进而判断搜索词是否包含解答需求。In this embodiment, the analyzing unit 601 can acquire the search words input by the user, and analyze and process the search words by using a word segmentation, machine learning, and the like to determine whether the search words include the solution requirements.
检索单元602在确定分析单元601的分析结果为搜索词包含解答需求时,可以直接利用搜索词进行检索,并筛选出解答类的检索结果,提取出其中的解答内容。或者可以在对搜索词进行搜索意图分析时解析出搜索词对应的解答需求,基于解答需求进行检索,得到解答内容。When the analysis result of the determination analysis unit 601 is that the search result includes the solution requirement, the retrieval unit 602 can directly search using the search term, and filter out the retrieval result of the solution class, and extract the solution content therein. Or, in the search intention analysis of the search term, the solution demand corresponding to the search term can be parsed, and the solution is obtained based on the solution requirement, and the solution content is obtained.
获取单元603可以在待推荐内容库中查找出与上述解答内容关联的待推荐内容。其中,与解答内容关联的待推荐内容可以为与解答内 容的语义相关度超过预设的阈值的待推荐内容。The obtaining unit 603 can find the to-be-recommended content associated with the above solution content in the content library to be recommended. Among them, the content to be recommended associated with the answer content can be within the answer The semantic relevance of the content exceeds a preset threshold for the content to be recommended.
生成单元604可以将解答内容和与解答内容关联的待推荐内容合并,生成搜索结果。若检索单元602检索得出多条解答内容,则在本实施例中生成单元604可以生成对应的多项搜索结果。The generating unit 604 may combine the solution content and the content to be recommended associated with the solution content to generate a search result. If the retrieval unit 602 retrieves a plurality of pieces of solution content, the generating unit 604 may generate a corresponding plurality of search results in the embodiment.
在本实施的一些可选的实现方式中,分析单元601可以进一步配置用于按照如下方式确定搜索词是否包含搜索需求:将搜索词与预设的问题关键词库进行匹配;若匹配成功,则确定搜索词包含解答需求。其中预设的问题关键词库可以包含与提问意图具有较强关联性的词。In some optional implementation manners of the implementation, the analyzing unit 601 may be further configured to determine whether the search term includes a search requirement by matching the search term with a preset problem keyword library; if the matching is successful, Make sure the search term contains the answer to the request. The preset question keyword library may contain words that have strong relevance to the question intent.
在本实施的一些可选的实现方式中,分析单元601可以进一步配置用于按照如下方式确定搜索词是否包含搜索需求:获取搜索词的历史搜索结果以及历史搜索结果的类别信息;响应于确定所获取的类别信息为问答类或内容推荐类,确定搜索词包含解答需求。即分析单元601可以根据搜索词的历史搜索结果的内容、来源网站等确定其类别信息,若类别信息为问答类或内容推荐类,则可以确定搜索词包含搜索需求。In some optional implementation manners of the implementation, the analyzing unit 601 may be further configured to determine whether the search term includes a search requirement by acquiring a historical search result of the search term and category information of the historical search result; The obtained category information is a question or answer category or a content recommendation category, and the search term is determined to include the answer requirement. That is, the analyzing unit 601 can determine the category information according to the content of the historical search result of the search term, the source website, and the like. If the category information is a question answer class or a content recommendation class, it can be determined that the search term includes the search requirement.
在本实施的一些可选的实现方式中,获取单元603可以进一步配置用于按照如下方式获取与解答内容关联的待推荐内容:提取解答内容中对应于解答需求的关键词;将提取出的关键词与预设推荐内容所配置的预设关键词进行匹配;将匹配成功的预设关键词对应的预设推荐内容确定为与解答内容关联的待推荐内容。In some optional implementation manners of the implementation, the obtaining unit 603 may be further configured to obtain the content to be recommended associated with the solution content by extracting keywords corresponding to the solution requirements in the solution content; The word is matched with the preset keyword configured by the preset recommended content; and the preset recommended content corresponding to the successfully matched preset keyword is determined as the to-be-recommended content associated with the solution content.
在进一步的实现方式中,生成单元604进一步配置用于按照如下方式生成至少一项搜索结果:将提取出的关键词与对应的预设推荐内容结合,生成对应的搜索结果。In a further implementation manner, the generating unit 604 is further configured to generate at least one search result by combining the extracted keyword with the corresponding preset recommended content to generate a corresponding search result.
在本实施的一些可选的实现方式中,上述装置600还包括推送单元605(未示出),推送单元配置用于推送各项搜索结果。进一步地,推送单元605可以进一步配置用于按照如下方式推送各项搜索结果:将各项搜索结果推送至搜索结果页面以供展示;和/或创建用于指向包含多项搜索结果的页面的链接,并推送链接。In some optional implementations of the present implementation, the apparatus 600 further includes a push unit 605 (not shown) configured to push various search results. Further, the pushing unit 605 can be further configured to push each search result by pushing each search result to the search result page for display; and/or creating a link for pointing to a page containing multiple search results And push the link.
上述用于提供搜索结果的装置600的实施例可以对用户的搜索意图进行分析,并查找与检索出的解答内容关联的待推荐内容,可以提 供更丰富的搜索结果,提升了为用户提供信息的效率。The above embodiment of the apparatus 600 for providing search results may analyze the user's search intent and find the to-be-recommended content associated with the retrieved answer content, which may be mentioned For richer search results, it improves the efficiency of providing information to users.
本申请还提供了一种服务器,该服务器包括一个或多个处理器,以及存储装置。存储装置用于存储一个或多个程序,存储装置所存储的一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现本申请上述实施例的用于提供搜索结果的方法。The application also provides a server that includes one or more processors, and a storage device. The storage device is for storing one or more programs, and the one or more programs stored by the storage device are executed by one or more processors, such that the one or more processors implement the above-described embodiments of the present application for providing search results. method.
下面参考图7,其示出了适于用来实现本申请实施例的服务器的计算机系统700的结构示意图。图7示出的服务器仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring now to Figure 7, a block diagram of a computer system 700 suitable for use with a server for implementing embodiments of the present application is shown. The server shown in FIG. 7 is merely an example, and should not impose any limitation on the function and scope of use of the embodiments of the present application.
如图7所示,计算机系统700包括中央处理单元(CPU)701,其可以根据存储在只读存储器(ROM)702中的程序或者从存储部分708加载到随机访问存储器(RAM)703中的程序而执行各种适当的动作和处理。在RAM 703中,还存储有系统700操作所需的各种程序和数据。CPU 701、ROM 702以及RAM 703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。As shown in FIG. 7, computer system 700 includes a central processing unit (CPU) 701 that can be loaded into a program in random access memory (RAM) 703 according to a program stored in read only memory (ROM) 702 or from storage portion 708. And perform various appropriate actions and processes. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also coupled to bus 704.
以下部件连接至I/O接口705:包括键盘、鼠标等的输入部分706;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分707;包括硬盘等的存储部分708;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分709。通信部分709经由诸如因特网的网络执行通信处理。驱动器710也根据需要连接至I/O接口705。可拆卸介质711,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器710上,以便于从其上读出的计算机程序根据需要被安装入存储部分708。The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, etc.; an output portion 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), and the like, and a speaker; a storage portion 708 including a hard disk or the like And a communication portion 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the Internet. Driver 710 is also connected to I/O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory or the like, is mounted on the drive 710 as needed so that a computer program read therefrom is installed into the storage portion 708 as needed.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分709从网络上被下载和安装,和/或从可拆卸介质711被安装。在该计算机程序被中央处理单元(CPU)701执行时,执行本申请的方法中限定的上述功能。需要说明的是,本申请所述的计算机可读介质可以是计算机可读信号介质或者计算机可读 存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。In particular, the processes described above with reference to the flowcharts may be implemented as a computer software program in accordance with an embodiment of the present disclosure. For example, an embodiment of the present disclosure includes a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for executing the method illustrated in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via communication portion 709, and/or installed from removable media 711. When the computer program is executed by the central processing unit (CPU) 701, the above-described functions defined in the method of the present application are performed. It should be noted that the computer readable medium described herein may be a computer readable signal medium or a computer readable medium. The storage medium is either any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain or store a program, which can be used by or in connection with an instruction execution system, apparatus or device. In the present application, a computer readable signal medium may include a data signal that is propagated in the baseband or as part of a carrier, carrying computer readable program code. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer readable signal medium can also be any computer readable medium other than a computer readable storage medium, which can transmit, propagate, or transport a program for use by or in connection with the instruction execution system, apparatus, or device. . Program code embodied on a computer readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality and operation of possible implementations of systems, methods and computer program products in accordance with various embodiments of the present application. In this regard, each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the logic functions for implementing the specified. Executable instructions. It should also be noted that in some alternative implementations, the functions noted in the blocks may also occur in a different order than that illustrated in the drawings. For example, two successively represented blocks may in fact be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts, can be implemented in a dedicated hardware-based system that performs the specified function or operation. Or it can be implemented by a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元可以通过软件的方式实 现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括分析单元、检索单元、获取单元和生成单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,分析单元还可以被描述为“对输入的搜索词进行搜索意图分析,以确定搜素词是否包含解答需求的单元”。The units involved in the embodiments of the present application can be implemented by software. Now, it can also be implemented by hardware. The described unit may also be provided in the processor, for example, as a processor including an analysis unit, a retrieval unit, an acquisition unit, and a generation unit. Wherein, the names of these units do not constitute a limitation on the unit itself under certain circumstances. For example, the analysis unit may also be described as "searching for the search intention of the input search words to determine whether the search words contain the solution requirements. Unit."
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的装置中所包含的;也可以是单独存在,而未装配入该装置中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该装置执行时,使得该装置:对输入的搜索词进行搜索意图分析,以确定搜素词是否包含解答需求;若是,利用搜索词检索出与解答需求对应的解答内容;获取与解答内容关联的待推荐内容;将解答内容与待推荐内容组合,生成至少一项搜索结果。In another aspect, the present application also provides a computer readable medium, which may be included in the apparatus described in the above embodiments, or may be separately present and not incorporated into the apparatus. The computer readable medium carries one or more programs, when the one or more programs are executed by the device, causing the device to: perform a search intent analysis on the input search words to determine whether the search term contains a solution requirement; If yes, the search term is used to retrieve the solution content corresponding to the solution requirement; the content to be recommended associated with the solution content is obtained; and the solution content is combined with the content to be recommended to generate at least one search result.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。 The above description is only a preferred embodiment of the present application and a description of the principles of the applied technology. It should be understood by those skilled in the art that the scope of the invention referred to in the present application is not limited to the specific combination of the above technical features, and should also be covered by the above technical features or without departing from the above inventive concept. Other technical solutions formed by arbitrarily combining the equivalent features. For example, the above features are combined with the technical features disclosed in the present application, but are not limited to the technical features having similar functions.

Claims (16)

  1. 一种用于提供搜索结果的方法,其特征在于,所述方法包括:A method for providing search results, the method comprising:
    对输入的搜索词进行搜索意图分析,以确定所述搜素词是否包含解答需求;Performing a search intent analysis on the input search term to determine whether the search term contains a solution requirement;
    若是,利用所述搜索词检索出与所述解答需求对应的解答内容;If yes, using the search term to retrieve a solution content corresponding to the solution requirement;
    获取与所述解答内容关联的待推荐内容;Obtaining to-be-recommended content associated with the answer content;
    将所述解答内容与所述待推荐内容组合,生成至少一项搜索结果。Combining the solution content with the to-be-recommended content to generate at least one search result.
  2. 根据权利要求1所述的方法,其特征在于,所述对输入的搜索词进行搜索意图分析,以确定所述搜素词是否包含解答需求,包括:The method according to claim 1, wherein said performing search intent analysis on the input search term to determine whether said search term contains a solution requirement comprises:
    将所述搜索词与预设的问题关键词库进行匹配;Matching the search term with a preset question keyword library;
    若匹配成功,则确定所述搜索词包含解答需求。If the match is successful, it is determined that the search term contains a solution requirement.
  3. 根据权利要求1所述的方法,其特征在于,所述对输入的搜索词进行搜索意图分析,以确定所述搜素词是否包含解答需求,包括:The method according to claim 1, wherein said performing search intent analysis on the input search term to determine whether said search term contains a solution requirement comprises:
    获取所述搜索词的历史搜索结果以及所述历史搜索结果的类别信息;Obtaining a historical search result of the search term and category information of the historical search result;
    响应于确定所获取的类别信息为问答类或内容推荐类,确定所述搜索词包含解答需求。In response to determining that the acquired category information is a question or answer category or a content recommendation category, determining that the search term includes a solution requirement.
  4. 根据权利要求1所述的方法,其特征在于,所述获取与所述解答内容关联的待推荐内容,包括:The method according to claim 1, wherein the obtaining the content to be recommended associated with the solution content comprises:
    提取所述解答内容中对应于所述解答需求的关键词;Extracting keywords corresponding to the solution requirements in the solution content;
    将提取出的关键词与预设推荐内容所配置的预设关键词进行匹配;Matching the extracted keywords with preset keywords configured by the preset recommended content;
    将匹配成功的所述预设关键词对应的预设推荐内容确定为与所述解答内容关联的待推荐内容。The preset recommended content corresponding to the preset keyword that is successfully matched is determined as the content to be recommended associated with the solution content.
  5. 根据权利要求4所述的方法,其特征在于,所述将所述解答内 容与所述待推荐内容组合,生成至少一项搜索结果,包括:The method of claim 4 wherein said said solution is within Combining with the content to be recommended, generating at least one search result, including:
    将所述提取出的关键词与对应的所述预设推荐内容结合,生成对应的搜索结果。Combining the extracted keywords with the corresponding preset recommended content to generate a corresponding search result.
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    推送各项所述搜索结果。Push each of the search results.
  7. 根据权利要求6所述的方法,其特征在于,所述推送各项所述搜索结果,包括:The method according to claim 6, wherein said pushing said search results comprises:
    将各项所述搜索结果推送至搜索结果页面以供展示;和/或Pushing each of the search results to a search results page for display; and/or
    创建用于指向包含多项搜索结果的页面的链接,并推送所述链接。Create a link to a page that contains multiple search results and push the link.
  8. 一种用于提供搜索结果的装置,其特征在于,所述装置包括:An apparatus for providing search results, the apparatus comprising:
    分析单元,配置用于对输入的搜索词进行搜索意图分析,以确定所述搜素词是否包含解答需求;An analysis unit configured to perform a search intent analysis on the input search term to determine whether the search term includes a solution requirement;
    检索单元,配置用于响应于确定所述搜索词包含解答需求,利用所述搜索词检索出与所述解答需求对应的解答内容;a retrieval unit configured to retrieve, by the search term, a solution content corresponding to the solution requirement in response to determining that the search term includes a solution requirement;
    获取单元,配置用于获取与所述解答内容关联的待推荐内容;An obtaining unit, configured to acquire content to be recommended associated with the solution content;
    生成单元,配置用于将所述解答内容与所述待推荐内容组合,生成至少一项搜索结果。And a generating unit configured to combine the solution content with the to-be-recommended content to generate at least one search result.
  9. 根据权利要求8所述的装置,其特征在于,所述分析单元进一步配置用于按照如下方式确定所述搜索词是否包含搜索需求:The apparatus of claim 8, wherein the analyzing unit is further configured to determine whether the search term includes a search requirement as follows:
    将所述搜索词与预设的问题关键词库进行匹配;Matching the search term with a preset question keyword library;
    若匹配成功,则确定所述搜索词包含解答需求。If the match is successful, it is determined that the search term contains a solution requirement.
  10. 根据权利要求8所述的装置,其特征在于,所述分析单元进一步配置用于按照如下方式确定所述搜索词是否包含搜索需求:The apparatus of claim 8, wherein the analyzing unit is further configured to determine whether the search term includes a search requirement as follows:
    获取所述搜索词的历史搜索结果以及所述历史搜索结果的类别信息; Obtaining a historical search result of the search term and category information of the historical search result;
    响应于确定所获取的类别信息为问答类或内容推荐类,确定所述搜索词包含解答需求。In response to determining that the acquired category information is a question or answer category or a content recommendation category, determining that the search term includes a solution requirement.
  11. 根据权利要求8所述的装置,其特征在于,所述获取单元进一步配置用于按照如下方式获取与所述解答内容关联的待推荐内容:The apparatus according to claim 8, wherein the obtaining unit is further configured to acquire content to be recommended associated with the solution content as follows:
    提取所述解答内容中对应于所述解答需求的关键词;Extracting keywords corresponding to the solution requirements in the solution content;
    将提取出的关键词与预设推荐内容所配置的预设关键词进行匹配;Matching the extracted keywords with preset keywords configured by the preset recommended content;
    将匹配成功的所述预设关键词对应的预设推荐内容确定为与所述解答内容关联的待推荐内容。The preset recommended content corresponding to the preset keyword that is successfully matched is determined as the content to be recommended associated with the solution content.
  12. 根据权利要求11所述的装置,其特征在于,所述生成单元进一步配置用于按照如下方式生成至少一项搜索结果:The apparatus according to claim 11, wherein said generating unit is further configured to generate at least one search result as follows:
    将所述提取出的关键词与对应的所述预设推荐内容结合,生成对应的搜索结果。Combining the extracted keywords with the corresponding preset recommended content to generate a corresponding search result.
  13. 根据权利要求8所述的装置,其特征在于,所述装置还包括:The device according to claim 8, wherein the device further comprises:
    推送单元,配置用于推送各项所述搜索结果。a pushing unit configured to push each of the search results.
  14. 根据权利要求13所述的装置,其特征在于,所述推送单元进一步配置用于按照如下方式推送各项所述搜索结果:The apparatus of claim 13 wherein said push unit is further configured to push said search results as follows:
    将各项所述搜索结果推送至搜索结果页面以供展示;和/或Pushing each of the search results to a search results page for display; and/or
    创建用于指向包含多项搜索结果的页面的链接,并推送所述链接。Create a link to a page that contains multiple search results and push the link.
  15. 一种服务器,其特征在于,包括:A server, comprising:
    一个或多个处理器;One or more processors;
    存储装置,用于存储一个或多个程序,a storage device for storing one or more programs,
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-7中任一所述的方法。 The one or more programs are executed by the one or more processors such that the one or more processors implement the method of any of claims 1-7.
  16. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-7中任一所述的方法。 A computer readable storage medium having stored thereon a computer program, wherein the computer program is executed by a processor to implement the method of any of claims 1-7.
PCT/CN2017/100474 2017-02-15 2017-09-05 Method and apparatus for providing search results WO2018149115A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP17896335.1A EP3579124A4 (en) 2017-02-15 2017-09-05 Method and apparatus for providing search results
JP2019543924A JP6864107B2 (en) 2017-02-15 2017-09-05 Methods and devices for providing search results
US16/540,599 US11669579B2 (en) 2017-02-15 2019-08-14 Method and apparatus for providing search results

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710081698.8 2017-02-15
CN201710081698.8A CN106874467B (en) 2017-02-15 2017-02-15 Method and apparatus for providing search results

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/540,599 Continuation US11669579B2 (en) 2017-02-15 2019-08-14 Method and apparatus for providing search results

Publications (1)

Publication Number Publication Date
WO2018149115A1 true WO2018149115A1 (en) 2018-08-23

Family

ID=59166388

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/100474 WO2018149115A1 (en) 2017-02-15 2017-09-05 Method and apparatus for providing search results

Country Status (5)

Country Link
US (1) US11669579B2 (en)
EP (1) EP3579124A4 (en)
JP (1) JP6864107B2 (en)
CN (1) CN106874467B (en)
WO (1) WO2018149115A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114428902A (en) * 2021-12-31 2022-05-03 北京百度网讯科技有限公司 Information searching method and device, electronic equipment and storage medium

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874467B (en) * 2017-02-15 2019-12-06 百度在线网络技术(北京)有限公司 Method and apparatus for providing search results
CN107908648A (en) * 2017-09-30 2018-04-13 广东工业大学 Information search method and device, computer-readable storage medium and equipment
CN110019705A (en) * 2017-10-31 2019-07-16 北京搜狗科技发展有限公司 A kind of information processing method, device and the device for information processing
CN107832432A (en) * 2017-11-15 2018-03-23 北京百度网讯科技有限公司 A kind of search result ordering method, device, server and storage medium
CN110633391B (en) * 2018-06-01 2024-04-30 北京搜狗科技发展有限公司 Information searching method and device
CN110580313B (en) * 2018-06-08 2024-02-02 北京搜狗科技发展有限公司 Data processing method a treatment method apparatus and apparatus for data processing
CN109063200B (en) * 2018-09-11 2022-10-14 优视科技(中国)有限公司 Resource searching method and device, electronic equipment and computer readable medium
CN109189911A (en) * 2018-09-21 2019-01-11 广州神马移动信息科技有限公司 A kind of searching method, device and the terminal device of question and answer content
CN111291168A (en) * 2018-12-07 2020-06-16 北大方正集团有限公司 Book retrieval method and device and readable storage medium
CN109857847A (en) * 2019-01-15 2019-06-07 北京搜狗科技发展有限公司 A kind of data processing method, device and the device for data processing
CN110390004B (en) * 2019-06-28 2022-04-19 联想(北京)有限公司 Information processing method, electronic equipment and storage medium
CN112307154A (en) * 2019-07-17 2021-02-02 百度时代网络技术(北京)有限公司 Advertisement promotion result display method and device, electronic equipment and storage medium
CN113010767A (en) * 2019-12-19 2021-06-22 百度在线网络技术(北京)有限公司 Search method, device, equipment and storage medium
CN111625690B (en) * 2020-05-13 2024-03-08 北京达佳互联信息技术有限公司 Object recommendation method, device, equipment and medium
US11853381B2 (en) * 2020-11-13 2023-12-26 Google Llc Hybrid fetching using a on-device cache
CN112579897B (en) * 2020-12-16 2023-07-28 北京百度网讯科技有限公司 Information searching method and device
CN113392308B (en) * 2021-06-22 2024-06-25 抖音视界有限公司 Content searching method, device, equipment and medium
CN113763123A (en) * 2021-08-12 2021-12-07 阿里巴巴(中国)有限公司 Commodity recommendation and search method, commodity recommendation and search equipment and storage medium
CN114065057A (en) * 2021-11-29 2022-02-18 北京字节跳动网络技术有限公司 Search result determining method, display method, device, equipment and medium
CN114372160B (en) * 2022-01-12 2023-08-15 抖音视界有限公司 Search request processing method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100083614A (en) * 2009-01-14 2010-07-22 오의진 Intension search method based on search intension of user
CN102096717A (en) * 2011-02-15 2011-06-15 百度在线网络技术(北京)有限公司 Search method and search engine
CN104598445A (en) * 2013-11-01 2015-05-06 腾讯科技(深圳)有限公司 Automatic question-answering system and method
CN105069077A (en) * 2015-07-31 2015-11-18 百度在线网络技术(北京)有限公司 Search method and device
CN106874467A (en) * 2017-02-15 2017-06-20 百度在线网络技术(北京)有限公司 Method and apparatus for providing Search Results

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3882048B2 (en) * 2003-10-17 2007-02-14 独立行政法人情報通信研究機構 Question answering system and question answering processing method
KR101003292B1 (en) * 2007-12-04 2010-12-21 삼성에스디에스 주식회사 System to offer knowledge share and advertisement using mobile terminal and method thereof
WO2013010024A1 (en) * 2011-07-12 2013-01-17 Thomas Pinckney Recommendations in a computing advice facility
CN103049567A (en) * 2012-12-31 2013-04-17 威盛电子股份有限公司 Retrieval method, retrieval system and natural language understanding system
KR20140089862A (en) * 2013-01-07 2014-07-16 삼성전자주식회사 display apparatus and method for controlling the display apparatus
US9349132B2 (en) * 2013-03-13 2016-05-24 Salesforce.Com, Inc. Systems, methods, and apparatuses for implementing a group command with a predictive query interface
US9489460B2 (en) * 2013-06-26 2016-11-08 Michael Wexler System and method for generating expert curated results
JP2015133047A (en) * 2014-01-15 2015-07-23 ソニー株式会社 Information processing apparatus, information processing method, and program
CN104166707B (en) * 2014-08-08 2017-10-31 百度在线网络技术(北京)有限公司 Search for recommendation method and search recommendation apparatus
US20160140216A1 (en) * 2014-11-19 2016-05-19 International Business Machines Corporation Adjusting Fact-Based Answers to Consider Outcomes
US10783159B2 (en) * 2014-12-18 2020-09-22 Nuance Communications, Inc. Question answering with entailment analysis
US20160196490A1 (en) * 2015-01-02 2016-07-07 International Business Machines Corporation Method for Recommending Content to Ingest as Corpora Based on Interaction History in Natural Language Question and Answering Systems
JP6074820B2 (en) * 2015-01-23 2017-02-08 国立研究開発法人情報通信研究機構 Annotation auxiliary device and computer program therefor
US10740384B2 (en) * 2015-09-08 2020-08-11 Apple Inc. Intelligent automated assistant for media search and playback
US10409877B2 (en) * 2015-10-21 2019-09-10 Quality Logo Products, Inc. Search engine results declumping method
US10037360B2 (en) * 2016-06-20 2018-07-31 Rovi Guides, Inc. Approximate template matching for natural language queries
TWI645303B (en) * 2016-12-21 2018-12-21 財團法人工業技術研究院 Method for verifying string, method for expanding string and method for training verification model

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100083614A (en) * 2009-01-14 2010-07-22 오의진 Intension search method based on search intension of user
CN102096717A (en) * 2011-02-15 2011-06-15 百度在线网络技术(北京)有限公司 Search method and search engine
CN104598445A (en) * 2013-11-01 2015-05-06 腾讯科技(深圳)有限公司 Automatic question-answering system and method
CN105069077A (en) * 2015-07-31 2015-11-18 百度在线网络技术(北京)有限公司 Search method and device
CN106874467A (en) * 2017-02-15 2017-06-20 百度在线网络技术(北京)有限公司 Method and apparatus for providing Search Results

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3579124A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114428902A (en) * 2021-12-31 2022-05-03 北京百度网讯科技有限公司 Information searching method and device, electronic equipment and storage medium
CN114428902B (en) * 2021-12-31 2023-11-14 北京百度网讯科技有限公司 Information searching method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN106874467B (en) 2019-12-06
EP3579124A4 (en) 2020-01-01
EP3579124A1 (en) 2019-12-11
US20190370305A1 (en) 2019-12-05
US11669579B2 (en) 2023-06-06
CN106874467A (en) 2017-06-20
JP2020507861A (en) 2020-03-12
JP6864107B2 (en) 2021-04-21

Similar Documents

Publication Publication Date Title
WO2018149115A1 (en) Method and apparatus for providing search results
CN107256267B (en) Query method and device
US10902077B2 (en) Search result aggregation method and apparatus based on artificial intelligence and search engine
US11016981B2 (en) Compiling results from different search queries
US9514405B2 (en) Scoring concept terms using a deep network
WO2018209954A1 (en) Information pushing method and device
CN107241260B (en) News pushing method and device based on artificial intelligence
CN110069698B (en) Information pushing method and device
JP2015191655A (en) Method and apparatus for generating recommendation page
EP3996373A2 (en) Method and apparatus of generating bullet comment, device, and storage medium
WO2017092294A1 (en) Webpage generation method and device
US20180210961A1 (en) Information search method and apparatus
US20140164296A1 (en) Chatbot system and method with entity-relevant content from entity
US20210279297A1 (en) Linking to a search result
CN106681598B (en) Information input method and device
WO2023279843A1 (en) Content search method, apparatus and device, and storage medium
US20160299911A1 (en) Processing search queries and generating a search result page including search object related information
JP2023515158A (en) Interface and mode selection for digital action execution
US20100125809A1 (en) Facilitating Display Of An Interactive And Dynamic Cloud With Advertising And Domain Features
WO2010132062A1 (en) System and methods for sentiment analysis
JP6684894B2 (en) Method and apparatus for push information distribution
CN112650942A (en) Product recommendation method, device, computer system and computer-readable storage medium
US20160335365A1 (en) Processing search queries and generating a search result page including search object information
RU2589856C2 (en) Method of processing target message, method of processing new target message and server (versions)
US10909112B2 (en) Method of and a system for determining linked objects

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17896335

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2019543924

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2017896335

Country of ref document: EP

Effective date: 20190905