WO2023236710A1 - 搜索结果展示方法、装置、计算机设备及存储介质 - Google Patents

搜索结果展示方法、装置、计算机设备及存储介质 Download PDF

Info

Publication number
WO2023236710A1
WO2023236710A1 PCT/CN2023/093166 CN2023093166W WO2023236710A1 WO 2023236710 A1 WO2023236710 A1 WO 2023236710A1 CN 2023093166 W CN2023093166 W CN 2023093166W WO 2023236710 A1 WO2023236710 A1 WO 2023236710A1
Authority
WO
WIPO (PCT)
Prior art keywords
associated text
answer
text
information
type
Prior art date
Application number
PCT/CN2023/093166
Other languages
English (en)
French (fr)
Inventor
沈楚文
Original Assignee
抖音视界(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 抖音视界(北京)有限公司 filed Critical 抖音视界(北京)有限公司
Publication of WO2023236710A1 publication Critical patent/WO2023236710A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/73Querying
    • G06F16/738Presentation of query results
    • G06F16/739Presentation of query results in form of a video summary, e.g. the video summary being a video sequence, a composite still image or having synthesized frames
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/75Clustering; Classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/783Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/7844Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using original textual content or text extracted from visual content or transcript of audio data

Definitions

  • Embodiments of the present disclosure relate to a search result display method, device, computer equipment and storage medium.
  • Embodiments of the present disclosure provide at least a search result display method, device, computer equipment, and storage medium.
  • an embodiment of the present disclosure provides a method for displaying search results, including: in response to a search request, obtaining a preview resource of a target video associated with the search information in the search request; wherein the preview resource includes a third An associated text, an attribute type corresponding to the first associated text and video preview information of the target video; the first associated text is extracted based on the target video; based on the search result display form corresponding to the attribute type, display Video preview information of the target video and second associated text; wherein the second associated text includes at least part of the first associated text.
  • the attribute type of the first associated text is determined in the following manner: when the search information is a non-question-and-answer search type, the attribute type of the first associated text is determined. Belongs to the summary attribute type; when the search information is a question-and-answer search type, in response to the first associated text containing the answer information corresponding to the search information, it is determined that the first associated text belongs to the answer attribute type, otherwise It is determined that the first associated text belongs to the abstract attribute type; the second associated text is determined according to the following method: when the first associated text is of the abstract attribute type, the first associated text is used as the second associated text. Associated text; when the first associated text is an answer attribute type, determine the second associated text corresponding to the first associated text based on the answer type of the first associated text.
  • the answer type of the first associated text includes a first answer type and a second answer type; the second associated text It is determined according to the following method: when the answer type corresponding to the first associated text is the first answer type, the first associated text is used as the second associated text; when the answer corresponding to the first associated text If the type is the second answer type, select keywords that match the search information from the first associated text, and generate the second associated text based on the keywords.
  • the answer type corresponding to the first associated text is determined in the following manner: in response to the first associated text satisfying the above
  • the classification condition of the first answer type determines that the answer type corresponding to the first associated text is the first answer type, otherwise it is determined that the answer type corresponding to the first associated text is the second answer type; the first answer type
  • the classification conditions include at least one of the following: the statistical word count of the first associated text is less than a preset answer word count threshold, and the keywords associated with the search information in the first associated text are used as the first associated text.
  • the guide word, and the first associated text only contains one solution information that matches the search word.
  • displaying the video preview information and the second associated text of the target video based on the search result display format corresponding to the attribute type includes: in response to the attribute type being the answer attribute type.
  • the first answer type displays the second associated text on the video preview information; in response to the attribute type being a summary attribute type or a second answer type under the answer attribute type, displaying the second associated text on the video preview information.
  • the adjacent location area displays the second associated text.
  • the method further includes: in response to a triggering operation for displaying the video preview information, displaying a full-screen playback page corresponding to the content of the video preview information; displaying the full-screen playback page in the form of a floating layer. the second associated text; if the answer type is the second answer type, In response to triggering the second associated text, the second associated text is updated to the first associated text.
  • the method further includes: in response to a display triggering operation on the second associated text, updating the second associated text to the first associated text.
  • determining the second associated text based on the keywords includes: based on the semantic order of the selected multiple keywords in the first associated text, The keywords are spliced together to obtain the second associated text.
  • the video preview information is associated with at least one indication tag; each indication tag is used to indicate that at least part of the text information in the second associated text corresponds to the target video. Playback position; displaying the video preview information of the target video, including: determining the display position corresponding to the at least one indication tag according to at least one playback position corresponding to the second associated text in the target video; displaying the corresponding display position.
  • the video preview information is obtained, and the at least one indication tag is displayed on the video preview information based on the display positions respectively determined for the at least one indication tag.
  • determining the display position respectively corresponding to the at least one indication label according to at least one playback position corresponding to the second associated text in the target video includes: according to the second association At least one play position corresponding to the text in the target video, in the progress position indicated by the play progress bar of the target video, determine the display position of the at least one indication label; and/or, based on the at least one The text information corresponding to each play position in a play position and the display position in the second associated text determine the display position of the indication label.
  • the method further includes: in response to a triggering operation for any of the indication tags, determining the playback position indicated by the indication tag as the starting playback position of the target video; Starting from the starting playback position, the target video is played.
  • embodiments of the present disclosure also provide a search result display device, including: an acquisition module, configured to respond to a search request and acquire preview resources of a target video associated with the search information in the search request; wherein, The preview resource includes a first associated text, an attribute type corresponding to the first associated text, and video preview information of the target video; the first associated text is extracted based on the target video; a display module is used to extract based on the target video
  • the search result display form corresponding to the attribute type displays the video preview information and the second associated text of the target video; wherein, the third The second associated text includes at least part of the content of the first associated text.
  • the attribute type of the first associated text is determined in the following manner: when the search information is a non-question-and-answer search type, it is determined that the first associated text belongs to the summary attribute type; When the search information is a question-and-answer search type, in response to the first associated text containing answer information corresponding to the search information, it is determined that the first associated text belongs to the answer attribute type, otherwise it is determined that the first associated text belongs to the answer attribute type.
  • the associated text belongs to the summary attribute type; the second associated text is determined in the following manner: when the first associated text is of the abstract attribute type, the first associated text is used as the second associated text; When the first associated text is an answer attribute type, the second associated text corresponding to the first associated text is determined based on the answer type of the first associated text.
  • the answer type of the first associated text includes a first answer type and a second answer type; the second associated text It is determined according to the following method: when the answer type corresponding to the first associated text is the first answer type, the first associated text is used as the second associated text; when the answer corresponding to the first associated text If the type is the second answer type, select keywords that match the search information from the first associated text, and generate the second associated text based on the keywords.
  • the answer type corresponding to the first associated text is determined in the following manner: in response to the first associated text satisfying the above
  • the classification condition of the first answer type determines that the answer type corresponding to the first associated text is the first answer type, otherwise it is determined that the answer type corresponding to the first associated text is the second answer type; the first answer type
  • the classification conditions include at least one of the following: the statistical word count of the first associated text is less than a preset answer word count threshold, and the keywords associated with the search information in the first associated text are used as the first associated text.
  • the guide word, and the first associated text only contains one solution information that matches the search word.
  • the display module when displaying the video preview information and the second associated text of the target video based on the search result display format corresponding to the answer type, is configured to: respond to the attribute type being The first answer type under the answer attribute type displays the second associated text on the video preview information; in response to the attribute type being a summary attribute type or the second answer type under the answer attribute type, in response to The second associated text is displayed in a location area adjacent to the video preview information.
  • the search result display device further includes a first processing module configured to: in response to a display triggering operation of the video preview information, display a full-screen playback page of the content corresponding to the video preview information;
  • the full-screen playback page displays the second associated text in the form of a floating layer; if the answer type is the second answer type, in response to the triggering of the second associated text, the second associated text is updated to the Describe the first associated text.
  • the search result display device further includes a second processing module, configured to: in response to a display triggering operation on the second related text, update the second related text to the first associated text.
  • the video preview information is associated with at least one indication tag; each indication tag is used to indicate that at least part of the text information in the second associated text corresponds to the target video. Playing position; when displaying the video preview information of the target video, the display module is used to: determine the corresponding corresponding position of the at least one indication tag according to at least one playing position corresponding to the second associated text in the target video. Display the position; display the video preview information, and display the at least one indication label on the video preview information based on the display position respectively determined for the at least one indication label.
  • the display module when determining the display position corresponding to the at least one indication tag according to the at least one play position corresponding to the second associated text in the target video, is configured to: At least one playback position corresponding to the second associated text in the target video determines the display position of the at least one indication label in the progress position indicated by the playback progress bar of the target video; and/or, The display position of the indication label is determined based on the text information respectively corresponding to each of the at least one play position and the display position in the second associated text.
  • the display module is further configured to: in response to a triggering operation on any of the indication tags, determine the playback position indicated by the indication tag as the starting playback position of the target video; Starting from the starting playback position, the target video is played.
  • an optional implementation manner of the present disclosure also provides a computer device, a processor, and a memory, the memory stores machine-readable instructions executable by the processor, and the processor is configured to Execute machine-readable instructions stored in the memory.
  • the machine-readable instructions are executed by the processor, when the machine-readable instructions are executed by the processor, the above first aspect is performed, or in the first aspect steps in any possible implementation.
  • an optional implementation manner of the present disclosure also provides a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program. When the computer program is run, it executes the above-mentioned first aspect, or any of the first aspects. steps in a possible implementation.
  • Embodiments of the present disclosure provide a method, device, computer device, and storage medium for displaying search results.
  • preview resources of a target video associated with search information therein can be obtained.
  • the preview resource includes video preview information of the target video, first associated text extracted from the target video and related to the target video content, and an attribute type used to indicate the first associated text. Therefore, when the target video is displayed, the video preview information and the second associated text determined for display using the attribute type for the first associated text can be displayed.
  • the second associated text displayed on the video preview information can directly display to the user the text information associated with the search information in the video when the video preview information is displayed, that is, in the video-type search It is more intuitive to display search information-related content in the results, thereby improving the efficiency of obtaining search information-related content.
  • Figure 1 shows a flow chart of a search result display method provided by an embodiment of the present disclosure
  • Figure 2a shows a schematic diagram of the first method of displaying video preview information of a target video and second associated text provided by an embodiment of the present disclosure
  • Figure 2b shows a schematic diagram of a second display of video preview information of a target video and a second associated text provided by an embodiment of the present disclosure
  • Figure 2c shows a schematic diagram of the third display of video preview information and second associated text of a target video provided by an embodiment of the present disclosure
  • Figure 2d shows a schematic diagram of the fourth video preview information of the display target video and the second associated text provided by the embodiment of the present disclosure
  • Figure 3a shows a schematic diagram of the first full-screen playback page provided by an embodiment of the present disclosure
  • Figure 3b shows a schematic diagram of the second full-screen playback page provided by an embodiment of the present disclosure
  • Figure 3c shows a schematic diagram of the third full-screen playback page provided by an embodiment of the present disclosure
  • Figure 4 shows a schematic diagram of jumping to play a target video provided by an embodiment of the present disclosure
  • Figure 5 shows a schematic diagram of a search result display device provided by an embodiment of the present disclosure.
  • FIG. 6 shows a schematic diagram of a computer device provided by an embodiment of the present disclosure.
  • searchable videos usually contain content information related to the search information.
  • the exposed video introduction and the first video frame displayed usually do not have complete content information, and the content information cannot be directly and completely displayed during the display. Therefore, for such video search results, it takes a long time for users to obtain content information, and the efficiency of obtaining content information is low.
  • the present disclosure provides a search result display method, device, computer equipment equipment and storage media, and in response to the search request, the preview resource of the target video associated with the search information therein can be obtained.
  • the preview resource includes video preview information of the target video, first associated text extracted from the target video and related to the target video content, and an attribute type used to indicate the first associated text. Therefore, when the target video is displayed, the video preview information and the second associated text determined for display using the attribute type for the first associated text can be displayed. In this way, after a search is performed, the second associated text displayed on the video preview information can directly display the text information associated with the search information to the user, that is, it is more convenient to display content related to the search information in the video search results. Intuitive, thereby improving the efficiency of users in obtaining search information-related content.
  • the execution subject of the search result display method provided by an embodiment of the present disclosure is generally a computer device with certain computing capabilities.
  • the computer device includes, for example: a terminal device or a server or other processing device.
  • the terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDAs), handheld devices, computing devices, vehicle-mounted devices, wearable devices, etc.
  • the search result display method can be implemented by the processor calling computer-readable instructions stored in the memory.
  • the search result display method provided by the embodiment of the present disclosure is explained below by taking the execution subject as the client as an example.
  • FIG. 1 a flow chart of a method for displaying search results provided by an embodiment of the present disclosure is shown.
  • the method includes steps S101 to S102, wherein:
  • S101 In response to a search request, obtain the preview resource of the target video associated with the search information in the search request; wherein the preview resource includes the first associated text, the attribute type corresponding to the first associated text, and the Video preview information of the target video; the first associated text is extracted based on the target video;
  • S102 Based on the search result display format corresponding to the attribute type, display the video preview information of the target video and the second associated text; wherein the second associated text includes at least part of the first associated text.
  • the user terminal when the user performs a search, by entering search information in the search box and triggering the search operation button, the user terminal can send a search request.
  • the search request includes search information, where the search information includes the search field, question title, etc. entered by the user.
  • the server After the server receives the search request, it can determine the target video that matches the search information from multiple available videos based on the search information in it.
  • the target video that matches the search information specifically includes videos filtered out from multiple videos. A video with at least one frame, voice, text content, etc. that can be used as the answer to the question.
  • online processing can be used.
  • the preview resource is specifically used to preview and display the target video on the user side.
  • the preview resource includes the first associated text extracted based on the target video.
  • optical character recognition Optical Character Recognition, OCR
  • speech recognition Automatic Speech Recognition, ASR
  • other methods can be used to process the target video.
  • OCR optical Character Recognition
  • ASR Automatic Speech Recognition
  • ASR and other methods to process the target video for example, multiple words or short sentences without punctuation marks are obtained.
  • the processed Add punctuation marks to words or short sentences to form segments that can be directly displayed.
  • serial numbers, labels, etc. to mark sections, or use highlighting, underlining, etc. to mark key points.
  • ASR can be used to assist in semantic restoration or misunderstanding of these words or short sentences.
  • the recognition correction process is used to obtain the first associated text that expresses clear and complete information.
  • the first associated text obtained is also different.
  • the search information includes a search field input by the user, such as a user's username, attraction name, a poem, etc., which do not have a clear question or a search phrase, that is, when the search information is not a question-and-answer type.
  • the obtained target video may include, for example, the user's Creation videos, classic introduction videos, poetry explanation videos. Therefore, in this case, the first associated text in the preview resource of the target video may be the summary information extracted from the target video, such as the explanation text extracted from the explanation video of the poem.
  • the user searches with "Silent Night Thoughts" as the search term, and the first associated text information obtained includes, for example, ""Silent Night Thoughts”
  • the first associated text information obtained includes, for example, ""Silent Night Thoughts”
  • the search information includes a question title with a clear question, for example, the question "What is the rectus abdominis" is entered, that is, when the search information is a question-and-answer search type
  • the target videos may include, for example, answer videos that provide detailed answers to questions, or videos that are only related to some words in the search question.
  • the target video includes an answer video
  • the first associated text in the corresponding preview resource can be included in the answer video to extract the answer information; if the target video contains a non-answer video, then the corresponding first associated text in the preview resource can be included in the answer video.
  • the first associated text in the resource is similar to the summary information extracted when the search information described above is a non-question and answer search type, including the explanation text extracted from the non-answer video.
  • different attribute types are determined correspondingly for different types of first associated text, so that the second associated text for display is determined according to the attribute type corresponding to the first associated text.
  • the attribute type of the first associated text is determined in the following manner: when the search information is a non-question-and-answer search type, it is determined that the first associated text belongs to the summary attribute type; when the search information is In the case of a question-and-answer search type, in response to the first associated text containing answer information corresponding to the search information, it is determined that the first associated text belongs to the answer attribute type, otherwise it is determined that the first associated text belongs to the summary attribute type .
  • the first associated text belonging to the summary attribute type can be directly displayed as the second associated text because it can directly reflect the specific content contained in the target video and serve as information for the user to view in advance.
  • the second associated text for display can be further determined by determining the answer type of the first associated text.
  • the first associated text is the answer attribute type
  • the first associated text that can be obtained explains the concept, so it is relatively brief.
  • the corresponding first associated text is A1: "The rectus abdominis are the two muscles that stand upright in front of our belly, commonly known as the eight-pack abdominal muscles.”
  • question Q2 "Why does the left side of the chest feel like a pinprick?", the first answer you can get is The related text is relatively long.
  • the corresponding first related text is A2: "Generally speaking, this kind of acupuncture is a kind of discomfort that is felt once in a while. This is usually related to the impact on mood and nerve function, or inflammation of the costal cartilage. These are related.”
  • the first associated text may also have different answer types, specifically including a first answer type and a second answer type, to determine the displayed second associated text.
  • the first associated text may not be completely displayed.
  • the corresponding second associated text can be determined according to the answer type of the first associated text, and the second associated text can be displayed.
  • the following method may be used to determine the answer type corresponding to the first associated text: in response to the first associated text satisfying the classification condition of the first answer type, determining the answer type corresponding to the first associated text as The first answer type, otherwise the answer type corresponding to the first associated text is determined to be the second answer type; the classification conditions of the first answer type include at least one of the following: the statistical word count of the first associated text is less than the predetermined number Assume that the answer word count threshold is such that the keywords associated with the search information in the first associated text are used as guide words for the first associated text, and the first associated text only contains one word related to the search term. Matching solution information.
  • the answer word count threshold may be determined based on the maximum number of words that can be presented in the area where the answer text is displayed, such as 50 words.
  • the keywords associated with the search information in the first associated text may include, for example, some words in the question, such as "rectus abdominis” in question Q1; or may also include some words in the answer that directly answer the question, such as No. A link to “Emotional and neurological effects” and “Inflammation of costal cartilage” in text A2.
  • the keywords can be determined based on semantic segmentation of the first associated text. By performing semantic segmentation processing on the first associated text, multiple words with different semantic information can be obtained, and the semantic information of each word can be compared with the search information.
  • the keywords associated with the search information can be determined from multiple words. Keywords serve as guide words in the first associated text, which may include explaining the answer starting with the keyword in the first associated text. For example, in the above-mentioned first associated text A1, the keyword "rectus abdominis" occupies the first place. Relate the first few character positions in text A1.
  • the first associated text there may also be multiple answer information matching the search term.
  • the first associated text A2 specifically includes two answer information, namely "Emotional and neurological effects” and "Inflammation of costal cartilage".
  • the answer text When displaying the answer text, on the one hand, the number of words that can be displayed is limited, and on the other hand, it is hoped that the answer information corresponding to the question can be displayed intuitively and concisely, so that users can more easily obtain the answer by viewing the answer text.
  • the answer type of the first associated text After determining the answer type of the first associated text according to at least one of the above methods, it can be known that the first associated text of the first answer type is more in line with the display requirements and user needs, and is therefore suitable for direct display.
  • the keywords directly related to the answer to the question in the first related text of the second answer type are relatively scattered, and the second related text is generally longer, so it may not be fully displayed in a limited area during display. Moreover, it takes longer for users to get the complete answer, which is not suitable for direct display.
  • a second associated text that is easy to display can also be reconstructed based on the keywords therein, and the second associated text can be displayed.
  • the keywords therein For details, see The description of the following corresponding positions will not be repeated here.
  • the preview resource also includes video preview information of the target video.
  • the video preview information can be used as cover information displayed when the target video is displayed, for example.
  • the first video frame of the target video can be used as the video preview information, or any one of the multiple video frames included in the target video can be used as the video preview information according to actual needs. The details can be determined according to the actual situation. This is not limited.
  • the video preview information of the target video in the preview resource and the second associated text determined for the first associated text according to the attribute type can be displayed.
  • the video preview information of the target video can be displayed, which can be obtained according to the corresponding method in the above S101.
  • the displayed second associated text when using the attribute type of the first associated text to determine the second associated text, it can be specifically determined in the following way: when the first associated text is a summary attribute type, the first associated text is used as the second associated text; when the first associated text is an answer attribute type, the first associated text is determined based on the answer type of the first associated text.
  • the second associated text corresponding to the associated text.
  • the first associated text is the answer attribute type
  • the answer type corresponding to a related text is the first answer type
  • the first related text is used as the second related text
  • select keywords matching the search information from the first associated text and generate the second associated text based on the keywords.
  • the first associated text of the first answer type is suitable to be displayed directly. Therefore, when the answer type corresponding to the first associated text is the first answer type, the first associated text can be directly displayed. as the second associated text.
  • the first associated text of the second answer type is generally longer, and when directly displayed, the user cannot directly obtain the answer information. Therefore, the second associated text that is short and directly expresses the answer information can be obtained accordingly, and the second associated text can be obtained accordingly. Text is displayed.
  • the following method may be adopted: based on the semantic order of the selected multiple keywords in the first associated text, multiple keywords are determined based on the semantic order of the selected keywords in the first associated text. The words are spliced together to obtain the second associated text. Specifically, the semantic order of keywords in the first associated text can be determined based on the order in which the keywords appear in the first associated text.
  • the keywords are "emotional and neurological effects” and "costal cartilage inflammation”
  • the keyword “emotional and neurological effects” precedes “costal cartilage inflammation” in the first associated text appears so the second associated text "Emotional and neurological effects, costal cartilage inflammation” can be obtained by splicing the keywords.
  • the first associated text of the second answer type may specifically include multiple steps.
  • the corresponding first associated text is A3: " First prepare 150 grams of shredded potatoes and 150 grams of carrots, then blanch them in water and take them out. Then dry the shredded potatoes and carrots into a bowl, then add 2 eggs, an appropriate amount of chopped green onion, a little soy sauce, and a little Salt and 20 grams of starch. Finally, stir evenly and put into a pan with oil to form a cake shape, and fry over low heat until both sides are golden and cooked.”
  • the first associated text includes multiple consecutive steps. When splicing the keywords, the semantic order of the multiple keywords is determined based on the order of the steps.
  • the resulting second associated text is, for example, "150 grams of potatoes.” Blanch shredded carrots and 150g shredded carrots, remove and drain; add 2 eggs, an appropriate amount of chopped green onion, a little soy sauce, a little salt, and 20g starch; stir evenly, put it into a pan with oil and arrange it into a cake shape, and fry over low heat Cook until golden brown on both sides.”
  • the video preview information of the target video and the third 2 associated text for display.
  • the following method when displaying the video preview information and the second associated text of the target video based on the search result display format corresponding to the answer type, the following method may be adopted: in response to the attribute type being the answer attribute The first answer type under the type, display the second associated text on the video preview information; in response to the attribute type being a summary attribute type, or the second answer type under the answer attribute type, in response to the The second associated text is displayed in a location area adjacent to the video preview information.
  • the attribute type is the first answer type under the answer attribute type
  • Figure 2a is a schematic diagram of the first display of video preview information of the target video and the second associated text provided by the embodiment of the present disclosure.
  • the first associated text is A1
  • the second associated text is determined to be the first associated text, specifically including "The rectus abdominis are the two muscles that stand upright in front of our belly, commonly known as the eight-pack abdominal muscles.”
  • the video preview information is the first video frame of the target video, such as the human muscle distribution map shown.
  • the attribute type is a summary attribute type, see Figure 2b, which is a schematic diagram of the second method of displaying video preview information of the target video and the second associated text provided by an embodiment of the present disclosure.
  • the video preview information and the second associated text may be specifically displayed on the video outflow page.
  • the video outflow page is a search results page that does not display videos in full screen. Specifically, multiple videos displayed in small windows can be displayed sequentially by sliding up and down.
  • the first associated text is, for example, as explained in the above example, "The moonlight is bright in front of the bed in "Quiet Night Thoughts", and it is suspected to be frost on the ground. Look up at the bright moon, lower your head and think about your hometown.”
  • the second associated text is determined according to the attribute type.
  • the video preview information is any video frame of the target video, such as the illustrated poem with pictures.
  • the second associated text can also be updated to the first associated text in response to the display triggering operation of the second associated text, and then the second associated text can be updated to the first associated text.
  • the content of a related text is displayed.
  • the attribute type is the second answer type under the answer attribute type, as shown in Figure 2c, it is the third method of displaying the video preview information of the target video and the second associated text provided by the embodiment of the present disclosure.
  • the first related text is A2 "Generally speaking, this kind of acupuncture is a kind of discomfort, which is usually related to the impact on mood and nerve function, or inflammation of the costal cartilage."
  • the second related text determined by the first related text is "Emotional and neurological effects, inflammation of costal cartilage".
  • the specific second related text is shown in Figure 2c.
  • the second associated text can also be updated to the second associated text in response to the display triggering operation of the second associated text.
  • One associated text, and then the content of the first associated text is displayed.
  • FIG. 2d is a schematic diagram of a fourth method of displaying video preview information of a target video and a second associated text according to an embodiment of the present disclosure.
  • the second associated text can be updated to the first associated text by triggering the expand button in Figure 2c, and the content of the first associated text can be fully displayed.
  • the original position of the expand button is transformed into a retract button, and in response to the triggering of the retract button, the page in Figure 2c can be returned.
  • a full-screen playback page of the content corresponding to the video preview information in response to the display trigger operation of the video preview information, can be displayed; the second associated text is displayed in the form of a floating layer on the full-screen playback page; If the attribute type is the second answer type under the answer attribute type, in response to the triggering of the second associated text, the second associated text is updated to the first associated text.
  • the full-screen playback page is a video in-flow page that is different from any of the pages in Figure 2a to Figure 2d. It plays the target video in the form of full-screen playback and is a display page for the target video. Regarding the triggering operation of the video preview information in the above-mentioned Figures 2a to 2d, a full-screen playback page displaying the corresponding content of the video preview information can be jumped.
  • the full-screen playback page displayed is as shown in Figure 3a.
  • the second associated text that is the same as Figure 2a is displayed in the form of a floating layer.
  • This floating layer display method, or displaying the second associated text with a certain degree of transparency will not cause any major obstruction to the playback of the target video. Therefore, it will not affect the inherent playback form of the target video, or damage it.
  • the original video content can also directly display answer information to users.
  • the displayed second associated text is determined based on the first associated text, and the first associated text is extracted from the target video. Therefore, there is at least one position involving the second associated text in the target video.
  • at least one indication tag associated with the video preview information may also be determined. Each of the indication tags is used to indicate a corresponding playback position of at least part of the text information in the second associated text in the target video.
  • At least part of the text information described here includes, for example, keywords constituting the second associated text.
  • the keywords of the second associated text appear scattered in different positions in the video, and some of the keywords are relatively concentrated and continuous. In this case, it can be multiple consecutive and concentrated key words.
  • Determine an indicator tag corresponding to the word for example, determine the corresponding position in the target video for the first keyword among multiple keywords that appear in a continuous set to determine the indication position of the indicator tag corresponding to these keywords, so that the target can be controlled
  • the total number of instruction tags associated in the video In subsequent operation steps, by triggering a small number of instruction tags, all answer information related to the second associated text can be viewed in the target video.
  • the second associated text can be displayed at the playback progress bar of the target video according to at least one playback position corresponding to the second associated text in the target video.
  • the display position of the at least one indication label is determined.
  • an indicator label is specifically displayed.
  • the playback position indicated by the indication tag is the playback position of the second associated text in the target video.
  • it can be displayed directly. If there are more than one, in order to distinguish different indication labels on the progress bar, part of the text in the second associated text being played here can also be correspondingly marked near the indication label.
  • Figure 3b see Figure 3b. and the presentation form of the indicated label in Figure 3c.
  • the indicator label can also be displayed in a similar manner, and the details will not be repeated.
  • the display position in the second associated text can be determined based on the text information respectively corresponding to each of the at least one playing position.
  • the display position of the indication label can be determined based on the text information respectively corresponding to each of the at least one playing position.
  • the instruction label described here may not be used for the positioning mark shown in Figure 3a, but may be displayed as a button that can be triggered to specifically display the time information corresponding to the playback position.
  • the displayed instruction label can also be used as a triggerable button.
  • the playback position indicated by the indication tag in response to a triggering operation for any of the indication tags, can be determined as the starting playback position of the target video; starting from the starting playback position , play the target video.
  • the indicator tag there is no need to wait for the target video to play to the position corresponding to the second associated text information before the second associated text information contained in the target video can be displayed. Instead, the second associated text information contained in the target video can be displayed directly, which is more convenient. Fast.
  • the embodiments of the present disclosure also provide a search result display device corresponding to the search result display method. Since the principle of solving the problem of the device in the embodiment of the present disclosure is similar to the above-mentioned search result display method of the embodiment of the present disclosure, therefore For the implementation of the device, please refer to the implementation of the method, and repeated details will not be repeated.
  • Display module 52 configured to display the video preview information of the target video and the second associated text based on the search result display form corresponding to the attribute type; wherein the second associated text at least includes the first associated text Part.
  • the attribute type of the first associated text is determined in the following manner: when the search information is a non-question-and-answer search type, it is determined that the first associated text belongs to the summary attribute type; When the search information is a question-and-answer search type, in response to the first associated text containing answer information corresponding to the search information, it is determined that the first associated text belongs to the answer attribute type, otherwise it is determined that the first associated text belongs to the answer attribute type.
  • the associated text is of the summary attribute type; described in Section 1
  • the second associated text is determined in the following manner: when the first associated text is of the summary attribute type, the first associated text is used as the second associated text; when the first associated text is of the answer attribute type In this case, the second related text corresponding to the first related text is determined based on the answer type of the first related text.
  • the answer type corresponding to the first associated text is determined in the following manner: in response to the first associated text satisfying the above
  • the classification condition of the first answer type determines that the answer type corresponding to the first associated text is the first answer type, otherwise it is determined that the answer type corresponding to the first associated text is the second answer type; the first answer type
  • the classification conditions include at least one of the following: the statistical word count of the first associated text is less than a preset answer word count threshold, and the keywords associated with the search information in the first associated text are used as the first associated text.
  • the guide word, and the first associated text only contains one solution information that matches the search word.
  • the display module 52 when displaying the video preview information and the second associated text of the target video based on the search result display format corresponding to the answer type, is configured to: respond to the attribute type For the first answer type under the answer attribute type, the second associated text is displayed on the video preview information; in response to the attribute type being the summary attribute type or the second answer type under the answer attribute type, in The second associated text is displayed in a location area adjacent to the video preview information.
  • the search result display device further includes a first processing module 53, configured to: in response to a display triggering operation of the video preview information, display a full-screen playback page of the content corresponding to the video preview information;
  • the second associated text is displayed in the form of a floating layer on the full-screen playback page; if the answer type is the second answer type, in response to the triggering of the second associated text, the second associated text is updated to The first associated text.
  • the search result display device further includes a second processing module 54 for In: in response to the display triggering operation on the second associated text, updating the second associated text to the first associated text.
  • processor 10 and memory 20; the memory 20 stores machine-readable instructions executable by the processor 10, and the processor 10 is used to execute the machine-readable instructions stored in the memory 20, and the machine-readable instructions are used by the processor 10 When executing, processor 10 performs the following steps:
  • preview resources In response to the search request, obtain the target video associated with the search information in the search request.
  • Preview resources wherein the preview resources include first associated text, an attribute type corresponding to the first associated text, and video preview information of the target video; the first associated text is extracted based on the target video; based on the
  • the search result display form corresponding to the attribute type displays the video preview information of the target video and the second associated text; wherein the second associated text includes at least part of the first associated text.
  • the above-mentioned memory 20 includes a memory 210 and an external memory 220; the memory 210 here is also called internal memory, and is used to temporarily store the operation data in the processor 10, as well as the data exchanged with external memory 220 such as a hard disk.
  • the processor 10 communicates with the external memory 220 through the memory 210.
  • the external memory 220 performs data exchange.
  • Embodiments of the present disclosure also provide a computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the storage medium may be a volatile or non-volatile computer-readable storage medium.
  • Embodiments of the present disclosure also provide a computer program product.
  • the computer program product carries program code.
  • the instructions included in the program code can be used to execute the steps of the search result display method described in the above method embodiment. For details, see the above Method embodiments will not be described again here.
  • the above-mentioned computer program product can be specifically implemented by hardware, software or a combination thereof.
  • the computer program product is embodied as a computer storage medium.
  • the computer program product is embodied as a software product, such as a Software Development Kit (SDK), etc. wait.
  • SDK Software Development Kit
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor.
  • the technical solution of the present disclosure essentially or part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium and includes a number of instructions to cause a computer device (to be a personal computer, server, or network device, etc.) that executes all or part of the steps of the methods described in various embodiments of the present disclosure.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Computational Linguistics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本公开提供了一种搜索结果展示方法、装置、计算机设备及存储介质,其中,该方法包括:响应于搜索请求,获取与所述搜索请求中的搜索信息关联的目标视频的预览资源;其中,所述预览资源包括第一关联文本、所述第一关联文本对应的属性类型以及所述目标视频的视频预览信息;所述第一关联文本基于所述目标视频提取;基于所述属性类型对应的搜索结果展示形式,展示所述目标视频的视频预览信息以及第二关联文本;其中,所述第二关联文本至少包括所述第一关联文本的部分内容。

Description

搜索结果展示方法、装置、计算机设备及存储介质
本申请要求于2022年6月7日递交的中国专利申请第202210634752.8号的优先权,在此全文引用上述中国专利申请公开的内容以作为本申请的一部分。
技术领域
本公开的实施例涉及一种搜索结果展示方法、装置、计算机设备及存储介质。
背景技术
在搜索场景中,利用搜索信息进行搜索后,可以得到包含视频的搜索结果。
对于视频类的搜索结果,一般需要用户观看视频后才能从中获取视频中与搜索信息相关的内容。因此,对于这种视频类的搜索结果,用户获取相关内容时所需花费的消费时间较长、效率较低。
发明内容
本公开实施例至少提供一种搜索结果展示方法、装置、计算机设备及存储介质。
第一方面,本公开实施例提供了一种搜索结果展示方法,包括:响应于搜索请求,获取与所述搜索请求中的搜索信息关联的目标视频的预览资源;其中,所述预览资源包括第一关联文本、所述第一关联文本对应的属性类型以及所述目标视频的视频预览信息;所述第一关联文本基于所述目标视频提取;基于所述属性类型对应的搜索结果展示形式,展示所述目标视频的视频预览信息以及第二关联文本;其中,所述第二关联文本至少包括所述第一关联文本的部分内容。
一种可选的实施方式中,所述第一关联文本的属性类型根据以下方式确定:在所述搜索信息为非问答式搜索类型的情况下,确定所述第一关联文本 属于摘要属性类型;在所述搜索信息为问答式搜索类型的情况下,响应于所述第一关联文本包含所述搜索信息对应的解答信息,确定所述第一关联文本属于答案属性类型,否则确定所述第一关联文本属于摘要属性类型;所述第二关联文本根据以下方式确定:在所述第一关联文本为摘要属性类型的情况下,将所述第一关联文本作为所述第二关联文本;在所述第一关联文本为答案属性类型的情况下,基于所述第一关联文本的答案类型确定所述第一关联文本对应的第二关联文本。
一种可选的实施方式中,在所述第一关联文本为答案属性类型的情况下,所述第一关联文本的答案类型包括第一答案类型和第二答案类型;所述第二关联文本根据以下方式确定:在所述第一关联文本对应的答案类型为第一答案类型的情况下,将所述第一关联文本作为所述第二关联文本;在所述第一关联文本对应的答案类型为第二答案类型的情况下,从所述第一关联文本中选取与所述搜索信息匹配的关键词,基于所述关键词生成所述第二关联文本。
一种可选的实施方式中,在所述第一关联文本为答案属性类型的情况下,采用下述方式确定所述第一关联文本对应的答案类型:响应所述第一关联文本满足所述第一答案类型的分类条件,确定所述第一关联文本对应的答案类型为第一答案类型,否则确定所述第一关联文本对应的答案类型为第二答案类型;所述第一答案类型的分类条件包括下述至少一种:所述第一关联文本的统计字数小于预设的答案字数阈值,所述第一关联文本中与所述搜索信息关联的关键词作为所述第一关联文本的引导词,以及在所述第一关联文本中仅包含一个与所述搜索词匹配的解答信息。
一种可选的实施方式中,基于所述属性类型对应的搜索结果展示形式,展示所述目标视频的视频预览信息以及第二关联文本,包括:响应于所述属性类型为答案属性类型下的第一答案类型,在所述视频预览信息上展示所述第二关联文本;响应于所述属性类型为摘要属性类型,或为答案属性类型下的第二答案类型,在与所述视频预览信息相邻的位置区域展示所述第二关联文本。
一种可选的实施方式中,还包括:响应于对所述视频预览信息的展示触发操作,展示所述视频预览信息对应内容的全屏播放页面;在所述全屏播放页面以浮层形式展示所述第二关联文本;若所述答案类型为第二答案类型, 响应于对所述第二关联文本的触发,将所述第二关联文本更新为所述第一关联文本。
一种可选的实施方式中,所述方法还包括:响应于对所述第二关联文本的展示触发操作,将所述第二关联文本更新为所述第一关联文本。
一种可选的实施方式中,基于所述关键词确定所述第二关联文本,包括:基于选取的多个所述关键词在所述第一关联文本中的语义顺序,对多个所述关键词进行拼接,得到所述第二关联文本。
一种可选的实施方式中,所述视频预览信息与至少一个指示标签关联;每个所述指示标签用于指示所述第二关联文本中的至少部分文本信息在所述目标视频中对应的播放位置;展示所述目标视频的视频预览信息,包括:根据所述第二关联文本在所述目标视频中对应的至少一个播放位置,确定所述至少一个指示标签分别对应的显示位置;展示所述视频预览信息,并基于为所述至少一个指示标签分别确定的显示位置,在所述视频预览信息上展示所述至少一个指示标签。
一种可选的实施方式中,根据所述第二关联文本在所述目标视频中对应的至少一个播放位置,确定所述至少一个指示标签分别对应的显示位置,包括:根据所述第二关联文本在所述目标视频中对应的至少一个播放位置,在所述目标视频的播放进度条所指示的进度位置中,确定所述至少一个指示标签的显示位置;和/或,根据与所述至少一个播放位置中每个播放位置分别对应的文本信息,在所述第二关联文本中的展示位置,确定所述指示标签的显示位置。
一种可选的实施方式中,所述方法还包括:响应于针对任一所述指示标签的触发操作,确定该指示标签指示的播放位置,作为所述目标视频的起始播放位置;自所述起始播放位置开始,播放所述目标视频。
第二方面,本公开实施例还提供一种搜索结果展示装置,包括:获取模块,用于响应于搜索请求,获取与所述搜索请求中的搜索信息关联的目标视频的预览资源;其中,所述预览资源包括第一关联文本、所述第一关联文本对应的属性类型以及所述目标视频的视频预览信息;所述第一关联文本基于所述目标视频提取;展示模块,用于基于所述属性类型对应的搜索结果展示形式,展示所述目标视频的视频预览信息以及第二关联文本;其中,所述第 二关联文本至少包括所述第一关联文本的部分内容。
一种可选的实施方式中,所述第一关联文本的属性类型根据以下方式确定:在所述搜索信息为非问答式搜索类型的情况下,确定所述第一关联文本属于摘要属性类型;在所述搜索信息为问答式搜索类型的情况下,响应于所述第一关联文本包含所述搜索信息对应的解答信息,确定所述第一关联文本属于答案属性类型,否则确定所述第一关联文本属于摘要属性类型;所述第二关联文本根据以下方式确定:在所述第一关联文本为摘要属性类型的情况下,将所述第一关联文本作为所述第二关联文本;在所述第一关联文本为答案属性类型的情况下,基于所述第一关联文本的答案类型确定所述第一关联文本对应的第二关联文本。
一种可选的实施方式中,在所述第一关联文本为答案属性类型的情况下,所述第一关联文本的答案类型包括第一答案类型和第二答案类型;所述第二关联文本根据以下方式确定:在所述第一关联文本对应的答案类型为第一答案类型的情况下,将所述第一关联文本作为所述第二关联文本;在所述第一关联文本对应的答案类型为第二答案类型的情况下,从所述第一关联文本中选取与所述搜索信息匹配的关键词,基于所述关键词生成所述第二关联文本。
一种可选的实施方式中,在所述第一关联文本为答案属性类型的情况下,采用下述方式确定所述第一关联文本对应的答案类型:响应所述第一关联文本满足所述第一答案类型的分类条件,确定所述第一关联文本对应的答案类型为第一答案类型,否则确定所述第一关联文本对应的答案类型为第二答案类型;所述第一答案类型的分类条件包括下述至少一种:所述第一关联文本的统计字数小于预设的答案字数阈值,所述第一关联文本中与所述搜索信息关联的关键词作为所述第一关联文本的引导词,以及在所述第一关联文本中仅包含一个与所述搜索词匹配的解答信息。
一种可选的实施方式中,展示模块在基于所述答案类型对应的搜索结果展示形式,展示所述目标视频的视频预览信息以及第二关联文本时,用于:响应于所述属性类型为答案属性类型下的第一答案类型,在所述视频预览信息上展示所述第二关联文本;响应于所述属性类型为摘要属性类型,或为答案属性类型下的第二答案类型,在与所述视频预览信息相邻的位置区域展示所述第二关联文本。
一种可选的实施方式中,搜索结果展示装置还包括第一处理模块,用于:响应于对所述视频预览信息的展示触发操作,展示所述视频预览信息对应内容的全屏播放页面;在所述全屏播放页面以浮层形式展示所述第二关联文本;若所述答案类型为第二答案类型,响应于对所述第二关联文本的触发,将所述第二关联文本更新为所述第一关联文本。
一种可选的实施方式中,搜索结果展示装置还包括第二处理模块,用于:响应于对所述第二关联文本的展示触发操作,将所述第二关联文本更新为所述第一关联文本。
一种可选的实施方式中,基于所述关键词确定所述第二关联文本时:基于选取的多个所述关键词在所述第一关联文本中的语义顺序,对多个所述关键词进行拼接,得到所述第二关联文本。
一种可选的实施方式中,所述视频预览信息与至少一个指示标签关联;每个所述指示标签用于指示所述第二关联文本中的至少部分文本信息在所述目标视频中对应的播放位置;展示模块在展示所述目标视频的视频预览信息时,用于:根据所述第二关联文本在所述目标视频中对应的至少一个播放位置,确定所述至少一个指示标签分别对应的显示位置;展示所述视频预览信息,并基于为所述至少一个指示标签分别确定的显示位置,在所述视频预览信息上展示所述至少一个指示标签。
一种可选的实施方式中,展示模块在根据所述第二关联文本在所述目标视频中对应的至少一个播放位置,确定所述至少一个指示标签分别对应的显示位置时,用于:根据所述第二关联文本在所述目标视频中对应的至少一个播放位置,在所述目标视频的播放进度条所指示的进度位置中,确定所述至少一个指示标签的显示位置;和/或,根据与所述至少一个播放位置中每个播放位置分别对应的文本信息,在所述第二关联文本中的展示位置,确定所述指示标签的显示位置。
一种可选的实施方式中,展示模块还用于:响应于针对任一所述指示标签的触发操作,确定该指示标签指示的播放位置,作为所述目标视频的起始播放位置;自所述起始播放位置开始,播放所述目标视频。
第三方面,本公开可选实现方式还提供一种计算机设备,处理器、存储器,所述存储器存储有所述处理器可执行的机器可读指令,所述处理器用于 执行所述存储器中存储的机器可读指令,所述机器可读指令被所述处理器执行时,所述机器可读指令被所述处理器执行时执行上述第一方面,或第一方面中任一种可能的实施方式中的步骤。
第四方面,本公开可选实现方式还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被运行时执行上述第一方面,或第一方面中任一种可能的实施方式中的步骤。
关于上述搜索结果展示装置、计算机设备、及计算机可读存储介质的效果描述参见上述搜索结果展示方法的说明,这里不再赘述。
本公开实施例提供的一种搜索结果展示方法、装置、计算机设备及存储介质,响应于搜索请求,可以获取与其中的搜索信息关联的目标视频的预览资源。在预览资源中包括目标视频的视频预览信息,从目标视频中提取出的与目标视频内容相关的第一关联文本,以及用于指示第一关联文本的属性类型。因此在展示目标视频时,可以展示视频预览信息以及利用属性类型为第一关联文本确定的用于展示的第二关联文本。这样,在进行搜索后,在视频预览信息上展示出的第二关联文本,可以在展示视频预览信息时,直接向用户展示出视频中与搜索信息关联的文本信息,也即在视频类的搜索结果中展示搜索信息相关内容时更加直观,进而提升获取搜索信息相关内容的效率。
为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。
附图说明
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,此处的附图被并入说明书中并构成本说明书中的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。应当理解,以下附图仅示出了本公开的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。
图1示出了本公开实施例所提供的一种搜索结果展示方法的流程图;
图2a示出了本公开实施例所提供的第一种展示目标视频的视频预览信息以及第二关联文本的示意图;
图2b示出了本公开实施例所提供的第二种展示目标视频的视频预览信息以及第二关联文本的示意图;
图2c示出了本公开实施例所提供的第三种展示目标视频的视频预览信息以及第二关联文本的示意图;
图2d示出了本公开实施例所提供的第四种展示目标视频的视频预览信息以及第二关联文本的示意图;
图3a示出了本公开实施例所提供的第一种全屏播放页面的示意图;
图3b示出了本公开实施例所提供的第二种全屏播放页面的示意图;
图3c示出了本公开实施例所提供的第三种全屏播放页面的示意图;
图4示出了本公开实施例所提供的一种跳转播放目标视频的示意图;
图5示出了本公开实施例所提供的一种搜索结果展示装置的示意图;以及
图6示出了本公开实施例所提供的一种计算机设备的示意图。
具体实施方式
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。通常在此处描述和示出的本公开实施例的组件可以以各种不同的配置来布置和设计。因此,以下对本公开的实施例的详细描述并非旨在限制要求保护的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。
经研究发现,在利用搜索信息进行搜索的场景中,在可以搜索到的视频中通常包含有与搜索信息相关的内容信息。在展示这些视频时,外露的视频简介以及首先展示出的视频帧中,通常不会具有完整的内容信息,在展示时并不能直接、完整地展示出这些内容信息。因此,对于这种视频类的搜索结果,用户获取其中的内容信息所需花费的内容消费时间较长,获取内容信息的效率较低。
基于上述研究,本公开提供了一种搜索结果展示方法、装置、计算机设 备及存储介质,响应于搜索请求,可以获取与其中的搜索信息关联的目标视频的预览资源。在预览资源中包括目标视频的视频预览信息,从目标视频中提取出的与目标视频内容相关的第一关联文本,以及用于指示第一关联文本的属性类型。因此在展示目标视频时,可以展示视频预览信息以及利用属性类型为第一关联文本确定的用于展示的第二关联文本。这样,在进行搜索后,在视频预览信息上展示出的第二关联文本,可以直接向用户展示出与搜索信息关联的文本信息,也即在视频类的搜索结果中展示搜索信息相关内容时更加直观,从而提升用户获取搜索信息相关内容的效率。
针对以上方案所存在的缺陷,均是发明人在经过实践并仔细研究后得出的结果,因此,上述问题的发现过程以及下文中本公开针对上述问题所提出的解决方案,都应该是发明人在本公开过程中对本公开做出的贡献。
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。
为便于对本实施例进行理解,首先对本公开实施例所公开的一种搜索结果展示方法进行详细介绍,本公开实施例所提供的搜索结果展示方法的执行主体一般为具有一定计算能力的计算机设备,该计算机设备例如包括:终端设备或服务器或其它处理设备,终端设备可以为用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字助理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备、可穿戴设备等。在一些可能的实现方式中,该搜索结果展示方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。
下面以执行主体为用户端为例对本公开实施例提供的搜索结果展示方法加以说明。
参见图1所示,为本公开实施例提供的一种搜索结果展示方法的流程图,所述方法包括步骤S101~S102,其中:
S101:响应于搜索请求,获取与所述搜索请求中的搜索信息关联的目标视频的预览资源;其中,所述预览资源包括第一关联文本、所述第一关联文本对应的属性类型以及所述目标视频的视频预览信息;所述第一关联文本基于所述目标视频提取;
S102:基于所述属性类型对应的搜索结果展示形式,展示所述目标视频的视频预览信息以及第二关联文本;其中,所述第二关联文本至少包括所述第一关联文本的部分内容。
下面对上述S101~S102加以详细说明。
针对上述S101,用户在进行搜索时,通过在搜素框中输入搜索信息并触发搜索操作按钮,用户端可以发送搜索请求。在搜索请求中包括搜索信息,其中搜索信息包括用户输入的搜索字段、问题题目等。在服务器接收到搜索请求后,可以根据其中的搜索信息从可获取的多个视频中确定与搜索信息匹配的目标视频,这里与搜索信息匹配的目标视频具体包括从多个视频中筛选出的视频帧、语音、文字内容等中至少一个可以作为问题的答案信息的视频。其中,在利用搜索信息在从多个视频中确定目标视频时,可以采用在线处理的方式进行。
对于目标视频而言,还对应有预览资源。预览资源具体用于在用户端对目标视频进行预览展示。其中,预览资源包括基于目标视频提取出的第一关联文本。在具体实施中,对目标视频进行第一关联文本的提取时,具体可以采用光学字符识别(Optical Character Recognition,OCR)、语音识别(Automatic Speech Recognition,ASR)等方式对目标视频进行处理。其中,在对目标视频采用OCR或者ASR方式进行处理时,均可以采用在线处理的方式进行。
此处,在利用OCR、ASR等方式对目标视频进行处理后,例如得到不具有标点符号多个词语或者短句,为了使展示出的第一关联文本具有完整的语句结构,会对处理后得到词语或者短句进行标点符号的添加,以构成可以直接展示出句段。并且,为了使展示出的内容更具有逻辑性,也可以采用序号、标号等进行分段标注,或者采用高亮、下划线等方式进行重点标注。另外,在识别出的内容中也可能会存在以符号、字母等替代词构成的词语或者短句,在一种可能的方式下,可以通过ASR辅助对这些词语或者短句进行语义还原或者进行误识别的校正处理,得到表达信息清楚完整的第一关联文本。
其中,针对不同的搜索信息,得到的第一关联文本也有所区别。示例性的,在搜索信息包括用户输入的搜索字段时,比如输入了某用户的用户名、景点名、一段诗词等不具有明确问题的搜索词或者搜索语句,也即在搜索信息为非问答式搜索类型的情况下,获取得到的目标视频例如可以包括用户的 创作视频、经典的介绍视频、诗词的讲解视频。因此,这种情况下目标视频的预览资源中第一关联文本可以是从目标视频中提取出的摘要信息,比如诗词的讲解视频中提取出的讲解文本。例如,用户以“静夜思”作为搜索词进行搜索,得到的第一关联文本信息例如包括“《静夜思》床前明月光,疑是地上霜。举头望明月,低头思故乡”。
在另一种可能的情况下,若在搜索信息包括有明确问题的问题题目时,比如输入了问题“腹直肌是什么”,也即在搜索信息为问答式搜索类型的情况下,获取得到的目标视频例如可以包括有对问题进行详细解答的解答视频,或者仅是与搜索问题中部分字词相关的视频。对于说明的两种情况,若目标视频中包括解答视频,则相应的预览资源中第一关联文本可以包括在解答视频中提取出解答信息;若目标视频中具有非解答视频,则对应的在预览资源中的第一关联文本,与上述说明的搜索信息为非问答式搜索类型下提取出的摘要信息相似,包括非解答视频中提取出的讲解文本。
因此,在本公开实施例中,针对不同类型的第一关联文本,相应地确定了不同的属性类型,以根据第一关联文本对应的属性类型,确定用于展示的第二关联文本。
在具体实施中,第一关联文本的属性类型根据以下方式确定:在所述搜索信息为非问答式搜索类型的情况下,确定所述第一关联文本属于摘要属性类型;在所述搜索信息为问答式搜索类型的情况下,响应于所述第一关联文本包含所述搜索信息对应的解答信息,确定所述第一关联文本属于答案属性类型,否则确定所述第一关联文本属于摘要属性类型。
这样,对于属于摘要属性类型的第一关联文本,由于可以直接反应目标视频中包含的具体内容,作为预先供用户查看的信息,因此可以直接作为第二关联文本进行展示。而对于属于答案属性类型的第一关联文本,为了可以使用户更容易的获取其中的解答信息,可以进一步通过确定第一关联文本的答案类型,确定用于展示的第二关联文本。
进一步地,对于第一关联文本为答案属性类型的情况,不同的第一关联文本之间也有所区别。具体地,针对对于答案仅包含一个,或者是对某种概念进行解释的答案等,比如对于问题Q1:“腹直肌是什么”,可以得到的第一关联文本针对概念进行解释,因此较为简短,比如相应的第一关联文本为A1: “腹直肌就是我们肚皮前面竖着的这两条肌肉,俗称的八块腹肌”。而针对于答案包括多个,或者对具体包括较多的步骤、描述信息的问题进行解释的答案等,比如对于问题Q2:“胸口左侧像针刺一样怎么回事”,可以得到的第一关联文本相对较长,比如相应的第一关联文本为A2:“一般来说这种针扎就是一下一下的这种难受,这种一般都是和情绪和神经功能影响、或者是肋软骨的炎症这些有关系”。
因此,对于第一关联文本为答案属性类型的情况,第一关联文本还可以具有不同的答案类型,具体包括第一答案类型和第二答案类型,用以确定展示的第二关联文本。在对目标视频进行展示时,为了保证不破坏目标视频正常完整的播放,因此会设置展示文本的区域,而这个展示区域是有限的。因此,第一关联文本可能并不能完整地展示出,这时则可以根据第一关联文本的答案类型,确定对应的第二关联文本,并对第二关联文本进行展示。
在具体实施中,可以采用下述方式确定第一关联文本对应的答案类型:响应所述第一关联文本满足所述第一答案类型的分类条件,确定所述第一关联文本对应的答案类型为第一答案类型,否则确定所述第一关联文本对应的答案类型为第二答案类型;所述第一答案类型的分类条件包括下述至少一种:所述第一关联文本的统计字数小于预设的答案字数阈值,所述第一关联文本中与所述搜索信息关联的关键词作为所述第一关联文本的引导词,以及在所述第一关联文本中仅包含一个与所述搜索词匹配的解答信息。
示例性的,答案字数阈值可以根据展示答案文本的区域中最多可以呈现出的字数确定,例如50字。
在第一关联文本中与搜索信息关联的关键词,例如可以包括问题中的部分词语,比如问题Q1中的“腹直肌”;或者,也可以包括答案中直接回答问题的部分词语,例如第一关联文本A2中的“情绪和神经功能影响”以及“肋软骨的炎症”。具体地,关键词可以根据对第一关联文本进行语义分割确定,通过对第一关联文本进行语义分割处理,可以得到语义信息不同的多个词语,根据各个词语的语义信息与搜索信息进行比对,可以从多个词语中确定与搜索信息关联的关键词。关键词在第一关联文本中作为引导词,则具体可以包括第一关联文本中以关键词开头进行对答案进行说明,例如上述第一关联文本A1中,关键词“腹直肌”占据第一关联文本A1中的前几个字符位置。
对于第一关联文本而言,还可能具有与搜索词匹配的多个解答信息。例如,对于第一关联文本A2,具体包括两个解答信息,分别为“情绪和神经功能影响”和“肋软骨的炎症”。
由于在展示答案文本时,一方面可以展示出的字数有限,另一方面在展示时更希望可以直观简洁的展示出问题对应的答案信息,以使用户可以更容易地通过查看答案文本获取答案。而根据上述至少一种方式确定第一关联文本的答案类型后,可以知道第一答案类型的第一关联文本更符合展示要求和用户需求,因此适合直接展示出。而第二答案类型的第一关联文本中与问题的答案直接关联的关键词较为分散,第二关联文本的篇幅一般也较长,因此在展示时可能并不能在有限的区域中完整展示出,并且用户在得到完整的答案前所需花费的时间也更长,并不适合直接进行展示。
此处,在本公开实施例中,对于第二答案类型的第一关联文本,还可以根据其中的关键词重新构成易于展示的第二关联文本,并将第二关联文本进行展示,具体可以参见下述对应位置的说明,在此不再赘述。
预览资源中还包括目标视频的视频预览信息,视频预览信息例如可以作为展示目标视频时展示出的封面信息。具体地,可以将目标视频的首帧视频帧作为视频预览信息,或者也可以根据实际需求将目标视频包含的多帧视频帧中的任一帧作为视频预览信息,具体可以根据实际情况确定,在此不做出限定。
这样,在用户端获取到目标视频的预览资源后,可以对预览资源中目标视频的视频预览信息,以及根据属性类型为第一关联文本确定的第二关联文本进行展示。
针对上述S102,可以展示出目标视频的视频预览信息,可以根据上述S101中相应的方式获取。根据上述S101中的说明,对于展示出的第二关联文本,在利用第一关联文本的属性类型确定第二关联文本时,具体可以根据下述方式确定:在所述第一关联文本为摘要属性类型的情况下,将所述第一关联文本作为所述第二关联文本;在所述第一关联文本为答案属性类型的情况下,基于所述第一关联文本的答案类型确定所述第一关联文本对应的第二关联文本。
其中,在第一关联文本为答案属性类型的情况下,具体还可以在所述第 一关联文本对应的答案类型为第一答案类型的情况下,将所述第一关联文本作为所述第二关联文本;在所述第一关联文本对应的答案类型为第二答案类型的情况下,从所述第一关联文本中选取与所述搜索信息匹配的关键词,基于所述关键词生成所述第二关联文本。
根据上述确定答案类型的说明可以知道,第一答案类型的第一关联文本适合直接被展示出,因此在第一关联文本对应的答案类型第一答案类型的情况下,可以直接将第一关联文本作为第二关联文本。而第二答案类型的第一关联文本一般文本较长,且直接展示出时并不能使用户直接获取答案信息,因此可以相应地获取简短直接表达答案信息的第二关联文本,并对第二关联文本进行展示。
在具体实施中,在基于关键词确定第二关联文本时,具体可以采用下述方式:基于选取的多个所述关键词在所述第一关联文本中的语义顺序,对多个所述关键词进行拼接,得到所述第二关联文本。具体地,关键词在第一关联文本中的语义顺序,可以根据关键词在第一关联文本中出现的前后顺序确定,例如对于第一关联文本A2,若确定第一关联文本为第二答案类型,且确定其中的关键词为“情绪和神经功能影响”和“肋软骨的炎症”的情况下,由于关键词“情绪和神经功能影响”先于“肋软骨的炎症”在第一关联文本中出现,因此可以对关键词拼接得到第二关联文本“情绪和神经功能影响、肋软骨的炎症”。
在另一种可能的情况下,第二答案类型的第一关联文本,具体可能包含有多个步骤,例如对于问题Q3:“胡萝卜土豆饼的做法”,对应的第一关联文本为A3:“先准备150克土豆丝和150克胡萝卜丝,然后焯水捞出。接着把土豆丝和胡萝卜丝控干水份放入碗中,再给碗中加2个鸡蛋、适量葱花、一点酱油、一点盐、20克淀粉。最后搅拌均匀放入刷油锅中整理成饼状,并小火煎至两面金黄熟透”。其中第一关联文本中包括多个连续的步骤,则在对其中的关键词进行拼接时,多个关键词的语义顺序根据步骤的前后顺序确定,得到的第二关联文本例如为“150克土豆丝和150克胡萝卜丝焯水捞出控干水份;加2个鸡蛋、适量葱花、一点酱油、一点盐、20克淀粉;搅拌均匀,放入刷油锅中整理成饼状,小火煎至两面金黄熟透”。
在确定第二关联文本的情况下,可以将目标视频的视频预览信息以及第 二关联文本进行展示。
在具体实施中,在基于所述答案类型对应的搜索结果展示形式,展示所述目标视频的视频预览信息以及第二关联文本时,具体可以采用下述方式:响应于所述属性类型为答案属性类型下的第一答案类型,在所述视频预览信息上展示所述第二关联文本;响应于所述属性类型为摘要属性类型,或为答案属性类型下的第二答案类型,在与所述视频预览信息相邻的位置区域展示所述第二关联文本。
示例性的,若属性类型为答案属性类型下的第一答案类型,参见图2a所示,为本公开实施例提供的第一种展示目标视频的视频预览信息以及第二关联文本的示意图。其中,第一关联文本为A1,相应的确定第二关联文本为第一关联文本,具体包括“腹直肌就是我们肚皮前面竖着的这两条肌肉,俗称的八块腹肌”。视频预览信息为目标视频的首帧视频帧,例如示出的人体肌肉分布图。
若属性类型为摘要属性类型,参见图2b所示,为本公开实施例提供的第二种展示目标视频的视频预览信息以及第二关联文本的示意图。其中,在展示视频预览信息和第二关联文本时,具体可以在视频外流页上进行展示。视频外流页为非全屏展示视频的搜索结果页,具体可以通过上下滑动的操作顺序展示多个以小窗形式展示的视频。其中,第一关联文本例如为上述示例中说明的“《静夜思》床前明月光,疑是地上霜。举头望明月,低头思故乡”,相应地根据属性类型确定第二关联文本为该第一关联文本。视频预览信息为目标视频的任一帧视频帧,例如示出的诗歌配图。
在一种可能情况下,由于展示文本的区域有限,因此对于统计字数较多的第一关联文本,可能并不能完整地将文字均展示出,例如图2b中仅展示出了第二关联文本的部分信息。
在另一种可能的情况下,针对于图2b中示出的第二关联文本,还可以响应于对第二关联文本的展示触发操作,将第二关联文本更新为第一关联文本,然后第一关联文本的内容进行展示。具体可以参考下述对图2c以及图2d的相关说明,在此不再重复赘述。
若属性类型为答案属性类型下的第二答案类型,参见图2c所示,为本公开实施例提供的第三种展示目标视频的视频预览信息以及第二关联文本的 示意图。相似的,在视频外流页中进行展示。其中,第一关联文本为A2“一般来说这种针扎就是一下一下的这种难受,这种一般都是和情绪和神经功能影响、或者是肋软骨的炎症,这些有关系”,通过第一关联文本确定的第二关联文本为“情绪和神经功能影响、肋软骨的炎症”,具体对第二关联文本进行如图2c中的展示。
在一种可能的情况下,针对于图2c中示出的第二关联文本,与上述图2b相似的,也可以响应于对第二关联文本的展示触发操作,将第二关联文本更新为第一关联文本,然后第一关联文本的内容进行展示。
示例性的,参见图2d所示,为本公开实施例提供的第四种展示目标视频的视频预览信息以及第二关联文本的示意图。在一种可能的情况下,可以通过触发图2c中的展开按钮,将第二关联文本更新为第一关联文本,并将第一关联文本的内容进行完整的展示。相应的,原先展开按钮的位置处变换为收回按钮,响应于对收回按钮的触发,可以返回图2c中的页面。
在本公开另一实施例中,响应于对视频预览信息的展示触发操作,可以展示视频预览信息对应内容的全屏播放页面;在所述全屏播放页面以浮层形式展示所述第二关联文本;若所述属性类型为答案属性类型下的第二答案类型,响应于对所述第二关联文本的触发,在将所述第二关联文本更新为所述第一关联文本。
其中,全屏播放页面为区别于上述图2a-图2d中任一页面的视频内流页,以全屏播放的形式对目标视频进行播放,为目标视频的展示页。针对于上述图2a-图2d中对视频预览信息的触发操作,可以跳转展示视频预览信息对应内容的全屏播放页面。
示例性的,对于图2a中示出的视频预览信息,在对视频预览信息触发后,展示出的全屏播放页面例如图3a所示。在图3a中,以浮层形式展示出了与图2a相同的第二关联文本。这种浮层形式的展示方式,或者将第二关联文本以一定的透明度进行展示,并不会对目标视频的播放造成较大的遮挡,因此并不会影响目标视频固有的播放形式,或者破坏原有的视频内容,同时也可以直接的向用户展示出答案信息。
相应地,对于图2b以及图2c中示出的视频预览信息,在对视频预览信息触发后,也可以相应的展示出全屏播放页面。下面以对图2c中示出的视频 预览信息触发为例进行说明。对于图2c中示出的视频预览信息,在对视频预览信息触发后,展示出的全屏播放页面例如图3b所示。在图3b中,也具有与图2c中相似的展开按钮。由于答案属性类型为第二答案类型,展示出的第二关联文本并不是完整的第一关联文本,因此可以响应于对第二关联文本的触发,将第二关联文本更新为第一关联文本,然后对第一关联文本进行展示。示例性的,参见图3c所示,与上述图2d对应的,在对第二关联文本触发后,可以以浮层形式展示出完整的第一关联文本。相应地,展开按钮处变换为收回按钮。
在本公开另一实施例中,由于展示出的第二关联文本是根据第一关联文本确定的,而第一关联文本是从目标视频中提取出的。因此,在目标视频中涉及到第二关联文本的位置包括至少一处。为了方便用户可以直接定位到目标视频中展示第二关联文本的位置,在确定视频预览信息时,还可以确定与视频预览信息关联的至少一个指示标签。其中,每个所述指示标签用于指示所述第二关联文本中的至少部分文本信息在所述目标视频中对应的播放位置。
此处说明的至少部分文本信息例如包括构成第二关联文本的关键词。在一种可能的情况下,第二关联文本的关键词在视频中分散在不同位置出现,而其中的部分关键词较为集中且连续,在这种情况下可以为其中多个连续且集中的关键词确定对应的一个指示标签,比如为连续集中出现的多个关键词中首个关键词确定在目标视频中对应的位置,以确定这些关键词对应的指示标签的指示位置,这样可以控制在目标视频中关联的指示标签的总数,在后续的操作步骤中,通过触发少量的指示标签,即可以在目标视频中查看到第二关联文本涉及到的所有答案信息。
在展示目标视频的视频预览信息时,具体还可以根据所述第二关联文本在所述目标视频中对应的至少一个播放位置,确定所述至少一个指示标签分别对应的显示位置;展示所述视频预览信息,并基于为所述至少一个指示标签分别确定的显示位置,在所述视频预览信息上展示所述至少一个指示标签。
其中,在目标视频中展示至少一个指示标签时,具体可以包括在目标视频的播放进度条上进行展示,和/或在第二关联文本中进行展示两种情况。下面分别对这两种情况进行说明。
针对在目标视频的播放进度条上对至少一个指示标签进行展示的情况,可以根据所述第二关联文本在所述目标视频中对应的至少一个播放位置,在所述目标视频的播放进度条所指示的进度位置中,确定所述至少一个指示标签的显示位置。
参见图3a所示,在下方示出的进度条中,具体展示出了一个指示标签。指示标签指示的播放位置,为第二关联文本在目标视频中的播放位置。在一种可能的情况下,若指示标签仅有一个,则可以直接进行展示。若存在多个,为了可以在进度条上对不同的指示标签进行区分,也可以相应的在指示标签的附近标注出在此处在播放的第二关联文本中的部分文字,具体可以参见图3b和图3c中指示标签的展示形式。
对于图2a-图2c中示出的视频预览信息,若在对目标视频进行播放时可以展示出对应的播放进度条,也可以采用相似的方式对指示标签进行展示,具体不再重复赘述。
针对在第二关联文本中对至少一个指示标签进行展示的情况,可以根据与所述至少一个播放位置中每个播放位置分别对应的文本信息,在所述第二关联文本中的展示位置,确定所述指示标签的显示位置。
在一种可能的情况下,此处说明的指示标签,可以不用于图3a中示出的定位标识,而是以可以触发的按钮进行展示,具体显示出播放位置对应的时间信息。
示例性的,参见图2a所示,在展示第二关联文本信息时,可以通过提示信息的方式对指示标签进行展示,例如展示出“本视频00:35提到”。或者,也可以将指示标签融入第二关联文本信息中进行展示,例如图2d中示出的第二关联文本信息中展示出了指示标签“00:20”。若存在多个指示标签,相较于利用提示信息展示出多个时间信息而言,在第二关联文本信息中展示指示标签的方式也更直观。
对于展示出的指示标签,除了可以直观地表达出第二关联文本信息中至少部分文本信息对应的播放位置外,还可以作为可触发的按钮。在一种可能的情况下,可以响应于针对任一所述指示标签的触发操作,确定该指示标签指示的播放位置,作为所述目标视频的起始播放位置;自所述起始播放位置开始,播放所述目标视频。
示例性的,针对图3c中示出两种不同的指示标签,响应于对任一指示标签的触发,均会在将目标视频的起始播放位置跳转为指示标签指示的播放位置,例如00:20的播放位置。示例性的,参见图4所示,为本公开实施例提供的一种跳转播放目标视频的示意图。相较于图3c,播放进度条指示当前正在对指示标签指示的播放位置进行播放。另外,自起始播放位置开始,对目标视频进行播放。
这样,通过指示标签,可以无需等待目标视频播放至第二关联文本信息对应的位置处,才能展示对目标视频中包含的第二关联文本信息进行展示,而是可以直接进行跳转展示,更简便快捷。
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。
基于同一发明构思,本公开实施例中还提供了与搜索结果展示方法对应的搜索结果展示装置,由于本公开实施例中的装置解决问题的原理与本公开实施例上述搜索结果展示方法相似,因此装置的实施可以参见方法的实施,重复之处不再赘述。
参照图5所示,为本公开实施例提供的一种搜索结果展示装置的示意图,所述装置包括:获取模块51、展示模块52;其中,
获取模块51,用于响应于搜索请求,获取与所述搜索请求中的搜索信息关联的目标视频的预览资源;其中,所述预览资源包括第一关联文本、所述第一关联文本对应的属性类型以及所述目标视频的视频预览信息;所述第一关联文本基于所述目标视频提取;
展示模块52,用于基于所述属性类型对应的搜索结果展示形式,展示所述目标视频的视频预览信息以及第二关联文本;其中,所述第二关联文本至少包括所述第一关联文本的部分内容。
一种可选的实施方式中,所述第一关联文本的属性类型根据以下方式确定:在所述搜索信息为非问答式搜索类型的情况下,确定所述第一关联文本属于摘要属性类型;在所述搜索信息为问答式搜索类型的情况下,响应于所述第一关联文本包含所述搜索信息对应的解答信息,确定所述第一关联文本属于答案属性类型,否则确定所述第一关联文本属于摘要属性类型;所述第 二关联文本根据以下方式确定:在所述第一关联文本为摘要属性类型的情况下,将所述第一关联文本作为所述第二关联文本;在所述第一关联文本为答案属性类型的情况下,基于所述第一关联文本的答案类型确定所述第一关联文本对应的第二关联文本。
一种可选的实施方式中,在所述第一关联文本为答案属性类型的情况下,所述第一关联文本的答案类型包括第一答案类型和第二答案类型;所述第二关联文本根据以下方式确定:在所述第一关联文本对应的答案类型为第一答案类型的情况下,将所述第一关联文本作为所述第二关联文本;在所述第一关联文本对应的答案类型为第二答案类型的情况下,从所述第一关联文本中选取与所述搜索信息匹配的关键词,基于所述关键词生成所述第二关联文本。
一种可选的实施方式中,在所述第一关联文本为答案属性类型的情况下,采用下述方式确定所述第一关联文本对应的答案类型:响应所述第一关联文本满足所述第一答案类型的分类条件,确定所述第一关联文本对应的答案类型为第一答案类型,否则确定所述第一关联文本对应的答案类型为第二答案类型;所述第一答案类型的分类条件包括下述至少一种:所述第一关联文本的统计字数小于预设的答案字数阈值,所述第一关联文本中与所述搜索信息关联的关键词作为所述第一关联文本的引导词,以及在所述第一关联文本中仅包含一个与所述搜索词匹配的解答信息。
一种可选的实施方式中,展示模块52在基于所述答案类型对应的搜索结果展示形式,展示所述目标视频的视频预览信息以及第二关联文本时,用于:响应于所述属性类型为答案属性类型下的第一答案类型,在所述视频预览信息上展示所述第二关联文本;响应于所述属性类型为摘要属性类型,或为答案属性类型下的第二答案类型,在与所述视频预览信息相邻的位置区域展示所述第二关联文本。
一种可选的实施方式中,搜索结果展示装置还包括第一处理模块53,用于:响应于对所述视频预览信息的展示触发操作,展示所述视频预览信息对应内容的全屏播放页面;在所述全屏播放页面以浮层形式展示所述第二关联文本;若所述答案类型为第二答案类型,响应于对所述第二关联文本的触发,将所述第二关联文本更新为所述第一关联文本。
一种可选的实施方式中,搜索结果展示装置还包括第二处理模块54,用 于:响应于对所述第二关联文本的展示触发操作,将所述第二关联文本更新为所述第一关联文本。
一种可选的实施方式中,基于所述关键词确定所述第二关联文本时:基于选取的多个所述关键词在所述第一关联文本中的语义顺序,对多个所述关键词进行拼接,得到所述第二关联文本。
一种可选的实施方式中,所述视频预览信息与至少一个指示标签关联;每个所述指示标签用于指示所述第二关联文本中的至少部分文本信息在所述目标视频中对应的播放位置;展示模块52在展示所述目标视频的视频预览信息时,用于:根据所述第二关联文本在所述目标视频中对应的至少一个播放位置,确定所述至少一个指示标签分别对应的显示位置;展示所述视频预览信息,并基于为所述至少一个指示标签分别确定的显示位置,在所述视频预览信息上展示所述至少一个指示标签。
一种可选的实施方式中,展示模块52在根据所述第二关联文本在所述目标视频中对应的至少一个播放位置,确定所述至少一个指示标签分别对应的显示位置时,用于:根据所述第二关联文本在所述目标视频中对应的至少一个播放位置,在所述目标视频的播放进度条所指示的进度位置中,确定所述至少一个指示标签的显示位置;和/或,根据与所述至少一个播放位置中每个播放位置分别对应的文本信息,在所述第二关联文本中的展示位置,确定所述指示标签的显示位置。
一种可选的实施方式中,展示模块52还用于:响应于针对任一所述指示标签的触发操作,确定该指示标签指示的播放位置,作为所述目标视频的起始播放位置;自所述起始播放位置开始,播放所述目标视频。
关于装置中的各模块的处理流程、以及各模块之间的交互流程的描述可以参照上述方法实施例中的相关说明,这里不再详述。
本公开实施例还提供了一种计算机设备,如图6所示,为本公开实施例提供的计算机设备结构示意图,包括:
处理器10和存储器20;所述存储器20存储有处理器10可执行的机器可读指令,处理器10用于执行存储器20中存储的机器可读指令,所述机器可读指令被处理器10执行时,处理器10执行下述步骤:
响应于搜索请求,获取与所述搜索请求中的搜索信息关联的目标视频的 预览资源;其中,所述预览资源包括第一关联文本、所述第一关联文本对应的属性类型以及所述目标视频的视频预览信息;所述第一关联文本基于所述目标视频提取;基于所述属性类型对应的搜索结果展示形式,展示所述目标视频的视频预览信息以及第二关联文本;其中,所述第二关联文本至少包括所述第一关联文本的部分内容。
上述存储器20包括内存210和外部存储器220;这里的内存210也称内存储器,用于暂时存放处理器10中的运算数据,以及与硬盘等外部存储器220交换的数据,处理器10通过内存210与外部存储器220进行数据交换。
上述指令的具体执行过程可以参考本公开实施例中所述的搜索结果展示方法的步骤,此处不再赘述。
本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中所述的搜索结果展示方法的步骤。其中,该存储介质可以是易失性或非易失的计算机可读取存储介质。
本公开实施例还提供一种计算机程序产品,该计算机程序产品承载有程序代码,所述程序代码包括的指令可用于执行上述方法实施例中所述的搜索结果展示方法的步骤,具体可参见上述方法实施例,在此不再赘述。
其中,上述计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上所述实施例,仅为本公开的具体实施方式,用以说明本公开的技术方案,而非对其限制,本公开的保护范围并不局限于此,尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本公开实施例技术方案的精神和范围,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应所述以权利要求的保护范围为准。

Claims (14)

  1. 一种搜索结果展示方法,包括:
    响应于搜索请求,获取与所述搜索请求中的搜索信息关联的目标视频的预览资源;其中,所述预览资源包括第一关联文本、所述第一关联文本对应的属性类型以及所述目标视频的视频预览信息;所述第一关联文本基于所述目标视频提取;
    基于所述属性类型对应的搜索结果展示形式,展示所述目标视频的视频预览信息以及第二关联文本;其中,所述第二关联文本至少包括所述第一关联文本的部分内容。
  2. 根据权利要求1所述的方法,其中,所述第一关联文本的属性类型根据以下方式确定:
    在所述搜索信息为非问答式搜索类型的情况下,确定所述第一关联文本属于摘要属性类型;
    在所述搜索信息为问答式搜索类型的情况下,响应于所述第一关联文本包含所述搜索信息对应的解答信息,确定所述第一关联文本属于答案属性类型,否则确定所述第一关联文本属于摘要属性类型;
    所述第二关联文本根据以下方式确定:
    在所述第一关联文本为摘要属性类型的情况下,将所述第一关联文本作为所述第二关联文本;
    在所述第一关联文本为答案属性类型的情况下,基于所述第一关联文本的答案类型确定所述第一关联文本对应的第二关联文本。
  3. 根据权利要求2所述的方法,其中,在所述第一关联文本为答案属性类型的情况下,所述第一关联文本的答案类型包括第一答案类型和第二答案类型;
    所述第二关联文本根据以下方式确定:
    在所述第一关联文本对应的答案类型为第一答案类型的情况下,将所述第一关联文本作为所述第二关联文本;
    在所述第一关联文本对应的答案类型为第二答案类型的情况下,从所述第一关联文本中选取与所述搜索信息匹配的关键词,基于所述关键词生成所 述第二关联文本。
  4. 根据权利要求3所述的方法,其中,在所述第一关联文本为答案属性类型的情况下,采用下述方式确定所述第一关联文本对应的答案类型:
    响应所述第一关联文本满足所述第一答案类型的分类条件,确定所述第一关联文本对应的答案类型为第一答案类型,否则确定所述第一关联文本对应的答案类型为第二答案类型;
    所述第一答案类型的分类条件包括下述至少一种:所述第一关联文本的统计字数小于预设的答案字数阈值,所述第一关联文本中与所述搜索信息关联的关键词作为所述第一关联文本的引导词,以及在所述第一关联文本中仅包含一个与所述搜索词匹配的解答信息。
  5. 根据权利要求1所述的方法,其中,基于所述属性类型对应的搜索结果展示形式,展示所述目标视频的视频预览信息以及第二关联文本,包括:
    响应于所述属性类型为答案属性类型下的第一答案类型,在所述视频预览信息上展示所述第二关联文本;
    响应于所述属性类型为摘要属性类型,或为答案属性类型下的第二答案类型,在与所述视频预览信息相邻的位置区域展示所述第二关联文本。
  6. 根据权利要求2-5任一项所述的方法,还包括:
    响应于对所述视频预览信息的展示触发操作,展示所述视频预览信息对应内容的全屏播放页面;
    在所述全屏播放页面以浮层形式展示所述第二关联文本;
    若所述属性类型为答案属性类型下的第二答案类型,响应于对所述第二关联文本的触发,将所述第二关联文本更新为所述第一关联文本。
  7. 根据权利要求2-5任一项所述的方法,还包括:
    响应于对所述第二关联文本的展示触发操作,将所述第二关联文本更新为所述第一关联文本。
  8. 根据权利要求3或4所述的方法,其中,基于所述关键词生成所述第二关联文本,包括:
    基于选取的多个所述关键词在所述第一关联文本中的语义顺序,对多个所述关键词进行拼接,得到所述第二关联文本。
  9. 根据权利要求1-8任一项所述的方法,其中,所述视频预览信息与至 少一个指示标签关联;每个所述指示标签用于指示所述第二关联文本中的至少部分文本信息在所述目标视频中对应的播放位置;
    展示所述目标视频的视频预览信息,包括:
    根据所述第二关联文本在所述目标视频中对应的至少一个播放位置,确定所述至少一个指示标签分别对应的显示位置;
    展示所述视频预览信息,并基于为所述至少一个指示标签分别确定的显示位置,在所述视频预览信息上展示所述至少一个指示标签。
  10. 根据权利要求9所述的方法,其中,根据所述第二关联文本在所述目标视频中对应的至少一个播放位置,确定所述至少一个指示标签分别对应的显示位置,包括:
    根据所述第二关联文本在所述目标视频中对应的至少一个播放位置,在所述目标视频的播放进度条所指示的进度位置中,确定所述至少一个指示标签的显示位置;和/或,
    根据与所述至少一个播放位置中每个播放位置分别对应的文本信息,在所述第二关联文本中的展示位置,确定所述指示标签的显示位置。
  11. 根据权利要求9或10所述的方法,还包括:
    响应于针对任一所述指示标签的触发操作,确定该指示标签指示的播放位置,作为所述目标视频的起始播放位置;
    自所述起始播放位置开始,播放所述目标视频。
  12. 一种搜索结果展示装置,包括:
    获取模块,用于响应于搜索请求,获取与所述搜索请求中的搜索信息关联的目标视频的预览资源;其中,所述预览资源包括第一关联文本、所述第一关联文本对应的属性类型以及所述目标视频的视频预览信息;所述第一关联文本基于所述目标视频提取;
    展示模块,用于基于所述属性类型对应的搜索结果展示形式,展示所述目标视频的视频预览信息以及第二关联文本;其中,所述第二关联文本至少包括所述第一关联文本的部分内容。
  13. 一种计算机设备,包括:处理器、存储器,所述存储器存储有所述处理器可执行的机器可读指令,所述处理器用于执行所述存储器中存储的所述机器可读指令,所述机器可读指令被所述处理器执行时,所述处理器执行 如权利要求1至11任一项所述的搜索结果展示方法。
  14. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被计算机设备运行时,所述计算机设备执行如权利要求1至11任一项所述的搜索结果展示方法。
PCT/CN2023/093166 2022-06-07 2023-05-10 搜索结果展示方法、装置、计算机设备及存储介质 WO2023236710A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210634752.8 2022-06-07
CN202210634752.8A CN114969433A (zh) 2022-06-07 2022-06-07 一种搜索结果展示方法、装置、计算机设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023236710A1 true WO2023236710A1 (zh) 2023-12-14

Family

ID=82959443

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/093166 WO2023236710A1 (zh) 2022-06-07 2023-05-10 搜索结果展示方法、装置、计算机设备及存储介质

Country Status (2)

Country Link
CN (1) CN114969433A (zh)
WO (1) WO2023236710A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114969433A (zh) * 2022-06-07 2022-08-30 抖音视界(北京)有限公司 一种搜索结果展示方法、装置、计算机设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019186843A (ja) * 2018-04-16 2019-10-24 株式会社エヌエイチケイメディアテクノロジー ダイジェスト映像生成装置およびダイジェスト映像生成プログラム
CN113779307A (zh) * 2021-09-28 2021-12-10 北京字跳网络技术有限公司 一种信息展示方法、装置、计算机设备及存储介质
CN114297440A (zh) * 2021-12-30 2022-04-08 深圳市富之富信息科技有限公司 视频自动生成方法、装置、计算机设备及存储介质
CN114372160A (zh) * 2022-01-12 2022-04-19 北京字节跳动网络技术有限公司 一种搜索请求处理方法、装置、计算机设备及存储介质
CN114969433A (zh) * 2022-06-07 2022-08-30 抖音视界(北京)有限公司 一种搜索结果展示方法、装置、计算机设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019186843A (ja) * 2018-04-16 2019-10-24 株式会社エヌエイチケイメディアテクノロジー ダイジェスト映像生成装置およびダイジェスト映像生成プログラム
CN113779307A (zh) * 2021-09-28 2021-12-10 北京字跳网络技术有限公司 一种信息展示方法、装置、计算机设备及存储介质
CN114297440A (zh) * 2021-12-30 2022-04-08 深圳市富之富信息科技有限公司 视频自动生成方法、装置、计算机设备及存储介质
CN114372160A (zh) * 2022-01-12 2022-04-19 北京字节跳动网络技术有限公司 一种搜索请求处理方法、装置、计算机设备及存储介质
CN114969433A (zh) * 2022-06-07 2022-08-30 抖音视界(北京)有限公司 一种搜索结果展示方法、装置、计算机设备及存储介质

Also Published As

Publication number Publication date
CN114969433A (zh) 2022-08-30

Similar Documents

Publication Publication Date Title
US9020808B2 (en) Document summarization using noun and sentence ranking
CN106462640B (zh) 对多媒体内容进行的场境搜索
US11822868B2 (en) Augmenting text with multimedia assets
KR101911999B1 (ko) 피처 기반 후보 선택 기법
WO2023236710A1 (zh) 搜索结果展示方法、装置、计算机设备及存储介质
CN113536172B (zh) 一种百科信息展示的方法、装置及计算机存储介质
CN110674415A (zh) 一种信息显示方法、装置及服务器
CN111444725B (zh) 语句的生成方法、装置、存储介质和电子装置
Gregg et al. Re-reconsidering the role of temporal order in spoken word recognition
Ito Prediction of orthographic information during listening comprehension: A printed-word visual world study
CN109284389A (zh) 一种文本数据的信息处理方法、装置
CN114372160B (zh) 一种搜索请求处理方法、装置、计算机设备及存储介质
Angele et al. Eye movements and parafoveal preview of compound words: Does morpheme order matter?
CN114186095A (zh) 一种信息搜索方法、装置、计算机设备及存储介质
CN106649279A (zh) 特定信息自动生成系统和方法
JP5942052B1 (ja) データ分析システム、データ分析方法、およびデータ分析プログラム
CN110287413A (zh) 电子书描述信息的显示方法及电子设备
CN106528764B (zh) 基于人工智能的提问型检索词的检索方法及装置
Kennison et al. Processing differences for anaphoric and cataphoric pronouns: Implications for theories of discourse processing
CN109783612B (zh) 报表数据定位方法及装置、存储介质、终端
CN109710735A (zh) 基于多社交渠道的朗读内容推荐方法及电子设备
KR100738044B1 (ko) 멀티미디어 및 인터넷 기반의 한자 학습 시스템
JP7427405B2 (ja) 発想支援システム及びその制御方法
US20160110360A1 (en) Providing numerical answers to queries
CN109284364A (zh) 一种用于语音连麦互动的互动词汇更新方法及装置

Legal Events

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

Ref document number: 23818875

Country of ref document: EP

Kind code of ref document: A1