Content search method, device, equipment and medium
By selecting candidate answer content related to the search content in the search engine and highlighting key sentences, the problem of redundant and untargeted search results in the existing technology is solved, and the user experience and the pertinence of the search results are improved.
Patent Information
- Application Number
- CN202210787043.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-04
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-07-04
AI Technical Summary
Existing search engines cannot effectively find high-quality answer texts related to the search content when users perform content searches. As a result, the search results cannot solve user problems in a targeted manner, and the displayed answer texts are redundant, which reduces the user's reading experience.
By receiving the search content, select the target answer content in the candidate answer content related to the search content, and display the target answer summary within the search results page. The target answer summary includes the target key sentences that answer the search content, and the key sentences are highlighted to improve the answer. readability and practicality.
It improves the pertinence and user experience of search results, enables users to quickly find core answers, and reduces reading costs and visual fatigue.
Smart Images

Figure CN115130022B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic devices, and in particular to a content search method, device, equipment and medium. Background Art
[0002] A search engine is a system that collects information on the Internet using a specific computer program according to a certain strategy, organizes and processes the information, and then provides retrieval services to users. The emergence of search engines has provided convenience for users to use network information, and users can retrieve the information they need from the massive data provided by the Internet.
[0003] In existing search engines, when a user searches for content, the search results fed back to the user cannot meet the user's search needs, thereby reducing the user experience. Summary of the invention
[0004] In order to solve the above technical problem or at least partially solve the above technical problem, the present disclosure provides a content search method, device, equipment and medium.
[0005] In a first aspect, the present disclosure provides a content search method, comprising:
[0006] Receive search results;
[0007] A target answer summary is displayed in the search results page. The target answer summary is derived from target answer content. The target answer summary includes a target key sentence that answers the search content. The target answer content is selected from at least one candidate answer content related to the search content based on the target key sentence.
[0008] In a second aspect, the present disclosure provides a content search device, comprising:
[0009] A content receiving unit configured to receive search content;
[0010] A summary display unit is configured to display a target answer summary in a search result page. The target answer summary is derived from a target answer content. The target answer summary includes a target key sentence that answers the search content. The target answer content is selected from at least one candidate answer content related to the search content based on the target key sentence.
[0011] In a third aspect, the present disclosure provides an electronic device, including:
[0012] processor;
[0013] A memory for storing executable instructions;
[0014] The processor is used to read executable instructions from the memory and execute the executable instructions to implement the content search method described in the first aspect.
[0015] In a fourth aspect, the present disclosure provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor implements the content search method described in the first aspect.
[0016] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0017] The content search method, apparatus, device and medium of the disclosed embodiments can display a target answer summary in a search result page after receiving the search content, wherein the target answer summary is derived from the target answer content, and the target answer content is selected from at least one candidate answer content related to the search content based on a target key sentence in the target answer summary, that is, the key sentence factor is taken into consideration when selecting the target answer content from the candidate answer content, so that the displayed target answer summary can have the target key sentence that answers the search content, thereby making the search results fed back to the user more able to meet the user's search needs and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0019] Figure 1 A flowchart of a content search method provided by an embodiment of the present disclosure;
[0020] Figure 2 A schematic diagram of a search result page provided by an embodiment of the present disclosure;
[0021] Figure 3 A schematic diagram of another search result page provided by an embodiment of the present disclosure;
[0022] Figure 4 A flowchart of a content screening method provided by an embodiment of the present disclosure;
[0023] Figure 5 A flowchart of another content screening method provided by an embodiment of the present disclosure;
[0024] Figure 6 A schematic diagram of the structure of a content search method and device provided by an embodiment of the present disclosure;
[0025] Figure 7 A schematic diagram of the structure of a content search method and device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0027] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0028] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0029] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0030] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0031] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0032] In existing search engines, when users enter search content to search for information, the following two problems may occur:
[0033] 1. Although the search engine can find relevant answer text based on the search content entered by the user, the answer text found focuses on the text relevance between the full text and the search content, and does not consider whether the answer text found contains strongly relevant sentences used to answer the search content, resulting in high-quality answer texts cannot be found, and the search results cannot solve the problem of user search content in a targeted manner.
[0034] 2. The answer text displayed by the search engine is long, and it does not distinguish the main and secondary issues, nor does it emphasize the sentences related to the answers to the search content. As a result, the displayed answer text is relatively redundant, the practicality of the search results is poor, and the user's reading experience is reduced.
[0035] 3. Although the search engine can find relevant information in the answer text based on the search content entered by the user, the relevant information is only the keywords in the answer text that are the same as the search content, and is not the answer to the search content. It cannot enable users to quickly find the core content of the answer, which reduces the user's reading experience.
[0036] It can be seen that in existing search engines, the search results fed back to users cannot meet the search needs of users, thereby reducing the user experience.
[0037] In order to solve the above problems, the present disclosure provides a content search method, device, equipment and medium. Figures 1 to 5 The content search method provided by the embodiment of the present disclosure is described.
[0038] In the disclosed embodiment, the content search method may be performed by an electronic device, wherein the electronic device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), wearable devices, etc., and fixed terminals such as digital TVs, desktop computers, smart home devices, etc.
[0039] Figure 1 A flow chart of a content search method provided by an embodiment of the present disclosure is shown.
[0040] like Figure 1 As shown, the content search method may include the following steps.
[0041] S110: Receive search content.
[0042] In an embodiment of the present disclosure, when a user wants to seek an answer, he or she can enter search content for asking questions in a specific application on the electronic device or a content search page of a specific website, so that the electronic device can receive the search content and perform a search operation for the search content to feedback search results for the search content.
[0043] The search content may be one or more keywords or a complete long or short sentence.
[0044] In some embodiments, the user can enter information in any form such as text, voice, and image in the search box in the content search page, so that the electronic device uses the text corresponding to the information entered by the user as the search content entered by the user.
[0045] For example, a user can enter the text information "What are the effects of soaking wolfberry, American ginseng and astragalus in water" in the search box on the content search page. The electronic device can use "What are the effects of soaking wolfberry, American ginseng and astragalus in water" as the search content, and then search for search results related to "What are the effects of soaking wolfberry, American ginseng and astragalus in water" for the user.
[0046] For another example, a user can enter a voice message "What are the benefits of soaking wolfberry, American ginseng and astragalus in water" in the search box on the content search page, and the electronic device can perform voice recognition processing on the voice message to obtain the search content "What are the benefits of soaking wolfberry, American ginseng and astragalus in water", and then search for search results related to "What are the benefits of soaking wolfberry, American ginseng and astragalus in water" for the user.
[0047] For another example, a user can enter an image with the text "What are the benefits of soaking wolfberry, American ginseng and astragalus in water" or an image with the picture content of "What are the benefits of soaking wolfberry, American ginseng and astragalus in water" in the search box on the content search page. The electronic device can perform image text recognition or image content recognition on the image to obtain the search content "What are the benefits of soaking wolfberry, American ginseng and astragalus in water", and then search for search results related to "What are the benefits of soaking wolfberry, American ginseng and astragalus in water" for the user.
[0048] In other embodiments, a plurality of candidate search contents may be displayed in the content search page, and the user may select from the displayed candidate search contents, so that the electronic device uses the candidate search contents selected by the user as the search contents.
[0049] For example, the content search page may display candidate search content such as "What are the effects of soaking wolfberry, American ginseng and astragalus in water", "Wolfberry water", "The effects of soaking wolfberry in water", etc. The user can select "What are the effects of soaking wolfberry, American ginseng and astragalus in water", so that the electronic device can use the user's selected "What are the effects of soaking wolfberry, American ginseng and astragalus in water" as the search content, and then search for search results related to "What are the effects of soaking wolfberry, American ginseng and astragalus in water" for the user.
[0050] Specifically, after the electronic device receives the search content input by the user, the search content can be sent to the server. The server can search the search content and obtain all search results, and then feed all search results back to the electronic device. For example, the server can search for search results related to the search content in multiple pre-stored answer contents for the search content.
[0051] The pre-stored answer content may have different sources of answers. For example, the source of the answer may include articles published by professionals, personal opinions expressed by netizens, etc., which are not limited here.
[0052] Furthermore, the server can calculate the keyword relevance score between each pre-stored answer content and the search content, and determine the recalled search results based on the answer content whose keyword relevance score is greater than or equal to a preset keyword relevance score threshold, and then feed back the keyword relevance scores corresponding to the search results and the answer content involved in the search results to the electronic device.
[0053] Among them, the preset keyword relevance scoring threshold can be a scoring threshold that is pre-set as needed to determine whether the answer content is relevant to the search content in the keyword dimension, and is not limited here.
[0054] S120. Display a target answer summary in the search results page. The target answer summary is derived from the target answer content. The target answer summary includes a target key sentence that answers the search content. The target answer content is selected from at least one candidate answer content related to the search content based on the target key sentence.
[0055] In an embodiment of the present disclosure, after receiving the search results sent by the server, the electronic device can select target answer content for emphasized display from at least one candidate answer content related to the search content contained in the recalled search results, and display the target answer summary corresponding to the target answer content in the search results page.
[0056] Optionally, the target answer summary is derived from the target answer content, which means that the target answer summary is the summary content of the target answer content itself.
[0057] Furthermore, the target answer summary includes a target key sentence that answers the search content. The target key sentence may be a sentence in the target answer summary that answers the search content. The target answer summary may include one target key sentence or multiple target key sentences, which are not limited here.
[0058] Specifically, the electronic device may use key sentences in the answer summary corresponding to each candidate answer content as a factor in selecting the answer content for emphasized display, and then select the target answer content for emphasized display based on the key sentences in the answer summary corresponding to each candidate answer content from at least one candidate answer content related to the search content contained in the recalled search results, and display the target answer summary derived from the target answer content including the target key sentences that answer the search content.
[0059] In an embodiment of the present disclosure, after receiving the search content, a target answer summary can be displayed in the search results page, wherein the target answer summary is derived from the target answer content, and the target answer content is selected from at least one candidate answer content related to the search content based on the target key sentence in the target answer summary, that is, the key sentence factor is taken into consideration when selecting the target answer content from the candidate answer content, which can enable the displayed target answer summary to have the target key sentence that answers the search content, thereby making the search results fed back to the user better able to meet the user's search needs and enhance the user experience.
[0060] In the disclosed embodiment, further, when displaying the target answer summary, the electronic device may also highlight the target key sentence in the target answer summary to highlight the target key sentence and prompt that the target key sentence is a complete sentence content that is strongly related to the answer search content.
[0061] The highlighting may be at least one of highlighting, bolding, underlining, etc., which is not limited here.
[0062] In some embodiments, when the target answer summary includes a target key sentence, the electronic device can display at least a portion of the content of the paragraph including the target key sentence, and present the complete target key sentence in the paragraph.
[0063] Figure 2 A schematic diagram of a search result page provided by an embodiment of the present disclosure is shown.
[0064] like Figure 2 As shown, the electronic device 201 can display the search results for the search content "What are the effects of soaking wolfberry, American ginseng and astragalus in water" in the search results page 202, for example, the answer summary 203 of the answer content that needs to be emphasized. Among them, there is a key sentence 204 that is strongly related to the answer search content in the answer summary 203, and the paragraph to which the key sentence 204 belongs is at least partially displayed, and the key sentence 204 is fully displayed in bold and underlined.
[0065] Furthermore, a "more details" control 205 for triggering the display of the complete content of the answer content that needs to be emphasized can also be displayed in the search results page 202. The user can click the "more details" control 205 to make the electronic device 201 jump from the search results page 202 to the content landing page, and display the complete content of the answer content to which the answer summary 203 belongs in the content landing page.
[0066] Furthermore, the search result page 202 may also display answer contents related to the search contents other than the answer contents to which the answer summary 203 belongs.
[0067] In other embodiments, when the target answer summary includes multiple target key sentences, if the multiple target key sentences belong to the same paragraph, the electronic device can display at least part of the content of the paragraph including these target key sentences, and display the complete target key sentences in the paragraph; if the multiple target key sentences belong to different paragraphs and each target key sentence is not a paragraph title, the electronic device can respectively display at least part of the content of the paragraph including each target key sentence, and display the complete target key sentences contained therein in each paragraph; if the multiple target key sentences belong to different paragraphs and each target key sentence is a paragraph title, the electronic device can respectively display the paragraph title corresponding to each target key sentence and at least part of the content of the paragraphs corresponding to these paragraph titles.
[0068] Figure 3 A schematic diagram of another search result page provided by an embodiment of the present disclosure is shown.
[0069] like Figure 3 As shown, the electronic device 301 can display the search results for the search content "What are the effects of soaking wolfberry, American ginseng and astragalus in water" in the search results page 302, for example, the answer summary 303 of the answer content that needs to be emphasized. Among them, there are two key sentences 304 that are strongly related to the answer search content in the answer summary 303, and each key sentence 304 is a paragraph title, and the paragraph corresponding to the key sentence 304 is at least partially displayed, and the key sentence 304 is fully displayed in bold and underlined.
[0070] Furthermore, a "more details" control 305 for triggering the display of the complete content of the answer content that needs to be emphasized can also be displayed in the search results page 302. The user can click the "more details" control 305 to make the electronic device 301 jump from the search results page 302 to the content landing page, and display the complete content of the answer content to which the answer summary 303 belongs in the content landing page.
[0071] Furthermore, in the search result page 302 , other answer contents related to the search contents other than the answer contents to which the answer summary 303 belongs may also be displayed.
[0072] Therefore, in the embodiment of the present disclosure, the target answer summary displayed by the electronic device can highlight relatively complete and convergent key sentences that are strongly related to the answer search content, rather than just fragmented information presented in the form of keywords. This can reduce the user's reading cost, increase the user's attention to the core answer, and reduce the user's visual fatigue.
[0073] The specific method for the electronic device to select the target answer content will be described in detail below.
[0074] In some embodiments of the present disclosure, before S120, the content search method also includes: obtaining at least one candidate answer content, the candidate answer content having a candidate answer summary, the candidate answer summary including candidate key sentences that answer the search content; determining a target answer relevance score between each candidate answer content and the search content based on the candidate key sentences; and selecting a target answer content from at least one candidate answer content based on the target answer relevance score.
[0075] Specifically, the electronic device can obtain at least one candidate answer content from the search results fed back by the server, and determine the target answer relevance score between each candidate answer content and the search content based on the candidate key sentences in the candidate answer summary of each candidate answer content, and then select the target answer content from at least one candidate answer content based on the target answer relevance score.
[0076] Optionally, the candidate answer content may be an answer content that has an answer summary with key sentences. The candidate answer summary is the summary content of the candidate answer content itself, and the candidate key sentence is the sentence in the candidate answer summary that is used to answer the search content. Specifically, the candidate answer summary may include one candidate key sentence or multiple candidate key sentences, which is not limited here.
[0077] In some embodiments, when a candidate answer summary includes a candidate key sentence, the electronic device may directly use the answer relevance score between the candidate key sentence and the search content as the target answer relevance score between the candidate answer content to which the candidate answer summary belongs and the search content.
[0078] In other embodiments, when a candidate answer summary includes multiple candidate key sentences, the electronic device may select the highest answer relevance score among the answer relevance scores between the multiple candidate key sentences and the search content, and use the highest answer relevance score as the target answer relevance score between the candidate answer content to which the candidate answer summary belongs and the search content.
[0079] In some further embodiments, when a candidate answer summary includes multiple candidate key sentences, the electronic device may calculate the average of the answer relevance scores between the multiple candidate key sentences and the search content, and use the average as the target answer relevance score between the candidate answer content to which the candidate answer summary belongs and the search content.
[0080] Furthermore, after the electronic device determines the target answer relevance score between each candidate answer content and the search content, it can use the target answer relevance score as a factor in selecting answer content for emphasized display, and then select the target answer content from at least one candidate answer content.
[0081] Therefore, in the embodiment of the present disclosure, the electronic device can consider the factor of determining the target answer relevance score between the candidate answer content and the search content based on the key sentence when selecting the target answer content from the candidate answer content, so that the search results fed back to the user further meet the user's search needs.
[0082] In other embodiments of the present disclosure, the search results recalled by the server for the electronic device may all be candidate answer contents having answer summaries with key sentences, or may include other answer contents not having answer summaries with key sentences. The specific method for the electronic device to obtain candidate answer contents from the search results will be described in detail according to different situations.
[0083] In some embodiments, when the search results are all candidate answer contents having answer summaries with key sentences, the electronic device can directly obtain each answer content in the search results and use each obtained answer content as candidate answer content.
[0084] In other embodiments, when the search results include other answer contents that do not have answer summaries with key sentences in addition to candidate answer contents that have answer summaries with key sentences, obtaining at least one of the candidate answer contents may specifically include: obtaining at least one first answer content related to the search content, the first answer content having a first answer summary; detecting whether there are key sentences that answer the search content in each first answer summary; and using the first answer content from which the first answer summary that has the key sentences that answer the search content originates as candidate answer content.
[0085] Specifically, the electronic device can obtain at least one first answer content from the search results fed back by the server, and detect whether the first answer summary of each first answer content contains a key sentence that answers the search content. If the first answer summary of any first answer content contains a key sentence that answers the search content, the first answer content is used as a candidate answer content; if the first answer summary of any first answer content does not contain a key sentence that answers the search content, the first answer content is not used as a candidate answer content.
[0086] Optionally, the first answer content may be an answer content that has an answer summary. The first answer summary is the summary content of the first answer content itself. Specifically, the first answer summary may be a text summary of the first answer content.
[0087] In an embodiment of the present disclosure, optionally, detecting whether there are key sentences that answer the search content in each first answer summary may specifically include: calculating the answer relevance score between each sentence in each first answer summary and the search content; for each first answer summary, determining whether there are key sentences that answer the search content in the first answer summary based on the answer relevance score.
[0088] Specifically, the first answer summary corresponding to each first answer content has multiple sentences. The electronic device can use a pre-trained non-continuous answer extraction model for detecting the relevance of sentences to the search content to identify each sentence in the first answer summary corresponding to each first answer content one by one, and then obtain the answer relevance score between each sentence in the first answer summary corresponding to each first answer content and the search content.
[0089] Furthermore, for any first answer summary, the electronic device may split the first answer summary into sentences to obtain individual sentences contained in the first answer summary. Then, for any sentence in the first answer summary, the electronic device may input the sentence and the search content into a pre-trained non-continuous answer extraction model to detect the relevance of the sentence to the answer to the search content, and obtain the weight corresponding to the sentence output by the non-continuous answer extraction model. Since the weight represents the prediction result of the non-continuous answer extraction model on the relevance of the sentence to the answer to the search content, the weight can be used as the answer relevance score of the sentence.
[0090] The non-continuous answer extraction model can be trained based on the answer relevance training sample set. The answer relevance training sample set includes multiple groups of answer relevance training samples, each group of answer relevance training samples includes a search content sample, multiple sentence samples and answer relevance annotation values corresponding to the multiple sentence samples, and the multiple sentence samples in each group of answer relevance training samples can form an answer summary sample.
[0091] In the disclosed embodiment, after the electronic device obtains the answer relevance score between each sentence in each first answer summary and the search content, it can detect whether there are key sentences that answer the search content in each first answer summary based on the answer relevance score between each sentence in each first answer summary and the search content.
[0092] In some embodiments, based on the answer relevance score, determining whether there is a key sentence that answers the search content in the first answer summary can specifically include: based on the answer relevance score, calculating the average relevance score corresponding to each sentence in the first answer summary; if there is a target sentence in the first answer summary whose answer relevance score is greater than or equal to a first preset threshold and the difference between the answer relevance score and the average relevance score is greater than or equal to a second preset threshold, determining that the key sentence is detected in the first answer summary; if the target sentence does not exist in the first answer summary, determining that the key sentence is not detected in the first answer summary.
[0093] Specifically, for any first answer summary, after obtaining the answer relevance score between each sentence in the first answer summary and the search content, the electronic device can first average the answer relevance score between each sentence and the search content to obtain the mean relevance score corresponding to each sentence in the first answer summary, and then filter out sentences with answer relevance scores greater than or equal to a first preset threshold value from each sentence. If no sentence with an answer relevance score greater than or equal to the first preset threshold value is filtered out, it means that there are no sentences related to answering the search content in the first answer summary, confirming that there are no target sentences in the first answer summary, and determining that there are no key sentences in the first answer summary. Otherwise, if sentences with answer relevance scores greater than or equal to the first preset threshold value are filtered out, the answer relevance scores and the relevance scores corresponding to these filtered sentences are further calculated. The difference between the answer relevance score and the mean of the relevance score is greater than or equal to the second preset threshold value, and further among these filtered sentences, sentences whose difference between the answer relevance score and the mean of the relevance score is greater than or equal to the second preset threshold value are filtered out, which means that these sentences are related to answering the search content and need to be emphasized, and these finally filtered out sentences are used as target sentences, and it is confirmed that the target sentences exist in the first answer summary, and then it is determined that the key sentences are detected in the first answer summary. Otherwise, if the sentences whose difference between the answer relevance score and the mean of the relevance score is greater than or equal to the second preset threshold value are not filtered out, it means that although these sentences are related to answering the search content, there are no sentences that need to be emphasized, and then it is confirmed that the target sentences do not exist in the first answer summary, and it is determined that the key sentences are detected in the first answer summary.
[0094] The first preset threshold may be a scoring threshold pre-set as needed to determine whether a sentence has an answer relationship with the search content, which is not limited here. The second preset threshold may be a scoring threshold pre-set as needed to determine whether a sentence needs to be emphasized, which is not limited here.
[0095] In other embodiments, based on the answer relevance score, determining whether there is a key sentence that answers the search content in the first answer summary can specifically include: if there is a target sentence in the first answer summary with an answer relevance score greater than or equal to a first preset threshold, determining that the key sentence is detected in the first answer summary; if the target sentence does not exist in the first answer summary, determining that the key sentence is not detected in the first answer summary.
[0096] Specifically, for any first answer summary, after obtaining the answer relevance score between each sentence of the first answer summary and the search content, the electronic device can filter out sentences with answer relevance scores greater than or equal to a first preset threshold from each sentence. If no sentence with an answer relevance score greater than or equal to the first preset threshold is filtered out, it means that there are no sentences related to answering the search content in the first answer summary, and it is confirmed that there are no target sentences in the first answer summary, and it is determined that there are no key sentences detected in the first answer summary. Otherwise, if sentences with answer relevance scores greater than or equal to the first preset threshold are filtered out, it means that these sentences are related to answering the search content, and these filtered sentences are used as target sentences, and it is confirmed that there are target sentences in the first answer summary, and then it is determined that there are key sentences detected in the first answer summary.
[0097] The first preset threshold may be a scoring threshold that is preset as needed to determine whether a statement has an answer relationship with the search content, and is not limited here.
[0098] In some other embodiments, based on the answer relevance score, determining whether there is a key sentence that answers the search content in the first answer summary can specifically include: based on the answer relevance score, calculating the average relevance score corresponding to each sentence in the first answer summary; if there is a target sentence in the first answer summary whose difference between the answer relevance score and the average relevance score is greater than or equal to a second preset threshold, determining that the key sentence is detected in the first answer summary; if the target sentence does not exist in the first answer summary, determining that the key sentence is not detected in the first answer summary.
[0099] Specifically, for any first answer summary, after obtaining the answer relevance score between each sentence in the first answer summary and the search content, the electronic device can first average the answer relevance score between each sentence and the search content to obtain the mean relevance score corresponding to each sentence in the first answer summary, and then calculate the difference between the answer relevance score corresponding to each sentence and the mean relevance score, and further screen out sentences among these sentences whose difference between the answer relevance score and the mean relevance score is greater than or equal to a second preset threshold. If sentences whose difference between the answer relevance score and the mean relevance score is greater than or equal to the second preset threshold are screened out, it means that these sentences are sentences that need to be emphasized and are related to answering the search content. These finally screened out sentences are used as target sentences, and it is confirmed that the target sentences exist in the first answer summary, and then it is determined that the key sentences are detected in the first answer summary. Otherwise, if sentences whose difference between the answer relevance score and the mean relevance score is greater than or equal to the second preset threshold are not screened out, it means that these sentences are not sentences that need to be emphasized and are related to answering the search content, and then it is confirmed that the target sentences do not exist in the first answer summary, and it is determined that the key sentences are detected in the first answer summary.
[0100] The second preset threshold may be a scoring threshold that is preset as needed to determine whether a sentence needs to be emphasized, and is not limited here.
[0101] Therefore, in the disclosed embodiment, the electronic device can detect the key sentences in the answer summary to accurately screen out candidate answer content having an answer summary with key sentences from the first answer content including both answer content having an answer summary with key sentences and other answer content not having an answer summary with key sentences, thereby further making the target answer content for emphasized display better meet the user's search needs.
[0102] In the disclosed embodiment, further, after the electronic device determines that there is a key sentence in the first answer summary corresponding to the first answer content and uses the first answer summary as the candidate answer content, it also needs to determine the key sentence for answering the search content based on the target sentence in the screened first answer summary, as the candidate key sentence in the candidate answer summary corresponding to the candidate answer content.
[0103] In some embodiments, after taking the first answer summary as candidate answer content, if the first answer summary has a target sentence, the electronic device can directly take the target sentence as a candidate key sentence in the candidate answer summary corresponding to the candidate answer content.
[0104] In other embodiments, after taking the first answer summary as candidate answer content, if the first answer summary has multiple target sentences, the electronic device may select a preset number of target sentences with the largest answer relevance scores as candidate key sentences in the candidate answer summary corresponding to the candidate answer content.
[0105] The preset number may be any number pre-set as required and is not limited here.
[0106] In some further embodiments, after taking the first answer summary as candidate answer content, if the first answer summary has multiple target sentences, the electronic device may take all of the multiple target sentences as candidate key sentences in the candidate answer summary corresponding to the candidate answer content.
[0107] Therefore, in the embodiment of the present disclosure, the electronic device can find sentences that are strongly related to the search content for the candidate answer summary corresponding to the candidate answer content based on a certain content understanding, as the answer to the search content, that is, the candidate key sentence, further improving the completeness of the displayed target key sentence as the answer to the search content, so as to further reduce the user's reading cost.
[0108] In some other embodiments of the present disclosure, the search results recalled by the server for the electronic device may all be first answer content with an answer summary, or may include other answer content without an answer summary. The specific method for the electronic device to obtain the first answer content from the search results will be described in detail according to different situations.
[0109] In some embodiments, when the search results are all first answer contents with answer summaries, the electronic device can directly obtain each answer content in the search results and use each obtained answer content as the first answer content.
[0110] In other embodiments, when the search results include other answer contents without answer summaries in addition to the first answer contents with answer summaries, obtaining at least one first answer content related to the search content may specifically include: recalling multiple second answer contents related to the search content; and screening at least one first answer content with an answer summary among the multiple second answer contents.
[0111] In these embodiments, recalling multiple second answer contents related to the search contents is to receive the search results fed back by the server. Specifically, the multiple second answer contents include both answer contents with answer summaries and other answer contents without answer summaries.
[0112] Specifically, the electronic device can obtain multiple second answer contents and detect whether each second answer content itself has an answer summary. If any second answer content itself has an answer summary, it will be used as the first answer content. If any second answer content itself does not have an answer summary, it will not be used as the first answer content.
[0113] In some further embodiments, when the search results include other answer contents without answer summaries in addition to the first answer contents with answer summaries, obtaining at least one first answer content related to the search contents may specifically include: recalling multiple second answer contents related to the search contents; and screening, among the multiple second answer contents, at least one first answer content with an answer summary and the number of words in the answer summary being greater than or equal to a third preset threshold.
[0114] In these embodiments, recalling multiple second answer contents related to the search contents is to receive the search results fed back by the server. Specifically, the multiple second answer contents include both answer contents with answer summaries and other answer contents without answer summaries.
[0115] Specifically, the electronic device can obtain multiple second answer contents, and detect whether each second answer content itself has an answer summary. If any second answer content itself does not have an answer summary, it will not be used as the first answer content. Otherwise, if any second answer content itself has an answer summary, it will further detect whether the number of words in the answer summary is greater than or equal to a third preset threshold. If the number of words in the answer summary is greater than or equal to the third preset threshold, it means that it may contain sentences that need to be emphasized in connection with the answer to the search content, and the second answer content will be used as the first answer content. Otherwise, if the number of words in the answer summary is less than the third preset threshold, it means that it does not contain sentences that need to be emphasized in connection with the answer to the search content, and the second answer content will not be used as the first answer content.
[0116] The third preset threshold may be a word count threshold that is preset as needed and is used to determine the sentence that may be relevant to answering the search content and needs to be emphasized based on the length of the summary, and is not limited here.
[0117] Therefore, in the disclosed embodiment, the electronic device can detect the answer summary of the answer content to accurately filter out the first answer content with the answer summary from the second answer content including both the answer content with the answer summary and other answer content without the answer summary, so as to further make the target answer content for emphasized display better meet the user's search needs.
[0118] Below Figure 4 Taking this as an example, a content screening method according to an embodiment of the present disclosure is described.
[0119] Figure 4 FIG. 2 shows another schematic diagram of a search result page provided by an embodiment of the present disclosure. Figure 4 As shown, for any answer content related to the search content recalled by the electronic device, after recalling the answer content, the electronic device can first detect whether the answer content has an answer summary. If not, the answer summary will be discarded. If so, continue to detect whether the number of words in the answer summary is greater than or equal to a third preset threshold. If not, the answer summary will be discarded. If so, further detect whether the answer summary contains key sentences. If not, the answer summary will be discarded. If so, the answer content will be used as candidate answer content.
[0120] Therefore, in the disclosed embodiment, the electronic device can filter the recalled search results in multiple dimensions, and finally filter out candidate answer contents for selecting target answer contents for emphasized display, so as to further make the target answer contents for emphasized display better meet the user's search needs.
[0121] In some other embodiments of the present disclosure, the electronic device may select target answer content from at least one candidate answer content in different ways based on the target answer relevance score, which will be described in detail below.
[0122] In some embodiments, the electronic device may directly use the target answer relevance score to sort the candidate answer contents, and select the candidate answer content with the highest target answer relevance score as the target answer content.
[0123] In other embodiments, the electronic device may use the target answer relevance score as a scoring parameter to calculate the content relevance score between each candidate answer content and the search content, and then use the content relevance score to sort the candidate answer content, and select the candidate answer content with the highest content relevance score as the target answer content.
[0124] Optionally, based on the target answer relevance score, selecting the target answer content from at least one candidate answer content may specifically include: calculating the content relevance score between at least one candidate answer content and the search content based on the target answer relevance score; and selecting the candidate answer content with the highest content relevance score as the target answer content.
[0125] Specifically, after determining the target answer relevance score between each candidate answer content and the search content, the electronic device can use the target answer relevance score between each candidate answer content and the search content to calculate the content relevance score between the candidate answer content and the search content, and then use the content relevance score to sort the candidate answer contents, and select the candidate answer content with the highest content relevance score as the target answer content.
[0126] In some examples, the electronic device may use the target answer relevance score and the keyword relevance score between the candidate answer content and the search content as scoring parameters to calculate the content relevance score between the candidate answer content and the search content.
[0127] Optionally, before calculating the content relevance score between at least one candidate answer content and the search content based on the target answer relevance score, the content search method may further include: determining a keyword relevance score between the candidate answer content and the search content.
[0128] Since the search results fed back by the server carry the keyword relevance scores of each answer content and the search content, the electronic device can directly search for the keyword relevance scores associated with the candidate answer content in the keyword relevance scores of each answer content and the search content, and then obtain the keyword relevance scores of the candidate answer content and the search content.
[0129] The keyword relevance score may be a basic score used by the server when recalling answer content, that is, a relevance score determined based on the relevance between the answer content and the keywords in the search content.
[0130] In these examples, based on the target answer relevance score, calculating the content relevance score between at least one candidate answer content and the search content may specifically include: performing a weighted summation of the target answer relevance score and the keyword relevance score to obtain the content relevance score.
[0131] Specifically, the electronic device may perform weighted summation of the target answer relevance score and the keyword relevance score according to preset weight values to obtain a comprehensive score, and use the comprehensive score as the content relevance score.
[0132] In other examples, the electronic device may use the target answer relevance score, the keyword relevance score between the candidate answer content and the search content, and the summary relevance score between the candidate answer summary and the search content as scoring parameters to calculate the content relevance score between the candidate answer content and the search content.
[0133] Optionally, before calculating the content relevance score between at least one candidate answer content and the search content based on the target answer relevance score, the content search method may also include: determining a summary relevance score between each candidate answer summary and the search content and a keyword relevance score between the candidate answer content and the search content.
[0134] Among them, the summary relevance score can be a relevance score determined based on the relevance between the summary content of the candidate answer summary corresponding to the candidate answer content and the search content, that is, the summary relevance score is a score of the relevance between the candidate answer content and the search content in the dimension of summary content.
[0135] Specifically, the electronic device can input the candidate answer summary and search content corresponding to the candidate answer content into a pre-trained content relevance detection model to detect the relevance of the summary content of the candidate answer summary and the answer to the search content, and obtain the weight corresponding to the candidate answer summary output by the content relevance detection model. Since the weight represents the content relevance detection model's prediction result on the relevance of the summary content of the candidate answer summary and the answer to the search content, the weight can be used as the summary relevance score of the candidate answer summary.
[0136] The content relevance detection model can be trained based on a summary relevance training sample set. The summary relevance training sample set includes multiple summary relevance training samples, each of which includes a search content sample, an answer summary sample, and a summary relevance annotation value corresponding to the answer summary sample.
[0137] Furthermore, since the search results fed back by the server carry the keyword relevance scores of each answer content and the search content, the electronic device can directly search for the keyword relevance scores associated with the candidate answer content among the keyword relevance scores of each answer content and the search content, and then obtain the keyword relevance scores of the candidate answer content and the search content.
[0138] The keyword relevance score may be a basic score used by the server when recalling answer content, that is, a relevance score determined based on the relevance between the answer content and the keywords in the search content.
[0139] In these examples, based on the target answer relevance score, calculating the content relevance score between at least one candidate answer content and the search content may specifically include: taking a weighted sum of the target answer relevance score, the summary relevance score, and the keyword relevance score to obtain a content relevance score.
[0140] Specifically, the electronic device may perform weighted summation of the target answer relevance score, the summary relevance score, and the keyword relevance score according to preset weight values to obtain a comprehensive score, and use the comprehensive score as the content relevance score.
[0141] Therefore, in the disclosed embodiment, the electronic device can use the target answer relevance score, or combine the target answer relevance score with other evaluation parameters, to sort the candidate answer content and filter out the target answer content, thereby making the target answer summary displayed to the user better meet the user's search needs.
[0142] Below Figure 5 Taking the example, another content screening method of the embodiment of the present disclosure is described.
[0143] Figure 5 FIG. 2 shows a flow chart of another content screening method provided by an embodiment of the present disclosure. Figure 5 As shown, after recalling multiple answer contents related to the search content, the electronic device can first screen the various preliminary screened answer contents with answer summaries and the answer summaries meet the requirements such as the number of words in the answer summaries is greater than or equal to a certain threshold from the multiple answer contents, and then perform key sentence detection on the screened preliminary screened answer contents to obtain the answer summaries with key sentences and the answer relevance scores between the candidate key sentences corresponding to the candidate answer contents and the search content, and then determine the target answer relevance scores corresponding to the candidate answer contents according to the answer relevance scores between the candidate key sentences corresponding to the candidate answer contents and the search content. Then, the electronic device can obtain the summary relevance score between each candidate answer summary and the search content and the keyword relevance score between the candidate answer content and the search content, and perform weighted summation on the target answer relevance score, summary relevance score and keyword relevance score corresponding to each candidate answer content to obtain the content relevance score corresponding to each candidate answer content. Finally, the electronic device can sort the candidate answer contents using the content relevance score, and select the candidate answer content with the highest content relevance score as the target answer content.
[0144] Therefore, in the disclosed embodiment, the electronic device can screen the recalled search results in multiple dimensions, and finally screen out candidate answer contents for selecting the target answer contents for emphasized display, and further perform the target answer relevance score, or combine the target answer relevance score with other evaluation parameters, to sort the candidate answer contents and screen out the target answer contents. Not only can the target answer relevance score be used as an evaluation parameter to screen the answer contents, find the mainstream correct answer contents, and improve the quality of the target answer contents, but it can also provide clues for a posteriori work.
[0145] In another embodiment of the present disclosure, in order to reduce the user's reading cost and improve the user's attention to the core answer, the electronic device can highlight the target key sentences in the target answer summary.
[0146] In some embodiments of the present disclosure, displaying a target answer summary in a search results page may specifically include: performing a structured analysis on the target answer summary to obtain a structured analysis result; if the structured analysis result is that the target answer summary has one paragraph, displaying the target answer summary in the search results page, and highlighting the target key sentences.
[0147] In the disclosed embodiment, the target answer summary may have one paragraph or multiple paragraphs. Therefore, in order for the electronic device to determine how to display the target answer summary, it may first use a text structure analysis algorithm to perform a structured analysis on the target answer summary to obtain a structured analysis result.
[0148] The structured analysis results may include the number of paragraphs in the target answer summary, the content of each paragraph, and the relationship between the paragraphs.
[0149] In some embodiments, after obtaining the structured analysis results corresponding to the target answer summary, the electronic device can first detect the number of paragraphs in the target answer summary. If the target answer summary has only one paragraph, the target answer summary can be directly displayed in the search results page, and the target key sentences can be highlighted.
[0150] In other embodiments, due to the limitations of the electronic device display page, the electronic device may not be able to fully display the entire summary content of the target answer summary. In this case, after obtaining the target answer summary, the electronic device can extract part of the summary content of the target answer summary from the target answer summary according to a pre-set summary extraction method, as the pre-display content of the target answer summary. The pre-display content is the summary content automatically selected by the electronic device for display in the search results page.
[0151] The pre-set summary extraction method may be any extraction method for selecting pre-displayed content in the answer summary that is pre-set as needed, and is not limited here.
[0152] In these embodiments, optionally, after obtaining the structured analysis results corresponding to the target answer summary, the electronic device may first detect the number of paragraphs of the target answer summary. If the target answer summary has only one paragraph, displaying the target answer summary in the search results page may specifically include: detecting the pre-display content of the target answer summary; if the pre-display content does not include the complete target key sentence, adjusting the pre-display content to obtain adjusted first display content, the first display content including the complete target key sentence; based on the first display content, displaying the target answer summary in the search results page.
[0153] Specifically, the electronic device can detect the text contained in the pre-display content to determine whether the pre-display content includes each complete target key sentence. If the pre-display content includes each complete target key sentence, the pre-display content is directly displayed in the search results page, and the target key sentence is highlighted. If the pre-display content does not include any complete target key sentence, the pre-display content will be adjusted in the pre-display content, and the target key sentence will be supplemented to obtain the adjusted first display content including each complete target key sentence, and then the first display content is displayed in the search results page, and the target key sentence is highlighted.
[0154] In other embodiments of the present disclosure, after performing a structured analysis on the target answer summary to obtain a structured analysis result, the content search method further includes: if the structured analysis result is that the target answer summary has multiple paragraphs and at least two of the multiple target key sentences belong to one paragraph, the target answer summary is displayed in the search results page, and the paragraph title of the paragraph to which each target key sentence belongs is highlighted.
[0155] In these embodiments, after obtaining the structured analysis results corresponding to the target answer summary, the electronic device can first detect the number of paragraphs in the target answer summary. If the target answer summary has multiple paragraphs, the subordinate relationship between multiple target key sentences and each paragraph can be detected based on the paragraph content of each paragraph. If it is detected that at least two of the multiple target key sentences belong to one paragraph, for example, two of the three target key sentences belong to one paragraph and the other belongs to other paragraphs, or for example, two of the four target key sentences belong to one paragraph and the other two belong to the same other paragraph, and so on, at this time, the electronic device can directly display at least part of the content of the relevant paragraphs in the target answer summary in the search results page, and highlight the target key sentences.
[0156] It should be noted that the method in which the electronic device directly displays at least part of the content of the relevant paragraphs in the target answer summary in the search result page is similar to the above embodiment and will not be described in detail here.
[0157] In some other embodiments of the present disclosure, after performing a structured analysis on the target answer summary to obtain a structured analysis result, the content search method also includes: if the structured analysis result is that the target answer summary has multiple paragraphs and each target key sentence belongs to one paragraph, the target answer summary is displayed in the search results page, and the paragraph title of the paragraph to which each target key sentence belongs is highlighted.
[0158] In these embodiments, after obtaining the structured analysis results corresponding to the target answer summary, the electronic device can first detect the number of paragraphs in the target answer summary. If the target answer summary has multiple paragraphs, it can detect the subordinate relationships between multiple target key sentences and each paragraph based on the paragraph content of each paragraph. If it is detected that each target key sentence belongs to a paragraph, the electronic device can directly display at least part of the content of the relevant paragraphs in the target answer summary in the search results page, and highlight the target key sentence.
[0159] It should be noted that the method in which the electronic device directly displays at least part of the content of the relevant paragraphs in the target answer summary in the search result page is similar to the above embodiment and will not be described in detail here.
[0160] In some further embodiments of the present disclosure, after performing a structured analysis on the target answer summary and obtaining a structured analysis result, the content search method further includes: if the structured analysis result is that the target answer summary has multiple paragraphs and each target key sentence belongs to one paragraph, the target answer summary is displayed in the search results page, and the paragraph title of the paragraph to which each target key sentence belongs is highlighted.
[0161] In these embodiments, after obtaining the structured analysis results corresponding to the target answer summary, the electronic device can first detect the number of paragraphs in the target answer summary. If the target answer summary has multiple paragraphs, the subordinate relationships between multiple target key sentences and each paragraph can be detected based on the paragraph content of each paragraph. If it is detected that each target key sentence belongs to a paragraph, the electronic device can display at least part of the content of the relevant paragraphs and the paragraph titles of the relevant paragraphs in the target answer summary on the search results page, and highlight each paragraph title.
[0162] Since the paragraph title is a summary of the content of a paragraph, and the target key sentence belongs to the content of a paragraph, the paragraph title can be regarded as a summary of the target key sentence, and the highlighting of the paragraph title can also be regarded as the highlighting of the target key sentence, that is, the sentence used to answer the search content. In other words, highlighting the paragraph title is essentially highlighting the target key sentence, which can better help users focus on the core answer and further reduce the user's reading cost.
[0163] Furthermore, before the electronic device displays the target answer summary in the search results page, it must first detect whether the paragraph content of the paragraph to which each target key sentence belongs contains a paragraph title. If the paragraph content contains a paragraph title, at least part of the content of the relevant paragraph in the target answer summary and the paragraph title of the relevant paragraph can be directly displayed in the search results page, and each paragraph title can be highlighted.
[0164] Furthermore, if the paragraph content does not include a paragraph title, before displaying the target answer summary in the search result page, the content search method further includes: generating a paragraph title for the paragraph to which each target key sentence belongs.
[0165] Specifically, if the paragraph content does not include a paragraph title, the electronic device can first generate a paragraph title for the paragraph to which each target key sentence belongs based on a pre-trained title extraction model, and then display at least part of the content of the relevant paragraph in the target answer summary and the paragraph title of the relevant paragraph in the search results page, and highlight each paragraph title.
[0166] In the disclosed embodiment, due to the limitation of the electronic device display page, the electronic device may not be able to fully display all the summary contents of the target answer summary. In this case, after obtaining the target answer summary, the electronic device can extract part of the summary contents of the target answer summary from the target answer summary according to a pre-set summary extraction method as the pre-display content of the target answer summary. The pre-display content is the summary content automatically selected by the electronic device for display in the search results page.
[0167] The pre-set summary extraction method may be any extraction method for selecting pre-displayed content in the answer summary that is pre-set as needed, and is not limited here.
[0168] In these embodiments, optionally, displaying the target answer summary in the search results page may specifically include: detecting the pre-display content of the target answer summary; if the pre-display content does not include the paragraph title of the paragraph to which any target key sentence belongs, adjusting the content of the pre-display content to obtain an adjusted second display content, the second display content including the paragraph titles of the paragraphs to which all the target key sentences belong; based on the second display content, displaying the target answer summary in the search results page.
[0169] Specifically, the electronic device can detect the text contained in the pre-display content to determine whether the pre-display content includes the complete paragraph title of the paragraph to which each target key sentence belongs. If the pre-display content includes the complete paragraph title of the paragraph to which each target key sentence belongs, the pre-display content is directly displayed in the search results page, and the paragraph title is highlighted. If the pre-display content does not include the complete paragraph title of the paragraph to which any target key sentence belongs, the pre-display content will be adjusted in the pre-display content, and the complete paragraph title of the paragraph to which the target key sentence belongs will be supplemented to obtain the adjusted second display content including the complete paragraph title of the paragraph to which each target key sentence belongs, and then the second display content is displayed in the search results page, and the paragraph title is highlighted.
[0170] Therefore, in the disclosed embodiment, the electronic device can sort out the primary and secondary relationships of the summary and simplify the summary content, and personalize the highlighted display of target key sentences, so as to display fewer irrelevant sentences, allowing users to quickly view the core answers to the search content, providing better display effects and reading experience.
[0171] The present disclosure also provides a content search device. Figure 6 Provide explanation.
[0172] In the embodiments of the present disclosure, the content search device may be an electronic device, which may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs, PADs, PMPs, vehicle terminals (such as vehicle navigation terminals), wearable devices, etc., and fixed terminals such as digital TVs, desktop computers, smart home devices, etc.
[0173] Figure 6 A schematic structural diagram of a content search device provided by an embodiment of the present disclosure is shown.
[0174] like Figure 6 As shown, the content search device 600 may include a content receiving unit 610 and a summary display unit 620 .
[0175] The content receiving unit 610 may be configured to receive search content.
[0176] The summary display unit 620 can be configured to display a target answer summary in the search results page. The target answer summary is derived from the target answer content. The target answer summary includes a target key sentence that answers the search content. The target answer content is selected from at least one candidate answer content related to the search content based on the target key sentence.
[0177] In an embodiment of the present disclosure, after receiving the search content, a target answer summary can be displayed in the search results page, wherein the target answer summary is derived from the target answer content, and the target answer content is selected from at least one candidate answer content related to the search content based on a target key sentence in the target answer summary, that is, the key sentence factor is taken into consideration when selecting the target answer content from the candidate answer content, so that the displayed target answer summary can have the target key sentence that answers the search content, thereby making the search results fed back to the user better able to meet the user's search needs and improve the user experience.
[0178] In some embodiments of the present disclosure, the content search device 600 may further include a content acquisition unit, a first determination unit, and a content selection unit.
[0179] The content acquisition unit may be configured to acquire at least one candidate answer content before displaying the target answer summary in the search result page, the candidate answer content having a candidate answer summary including candidate key sentences that answer the search content.
[0180] The first determination unit may be configured to determine a target answer relevance score between each candidate answer content and the search content based on the candidate key sentences.
[0181] The content selection unit may be configured to select a target answer content from at least one candidate answer content based on a target answer relevance score.
[0182] In some embodiments of the present disclosure, the content acquisition unit may include a first sub-acquisition unit, a first sub-detection unit and a first sub-processing unit.
[0183] The first sub-acquisition unit may be configured to acquire at least one first answer content related to the search content, wherein the first answer content has a first answer summary.
[0184] The first sub-detection unit may be configured to detect whether there are key sentences that answer the search content in each first answer summary.
[0185] The first sub-processing unit may be configured to use the first answer content from which the first answer summary containing the key sentence that answers the search content originates as the candidate answer content.
[0186] In some embodiments of the present disclosure, the first sub-detection unit can be further configured to calculate the answer relevance score between each sentence in each first answer summary and the search content; for each first answer summary, based on the answer relevance score, determine whether there is a key sentence in the first answer summary that solves the search content.
[0187] In some embodiments of the present disclosure, the first sub-detection unit can be further configured to calculate the average relevance score corresponding to each sentence in the first answer summary based on the answer relevance score; if there is a target sentence in the first answer summary whose answer relevance score is greater than or equal to a first preset threshold and the difference between the answer relevance score and the average relevance score is greater than or equal to a second preset threshold, it is determined that a key sentence is detected in the first answer summary; if the target sentence does not exist in the first answer summary, it is determined that no key sentence is detected in the first answer summary.
[0188] In some embodiments of the present disclosure, the first sub-acquisition unit can be further configured to recall multiple second answer contents related to the search content; among the multiple second answer contents, screen at least one first answer content having an answer summary and the number of words in the answer summary is greater than or equal to a third preset threshold.
[0189] In some embodiments of the present disclosure, the content selection unit may include a first sub-computing unit and a second sub-processing unit.
[0190] The first sub-calculation unit may be configured to calculate a content relevance score between at least one candidate answer content and the search content based on the target answer relevance score.
[0191] The second sub-processing unit may be configured to use the candidate answer content with the highest content relevance score as the target answer content.
[0192] In some embodiments of the present disclosure, the content search device 600 may also include a second determination unit, which may be configured to determine a summary relevance score between each candidate answer summary and the search content and a keyword relevance score between the candidate answer content and the search content before calculating a content relevance score between at least one candidate answer content and the search content based on the target answer relevance score.
[0193] The first sub-calculation unit may be further configured to perform a weighted summation of the target answer relevance score, the summary relevance score and the keyword relevance score to obtain a content relevance score.
[0194] In some embodiments of the present disclosure, the summary display unit 620 may include a first analysis subunit and a first display subunit.
[0195] The first analysis subunit may be configured to perform a structured analysis on the target answer summary to obtain a structured analysis result.
[0196] The first display subunit may be configured to display the target answer summary in the search result page and highlight the target key sentences if the structured analysis result shows that the target answer summary has one paragraph.
[0197] In some embodiments of the present disclosure, the first display subunit can be further configured to detect pre-display content of the target answer summary; if the pre-display content does not include a complete target key sentence, adjust the pre-display content to obtain an adjusted first display content, the first display content includes the complete target key sentence; based on the first display content, display the target answer summary in the search results page.
[0198] In some embodiments of the present disclosure, the summary display unit 620 may further include a second display sub-unit, which may be configured to, after performing a structured analysis on the target answer summary and obtaining a structured analysis result, display the target answer summary in the search results page and highlight the paragraph title of the paragraph to which each target key sentence belongs if the structured analysis result is that the target answer summary has multiple paragraphs and each target key sentence belongs to a paragraph.
[0199] In some embodiments of the present disclosure, the summary display unit 620 may further include a first generating subunit, which may be configured to generate a paragraph title for the paragraph to which each target key sentence belongs before displaying the target answer summary in the search result page.
[0200] In some embodiments of the present disclosure, the second display subunit can be further configured to detect pre-display content of the target answer summary; if the pre-display content does not include the paragraph title of the paragraph to which any target key sentence belongs, adjust the content of the pre-display content to obtain adjusted second display content, and the second display content includes the paragraph titles of the paragraphs to which all target key sentences belong; based on the second display content, display the target answer summary in the search results page.
[0201] It should be noted that Figure 6 The content search device 600 shown can perform Figures 1 to 5 The various steps in the method embodiment shown in the figure are implemented Figures 1 to 5 The various processes and effects in the method embodiment shown are not described in detail here.
[0202] The present disclosure also provides a content search device, which may include a processor and a memory, wherein the memory may be used to store executable instructions, wherein the processor may be used to read the executable instructions from the memory and execute the executable instructions to implement the content search method in the above embodiment.
[0203] Figure 7 A schematic diagram of the structure of a content search device provided by an embodiment of the present disclosure is shown. Figure 7 , which shows a structural schematic diagram of a content search device 700 suitable for implementing the embodiment of the present disclosure.
[0204] The content search device 700 in the embodiment of the present disclosure may be an electronic device, wherein the electronic device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs, PADs, PMPs, vehicle terminals (such as vehicle navigation terminals), wearable devices, etc., and fixed terminals such as digital TVs, desktop computers, smart home devices, etc.
[0205] It should be noted that Figure 7 The content search device 700 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0206] like Figure 7 As shown, the content search device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 to a random access memory (RAM) 703. Various programs and data required for the operation of the content search device 700 are also stored in the RAM 703. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0207] Typically, the following devices may be connected to the I / O interface 705: input devices 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 708 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 709. The communication devices 709 may allow the content search device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The content search device 70 is shown with various devices, but it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have instead.
[0208] The embodiments of the present disclosure further provide a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor implements the content search method in the above embodiments.
[0209] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 709, or installed from a storage device 708, or installed from a ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the content search method of the embodiment of the present disclosure are executed.
[0210] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0211] In some embodiments, the client and server may communicate using any currently known or future developed network protocol such as HTTP, and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0212] The computer-readable medium may be included in the content search device, or may exist independently without being assembled into the content search device.
[0213] The computer-readable medium carries one or more programs. When the one or more programs are executed by the content search device, the content search device executes:
[0214] Receive search content; display a target answer summary in a search results page, the target answer summary is derived from the target answer content, the target answer summary includes a target key sentence that answers the search content, and the target answer content is selected from at least one candidate answer content related to the search content based on the target key sentence.
[0215] In embodiments of the present disclosure, computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as a separate software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0216] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0217] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0218] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0219] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0220] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0221] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0222] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A content search method, characterized in that: include: Receive search content; Displaying a target answer summary in a search result page, the target answer summary is derived from a target answer content, the target answer summary includes a target key sentence that answers the search content, and the target answer content is selected from at least one candidate answer content related to the search content based on the target key sentence; The candidate answer content is the first answer content from which the first answer summary containing the key sentence that answers the search content originates; Whether the first answer summary contains a key sentence that answers the search content is determined by the answer relevance score between each sentence in the first answer summary and the search content; Based on the answer relevance score, determining whether the first answer summary contains a key sentence that answers the search content includes: calculating an average relevance score corresponding to each sentence in the first answer summary based on the answer relevance score; If there is a target sentence in the first answer summary whose answer relevance score is greater than or equal to a first preset threshold and the difference between the answer relevance score and the mean of the relevance scores is greater than or equal to a second preset threshold, it is determined that a key sentence is detected to exist in the first answer summary; if the target sentence does not exist in the first answer summary, it is determined that no key sentence is detected to exist in the first answer summary.
2. The method according to claim 1, characterized in that Before displaying the target answer summary in the search result page, the method further includes: Acquire at least one candidate answer content, wherein the candidate answer content has a candidate answer summary, and the candidate answer summary includes a candidate key sentence that answers the search content; Determine, based on the candidate key sentences, a target answer relevance score between each of the candidate answer contents and the search content; The target answer content is selected from at least one of the candidate answer contents based on the target answer relevance score.
3. The method according to claim 2, characterized in that The obtaining of at least one candidate answer content includes: Acquire at least one first answer content related to the search content, wherein the first answer content has a first answer summary; Detecting whether there is a key sentence that answers the search content in each of the first answer summaries; The first answer content from which the first answer summary containing the key sentence that answers the search content originates is used as the candidate answer content.
4. The method according to claim 3, characterized in that The detecting whether each of the first answer summaries contains a key sentence that answers the search content includes: Calculate the answer relevance score between each sentence in each of the first answer summaries and the search content; For each of the first answer summaries, based on the answer relevance score, it is determined whether the first answer summary contains a key sentence that answers the search content.
5. The method according to claim 3, characterized in that: The obtaining of at least one first answer content related to the search content includes: Recalling a plurality of second answer contents related to the search contents; Among the plurality of second answer contents, at least one first answer content having an answer summary and the number of words in the answer summary is greater than or equal to a third preset threshold is screened.
6. The method according to claim 2, characterized in that The step of selecting the target answer content from at least one of the candidate answer contents based on the target answer relevance score includes: Based on the target answer relevance score, calculating a content relevance score between at least one of the candidate answer contents and the search content; The candidate answer content with the highest content relevance score is used as the target answer content.
7. The method according to claim 6, characterized in that Before calculating the content relevance score between at least one of the candidate answer contents and the search content based on the target answer relevance score, the method further includes: Determine a summary relevance score between each candidate answer summary and the search content and a keyword relevance score between the candidate answer content and the search content; The step of calculating the content relevance score between at least one of the candidate answer contents and the search content based on the target answer relevance score includes: The target answer relevance score, the summary relevance score and the keyword relevance score are weighted and summed to obtain the content relevance score.
8. The method according to claim 1, characterized in that The target answer summary is displayed in the search result page, including: Performing structured analysis on the target answer summary to obtain a structured analysis result; If the structured analysis result shows that the target answer summary has one paragraph, the target answer summary is displayed in the search result page, and the target key sentence is highlighted.
9. The method according to claim 8, characterized in that The step of displaying the target answer summary in the search result page includes: detecting pre-displayed content of the target answer summary; If the pre-display content does not include the complete target key sentence, adjusting the pre-display content to obtain adjusted first display content, where the first display content includes the complete target key sentence; Based on the first display content, the target answer summary is displayed in the search result page.
10. The method according to claim 8, characterized in that After performing structured analysis on the target answer summary to obtain a structured analysis result, the method further includes: If the structured analysis result is that the target answer summary has multiple paragraphs and each of the target key sentences belongs to one paragraph, the target answer summary is displayed in the search result page, and the paragraph title of each paragraph to which the target key sentence belongs is highlighted.
11. The method according to claim 10, characterized in that Before displaying the target answer summary in the search result page, the method further includes: Generate a paragraph title for the paragraph to which each target key sentence belongs.
12. The method according to claim 10, characterized in that The step of displaying the target answer summary in the search result page includes: detecting pre-displayed content of the target answer summary; If the pre-display content does not include the paragraph title of any paragraph to which the target key sentence belongs, adjusting the content of the pre-display content to obtain adjusted second display content, wherein the second display content includes the paragraph titles of all paragraphs to which the target key sentence belongs; Based on the second display content, the target answer summary is displayed in the search result page.
13. A content search device, characterized in that: include: A content receiving unit configured to receive search content; A summary display unit is configured to display a target answer summary in a search result page, wherein the target answer summary is derived from a target answer content, wherein the target answer summary includes a target key sentence that answers the search content, and the target answer content is selected from at least one candidate answer content related to the search content based on the target key sentence; The candidate answer content is the first answer content from which the first answer summary containing the key sentence that answers the search content originates; Whether the first answer summary contains a key sentence that answers the search content is determined by the answer relevance score between each sentence in the first answer summary and the search content; The content search device also includes a content acquisition unit, which includes a first sub-detection unit. The first sub-detection unit is configured to calculate the average relevance score corresponding to each sentence in the first answer summary based on the answer relevance score; if there is a target sentence in the first answer summary whose answer relevance score is greater than or equal to a first preset threshold and the difference between the answer relevance score and the average relevance score is greater than or equal to a second preset threshold, it is determined that a key sentence is detected in the first answer summary; if the target sentence does not exist in the first answer summary, it is determined that no key sentence is detected in the first answer summary.
14. An electronic device, characterized in that: include: processor; A memory for storing executable instructions; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the content search method described in any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the content search method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Search engine dynamic summarization extracting method
CN101458718A
Summary information extraction method and device based on search engine and search engine
CN104077388A
Webpage abstract generating methods and displaying methods and corresponding devices
CN104636465A
Abstraction text extraction method and device, storage medium and electronic equipment
CN112052308A
Search engine selection abstract generation method and device
CN112307314A
