TW201901492A - Video search method and device - Google Patents

Video search method and device Download PDF

Info

Publication number
TW201901492A
TW201901492A TW107107592A TW107107592A TW201901492A TW 201901492 A TW201901492 A TW 201901492A TW 107107592 A TW107107592 A TW 107107592A TW 107107592 A TW107107592 A TW 107107592A TW 201901492 A TW201901492 A TW 201901492A
Authority
TW
Taiwan
Prior art keywords
video
program
score
search
type
Prior art date
Application number
TW107107592A
Other languages
Chinese (zh)
Other versions
TWI676391B (en
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 TW201901492A publication Critical patent/TW201901492A/en
Application granted granted Critical
Publication of TWI676391B publication Critical patent/TWI676391B/en

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/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Abstract

A method and apparatus for searching for a video. The method comprises: where a request to search for a video is received, acquiring a preliminary search result corresponding to the request to search for a video; calculating a score of each type of video data in the preliminary search result; sorting each type of video data according to the score of each type of video data to obtain a sorting result; and according to the sorting result, responding to the request to search for a video. The method can improve the accuracy and diversity of search results.

Description

視頻搜索方法及裝置Video search method and device

本公開涉及視頻技術領域,尤其涉及一種視頻搜索方法及裝置。The present disclosure relates to the field of video technology, and in particular, to a video search method and device.

相關技術中,服務器在接收到來自於客戶端的視頻搜索請求的情況下,根據視頻搜索請求中的搜索詞確定搜索結果,並向客戶端響應該搜索結果。這種視頻搜索方式通常僅考慮搜索詞與視頻標題的相似度,導致搜索結果的準確性及多樣性較低。In the related art, when a server receives a video search request from a client, the server determines a search result according to a search term in the video search request, and responds to the client with the search result. This video search method usually only considers the similarity between the search term and the video title, resulting in lower accuracy and diversity of search results.

有鑑於此,本公開提出了一種視頻搜索方法及裝置,以提高搜索結果的準確性與多樣性。In view of this, the present disclosure proposes a video search method and device to improve the accuracy and diversity of search results.

根據本公開的一方面,提供了一種視頻搜索方法,包括:According to an aspect of the present disclosure, a video search method is provided, including:

在接收到視頻搜索請求的情況下,獲取所述視頻搜索請求對應的初步搜索結果;If a video search request is received, obtaining a preliminary search result corresponding to the video search request;

計算所述初步搜索結果中各類型的視頻數據的分數;Calculating a score of each type of video data in the preliminary search result;

根據各類型的視頻數據的分數,對各類型的視頻數據進行排序,得到排序結果;Sort each type of video data according to the score of each type of video data to get the sorted result;

根據所述排序結果響應所述視頻搜索請求。Responding to the video search request according to the ranking result.

在一種可能的實現方式中,各類型的視頻數據包括以下至少一項:視頻、節目、自頻道和播單。In a possible implementation manner, each type of video data includes at least one of the following: video, program, self-channel, and playlist.

在一種可能的實現方式中,計算所述初步搜索結果中各類型的視頻數據的分數,包括:In a possible implementation manner, calculating a score of each type of video data in the preliminary search result includes:

在各類型的視頻數據中包括視頻的情況下,根據以下至少一項計算所述視頻的分數:所述視頻與所述視頻搜索請求的相關性、所述視頻的上傳者與所述視頻搜索請求的相關性、所述視頻搜索請求對應的搜索用戶的用戶反饋信息、所述視頻的播放量、所述視頻的觀看完成比、所述視頻的發佈時間、所述視頻被收藏的次數、所述視頻的評論數量、所述視頻的彈幕數量和所述搜索用戶針對所述視頻的訂閱狀態。In the case where each type of video data includes a video, the score of the video is calculated according to at least one of the following: the correlation between the video and the video search request, the uploader of the video, and the video search request Relevance, user feedback information of the search user corresponding to the video search request, playback volume of the video, completion ratio of viewing of the video, release time of the video, number of times the video has been favorited, the The number of comments on the video, the number of barrage of the video, and the subscription status of the search user for the video.

在一種可能的實現方式中,計算所述初步搜索結果中各類型的視頻數據的分數,包括:In a possible implementation manner, calculating a score of each type of video data in the preliminary search result includes:

在各類型的視頻數據中包括節目的情況下,根據以下至少一項計算所述節目的分數:所述節目的實時搜索量、所述節目的播放量、所述節目與所述視頻搜索請求的相關性、所述節目對應的反饋信息、所述節目的發佈時間、所述節目的版權狀態和所述節目的站點信息。In the case where a program is included in each type of video data, the score of the program is calculated according to at least one of the following: the real-time search volume of the program, the playback volume of the program, the program and the video search request. Relevance, feedback information corresponding to the program, release time of the program, copyright status of the program, and site information of the program.

在一種可能的實現方式中,根據所述排序結果響應所述視頻搜索請求,包括:In a possible implementation manner, responding to the video search request according to the ranking result includes:

根據所述排序結果中節目的排序以及節目的總數,調整所述節目在所述排序結果中的排序;Adjusting the ranking of the programs in the ranking result according to the ranking of the programs in the ranking result and the total number of the programs;

根據調整後的排序結果響應所述視頻搜索請求。Responding to the video search request according to the adjusted ranking result.

在一種可能的實現方式中,計算所述初步搜索結果中各類型的視頻數據的分數,包括:In a possible implementation manner, calculating a score of each type of video data in the preliminary search result includes:

在各類型的視頻數據中包括自頻道的情況下,根據以下至少一項計算所述自頻道的分數:所述自頻道的頻道主的屬性、所述自頻道中各個視頻的分數、所述初步搜索結果中屬於所述自頻道的視頻的數量、所述自頻道的視頻總數以及所述視頻搜索請求與所述自頻道的相關性。In the case where each type of video data includes a self-channel, the score of the self-channel is calculated according to at least one of the following: the attribute of the channel master of the self-channel, the score of each video in the self-channel, the preliminary The number of videos belonging to the self-channel in the search results, the total number of videos of the self-channel, and the correlation between the video search request and the self-channel.

在一種可能的實現方式中,計算所述初步搜索結果中各類型的視頻數據的分數,包括:In a possible implementation manner, calculating a score of each type of video data in the preliminary search result includes:

在各類型的視頻數據中包括播單的情況下,根據以下至少一項計算所述播單的分數:所述播單的類型、所述播單的生成時間、所述播單對應的反饋信息和所述播單中各個視頻的分數。In the case where each type of video data includes an order, the score of the order is calculated according to at least one of the following: the type of the order, the generation time of the order, and the feedback information corresponding to the order And the score of each video in the playlist.

根據本公開的另一方面,提供了一種視頻搜索裝置,包括:According to another aspect of the present disclosure, a video search apparatus is provided, including:

獲取模組,用於在接收到視頻搜索請求的情況下,獲取所述視頻搜索請求對應的初步搜索結果;An obtaining module, configured to obtain a preliminary search result corresponding to the video search request when a video search request is received;

計算模組,用於計算所述初步搜索結果中各類型的視頻數據的分數;A calculation module for calculating a score of each type of video data in the preliminary search result;

排序模組,用於根據各類型的視頻數據的分數,對各類型的視頻數據進行排序,得到排序結果;A sorting module is used to sort each type of video data according to the score of each type of video data to obtain a sorting result;

響應模組,用於根據所述排序結果響應所述視頻搜索請求。The response module is configured to respond to the video search request according to the ranking result.

在一種可能的實現方式中,各類型的視頻數據包括以下至少一項:視頻、節目、自頻道和播單。In a possible implementation manner, each type of video data includes at least one of the following: video, program, self-channel, and playlist.

在一種可能的實現方式中,所述計算模組包括:In a possible implementation manner, the computing module includes:

第一計算子模組,用於在各類型的視頻數據中包括視頻的情況下,根據以下至少一項計算所述視頻的分數:所述視頻與所述視頻搜索請求的相關性、所述視頻的上傳者與所述視頻搜索請求的相關性、所述視頻搜索請求對應的搜索用戶的用戶反饋信息、所述視頻的播放量、所述視頻的觀看完成比、所述視頻的發佈時間、所述視頻被收藏的次數、所述視頻的評論數量、所述視頻的彈幕數量和所述搜索用戶針對所述視頻的訂閱狀態。A first calculation sub-module, configured to calculate a score of the video according to at least one of the following when video is included in each type of video data: the correlation between the video and the video search request, the video Relevance of the uploader to the video search request, user feedback information of the search user corresponding to the video search request, playback volume of the video, completion ratio of the viewing of the video, release time of the video, The number of times the video has been favorited, the number of comments on the video, the number of barrage of the video, and the subscription status of the search user for the video.

在一種可能的實現方式中,所述計算模組包括:In a possible implementation manner, the computing module includes:

第二計算子模組,用於在各類型的視頻數據中包括節目的情況下,根據以下至少一項計算所述節目的分數:所述節目的實時搜索量、所述節目的播放量、所述節目與所述視頻搜索請求的相關性、所述節目對應的反饋信息、所述節目的發佈時間、所述節目的版權狀態和所述節目的站點信息。The second calculation submodule is configured to calculate a score of the program according to at least one of the following when a program is included in each type of video data: a real-time search amount of the program, a play amount of the program, a The relevance of the program to the video search request, feedback information corresponding to the program, release time of the program, copyright status of the program, and site information of the program.

在一種可能的實現方式中,所述響應模組包括:In a possible implementation manner, the response module includes:

調整子模組,用於根據所述排序結果中節目的排序以及節目的總數,調整所述節目在所述排序結果中的排序;An adjustment sub-module, configured to adjust the ranking of the programs in the ranking result according to the ranking of the programs in the ranking result and the total number of the programs;

響應子模組,用於根據調整後的排序結果響應所述視頻搜索請求。The response sub-module is configured to respond to the video search request according to the adjusted ranking result.

在一種可能的實現方式中,所述計算模組包括:In a possible implementation manner, the computing module includes:

第三計算子模組,用於在各類型的視頻數據中包括自頻道的情況下,根據以下至少一項計算所述自頻道的分數:所述自頻道的頻道主的屬性、所述自頻道中各個視頻的分數、所述初步搜索結果中屬於所述自頻道的視頻的數量、所述自頻道的視頻總數以及所述視頻搜索請求與所述自頻道的相關性。A third calculation sub-module is used to calculate a score of the self-channel according to at least one of the following cases when the self-channel is included in each type of video data: the self-channel's attribute of the self-channel The score of each video in the video, the number of videos belonging to the self-channel in the preliminary search result, the total number of videos of the self-channel, and the correlation between the video search request and the self-channel.

在一種可能的實現方式中,所述計算模組包括:In a possible implementation manner, the computing module includes:

第四計算子模組,用於在各類型的視頻數據中包括播單的情況下,根據以下至少一項計算所述播單的分數:所述播單的類型、所述播單的生成時間、所述播單對應的反饋信息和所述播單中各個視頻的分數。The fourth calculation submodule is used to calculate the score of the playlist according to at least one of the following: if the playlist is included in each type of video data: the type of the playlist and the generation time of the playlist 2. The feedback information corresponding to the playlist and the score of each video in the playlist.

根據本公開的另一方面,提供了一種視頻搜索裝置,包括:處理器;用於存儲處理器可執行指令的記憶體;其中,所述處理器被配置為執行上述方法。According to another aspect of the present disclosure, there is provided a video search apparatus including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the above method.

根據本公開的另一方面,提供了一種非揮發性計算機可讀存儲介質,其上存儲有計算機程式指令,其中,所述計算機程式指令被處理器執行時實現上述方法。According to another aspect of the present disclosure, there is provided a non-volatile computer-readable storage medium having computer program instructions stored therein, wherein the computer program instructions implement the above method when executed by a processor.

通過在接收到視頻搜索請求的情況下,獲取視頻搜索請求對應的初步搜索結果,計算初步搜索結果中各類型的視頻數據的分數,根據各類型的視頻數據的分數,對各類型的視頻數據進行排序,得到排序結果,並根據排序結果響應視頻搜索請求,根據本公開的各方面的視頻搜索方法及裝置能夠提高搜索結果的準確性以及多樣性。By receiving the preliminary search result corresponding to the video search request when the video search request is received, calculating the score of each type of video data in the preliminary search result, and performing the analysis on each type of video data according to the score of each type of video data Sorting to obtain a sorting result and responding to a video search request according to the sorting result. The video search method and device according to various aspects of the present disclosure can improve the accuracy and diversity of search results.

根據下面參考附圖對示例性實施例的詳細說明,本公開的其它特徵及方面將變得清楚。Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the accompanying drawings.

以下將參考附圖詳細說明本公開的各種示例性實施例、特徵和方面。附圖中相同的附圖標記表示功能相同或相似的元件。儘管在附圖中示出了實施例的各種方面,但是除非特別指出,不必按比例繪製附圖。Various exemplary embodiments, features, and aspects of the disclosure will be described in detail below with reference to the drawings. The same reference numerals in the drawings represent the same or similar elements. Although various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless specifically noted.

在這裡專用的詞“示例性”意為“用作例子、實施例或說明性”。這裡作為“示例性”所說明的任何實施例不必解釋為優於或好於其它實施例。The word "exemplary" as used herein means "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as superior to or better than other embodiments.

另外,為了更好的說明本公開,在下文的具體實施方式中給出了眾多的具體細節。本領域技術人員應當理解,沒有某些具體細節,本公開同樣可以實施。在一些實例中,對於本領域技術人員熟知的方法、手段、元件和電路未作詳細描述,以便於凸顯本公開的主旨。In addition, in order to better illustrate the present disclosure, numerous specific details are given in the detailed description below. Those skilled in the art should understand that the present disclosure can be implemented without certain specific details. In some examples, methods, means, components, and circuits that are well known to those skilled in the art have not been described in detail in order to highlight the gist of the present disclosure.

實施例1Example 1

圖1示出根據本公開一實施例的視頻搜索方法的流程圖。該方法可以應用於服務器中,在此不作限定。如圖1所示,該方法包括步驟S11至步驟S14。FIG. 1 shows a flowchart of a video search method according to an embodiment of the present disclosure. This method can be applied to a server, which is not limited herein. As shown in FIG. 1, the method includes steps S11 to S14.

在步驟S11中,在接收到視頻搜索請求的情況下,獲取視頻搜索請求對應的初步搜索結果。In step S11, when a video search request is received, a preliminary search result corresponding to the video search request is obtained.

在本實施例中,服務器在接收到來自於客戶端的視頻搜索請求的情況下,可以採用相關技術中的視頻搜索方法獲取該視頻搜索請求對應的初步搜索結果。其中,視頻搜索請求可以攜帶搜索詞。In this embodiment, when the server receives a video search request from a client, the server may use a video search method in the related art to obtain a preliminary search result corresponding to the video search request. The video search request may carry a search term.

在步驟S12中,計算初步搜索結果中各類型的視頻數據的分數。In step S12, the score of each type of video data in the preliminary search result is calculated.

在一種可能的實現方式中,各類型的視頻數據包括以下至少一項:視頻、節目、自頻道和播單。其中,視頻、節目、自頻道和播單可以分別通過不同的引擎獲取。In a possible implementation manner, each type of video data includes at least one of the following: video, program, self-channel, and playlist. Among them, video, program, self-channel and playbill can be obtained through different engines respectively.

需要說明的是,儘管以視頻、節目、自頻道和播單作為示例介紹了各類型的視頻數據如上,但本領域技術人員能夠理解,本公開應不限於此。本領域技術人員可以根據實際應用場景靈活設定各類型的視頻數據。It should be noted that although various types of video data are described above using videos, programs, self-channels, and broadcasts as examples, those skilled in the art can understand that the present disclosure should not be limited to this. Those skilled in the art can flexibly set various types of video data according to actual application scenarios.

在一種可能的實現方式中,在各類型的視頻數據包括視頻、節目、自頻道和播單的情況下,可以先計算各個視頻的分數,再計算各個節目、自頻道和播單的分數,由此可以基於視頻的分數計算各個節目、自頻道和播單的分數。In a possible implementation manner, in a case where each type of video data includes a video, a program, a self-channel, and a playlist, a score of each video may be calculated first, and then a score of each program, self-channel, and playlist is calculated. This can be used to calculate scores for individual shows, self-channels, and broadcasts based on the video's score.

在一種可能的實現方式中,可以根據初步搜索結果中各個視頻數據的預排序,從初步搜索結果中篩選出預排序在前的Q個視頻數據,得到篩選結果,並可以僅計算篩選結果中的各類型的視頻數據的分數,以及進一步根據篩選結果中的各類型的視頻數據的分數進行排序得到排序結果,以降低計算量。In a possible implementation manner, the pre-sorted Q video data can be filtered from the preliminary search results according to the pre-sorting of each video data in the preliminary search results to obtain the screening results, and only the The score of each type of video data, and the sorting results are further sorted according to the score of each type of video data in the filtering result to reduce the calculation amount.

在一種可能的實現方式中,可以預先訓練各種模型,並可以利用這些模型計算初步搜索結果中各類型的視頻數據的分數。例如,可以採用LambdaMART(Lambda Multiple Additive Regression Tree,蘭布達多重累計回歸樹)或者GBDT(Gradient Boosting Decision Tree,梯度提升決策樹)等方法訓練用於計算各類型的視頻數據的分數的模型。In a possible implementation manner, various models may be trained in advance, and these models may be used to calculate scores of various types of video data in the preliminary search results. For example, a method such as LambdaMART (Lambda Multiple Additive Regression Tree, Lambda Multiple Cumulative Regression Tree) or GBDT (Gradient Boosting Decision Tree) can be used to train a model for calculating the scores of various types of video data.

在步驟S13中,根據各類型的視頻數據的分數,對各類型的視頻數據進行排序,得到排序結果。In step S13, the video data of each type is sorted according to the score of the video data of each type to obtain a sorting result.

作為本實施例的一個示例,可以按照分數由高到低的順序,對各類型的視頻數據進行排序,得到排序結果。As an example of this embodiment, the video data of each type can be sorted in order of high scores to obtain a sorting result.

在步驟S14中,根據排序結果響應視頻搜索請求。In step S14, a video search request is responded according to the ranking result.

在一種可能的實現方式中,可以根據排序結果中排序在前的L個視頻數據確定最終搜索結果,並將該最終搜索結果響應視頻搜索請求。In a possible implementation manner, the final search result may be determined according to the first L video data ranked in the ranking result, and the final search result is responded to the video search request.

作為該實現方式的一個示例,對於最終搜索結果中不同類型的視頻數據,可以以不同的展示方式在客戶端進行展示,由此能夠體現最終搜索結果中視頻數據的多樣性。As an example of this implementation manner, different types of video data in the final search result can be displayed on the client in different display manners, thereby being able to reflect the diversity of video data in the final search result.

作為該實現方式的一個示例,可以將離線挖掘的視頻數據中與視頻搜索請求的相關性較高的視頻數據加入最終搜索結果中。As an example of this implementation manner, the video data with high correlation with the video search request among the video data mined offline can be added to the final search result.

作為該實現方式的一個示例,在排序結果中排序在前的L個視頻數據中存在連續P個同一類型的視頻的情況下,可以在該連續P個同一類型的視頻中插入其他類型的視頻,以進一步提高最終搜索結果的多樣性。其中,所插入的其他類型的視頻可以也為排序在前的L個視頻數據中的視頻,以保證最終搜索結果與視頻搜索請求的強相關性。例如,P為10,排序結果中排序在前的L個視頻數據中存在連續12個類型為電影的視頻,則可以在該連續12個類型為電影的視頻中插入其他類型(例如電視劇、動漫或者遊戲等)的視頻。As an example of this implementation manner, in a case where there are consecutive P videos of the same type in the previous L video data sorted in the ranking result, other types of videos may be inserted into the consecutive P videos of the same type. To further increase the diversity of the final search results. The other types of videos inserted may also be videos sorted in the previous L video data to ensure a strong correlation between the final search result and the video search request. For example, if P is 10, and there are 12 consecutive types of movies in the previous L video data in the ranking result, you can insert other types (such as TV series, animation, or Games, etc.).

作為該實現方式的一個示例,在排序結果中排序在前的L個視頻數據中存在連續G個同一上傳者上傳的視頻的情況下,可以在該連續G個同一上傳者上傳的視頻中插入其他上傳者上傳的視頻,以進一步提高最終搜索結果的多樣性。其中,所插入的其他上傳者上傳的視頻可以也為排序在前的L個視頻數據中的視頻,以保證最終搜索結果與視頻搜索請求的強相關性。例如,G為6,排序結果中排序在前的L個視頻數據中存在連續8個上傳者A上傳的視頻,則可以在該連續8個上傳者A上傳的視頻中插入其他上傳者(例如上傳者B)上傳的視頻。As an example of this implementation, in the case where there are consecutive G videos uploaded by the same uploader in the previous L video data sorted in the ranking result, other videos uploaded by the same G uploader may be inserted into other Videos uploaded by uploaders to further increase the diversity of the final search results. The videos uploaded by other uploaders may also be videos sorted in the previous L video data to ensure a strong correlation between the final search result and the video search request. For example, G is 6, and there are 8 videos uploaded by uploader A consecutively in the previous L video data in the sorting result. Then you can insert other uploaders (such as upload B) Uploaded videos.

作為該實現方式的一個示例,還可以根據不同地域、不同平臺的視頻的播放權限,對最終搜索結果進行調整,在此不作限定。As an example of this implementation manner, the final search results may also be adjusted according to the video playback rights of different regions and different platforms, which is not limited here.

本實施例提供的視頻搜索方法能夠提高搜索結果的準確性與多樣性。The video search method provided in this embodiment can improve the accuracy and diversity of search results.

在一種可能的實現方式中,對於不同類型的視頻數據,可以採用不同的計算方式計算該類型的視頻數據的分數,由此使計算得到的各類型的視頻數據的分數更合理,進而使根據各類型的視頻數據的分數得到的排序結果更合理,更能夠提高搜索結果的準確性與多樣性,更能夠符合搜索用戶的搜索需求,從而能夠進一步提高用戶體驗。In a possible implementation manner, for different types of video data, different calculation methods may be used to calculate the scores of the video data of this type, thereby making the calculated scores of each type of video data more reasonable, and then making The sorted results obtained by the scores of video data of the type are more reasonable, can improve the accuracy and diversity of search results, and can better meet the search needs of search users, which can further improve the user experience.

在一種可能的實現方式中,計算初步搜索結果中各類型的視頻數據的分數,可以包括:在各類型的視頻數據中包括視頻的情況下,根據以下至少一項計算視頻的分數:視頻與視頻搜索請求的相關性、視頻的上傳者與視頻搜索請求的相關性、視頻搜索請求對應的搜索用戶的用戶反饋信息、視頻的播放量、視頻的觀看完成比、視頻的發佈時間、視頻被收藏的次數、視頻的評論數量、視頻的彈幕數量和搜索用戶針對視頻的訂閱狀態。In a possible implementation manner, calculating the scores of each type of video data in the preliminary search results may include: in the case where each type of video data includes a video, calculating the score of the video according to at least one of the following: video and video Relevance of search request, Relevance of video uploader and video search request, User feedback of search user corresponding to video search request, Video playback volume, Video completion ratio, Video release time, Video favorited Number of times, number of video comments, number of video barrage, and search user subscription status for the video.

該實現方式中的視頻可以包括UGC(User Generated Content,用戶原創內容)等,在此不作限定。The video in this implementation manner may include UGC (User Generated Content, user generated content, etc.), which is not limited herein.

作為該實現方式的一個示例,視頻的分數可以至少根據視頻與視頻搜索請求的相關性確定。視頻與視頻搜索請求的相關性可以根據視頻的特徵詞與視頻搜索請求中的搜索詞的相似度確定。其中,視頻的特徵詞可以根據視頻的標題、副標題、類型、標籤和關鍵詞中的至少一項確定。例如,可以對視頻的標題和副標題進行分詞,將分詞結果中的各個詞與該視頻的類型、標籤、關鍵詞分別作為該視頻的特徵詞。視頻的特徵詞與搜索詞的相似度可以根據視頻的特徵詞的詞向量、TF-IDF(Term Frequency-Inverse Document Frequency,詞頻-逆文檔詞頻)以及搜索詞的詞向量、TF-IDF確定,在此不作限定。As an example of this implementation, the score of the video may be determined at least based on the relevance of the video to the video search request. The correlation between the video and the video search request may be determined according to the similarity between the feature words of the video and the search words in the video search request. The feature words of the video may be determined according to at least one of a title, a subtitle, a type, a tag, and a keyword of the video. For example, the title and subtitle of the video may be segmented, and each word in the segmentation result and the type, label, and keyword of the video are used as feature words of the video, respectively. The similarity between the feature words of the video and the search terms can be determined according to the word vector of the feature words of the video, TF-IDF (Term Frequency-Inverse Document Frequency), and the word vector of search words, TF-IDF. This is not limited.

作為該實現方式的一個示例,視頻的分數可以至少根據視頻的上傳者與視頻搜索請求的相關性確定。視頻的上傳者與視頻搜索請求的相關性可以根據視頻的上傳者的類型與視頻搜索請求中的搜索詞確定。其中,視頻的上傳者的類型可以根據視頻的上傳者上傳的視頻確定。例如,某一視頻的上傳者上傳的視頻中98%的視頻均為與遊戲相關的類型,則可以確定該視頻的上傳者的類型為遊戲。若視頻的上傳者的類型為遊戲,且視頻搜索請求的搜索詞包括遊戲,或者搜索詞包括某一遊戲的名稱,則可以確定該視頻的上傳者與視頻搜索請求的相關性較高。As an example of this implementation, the score of the video may be determined at least according to the relevance of the uploader of the video to the video search request. The relevance between the uploader of the video and the video search request may be determined according to the type of the uploader of the video and the search term in the video search request. The type of the uploader of the video may be determined according to the video uploaded by the uploader of the video. For example, if 98% of the videos uploaded by the uploader of a video are of a game-related type, it can be determined that the type of the uploader of the video is a game. If the type of the uploader of the video is a game, and the search term of the video search request includes a game, or the search term includes the name of a certain game, it can be determined that the uploader of the video has a high correlation with the video search request.

作為該實現方式的一個示例,視頻的分數可以至少根據視頻搜索請求對應的搜索用戶的用戶反饋信息確定。其中,搜索用戶的用戶反饋信息可以包括搜索用戶在第一時間範圍內觀看的視頻信息、對各視頻的觀看完成比、評論的視頻信息、發表彈幕的視頻信息、收藏的視頻信息、轉發的視頻信息和點讚的視頻信息等中的至少一項。其中,第一時間範圍可以為1個星期、1個月或者6個月等,在此不作限定。搜索用戶對某一視頻的觀看完成比可以等於該搜索用戶觀看該視頻的時間長度與該視頻的總時長的比值。根據搜索用戶的用戶反饋信息,可以確定搜索用戶觀看視頻的喜好。例如,若根據搜索用戶的用戶反饋信息確定該搜索用戶喜歡觀看電影,且該視頻為電影,則該視頻的分數可以較高。As an example of this implementation manner, the score of a video may be determined at least according to user feedback information of a search user corresponding to a video search request. The user feedback information of the search user may include search video information watched by the user in the first time range, completion ratio of each video, commented video information, posted video information of the barrage, favorite video information, and reposted At least one of video information, like video information, and the like. The first time range may be one week, one month, or six months, which is not limited herein. The search completion ratio of a search user for a video may be equal to the ratio of the length of time that the search user watches the video to the total length of the video. Based on the user feedback information of the search users, the search users' preferences for watching videos can be determined. For example, if it is determined that the search user likes watching a movie according to the user feedback information of the search user, and the video is a movie, the score of the video may be higher.

作為該實現方式的一個示例,視頻的分數可以至少根據視頻的播放量確定。例如,視頻的分數可以根據視頻在第二時間範圍內的播放量確定,該視頻的分數可以與該視頻在第二時間範圍內的播放量正相關。其中,第二時間範圍可以為1天、1個星期或者1個月等,在此不作限定。As an example of this implementation manner, the score of the video may be determined at least according to the playback volume of the video. For example, the score of a video may be determined according to the playback volume of the video in the second time range, and the score of the video may be positively related to the playback volume of the video in the second time range. The second time range may be one day, one week, or one month, which is not limited herein.

作為該實現方式的一個示例,視頻的分數可以至少根據視頻的觀看完成比確定。其中,視頻的觀看完成比可以等於所有用戶針對該視頻的觀看完成比的平均值。該視頻的分數可以與該視頻的觀看完成比正相關。As an example of this implementation manner, the score of the video may be determined at least according to the viewing completion ratio of the video. The viewing completion ratio of a video may be equal to the average of the viewing completion ratios of all users for the video. The score of the video may be directly related to the completion ratio of the video.

作為該實現方式的一個示例,視頻的分數可以至少根據該視頻的發佈時間確定。該視頻的分數可以與第一差值負相關,其中,第一差值可以等於當前時間與該視頻的發佈時間的時間差。As an example of this implementation, the score of the video may be determined at least according to the release time of the video. The score of the video may be negatively correlated with the first difference, where the first difference may be equal to the time difference between the current time and the publishing time of the video.

作為該實現方式的一個示例,視頻的分數可以至少根據該視頻被收藏的次數確定。該視頻的分數可以與該視頻被收藏的次數正相關。As an example of this implementation manner, the score of the video may be determined at least according to the number of times the video has been favorited. The score of the video can be positively related to the number of times the video has been favorited.

作為該實現方式的一個示例,視頻的分數可以至少根據該視頻的評論數量確定。該視頻的分數可以與該視頻的評論數量正相關。As an example of this implementation, the score of a video may be determined at least based on the number of comments on the video. The video's score can be positively related to the number of comments on the video.

作為該實現方式的一個示例,視頻的分數可以至少根據該視頻的彈幕數量確定。該視頻的分數可以與該視頻的彈幕數量正相關。As an example of this implementation, the score of the video may be determined at least according to the number of barrage of the video. The score of the video can be positively related to the number of barrage of the video.

作為該實現方式的一個示例,視頻的分數可以至少根據搜索用戶針對該視頻的訂閱狀態確定。若搜索用戶已訂閱該視頻,則該視頻的分數可以較高。As an example of this implementation, the score of the video may be determined at least according to the subscription status of the search user for the video. If the search user has subscribed to the video, the video's score can be higher.

作為該實現方式的一個示例,可以採用式1計算視頻的分數As an example of this implementation, the score of the video can be calculated using Equation 1. :

式1。 Formula 1.

其中,可以表示所有視頻的基礎得分,可以大於0,也可以等於0或者小於0,在此不作限定。本領域技術人員可以根據實際應用場景靈活設置表示視頻的第項得分,表示第項得分的權重,表示視頻的得分的總項數。例如,可以根據視頻與視頻搜索請求的相關性確定,根據視頻的上傳者與視頻搜索請求的相關性確定,根據視頻搜索請求對應的搜索用戶的用戶反饋信息確定,根據視頻的播放量和觀看完成比確定,根據視頻的發佈時間確定,根據視頻被收藏的次數確定,根據視頻的評論數量確定,根據視頻的彈幕數量確定,根據搜索用戶針對視頻的訂閱狀態確定,在此不作限定。among them, Can represent the base score for all videos, It may be greater than 0, may be equal to 0 or less than 0, and is not limited herein. Those skilled in the art can flexibly set according to the actual application scenario . Represents the first Item score, The first Weighting of items, The total number of items representing the score of the video. For example, based on the relevance of the video to the video search request , Based on the relevance of the video uploader to the video search request , Determined according to the user feedback information of the search user corresponding to the video search request , Determined based on the video ’s playback volume and completion ratio , Based on when the video was posted , Based on the number of times the video has been favorited , Based on the number of comments on the video , Based on the number of video barrage , Based on search user ’s subscription status for the video It is not limited here.

需要說明的是,儘管以視頻與視頻搜索請求的相關性、視頻的上傳者與視頻搜索請求的相關性、視頻搜索請求對應的搜索用戶的用戶反饋信息、視頻的播放量、視頻的觀看完成比、視頻的發佈時間、視頻被收藏的次數、視頻的評論數量、視頻的彈幕數量和搜索用戶針對視頻的訂閱狀態作為示例介紹了計算視頻的分數的方式如上,但本領域技術人員能夠理解,本公開應不限於此。本領域技術人員可以根據實際應用場景靈活設定計算視頻的分數的方式,只要與視頻搜索請求、視頻、視頻的上傳者和搜索用戶中的至少一項相關即可。例如,視頻的分數還可以根據視頻是否為播控視頻、是否為作弊視頻等來確定,在此不作限定。It should be noted that despite the correlation between the video and the video search request, the correlation between the uploader of the video and the video search request, the user feedback information of the search user corresponding to the video search request, the video playback volume, and the video completion ratio , Video release time, number of videos favorited, number of video comments, number of video barrage, and search user ’s subscription status for the video. As an example, the method of calculating the video ’s score is described above, but those skilled in the art can understand that The present disclosure should not be limited to this. A person skilled in the art may flexibly set a method for calculating a score of a video according to an actual application scenario, as long as it is related to at least one of a video search request, a video, a video uploader, and a search user. For example, the score of a video can also be determined based on whether the video is a broadcast control video or a cheat video, etc., which is not limited here.

作為該實現方式的一個示例,可以採用式2計算As an example of this implementation method, Equation 2 can be used to calculate :

式2; Formula 2;

其中,表示當前時間,表示視頻的發佈時間,分別表示調整係數。among them, Indicates the current time, Indicates when the video was posted, with Respective adjustment coefficients.

需要說明的是,儘管以式2作為示例介紹了計算的方式如上,但本領域技術人員能夠理解,本公開應不限於此。本領域技術人員可以根據實際應用場景靈活設定的計算方式,只要與視頻的發佈時間相關即可。It should be noted that although the calculation is described using Equation 2 as an example The manner is as above, but those skilled in the art can understand that the present disclosure should not be limited to this. Those skilled in the art can flexibly set according to the actual application scenario , As long as it is related to the time of release of the video.

作為該實現方式的一個示例,可以採用式3計算As an example of this implementation, Equation 3 can be used to calculate :

式3; Formula 3;

其中,表示視頻的觀看完成比,表示視頻的播放量。可以表示初步搜索結果中所有視頻的平均播放量。或者,可以根據及其對應的權重先計算出初步搜索結果中得分最高的M個視頻,再將這M個視頻的平均播放量作為。其中,M可以為20,在此不作限定。among them, Indicates the completion ratio of the video, Represents the amount of video playback. Can represent the average play volume of all videos in the preliminary search results. Alternatively, you can , , , , , , And its corresponding weights, first calculate the M videos with the highest score in the preliminary search results, and then use the average playback volume of these M videos as . Among them, M may be 20, which is not limited herein.

需要說明的是,儘管以式3作為示例介紹了的計算方式如上,但本領域技術人員能夠理解,本公開應不限於此。本領域技術人員可以根據實際應用場景靈活設定的計算方式,只要與視頻的播放量以及觀看完成比相關即可。It should be noted that although Equation 3 is introduced as an example, The calculation method is as above, but those skilled in the art can understand that the disclosure should not be limited to this. Those skilled in the art can flexibly set according to the actual application scenario , As long as it is related to the amount of video played and the completion ratio.

在一種可能的實現方式中,計算初步搜索結果中各類型的視頻數據的分數,可以包括:在各類型的視頻數據中包括節目的情況下,根據以下至少一項計算節目的分數:節目的實時搜索量、節目的播放量、節目與視頻搜索請求的相關性、節目對應的反饋信息、節目的發佈時間、節目的版權狀態和節目的站點信息。In a possible implementation manner, calculating the score of each type of video data in the preliminary search result may include: in the case where each type of video data includes a program, calculating the score of the program according to at least one of the following: the real-time of the program Search volume, program playback volume, correlation between the program and video search request, feedback information corresponding to the program, program release time, program copyright status, and program site information.

作為該實現方式的一個示例,節目的分數可以至少根據該節目的實時搜索量確定。其中,該節目的實時搜索量可以為該節目在第三時間範圍內的搜索量。例如,第三時間範圍可以為1個小時或者1天等,在此不作限定。該節目的分數可以與該節目的實時搜索量正相關。As an example of this implementation manner, the score of a program may be determined based on at least the real-time search volume of the program. The real-time search volume of the program may be the search volume of the program within the third time range. For example, the third time range may be one hour or one day, and the like is not limited herein. The program's score can be positively correlated with the program's real-time search volume.

作為該實現方式的一個示例,節目的分數可以至少根據該節目的播放量確定。該節目的分數可以與該節目的播放量正相關。例如,該節目的分數可以與該節目的總播放量正相關。或者,該節目的分數可以與該節目在第四時間範圍內的播放量正相關。其中,第四時間範圍可以為1天、1個星期或者1個月等,在此不作限定。As an example of this implementation manner, the score of the program may be determined at least according to the play volume of the program. The score of the program can be positively related to the volume of the program. For example, the score of the program may be positively related to the total play volume of the program. Alternatively, the score of the program may be positively related to the playback volume of the program in the fourth time range. The fourth time range may be one day, one week, or one month, and is not limited herein.

作為該實現方式的一個示例,節目的分數可以至少根據該節目與視頻搜索請求的相關性確定。該節目與視頻搜索請求的相關性可以根據節目的特徵詞與視頻搜索請求中的搜索詞的相似度確定。其中,節目的特徵詞可以根據節目的名稱、類型、標籤和關鍵詞中的至少一項確定。例如,可以對節目的名稱進行分詞,將分詞結果中的各個詞與該節目的類型、標籤和關鍵詞分別作為該節目的特徵詞。節目的特徵詞與搜索詞的相似度可以根據節目的特徵詞的詞向量、TF-IDF以及搜索詞的詞向量、TF-IDF確定,在此不作限定。As an example of this implementation manner, the score of the program may be determined based at least on the relevance of the program to the video search request. The correlation between the program and the video search request may be determined according to the similarity between the feature words of the program and the search words in the video search request. The feature word of the program may be determined according to at least one of a name, a type, a tag, and a keyword of the program. For example, the name of the program may be segmented, and each word in the segmentation result and the type, label, and keyword of the program are used as feature words of the program, respectively. The similarity between the feature word of the program and the search word can be determined according to the word vector and TF-IDF of the feature word of the program and the word vector and TF-IDF of the search word, which is not limited herein.

作為該實現方式的一個示例,節目的分數可以至少根據該節目對應的反饋信息確定。例如,該節目對應的反饋信息可以包括所有用戶對該節目的評分的平均分,還可以包括所有用戶針對該節目的評論總數等,在此不作限定。As an example of this implementation manner, a score of a program may be determined at least according to feedback information corresponding to the program. For example, the feedback information corresponding to the program may include the average score of all users ’ratings of the program, and may also include the total number of comments on the program by all users, which is not limited herein.

作為該實現方式的一個示例,節目的分數可以至少根據該節目的發佈時間確定。該節目的分數可以與第二差值負相關,其中,第二差值可以等於當前時間與該節目的指定時間的時間差。其中,該節目的指定時間可以為該節目的最新視頻的發佈時間或者該節目的所有視頻的平均發佈時間等,在此不作限定。As an example of this implementation manner, a score of a program may be determined at least according to a release time of the program. The score of the program may be negatively correlated with a second difference value, where the second difference value may be equal to the time difference between the current time and a specified time of the program. The specified time of the program may be the release time of the latest video of the program or the average release time of all videos of the program, which is not limited herein.

作為該實現方式的一個示例,節目的分數可以至少根據該節目的版權狀態確定。例如,若該節目的版權狀態為本站點具有該節目的版權,則該節目的分數可以較高。As an example of the implementation, the score of the program may be determined at least according to the copyright status of the program. For example, if the copyright status of the program is that the site has the copyright of the program, the score of the program can be higher.

作為該實現方式的一個示例,節目的分數可以至少根據該節目的站點信息確定。例如,若該節目的站點信息為本站點,則該節目的分數可以較高。As an example of this implementation manner, a score of a program may be determined based on at least site information of the program. For example, if the site information of the program is this site, the score of the program can be higher.

作為該實現方式的一個示例,可以採用式4計算節目的分數:As an example of this implementation, the score of the program can be calculated using Equation 4:

式4。 Equation 4.

其中,可以表示所有節目的基礎得分,可以大於0,也可以等於0或者小於0,在此不作限定。本領域技術人員可以根據實際應用場景靈活設置表示節目的第項得分,表示第項得分的權重,表示節目的得分的總項數。例如,可以根據節目的實時搜索量確定的取值範圍可以為[0,1],根據節目的播放量確定,根據節目與視頻搜索請求的相關性確定的取值範圍可以為[-1,1],根據節目對應的反饋信息確定,根據節目的發佈時間、節目的版權狀態和節目的站點信息確定的取值範圍可以為[-1,1],在此不作限定。among them, Can represent the base score for all shows, It may be greater than 0, may be equal to 0 or less than 0, and is not limited herein. Those skilled in the art can flexibly set according to the actual application scenario . Indicate the first Item score, The first Weighting of items, The total number of items representing the score of the show. For example, it can be determined based on the real-time search volume of the program , The value range of can be [0,1], which is determined according to the program's play volume , Based on the relevance of the show to the video search request , The value range can be [-1,1], which is determined according to the feedback information corresponding to the program. , Determined based on the program ’s release time, the program ’s copyright status, and the program ’s site information , The value range of can be [-1,1], which is not limited here.

需要說明的是,儘管以節目的實時搜索量、節目的播放量、節目與視頻搜索請求的相關性、節目對應的反饋信息、節目的發佈時間、節目的版權狀態和節目的站點信息作為示例介紹了節目的分數的計算方式如上,但本領域技術人員能夠理解,本公開應不限於此。本領域技術人員可以根據實際應用場景靈活設定節目的分數的計算方式,只要與節目和視頻搜索請求中的至少一項相關即可。It should be noted that although the real-time search volume of the program, the playback volume of the program, the correlation between the program and the video search request, the feedback information corresponding to the program, the release time of the program, the copyright status of the program, and the site information of the program are taken as examples The calculation method of the score of the program is introduced as above, but those skilled in the art can understand that the present disclosure should not be limited to this. A person skilled in the art may flexibly set a calculation method of a score of a program according to an actual application scenario, as long as it is related to at least one of a program and a video search request.

圖2示出根據本公開一實施例的視頻搜索方法步驟S14的一示例性的流程圖。如圖2所示,步驟S14可以包括步驟S141和步驟S142。FIG. 2 illustrates an exemplary flowchart of step S14 of a video search method according to an embodiment of the present disclosure. As shown in FIG. 2, step S14 may include steps S141 and S142.

在步驟S141中,根據排序結果中節目的排序以及節目的總數,調整節目在排序結果中的排序。In step S141, the ranking of the programs in the ranking result is adjusted according to the ranking of the programs in the ranking result and the total number of the programs.

作為本實施例的一個示例,在該節目的版權狀態為本站點具有該節目的版權的情況下,可以根據排序結果中節目的排序以及節目的總數,調整節目在排序結果中的排序。根據該示例可以對本站點具有版權的節目進行位置保護。As an example of this embodiment, when the copyright status of the program is that the site has the copyright of the program, the ranking of the programs in the ranking result may be adjusted according to the ranking of the programs in the ranking result and the total number of the programs. Based on this example, you can protect the copyrighted programs on this site.

作為本實施例的一個示例,可以採用式6確定節目在排序結果中的最低排序As an example of this embodiment, Equation 6 can be used to determine the lowest ranking of the program in the ranking result. :

式7。 Equation 7.

其中,表示調整係數,可以表示該節目在排序結果中的所有節目中的排序,表示初步搜索結果中的節目總數。among them, Represents the adjustment factor, Can indicate the ranking of the show among all the shows in the ranking result, Represents the total number of shows in the preliminary search results.

例如,等於5,等於3,等於7,則可以計算得到等於3,等於18,即,該節目在排序結果中的最低排序為18。若該節目在排序結果中的當前排序低於18,則將該節目在排序結果中的排序調整為18。E.g, Is equal to 5, Equals 3, Equal to 7, you can calculate Equals 3, Equal to 18, that is, the lowest ranking of the program in the ranking result is 18. If the current ranking of the program in the ranking result is lower than 18, the ranking of the program in the ranking result is adjusted to 18.

在步驟S142中,根據調整後的排序結果響應視頻搜索請求。In step S142, a video search request is responded according to the adjusted ranking result.

在一種可能的實現方式中,計算初步搜索結果中各類型的視頻數據的分數,可以包括:在各類型的視頻數據中包括自頻道的情況下,根據以下至少一項計算自頻道的分數:自頻道的頻道主的屬性、自頻道中各個視頻的分數、初步搜索結果中屬於自頻道的視頻的數量、自頻道的視頻總數以及視頻搜索請求與自頻道的相關性。In a possible implementation manner, calculating the scores of each type of video data in the preliminary search result may include: in a case where each type of video data includes a self-channel, the score of the self-channel is calculated according to at least one of the following: The attributes of the channel's channel master, the score of each video in the self-channel, the number of videos belonging to the self-channel in the preliminary search results, the total number of videos in the self-channel, and the correlation between video search requests and the self-channel.

作為該實現方式的一個示例,自頻道的分數可以至少根據自頻道的頻道主的屬性確定。其中,自頻道的頻道主的屬性可以包括該頻道主的粉絲數等,在此不作限定。例如,自頻道的分數可以與該自頻道的頻道主的粉絲數正相關。As an example of this implementation manner, the score of the self-channel can be determined at least according to the attribute of the channel owner of the self-channel. The attribute of the channel owner of the self-channel may include the number of fans of the channel owner, etc., which is not limited herein. For example, a self-channel's score may be positively related to the number of followers of the self-channel's channel owner.

作為該實現方式的一個示例,自頻道的分數可以至少根據自頻道中各個視頻的分數確定。例如,自頻道的分數可以與自頻道中各個視頻的平均分正相關。As an example of this implementation manner, the score of the self-channel may be determined at least according to the score of each video in the self-channel. For example, the score of a self-channel can be positively related to the average score of each video in the self-channel.

作為該實現方式的一個示例,自頻道的分數可以至少根據初步搜索結果中屬於自頻道的視頻的數量以及自頻道的視頻總數確定。例如,自頻道的分數可以與初步搜索結果中屬於該自頻道的視頻的數量與自頻道的視頻總數的比值正相關。例如,若初步搜索結果中屬於某一自頻道的視頻的數量為10,該自頻道的視頻總數為100,則自頻道的分數可以與初步搜索結果中屬於該自頻道的視頻的數量與自頻道的視頻總數的比值為0.1。As an example of this implementation manner, the score of the self-channel can be determined at least according to the number of videos belonging to the self-channel and the total number of videos of the self-channel in the preliminary search result. For example, the score of the self-channel may be positively related to the ratio of the number of videos belonging to the self-channel to the total number of videos of the self-channel in the preliminary search results. For example, if the number of videos belonging to a certain self channel in the preliminary search results is 10 and the total number of videos of the self channel is 100, the score of the self channel can be compared with the number of videos belonging to the self channel in the preliminary search results and the self channel The total number of videos is 0.1.

作為該實現方式的一個示例,自頻道的分數可以至少根據視頻搜索請求與自頻道的相關性確定。自頻道與視頻搜索請求的相關性可以根據該自頻道的特徵詞與視頻搜索請求中的搜索詞的相似度確定。其中,自頻道的特徵詞可以根據該自頻道中各個視頻的標題、副標題、類型、標籤和關鍵詞中的至少一項確定。例如,可以對該自頻道中各個視頻的標題和副標題進行分詞,將分詞結果中的各個詞與各個視頻的類型、標籤和關鍵詞分別作為該自頻道的特徵詞。自頻道的特徵詞與搜索詞的相似度可以根據自頻道的特徵詞的詞向量、TF-IDF以及搜索詞的詞向量、TF-IDF確定,在此不作限定。As an example of this implementation, the score of the self-channel can be determined at least according to the correlation between the video search request and the self-channel. The correlation between the self-channel and the video search request may be determined according to the similarity between the feature words of the self-channel and the search words in the video search request. The feature words of the self-channel can be determined according to at least one of a title, a subtitle, a genre, a tag, and a keyword of each video in the self-channel. For example, the title and subtitle of each video in the self-channel can be segmented, and each word in the segmentation result and the type, label, and keyword of each video are used as feature words of the self-channel. The similarity between the feature word of the self-channel and the search word can be determined according to the word vector of the feature word of the self-channel, TF-IDF, and the word vector of the search word, TF-IDF, which is not limited herein.

作為該實現方式的一個示例,可以採用式5計算自頻道的分數As an example of this implementation, the score from the channel can be calculated using Equation 5. :

式5。 Equation 5.

其中,可以表示所有自頻道的基礎得分,可以大於0,也可以等於0或者小於0,在此不作限定。本領域技術人員可以根據實際應用場景靈活設置表示自頻道的第項得分,表示第項得分的權重,表示自頻道的得分的總項數。例如,可以根據自頻道的頻道主的屬性確定,根據自頻道中各個視頻的分數確定,根據初步搜索結果中屬於自頻道的視頻的數量與自頻道的視頻總數的比值確定,根據視頻搜索請求與自頻道的相關性確定,在此不作限定。其中,的取值範圍可以為的取值範圍可以為among them, Can represent the base score for all self-channels, It may be greater than 0, may be equal to 0 or less than 0, and is not limited herein. Those skilled in the art can flexibly set according to the actual application scenario . Represents the first Item score, The first Weighting of items, The total number of items representing the score from the channel. For example, it can be determined based on the attributes of the channel owner from the channel , Based on the score of each video in the channel , Based on the ratio of the number of videos belonging to the own channel to the total number of videos from the own channel in the preliminary search results , Determined based on the relevance of the video search request to its own channel It is not limited here. among them, The value range can be , The value range can be .

在一種可能的實現方式中,計算初步搜索結果中各類型的視頻數據的分數,可以包括:在各類型的視頻數據中包括播單的情況下,根據以下至少一項計算播單的分數:播單的類型、播單的生成時間、播單對應的反饋信息和播單中各個視頻的分數。In a possible implementation manner, calculating the scores of each type of video data in the preliminary search results may include: in the case where each type of video data includes a play order, calculating the score of the play order according to at least one of the following: The type of the order, the generation time of the order, the feedback information corresponding to the order, and the score of each video in the order.

作為該實現方式的一個示例,播單的分數可以至少根據播單的類型確定。例如,播單的類型可以包括官方類型和播控類型,官方類型對應的分數可以高於播控類型對應的分數。As an example of this implementation manner, the score of the broadcast order may be determined at least according to the type of the broadcast order. For example, the type of the broadcast order may include the official type and the broadcast control type, and the score corresponding to the official type may be higher than the score corresponding to the broadcast control type.

作為該實現方式的一個示例,播單的分數可以至少根據播單的生成時間確定。該播單的分數可以與第三差值負相關,其中,第三差值可以等於當前時間與該播單的生成時間的時間差。As an example of this implementation manner, the score of the broadcast order may be determined at least according to the generation time of the broadcast order. The score of the broadcast order may be negatively correlated with a third difference value, where the third difference value may be equal to a time difference between a current time and a generation time of the broadcast order.

作為該實現方式的一個示例,播單的分數可以至少根據播單對應的反饋信息確定。例如,該播單對應的反饋信息可以包括所有用戶對該播單的評分的平均分,還可以包括所有用戶針對該播單的評論總數等,在此不作限定。As an example of this implementation manner, the score of the broadcast order may be determined at least according to the feedback information corresponding to the broadcast order. For example, the feedback information corresponding to the broadcast order may include an average score of the ratings of all users on the broadcast order, and may also include the total number of comments of all users on the broadcast order, which is not limited herein.

作為該實現方式的一個示例,播單的分數可以至少根據播單中各個視頻的分數確定。例如,播單的分數可以與播單中各個視頻的平均分正相關。As an example of this implementation manner, the score of the playlist may be determined at least according to the score of each video in the playlist. For example, the score of the playlist can be positively related to the average score of each video in the playlist.

作為該實現方式的一個示例,可以採用式6計算播單的分數As an example of this implementation manner, Equation 6 can be used to calculate the score of the broadcast order :

式6。 Equation 6.

其中,可以表示所有播單的基礎得分,可以大於0,也可以等於0或者小於0,在此不作限定。本領域技術人員可以根據實際應用場景靈活設置表示播單的第項得分,表示第項得分的權重,表示播單的得分的總項數。例如,可以根據播單的類型確定,根據播單的生成時間確定,根據播單對應的反饋信息確定,根據播單中各個視頻的分數確定,在此不作限定。among them, Can represent the base score for all orders, It may be greater than 0, may be equal to 0 or less than 0, and is not limited herein. Those skilled in the art can flexibly set according to the actual application scenario . Represents the first Item score, The first Weighting of items, The total number of items representing the score of the order. For example, depending on the type of order , Determined according to the generation time of the broadcast , Determined according to the feedback information corresponding to the broadcast , Based on the score of each video in the playlist It is not limited here.

實施例2Example 2

圖3示出根據本公開一實施例的視頻搜索裝置的方塊圖。如圖3所示,該裝置包括:獲取模組31,用於在接收到視頻搜索請求的情況下,獲取所述視頻搜索請求對應的初步搜索結果;計算模組32,用於計算所述初步搜索結果中各類型的視頻數據的分數;排序模組33,用於根據各類型的視頻數據的分數,對各類型的視頻數據進行排序,得到排序結果;響應模組34,用於根據所述排序結果響應所述視頻搜索請求。FIG. 3 illustrates a block diagram of a video search apparatus according to an embodiment of the present disclosure. As shown in FIG. 3, the device includes: an obtaining module 31 for obtaining a preliminary search result corresponding to the video search request when a video search request is received; and a calculation module 32 for calculating the preliminary search result The score of each type of video data in the search results; a sorting module 33 for sorting each type of video data according to the score of each type of video data to obtain a ranking result; a response module 34 for The ranking result responds to the video search request.

在一種可能的實現方式中,各類型的視頻數據包括以下至少一項:視頻、節目、自頻道和播單。In a possible implementation manner, each type of video data includes at least one of the following: video, program, self-channel, and playlist.

圖4示出根據本公開一實施例的視頻搜索裝置的一示例性的方塊圖。如圖4所示:FIG. 4 illustrates an exemplary block diagram of a video search apparatus according to an embodiment of the present disclosure. As shown in Figure 4:

在一種可能的實現方式中,所述計算模組32包括:第一計算子模組321,用於在各類型的視頻數據中包括視頻的情況下,根據以下至少一項計算所述視頻的分數:所述視頻與所述視頻搜索請求的相關性、所述視頻的上傳者與所述視頻搜索請求的相關性、所述視頻搜索請求對應的搜索用戶的用戶反饋信息、所述視頻的播放量、所述視頻的觀看完成比、所述視頻的發佈時間、所述視頻被收藏的次數、所述視頻的評論數量、所述視頻的彈幕數量和所述搜索用戶針對所述視頻的訂閱狀態。In a possible implementation manner, the calculation module 32 includes: a first calculation sub-module 321, configured to calculate a score of the video according to at least one of the following when a video is included in each type of video data: : The correlation between the video and the video search request, the correlation between the uploader of the video and the video search request, the user feedback information of the search user corresponding to the video search request, and the video playback amount , The completion ratio of the video, the time when the video was published, the number of times the video was favorited, the number of comments on the video, the number of barrage of the video, and the subscription status of the search user for the video .

在一種可能的實現方式中,所述計算模組32包括:第二計算子模組322,用於在各類型的視頻數據中包括節目的情況下,根據以下至少一項計算所述節目的分數:所述節目的實時搜索量、所述節目的播放量、所述節目與所述視頻搜索請求的相關性、所述節目對應的反饋信息、所述節目的發佈時間、所述節目的版權狀態和所述節目的站點信息。In a possible implementation manner, the calculation module 32 includes: a second calculation submodule 322, configured to calculate a score of the program according to at least one of the following when a program is included in each type of video data: : The real-time search volume of the program, the playback volume of the program, the relevance of the program to the video search request, the feedback information corresponding to the program, the release time of the program, and the copyright status of the program And site information for the show.

在一種可能的實現方式中,所述響應模組34包括:調整子模組341,用於根據所述排序結果中節目的排序以及節目的總數,調整所述節目在所述排序結果中的排序;響應子模組342,用於根據調整後的排序結果響應所述視頻搜索請求。In a possible implementation manner, the response module 34 includes: an adjustment submodule 341, configured to adjust the ranking of the programs in the ranking result according to the ranking of the programs in the ranking result and the total number of programs. A response submodule 342, configured to respond to the video search request according to the adjusted ranking result.

在一種可能的實現方式中,所述計算模組32包括:第三計算子模組323,用於在各類型的視頻數據中包括自頻道的情況下,根據以下至少一項計算所述自頻道的分數:所述自頻道的頻道主的屬性、所述自頻道中各個視頻的分數、所述初步搜索結果中屬於所述自頻道的視頻的數量、所述自頻道的視頻總數以及所述視頻搜索請求與所述自頻道的相關性。In a possible implementation manner, the calculation module 32 includes: a third calculation sub-module 323, configured to calculate the self-channel according to at least one of the following when a self-channel is included in each type of video data: Score: the attribute of the channel owner of the self-channel, the score of each video in the self-channel, the number of videos belonging to the self-channel in the preliminary search results, the total number of videos of the self-channel, and the video The relevance of the search request to the self-channel.

在一種可能的實現方式中,所述計算模組32包括:第四計算子模組324,用於在各類型的視頻數據中包括播單的情況下,根據以下至少一項計算所述播單的分數:所述播單的類型、所述播單的生成時間、所述播單對應的反饋信息和所述播單中各個視頻的分數。In a possible implementation manner, the calculation module 32 includes: a fourth calculation submodule 324, configured to calculate the playlist according to at least one of the following when a type of video data includes a playlist Score: the type of the playlist, the time when the playlist was generated, the feedback information corresponding to the playlist, and the score of each video in the playlist.

本實施例提供的視頻搜索裝置能夠提高搜索結果的準確性與多樣性。The video search apparatus provided in this embodiment can improve the accuracy and diversity of search results.

實施例3Example 3

圖5是根據一示例性實施例示出的一種用於視頻搜索的裝置1900的方塊圖。例如,裝置1900可以被提供為一服務器。參照圖5,裝置1900包括處理組件1922,其進一步包括一個或多個處理器,以及由記憶體1932所代表的存儲器資源,用於存儲可由處理組件1922的執行的指令,例如應用程式。記憶體1932中存儲的應用程式可以包括一個或一個以上的每一個對應於一組指令的模組。此外,處理組件1922被配置為執行指令,以執行上述方法。Fig. 5 is a block diagram of a device 1900 for video search according to an exemplary embodiment. For example, the device 1900 may be provided as a server. Referring to FIG. 5, the device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by the memory 1932, for storing instructions executable by the processing component 1922, such as an application program. The application programs stored in the memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the method described above.

裝置1900還可以包括一個電源組件1926被配置為執行裝置1900的電源管理,一個有線或無線網路介面1950被配置為將裝置1900連接到網路,和一個輸入輸出(I/O)介面1958。裝置1900可以操作基於存儲在記憶體1932的操作系統,例如Windows ServerTM,Mac OS XTM,UnixTM, LinuxTM,FreeBSDTM或類似。The device 1900 may further include a power module 1926 configured to perform power management of the device 1900, a wired or wireless network interface 1950 configured to connect the device 1900 to a network, and an input / output (I / O) interface 1958. The device 1900 can operate based on an operating system stored in the memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.

在示例性實施例中,還提供了一種非揮發性計算機可讀存儲介質,例如包括計算機程式指令的記憶體1932,上述計算機程式指令可由裝置1900的處理組件1922執行以完成上述方法。In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, and the computer program instructions may be executed by the processing component 1922 of the device 1900 to complete the above method.

本公開可以是系統、方法和/或計算機程式產品。計算機程式產品可以包括計算機可讀存儲介質,其上載有用於使處理器實現本公開的各個方面的計算機可讀程式指令。The present disclosure may be a system, method, and / or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

計算機可讀存儲介質可以是可以保持和存儲由指令執行設備使用的指令的有形設備。計算機可讀存儲介質例如可以是但不限於電存儲設備、磁存儲設備、光存儲設備、電磁存儲設備、半導體存儲設備或者上述的任意合適的組合。計算機可讀存儲介質的更具體的例子(非窮舉的列表)包括:便攜式計算機盤、硬碟、隨機存取記憶體(RAM)、唯讀記憶體(ROM)、可擦式可程式唯讀記憶體(EPROM或閃存)、靜態隨機存取記憶體(SRAM)、便攜式壓縮盤唯讀記憶體(CD-ROM)、數位多功能盤(DVD)、隨身碟、軟碟、機械編碼設備、例如其上存儲有指令的打孔卡或凹槽內凸起結構、以及上述的任意合適的組合。這裡所使用的計算機可讀存儲介質不被解釋為瞬時信號本身,諸如無線電波或者其他自由傳播的電磁波、通過波導或其他傳輸媒介傳播的電磁波(例如,通過光纖電纜的光脈衝)、或者通過電線傳輸的電信號。The computer-readable storage medium may be a tangible device that can hold and store instructions used by the instruction execution device. The computer-readable storage medium may be, for example, but not limited to, an electric storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only Memory (EPROM or Flash), Static Random Access Memory (SRAM), Portable Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disk (DVD), USB Flash Drive, Floppy Disk, Mechanical Encoding Device, such as The perforated card or raised structure in the groove is stored thereon, and any suitable combination of the above. Computer-readable storage media used herein are not to be interpreted as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (for example, light pulses through fiber optic cables), or via electrical wires Electrical signal transmitted.

這裡所描述的計算機可讀程式指令可以從計算機可讀存儲介質下載到各個計算/處理設備,或者通過網路、例如網際網路、局域網、廣域網和/或無線網下載到外部計算機或外部存儲設備。網路可以包括銅傳輸電纜、光纖傳輸、無線傳輸、路由器、防火牆、交換機、網關計算機(Gateway)和/或邊緣服務器(Edge sever)。每個計算/處理設備中的網路適配卡或者網路介面從網路接收計算機可讀程式指令,並轉發該計算機可讀程式指令,以供存儲在各個計算/處理設備中的計算機可讀存儲介質中。The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to various computing / processing devices or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. . The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and / or edge servers. A network adapter card or network interface in each computing / processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for computer-readable storage in the respective computing / processing device Storage media.

用於執行本公開操作的計算機程式指令可以是彙編指令、指令集架構(ISA)指令、機器指令、機器相關指令、微代碼、韌體指令、狀態設置數據、或者以一種或多種編程語言的任意組合編寫的源代碼或目標代碼,所述編程語言包括面向對象的編程語言—諸如Smalltalk、C++等,以及常規的過程式編程語言—諸如“C”語言或類似的編程語言。計算機可讀程式指令可以完全地在用戶計算機上執行、部分地在用戶計算機上執行、作為一個獨立的軟體包執行、部分在用戶計算機上部分在遠程計算機上執行、或者完全在遠程計算機或服務器上執行。在涉及遠程計算機的情形中,遠程計算機可以通過任意種類的網路—包括局域網(LAN)或廣域網(WAN)—連接到用戶計算機,或者,可以連接到外部計算機(例如利用網際網路服務提供商來通過網際網路連接)。在一些實施例中,通過利用計算機可讀程式指令的狀態信息來個性化定製電子電路,例如可程式邏輯電路、現場可程式閘陣列(FPGA)或可程式邏輯陣列(PLA),該電子電路可以執行計算機可讀程式指令,從而實現本公開的各個方面。The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or any arbitrary one or more programming languages. Combining written source or object code, the programming languages include object-oriented programming languages—such as Smalltalk, C ++, and the like—and conventional procedural programming languages—such as the "C" language or similar programming languages. The computer-readable program instructions can be executed entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer, partly on a remote computer, or entirely on a remote computer or server carried out. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider) To connect via the Internet). In some embodiments, the electronic circuit is personalized by utilizing the state information of computer readable program instructions, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA). Computer-readable program instructions may be executed to implement various aspects of the present disclosure.

這裡參照根據本公開實施例的方法、裝置(系統)和計算機程式產品的流程圖和/或方塊圖描述了本公開的各個方面。應當理解,流程圖和/或方塊圖的每個方塊以及流程圖和/或方塊圖中各方塊的組合,都可以由計算機可讀程式指令實現。Various aspects of the present disclosure are described herein with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each block of the flowchart and / or block diagram, and combinations of blocks in the flowchart and / or block diagram, can be implemented by computer-readable program instructions.

這些計算機可讀程式指令可以提供給通用計算機、專用計算機或其它可程式數據處理裝置的處理器,從而生產出一種機器,使得這些指令在通過計算機或其它可程式數據處理裝置的處理器執行時,產生了實現流程圖和/或方塊圖中的一個或多個方塊中規定的功能/動作的裝置。也可以把這些計算機可讀程式指令存儲在計算機可讀存儲介質中,這些指令使得計算機、可程式數據處理裝置和/或其他設備以特定方式工作,從而,存儲有指令的計算機可讀介質則包括一個製造品,其包括實現流程圖和/或方塊圖中的一個或多個方塊中規定的功能/動作的各個方面的指令。These computer-readable program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, or other programmable data processing device, thereby producing a machine that when executed by a processor of a computer or other programmable data processing device, Means are generated to implement the functions / acts specified in one or more of the blocks in the flowcharts and / or block diagrams. These computer-readable program instructions may also be stored in a computer-readable storage medium. These instructions cause a computer, a programmable data processing device, and / or other devices to work in a specific manner. Thus, a computer-readable medium storing instructions includes: An article of manufacture comprising instructions for implementing various aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

也可以把計算機可讀程式指令加載到計算機、其它可程式數據處理裝置、或其它設備上,使得在計算機、其它可程式數據處理裝置或其它設備上執行一系列操作步驟,以產生計算機實現的過程,從而使得在計算機、其它可程式數據處理裝置、或其它設備上執行的指令實現流程圖和/或方塊圖中的一個或多個方塊中規定的功能/動作。Computer-readable program instructions can also be loaded onto a computer, other programmable data processing device, or other device, so that a series of operating steps can be performed on the computer, other programmable data processing device, or other device to produce a computer-implemented process. So that the instructions executed on the computer, other programmable data processing device, or other equipment can implement the functions / actions specified in one or more blocks in the flowchart and / or block diagram.

附圖中的流程圖和方塊圖顯示了根據本公開的多個實施例的系統、方法和計算機程式產品的可能實現的體系架構、功能和操作。在這點上,流程圖或方塊圖中的每個方塊可以代表一個模組、程式段或指令的一部分,所述模組、程式段或指令的一部分包含一個或多個用於實現規定的邏輯功能的可執行指令。在有些作為替換的實現中,方塊中所標注的功能也可以以不同於附圖中所標注的順序發生。例如,兩個連續的方塊實際上可以基本並行地執行,它們有時也可以按相反的順序執行,這依所涉及的功能而定。也要注意的是,方塊圖和/或流程圖中的每個方塊、以及方塊圖和/或流程圖中的方塊的組合,可以用執行規定的功能或動作的專用的基於硬體的系統來實現,或者可以用專用硬體與計算機指令的組合來實現。The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a part of a module, segment, or instruction that contains one or more pieces of logic for implementing the specified logic. Functional executable instructions. In some alternative implementations, the functions marked in the blocks may also occur in a different order than those marked in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and sometimes they can also be executed in the reverse order, depending on the function involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs a specified function or action. Implementation, or it can be implemented with a combination of dedicated hardware and computer instructions.

以上已經描述了本公開的各實施例,上述說明是示例性的,並非窮盡性的,並且也不限於所披露的各實施例。在不偏離所說明的各實施例的範圍和精神的情況下,對於本技術領域的普通技術人員來說許多修改和變更都是顯而易見的。本文中所用術語的選擇,旨在最好地解釋各實施例的原理、實際應用或對市場中的技術改進,或者使本技術領域的其它普通技術人員能理解本文披露的各實施例。The embodiments of the present disclosure have been described above, the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the embodiments described. The terminology used herein is chosen to best explain the principles of the embodiments, practical applications or technical improvements in the market, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

S11~S14‧‧‧步驟 S11 ~ S14‧‧‧step

S141~S142‧‧‧步驟S141 ~ S142‧‧‧step

31‧‧‧獲取模組31‧‧‧Get Module

32‧‧‧計算模組32‧‧‧Computing Module

321‧‧‧第一計算子模組321‧‧‧first computing submodule

322‧‧‧第二計算子模組322‧‧‧Second Computing Submodule

323‧‧‧第三計算子模組323‧‧‧Third computing submodule

324‧‧‧第四計算子模組324‧‧‧Fourth calculation submodule

33‧‧‧排序模組33‧‧‧Sorting Module

34‧‧‧響應模組34‧‧‧ Response Module

341‧‧‧調整子模組341‧‧‧Adjust submodule

342‧‧‧響應子模組342‧‧‧Response submodule

1900‧‧‧裝置1900‧‧‧ device

1922‧‧‧處理組件1922‧‧‧Processing Components

1926‧‧‧電源組件1926‧‧‧Power Module

1932‧‧‧記憶體1932‧‧‧Memory

1950‧‧‧網路介面1950‧‧‧Interface

1958‧‧‧輸入輸出介面1958‧‧‧Input and output interface

包含在說明書中並且構成說明書的一部分的附圖與說明書一起示出了本公開的示例性實施例、特徵和方面,並且用於解釋本公開的原理。The accompanying drawings, which are incorporated in and constitute a part of the specification, together with the description, illustrate exemplary embodiments, features, and aspects of the disclosure and serve to explain the principles of the disclosure.

圖1示出根據本公開一實施例的視頻搜索方法的流程圖。FIG. 1 shows a flowchart of a video search method according to an embodiment of the present disclosure.

圖2示出根據本公開一實施例的視頻搜索方法步驟S14的一示例性的流程圖。FIG. 2 illustrates an exemplary flowchart of step S14 of a video search method according to an embodiment of the present disclosure.

圖3示出根據本公開一實施例的視頻搜索裝置的方塊圖。FIG. 3 illustrates a block diagram of a video search apparatus according to an embodiment of the present disclosure.

圖4示出根據本公開一實施例的視頻搜索裝置的一示例性的方塊圖。FIG. 4 illustrates an exemplary block diagram of a video search apparatus according to an embodiment of the present disclosure.

圖5是根據一示例性實施例示出的一種用於視頻搜索的裝置1900的方塊圖。Fig. 5 is a block diagram of a device 1900 for video search according to an exemplary embodiment.

Claims (16)

一種視頻搜索方法,其特徵在於,包括:: 在接收到視頻搜索請求的情況下,獲取所述視頻搜索請求對應的初步搜索結果; 計算所述初步搜索結果中各類型的視頻數據的分數; 根據各類型的視頻數據的分數,對各類型的視頻數據進行排序,得到排序結果;以及 根據所述排序結果響應所述視頻搜索請求。A video search method, comprising: when a video search request is received, obtaining a preliminary search result corresponding to the video search request; calculating a score of each type of video data in the preliminary search result; Scores of each type of video data, sort each type of video data to obtain a ranking result, and respond to the video search request according to the ranking result. 如請求項1所述的方法,其特徵在於,各類型的視頻數據包括以下至少一項:視頻、節目、自頻道和播單。The method according to claim 1, wherein each type of video data includes at least one of the following: video, program, self-channel, and broadcast. 如請求項1或2所述的方法,其特徵在於,計算所述初步搜索結果中各類型的視頻數據的分數,包括: 在各類型的視頻數據中包括視頻的情況下,根據以下至少一項計算所述視頻的分數:所述視頻與所述視頻搜索請求的相關性、所述視頻的上傳者與所述視頻搜索請求的相關性、所述視頻搜索請求對應的搜索用戶的用戶反饋信息、所述視頻的播放量、所述視頻的觀看完成比、所述視頻的發佈時間、所述視頻被收藏的次數、所述視頻的評論數量、所述視頻的彈幕數量和所述搜索用戶針對所述視頻的訂閱狀態。The method according to claim 1 or 2, wherein calculating a score of each type of video data in the preliminary search result includes: In a case where a video is included in each type of video data, according to at least one of the following Calculate the score of the video: the relevance of the video to the video search request, the relevance of the uploader of the video to the video search request, the user feedback information of the search user corresponding to the video search request, The video playback volume, the video completion ratio, the video release time, the number of times the video has been favorited, the number of comments on the video, the number of barrage of the video, and the search user The subscription status of the video. 如請求項1或2所述的方法,其特徵在於,計算所述初步搜索結果中各類型的視頻數據的分數,包括: 在各類型的視頻數據中包括節目的情況下,根據以下至少一項計算所述節目的分數:所述節目的實時搜索量、所述節目的播放量、所述節目與所述視頻搜索請求的相關性、所述節目對應的反饋信息、所述節目的發佈時間、所述節目的版權狀態和所述節目的站點信息。The method according to claim 1 or 2, wherein calculating a score of each type of video data in the preliminary search result includes: In a case where a program is included in each type of video data, according to at least one of the following Calculate the score of the program: the real-time search volume of the program, the playback volume of the program, the relevance of the program to the video search request, the feedback information corresponding to the program, the release time of the program, Copyright status of the program and site information of the program. 如請求項4所述的方法,其特徵在於,根據所述排序結果響應所述視頻搜索請求,包括: 根據所述排序結果中節目的排序以及節目的總數,調整所述節目在所述排序結果中的排序;以及 根據調整後的排序結果響應所述視頻搜索請求。The method according to claim 4, wherein responding to the video search request according to the ranking result includes: adjusting the ranking result of the program in the ranking result according to the ranking of the programs in the ranking result and the total number of programs. And a response to the video search request according to the adjusted ranking result. 如請求項1或2所述的方法,其特徵在於,計算所述初步搜索結果中各類型的視頻數據的分數,包括: 在各類型的視頻數據中包括自頻道的情況下,根據以下至少一項計算所述自頻道的分數:所述自頻道的頻道主的屬性、所述自頻道中各個視頻的分數、所述初步搜索結果中屬於所述自頻道的視頻的數量、所述自頻道的視頻總數以及所述視頻搜索請求與所述自頻道的相關性。The method according to claim 1 or 2, wherein calculating a score of each type of video data in the preliminary search result includes: in a case where each type of video data includes a self-channel, according to at least one of the following To calculate the score of the self-channel: the attribute of the channel owner of the self-channel, the score of each video in the self-channel, the number of videos belonging to the self-channel in the preliminary search results, the The total number of videos and the relevance of the video search request to the self-channel. 如請求項1或2所述的方法,其特徵在於,計算所述初步搜索結果中各類型的視頻數據的分數,包括: 在各類型的視頻數據中包括播單的情況下,根據以下至少一項計算所述播單的分數:所述播單的類型、所述播單的生成時間、所述播單對應的反饋信息和所述播單中各個視頻的分數。The method according to claim 1 or 2, wherein calculating a score of each type of video data in the preliminary search result includes: In a case where a broadcast order is included in each type of video data, according to at least one of the following The item calculates the score of the broadcast order: the type of the broadcast order, the generation time of the broadcast order, the feedback information corresponding to the broadcast order, and the score of each video in the broadcast order. 一種視頻搜索裝置,其特徵在於,包括: 獲取模組,用於在接收到視頻搜索請求的情況下,獲取所述視頻搜索請求對應的初步搜索結果; 計算模組,用於計算所述初步搜索結果中各類型的視頻數據的分數; 排序模組,用於根據各類型的視頻數據的分數,對各類型的視頻數據進行排序,得到排序結果;以及 響應模組,用於根據所述排序結果響應所述視頻搜索請求。A video search device is characterized by comprising: an acquisition module for acquiring a preliminary search result corresponding to the video search request when a video search request is received; a calculation module for calculating the preliminary search The score of each type of video data in the result; a sorting module for sorting each type of video data according to the score of each type of video data to obtain a sorting result; and a response module for sorting according to the sorted result Responding to the video search request. 如請求項8所述的裝置,其特徵在於,各類型的視頻數據包括以下至少一項:視頻、節目、自頻道和播單。The device according to claim 8, wherein each type of video data includes at least one of the following: video, program, self-channel, and playlist. 如請求項8或9所述的裝置,其特徵在於,所述計算模組包括: 第一計算子模組,用於在各類型的視頻數據中包括視頻的情況下,根據以下至少一項計算所述視頻的分數:所述視頻與所述視頻搜索請求的相關性、所述視頻的上傳者與所述視頻搜索請求的相關性、所述視頻搜索請求對應的搜索用戶的用戶反饋信息、所述視頻的播放量、所述視頻的觀看完成比、所述視頻的發佈時間、所述視頻被收藏的次數、所述視頻的評論數量、所述視頻的彈幕數量和所述搜索用戶針對所述視頻的訂閱狀態。The device according to claim 8 or 9, wherein the calculation module includes: a first calculation sub-module, configured to calculate a video according to at least one of the following when a video is included in each type of video data: The score of the video: the relevance of the video to the video search request, the relevance of the uploader of the video to the video search request, the user feedback information of the search user corresponding to the video search request, the The video playback amount, the video completion ratio, the video release time, the number of times the video has been favorited, the number of comments on the video, the number of barrage of the video, and the search users The video's subscription status. 如請求項8或9所述的裝置,其特徵在於,所述計算模組包括: 第二計算子模組,用於在各類型的視頻數據中包括節目的情況下,根據以下至少一項計算所述節目的分數:所述節目的實時搜索量、所述節目的播放量、所述節目與所述視頻搜索請求的相關性、所述節目對應的反饋信息、所述節目的發佈時間、所述節目的版權狀態和所述節目的站點信息。The device according to claim 8 or 9, wherein the calculation module includes: a second calculation sub-module, configured to calculate a program according to at least one of the following when a program is included in each type of video data: The score of the program: the real-time search volume of the program, the playback volume of the program, the correlation between the program and the video search request, the feedback information corresponding to the program, the release time of the program, the The copyright status of the program and the site information of the program are described. 如請求項11所述的裝置,其特徵在於,所述響應模組包括: 調整子模組,用於根據所述排序結果中節目的排序以及節目的總數,調整所述節目在所述排序結果中的排序;以及 響應子模組,用於根據調整後的排序結果響應所述視頻搜索請求。The device according to claim 11, wherein the response module comprises: an adjustment sub-module configured to adjust the program in the ranking result according to the ranking of the programs in the ranking result and the total number of programs. And a response submodule for responding to the video search request according to the adjusted ranking result. 如請求項8或9所述的裝置,其特徵在於,所述計算模組包括: 第三計算子模組,用於在各類型的視頻數據中包括自頻道的情況下,根據以下至少一項計算所述自頻道的分數:所述自頻道的頻道主的屬性、所述自頻道中各個視頻的分數、所述初步搜索結果中屬於所述自頻道的視頻的數量、所述自頻道的視頻總數以及所述視頻搜索請求與所述自頻道的相關性。The device according to claim 8 or 9, wherein the calculation module includes: a third calculation sub-module, configured to include a self-channel in each type of video data, according to at least one of the following Calculate the score of the self-channel: the attribute of the channel owner of the self-channel, the score of each video in the self-channel, the number of videos belonging to the self-channel in the preliminary search results, the video of the self-channel The total number and the relevance of the video search request to the self-channel. 如請求項8或9所述的裝置,其特徵在於,所述計算模組包括: 第四計算子模組,用於在各類型的視頻數據中包括播單的情況下,根據以下至少一項計算所述播單的分數:所述播單的類型、所述播單的生成時間、所述播單對應的反饋信息和所述播單中各個視頻的分數。The device according to claim 8 or 9, wherein the calculation module includes: a fourth calculation sub-module, configured to include a playlist in each type of video data, according to at least one of the following Calculate the score of the broadcast order: the type of the broadcast order, the generation time of the broadcast order, the feedback information corresponding to the broadcast order, and the score of each video in the broadcast order. 一種視頻搜索裝置,其特徵在於,包括: 處理器; 用於存儲處理器可執行指令的記憶體;以及 其中,所述處理器被配置為執行請求項1至7中任意一項所述的方法。A video search device, comprising: a processor; a memory for storing processor-executable instructions; and wherein the processor is configured to execute the method according to any one of claims 1 to 7 . 一種非揮發性計算機可讀存儲介質,其上存儲有計算機程式指令,其特徵在於,所述計算機程式指令被處理器執行時實現請求項1至7中任意一項所述的方法。A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that when the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
TW107107592A 2017-05-24 2018-03-07 Video search method and device TWI676391B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710373863.7A CN108932245A (en) 2017-05-24 2017-05-24 Video searching method and device
??201710373863.7 2017-05-24

Publications (2)

Publication Number Publication Date
TW201901492A true TW201901492A (en) 2019-01-01
TWI676391B TWI676391B (en) 2019-11-01

Family

ID=64396128

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107107592A TWI676391B (en) 2017-05-24 2018-03-07 Video search method and device

Country Status (3)

Country Link
CN (1) CN108932245A (en)
TW (1) TWI676391B (en)
WO (1) WO2018214493A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112256915A (en) * 2020-09-29 2021-01-22 当趣网络科技(杭州)有限公司 Search processing method and device suitable for split screen, electronic equipment and medium
CN113449145B (en) * 2021-06-29 2023-11-10 乐视云网络技术(北京)有限公司 Video search result ranking adjustment method, device, electronic equipment and computer readable storage medium
CN113836350B (en) * 2021-09-23 2024-02-27 深圳绿米联创科技有限公司 Video retrieval method, system, device, storage medium and electronic equipment

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739416A (en) * 2008-11-04 2010-06-16 未序网络科技(上海)有限公司 Method for sequencing multi-index comprehensive weight video
CN102880609A (en) * 2011-07-13 2013-01-16 北京百度网讯科技有限公司 Equipment and method for providing search results corresponding to query sequences
US8688713B1 (en) * 2012-03-22 2014-04-01 Google Inc. Resource identification from organic and structured content
CN102880712B (en) * 2012-10-08 2015-07-22 合一网络技术(北京)有限公司 Method and system for sequencing searched network videos
TW201421994A (en) * 2012-11-21 2014-06-01 Hon Hai Prec Ind Co Ltd Video searching system and method
CN103092958A (en) * 2013-01-18 2013-05-08 深圳市龙视传媒有限公司 Display method and device for search result
CN104636366B (en) * 2013-11-11 2020-06-02 腾讯科技(深圳)有限公司 Method and device for acquiring search result queue
US10102285B2 (en) * 2014-08-27 2018-10-16 International Business Machines Corporation Consolidating video search for an event
CN104462573B (en) * 2014-12-29 2019-04-12 北京奇艺世纪科技有限公司 A kind of video search result methods of exhibiting and device
CN106033417B (en) * 2015-03-09 2020-07-21 深圳市腾讯计算机系统有限公司 Method and device for sequencing series of video search
US10387431B2 (en) * 2015-08-24 2019-08-20 Google Llc Video recommendation based on video titles
CN105183897B (en) * 2015-09-29 2018-09-11 北京奇艺世纪科技有限公司 A kind of method and system of video search sequence
CN105373600B (en) * 2015-10-30 2019-02-22 北京奇艺世纪科技有限公司 Video broadcasts single sequence method and device

Also Published As

Publication number Publication date
WO2018214493A1 (en) 2018-11-29
CN108932245A (en) 2018-12-04
TWI676391B (en) 2019-11-01

Similar Documents

Publication Publication Date Title
US10650861B2 (en) Video summarization and collaboration systems and methods
CN110012302B (en) Live network monitoring method and device and data processing method
US9913001B2 (en) System and method for generating segmented content based on related data ranking
US9684656B2 (en) Creating personalized and continuous playlists for a content sharing platform based on user history
US9002175B1 (en) Automated video trailer creation
JP2021103543A (en) Use of machine learning for recommending live-stream content
US20140245334A1 (en) Personal videos aggregation
US9996224B2 (en) Methods, systems, and media for creating and updating a group of media content items
CN104504059A (en) Multimedia resource recommending method
TWI676391B (en) Video search method and device
CN111279709A (en) Providing video recommendations
TWI678922B (en) Method and device for recommending multimedia resources
KR20170120661A (en) Algorithmic identification of appropriate content for children without human intervention
CN108540860B (en) Video recall method and device
CN114845149B (en) Video clip method, video recommendation method, device, equipment and medium
WO2018001223A1 (en) Playlist recommending method and device
US11977592B2 (en) Targeted crawler to develop and/or maintain a searchable database of media content across multiple content providers
US20230164369A1 (en) Event progress detection in media items
US20170308927A1 (en) Systems and methods for identifying content segments to promote via an online platform
US10635676B2 (en) Algorithmic radio for arbitrary textual queries
KR102361379B1 (en) Identifying videos with inappropriate content by processing search logs
US10671616B1 (en) Selectively modifying scores of youth-oriented content search results
CN110996177B (en) Video recommendation method, device and equipment for video-on-demand cinema
CN110909206B (en) Method and device for outputting information
US11727046B2 (en) Media item matching using search query analysis