Multimedia resource aggregation method and device, electronic equipment and readable storage medium
By acquiring the title and attribute information of multimedia resources, calculating the matching score, and determining the threshold, the problem of low accuracy in multimedia resource aggregation is solved, achieving more accurate resource aggregation and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN TCL NEW-TECH CO LTD
- Filing Date
- 2022-08-31
- Publication Date
- 2026-05-12
AI Technical Summary
Existing methods for aggregating multimedia resources have low accuracy and struggle to accurately combine multimedia resources from different sources.
By acquiring the multimedia resources and multimedia libraries to be aggregated, extracting the titles and attribute information to be matched, filtering out the candidate resource set that matches the titles to be matched, calculating the matching score based on the attribute information of the candidate resource set and the attribute information to be matched, determining the matching threshold, and aggregating the multimedia resources to be aggregated into the candidate resource set that is equal to or greater than the matching threshold.
It improves the accuracy of multimedia resource aggregation, ensuring that the same multimedia resources are aggregated into the correct resource set, thus enhancing the user experience.
Smart Images

Figure CN117131212B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of multimedia resource technology, specifically to a multimedia resource aggregation method, apparatus, electronic device, and readable storage medium, wherein the readable storage medium is a computer-readable storage medium. Background Technology
[0002] With the development of the Internet, there are more and more multimedia resources online, and the platforms from which these resources originate are also increasing. For example, the same TV series can originate from both iQiyi and Youku.
[0003] To allow users to clearly identify the source of each multimedia resource, multimedia resources from different sources are aggregated. However, the accuracy of current aggregation methods is relatively low. Summary of the Invention
[0004] This application provides a multimedia resource aggregation method, apparatus, electronic device, and readable storage medium, which can solve the technical problem of low accuracy in multimedia resource aggregation.
[0005] A multimedia resource aggregation method, comprising:
[0006] Obtain the multimedia resources and multimedia libraries to be aggregated, and extract the titles and attribute information to be matched from the multimedia resources to be aggregated.
[0007] Obtain the set of candidate resources in the multimedia library that match the title to be matched.
[0008] Based on the attribute information of the above candidate resource set and the above attribute information to be matched, the matching score of the above candidate resource set is determined;
[0009] Determine the types of the multimedia resources to be aggregated, and determine the matching threshold based on the types of the multimedia resources to be aggregated;
[0010] The multimedia resources to be aggregated are aggregated into the target resource set to obtain the aggregation result of the multimedia resources to be aggregated. The target resource set is the candidate resource set corresponding to the matching score that is equal to or greater than the matching threshold.
[0011] Accordingly, embodiments of this application provide a multimedia resource aggregation device, including:
[0012] The information acquisition module is used to acquire multimedia resources and multimedia libraries to be aggregated, and to extract the titles and attribute information to be matched from the multimedia resources to be aggregated.
[0013] The resource acquisition module is used to acquire the set of candidate resources in the multimedia library that match the title to be matched.
[0014] The score determination module is used to determine the matching score of the candidate resource set based on the attribute information of the candidate resource set and the attribute information to be matched.
[0015] The threshold determination module is used to determine the type of the multimedia resources to be aggregated and to determine the matching threshold based on the type of the multimedia resources to be aggregated.
[0016] The resource aggregation module is used to aggregate the multimedia resources to be aggregated into the target resource set to obtain the aggregation result of the multimedia resources to be aggregated. The target resource set is the candidate resource set corresponding to the matching score that is equal to or greater than the matching threshold.
[0017] Furthermore, this application also provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to implement the multimedia resource aggregation method provided in this application.
[0018] Furthermore, embodiments of this application also provide a computer-readable storage medium storing a computer program adapted for loading by a processor to execute any of the multimedia resource aggregation methods provided in embodiments of this application.
[0019] Furthermore, this application also provides a computer program product, including a computer program that, when executed by a processor, implements any of the multimedia resource aggregation methods provided in this application.
[0020] In this embodiment, the multimedia resources to be aggregated and the multimedia library are first obtained, and the titles to be matched and the attribute information to be matched of the multimedia resources to be aggregated are extracted. Next, a set of candidate resources corresponding to titles matching the titles to be matched is obtained from the multimedia library. Then, based on the attribute information and the attribute information to be matched of the candidate resource set, the matching score of the candidate resource set is determined. Next, the type of the multimedia resources to be aggregated is determined, and a matching threshold is determined based on the type of the multimedia resources to be aggregated. Finally, the multimedia resources to be aggregated are aggregated into a target resource set to obtain the aggregation result of the multimedia resources to be aggregated. The target resource set is the set of candidate resources corresponding to matching scores equal to or greater than the matching threshold.
[0021] In this embodiment, a set of candidate resources corresponding to titles matching the title to be matched is first selected from the multimedia library. Then, the matching score of the candidate resource set is determined based on the attribute information of the candidate resource set and the attribute information to be matched. Matching is performed using both title and attribute information to improve the accuracy of the matching score. Furthermore, the matching threshold varies depending on the type of multimedia resources to be aggregated, so as to more accurately find a set of candidate resources containing the same multimedia resources as the multimedia resources to be aggregated. This makes the aggregation result more accurate when the multimedia resources to be aggregated are aggregated to a set of candidate resources with a matching score equal to or greater than the matching threshold, thereby improving the accuracy of aggregating the same multimedia resources. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a flowchart illustrating the multimedia resource aggregation method provided in an embodiment of this application;
[0024] Figure 2 This is a supplementary page diagram illustrating the attribute information to be matched provided in the embodiments of this application;
[0025] Figure 3 This is a flowchart illustrating another multimedia resource aggregation method provided in an embodiment of this application;
[0026] Figure 4 This is a schematic diagram of the structure of the multimedia resource aggregation device provided in the embodiments of this application;
[0027] Figure 5 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0028] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0029] This application provides a multimedia resource aggregation method, apparatus, electronic device, and readable storage medium. The multimedia resource aggregation apparatus can be integrated into an electronic device, which may be a server or a terminal, etc.
[0030] The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), as well as big data and artificial intelligence platforms.
[0031] The terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. The terminal and the server can be connected directly or indirectly through wired or wireless communication, which is not limited herein.
[0032] Furthermore, in the embodiments of this application, "multiple" refers to two or more. The terms "first" and "second," etc., in the embodiments of this application are used for distinguishing descriptions and should not be construed as implying relative importance.
[0033] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.
[0034] In this embodiment, the description will be from the perspective of a multimedia resource aggregation device. To facilitate the explanation of the multimedia resource aggregation method of this application, the following will describe the multimedia resource aggregation device integrated into a server in detail, that is, the server will be used as the execution subject for detailed explanation.
[0035] Please see Figure 1 , Figure 1 This is a flowchart illustrating a multimedia resource aggregation method according to an embodiment of this application. The multimedia resource aggregation method may include:
[0036] S101. Obtain the multimedia resources and multimedia library to be aggregated, and extract the titles and attribute information to be matched from the multimedia resources to be aggregated.
[0037] The multimedia resources to be aggregated can include videos, movies, animations, and variety shows.
[0038] The title to be matched for the multimedia resources to be aggregated can be the original title of the multimedia resources to be aggregated, or it can be an alias of the multimedia resources to be aggregated, or it can be a standardized title of the multimedia resources to be aggregated. That is, the original title of the multimedia resources to be aggregated is standardized to obtain the standardized title of the multimedia resources to be aggregated.
[0039] For example, if the original title of the multimedia resource to be aggregated is "Peppa Pig Season 1 Chinese Version", then the standardized title of the multimedia resource to be aggregated can be "Peppa Pig # Season 1".
[0040] The matching attribute information of the multimedia resources to be aggregated may include the alias information, director information, actor information, playback area information, release time information, language information, and brief description information of the multimedia resources to be aggregated.
[0041] The terminal can periodically acquire multimedia resources and multimedia libraries to be aggregated, and extract the titles and attribute information to be matched for the multimedia resources to be aggregated. Alternatively, the terminal can acquire multimedia resources and multimedia libraries to be aggregated and extract the titles and attribute information to be matched for the multimedia resources to be aggregated when it receives an aggregation instruction. Or, the terminal can acquire multimedia resources and multimedia libraries to be aggregated and extract the titles and attribute information to be matched for the multimedia resources to be aggregated when it detects the existence of multimedia resources to be aggregated.
[0042] The method for obtaining the multimedia resources and multimedia library to be aggregated, and extracting the matching titles and matching attribute information of the multimedia resources to be aggregated, can be set according to the actual situation, and this embodiment does not limit it here.
[0043] S102. Obtain the set of candidate resources in the multimedia library that match the title to be matched.
[0044] The multimedia library comprises multiple resource sets, each containing at least one multimedia resource. After receiving a title to be matched, the terminal can match the title with the titles of the resource sets in the multimedia library to find candidate resource sets that match the title to be matched.
[0045] The set of candidate resources corresponding to the title that matches the title to be matched may include the same multimedia resources as the multimedia resources to be aggregated.
[0046] It should be understood that when a resource collection contains only one multimedia resource, the title and attribute information of the multimedia resource in the resource collection can be directly used as the title and attribute information of the resource collection. When a resource collection contains only multiple multimedia resources, the title and attribute information of the resource collection can be determined based on the title and attribute information of each multimedia resource in the resource collection.
[0047] It should be noted that when the title to be matched is a standardized title, it can be matched with the first standardized title of the resource set. If no first standardized title matching the title to be matched is found, the alias of the multimedia resource to be aggregated is used as the title to be matched, and the title to be matched is matched with the first standardized title of the resource set. If no first standardized title matching the title to be matched is found, the standardized title of the multimedia resource to be aggregated is used as the title to be matched, and the title to be matched is matched with the first alias of the resource set, thereby finding the candidate resource set corresponding to the title matching the title to be matched.
[0048] If the standardized title of the multimedia resource to be aggregated is used as the title to be matched, and the title to be matched is matched with the first alias of the resource set, and no candidate resource set corresponding to the title matching the title to be matched is found, then the series title of the multimedia resource to be aggregated can be used for matching. The series title refers to the title (i.e., series name) of the multimedia resource in the same series as the multimedia resource to be aggregated. For example, if the multimedia resource to be aggregated is Despicable Me 1, the name of the multimedia resource in the same series as the multimedia resource to be aggregated can be Despicable Me 2.
[0049] If matching the series of titles of the multimedia resources to be aggregated still fails to find a candidate resource set that matches the title to be matched, then the multimedia resources to be aggregated can be directly aggregated into a resource set separately. That is, the resource set of the multimedia resources to be aggregated only includes the multimedia resources to be aggregated.
[0050] S103. Determine the matching score of the candidate resource set based on the attribute information of the candidate resource set and the attribute information to be matched.
[0051] Since the candidate resource set contains multiple attribute information, we can first determine the matching degree between each attribute information of the candidate resource set and each attribute information to be matched, and then determine the matching score of the candidate resource set based on each matching degree.
[0052] For example, if the candidate resource set includes Director 1 attribute information and Release Time 2 attribute information, and the attribute information to be matched includes Director 1 attribute information to be matched and Release Time 3 attribute information to be matched, then first determine the matching degree between Director 1 attribute information and Director 1 attribute information to be matched, and determine the matching degree between Release Time 2 attribute information and Release Time 3 attribute information to be matched. Then, add the matching degree between Director 1 attribute information and Director 1 attribute information to be matched and the matching degree between Release Time 2 attribute information and Release Time 3 attribute information to match to obtain the matching score of the candidate resource set.
[0053] In some embodiments, determining the matching score of the candidate resource set based on the attribute information of the candidate resource set and the attribute information to be matched includes:
[0054] Determine the candidate fields corresponding to the attribute information of the candidate resource set;
[0055] Determine the correspondence between candidate fields and the fields corresponding to the attribute information to be matched;
[0056] The matching score of the candidate resource set is determined based on the attribute information, correspondence, and attribute information to be matched of the candidate resource set.
[0057] For example, if the attribute information in the candidate resource set is the Director 1 attribute information, then the candidate field corresponding to the Director 1 attribute information is Director.
[0058] In this embodiment, when the correspondence between the candidate fields corresponding to the candidate resource set and the fields of the attribute information to be matched is different, the matching scores of the candidate resource set obtained based on the attribute information, correspondence, and attribute information to be matched are also different, thereby improving the accuracy of the matching scores of the candidate resource set.
[0059] In other embodiments, the matching score of the candidate resource set is determined based on the attribute information, correspondence, and attribute information to be matched of the candidate resource set, including:
[0060] Filter out the first correspondence relationship where the corresponding field exists and the second correspondence relationship where the corresponding field does not exist from the correspondence relationship;
[0061] Based on the attribute information corresponding to the candidate fields in the first correspondence and the attribute information to be matched, determine the first matching score of the candidate resource set in the first correspondence;
[0062] Obtain the first target value, and determine the second matching score corresponding to the candidate resource set in the second correspondence based on the first target value;
[0063] The matching score of the candidate resource set is determined based on the first matching score and the second matching score.
[0064] For example, if the candidate resource set contains candidate field a and candidate field b, and the attribute information to be matched contains field a, field b, and field c, then the correspondences include candidate field a-field a, candidate field b-field b, and -field c. The first correspondence is candidate field a-field a and candidate field b-field b, and the second correspondence is -field c.
[0065] Specifically, determining the first matching score of the candidate resource set in the first correspondence relationship based on the attribute information corresponding to the candidate fields and the attribute information to be matched in the first correspondence relationship can be achieved by calculating the first similarity between the attribute information corresponding to the candidate fields and the attribute information to be matched in the first correspondence relationship, and then determining the first matching score based on the first similarity.
[0066] Alternatively, determining the first matching score of the candidate resource set in the first correspondence relationship based on the attribute information corresponding to the candidate fields and the attribute information to be matched in the first correspondence relationship may also include:
[0067] Based on the attribute information corresponding to the candidate fields in the first correspondence relationship and the attribute information to be matched, determine the number of matches of the attribute information that matches the attribute information to be matched in the candidate fields of the first correspondence relationship.
[0068] Based on the number of matches, determine the first matching score of the candidate resource set in the first correspondence.
[0069] For example, the first correspondence includes candidate field a-field a and candidate field b-field b. If the attribute information corresponding to candidate field a matches the attribute information to be matched corresponding to field a, and the attribute information corresponding to candidate field b does not match the attribute information to be matched corresponding to field b, then the number of matches is 1.
[0070] The method for determining whether attribute information and the attribute information to be matched can be set according to the actual situation.
[0071] For example, when the candidate field and field are aliases, a match is determined when the attribute information and the attribute information to be matched are identical. When the candidate field and field are directors, a match is determined when there is a director attribute information that is identical to the director attribute information to be matched. When the candidate field and field are actors, a match is determined when the number of actor attribute information that is identical to the actor attribute information to be matched is greater than the preset number of actors. When the candidate field and field are regions, a match is determined when there is partial similarity between the region attribute information and the region attribute information to be matched.
[0072] When both candidate fields are publication time, a match is determined if the difference between the publication time attribute information and the publication time attribute information to be matched is within a preset time range. When both candidate fields are description, a match is determined if the similarity between the description attribute information and the description attribute information to be matched is greater than a preset description similarity.
[0073] After obtaining the number of matches, the server can use the number of matches as the first match score. Alternatively, it can find the second target value corresponding to the candidate field in the first correspondence, and then multiply the second target value by the number of matches to obtain the first match score.
[0074] The second target value can be determined based on the type of multimedia resource to be aggregated. For example, when the type of multimedia resource to be aggregated is animation, the second target value can be set to 1.
[0075] It should be noted that the calculation method for the second matching score can be the same as that for the first matching score; that is, the calculation process for the second matching score can be as follows:
[0076] Determine the number of target fields for which no corresponding field exists in the second correspondence;
[0077] Based on the number of targets and the first target value, determine the second matching score corresponding to the candidate resource set in the second correspondence.
[0078] The target field can be a candidate field, or it can be a field corresponding to the information to be matched. For example, if the second correspondence is -field c and candidate field d-, then the target field can be field c and candidate field d, and the number of targets is 2.
[0079] In this embodiment, instead of directly ignoring target fields that do not have corresponding fields, the number of target fields that do not have corresponding fields is determined. Then, based on the number of target fields and the first target value, the second matching score of the candidate resource set is determined. That is, the second matching score is not 0, so that the matching score can be determined based on the target fields that do not have corresponding fields, thereby improving the accuracy of the matching score.
[0080] However, when the number of targets is large, the second matching score is large, resulting in a small improvement in the accuracy of the matching score. Therefore, in order to improve the accuracy of the matching score, in some embodiments, the second matching score corresponding to the candidate resource set in the second correspondence is determined based on the first target value, including:
[0081] Determine the number of target fields for which no corresponding field exists in the second correspondence;
[0082] Based on the number of targets and the first target value, determine the candidate scores corresponding to the candidate resource set in the second correspondence;
[0083] If the candidate score is less than or equal to the preset score, the candidate score will be used as the second matching score of the candidate resource set in the second correspondence.
[0084] If the candidate score is greater than the preset score, the preset score will be used as the second matching score of the candidate resource set in the second correspondence.
[0085] In this embodiment, when the candidate score is greater than the preset score, the preset score is directly used as the second matching score. That is, in this embodiment, the second matching score has an upper limit, so that the proportion of the second matching score in the matching score will not exceed the preset range, thereby improving the accuracy of the matching score.
[0086] After obtaining the first matching score and the second matching score, the server adds the first matching score and the second matching score together to obtain the matching score.
[0087] It should be understood that, in order to avoid having too many targets in the target field, after obtaining the multimedia resources to be aggregated, the terminal can display the multimedia resources to be aggregated so that the attribute information of the multimedia resources to be aggregated can be supplemented manually.
[0088] For example, such as Figure 2 As shown in Figure 201, in Figure 2 The system displays multimedia resources to be aggregated from different source platforms. Then, in response to a trigger operation on one of the source platforms' multimedia resources to be aggregated, the terminal displays, as shown below. Figure 2 Page 202 is shown in the middle. Figure 2 The horizontal line in 201 indicates that something needs to be added.
[0089] S104. Determine the type of multimedia resources to be aggregated, and determine the matching threshold based on the type of multimedia resources to be aggregated.
[0090] After obtaining the multimedia resources to be aggregated, the server can first determine the type of the multimedia resources and then look up the matching threshold corresponding to the type of the multimedia resources in a preset mapping table. The matching thresholds for different types can be different. For example, when the type of the multimedia resources to be aggregated is a movie or TV series, the matching threshold can be the third target value; when the type of the multimedia resources to be aggregated is anime or variety show, the matching threshold can be the fourth target value, where the third target value is greater than the fourth target value.
[0091] The third and fourth target values can be set according to the actual situation. For example, the third target value can be set to 4 and the fourth target value can be set to 3. This embodiment does not limit this.
[0092] S105. Aggregate the multimedia resources to be aggregated into the target resource set to obtain the aggregation result of the multimedia resources to be aggregated. The target resource set is the candidate resource set corresponding to the matching score that is equal to or greater than the matching threshold.
[0093] The candidate resource set corresponding to a matching score equal to or greater than the matching threshold includes the same multimedia resources as the multimedia resources to be aggregated. Therefore, after obtaining the matching scores of the candidate resource set, the server can directly aggregate the multimedia resources to be aggregated into the candidate resource set corresponding to a matching score equal to or greater than the matching threshold.
[0094] This application embodiment can aggregate identical multimedia resources into a single resource set. This application embodiment can be applied in recommendation scenarios, such as recommending target multimedia resources to users through an aggregation application. The server can first determine the source platform of the target multimedia resources and aggregate target multimedia resources from different source platforms so that the aggregation application can recommend target multimedia resources to users and display the source platform of the target multimedia resources.
[0095] Alternatively, if a target multimedia resource is recommended to a user through an aggregation application, the server can first determine multiple versions of the target multimedia resource and aggregate the different versions of the target multimedia resource so that the aggregation application can recommend the target multimedia resource to the user and display the different versions of the target multimedia resource.
[0096] It should be noted that when there are multiple matching scores equal to or greater than the matching threshold, the matching scores equal to or greater than the matching threshold can be filtered again according to the filtering rules.
[0097] For example, the filtering rules could include selecting based on the source platform of the target resource set. In this case, the multimedia to be aggregated can be aggregated into the target resource set corresponding to the target source platform, so that when a user triggers a multimedia resource in the resource set to be aggregated, they can be redirected to the target source platform for playback.
[0098] This involves selecting the target source platform with the highest score from various source platforms. The score of a source platform can be determined based on its popularity. For example, if source platform 1 has a score of 100, source platform 2 has a score of 90, and source platform 3 has a score of 80, and target resource set a comes from source platform 2 and target resource set b comes from source platform 3, then the multimedia resources to be aggregated will be aggregated into target resource set a.
[0099] Alternatively, when multimedia resources in a target resource set may come from different source platforms, the number of multimedia resources from the same source platform in the target resource set can be counted, and the source platform corresponding to the largest number can be used as the target source platform.
[0100] For example, if the target resource set a includes 100 multimedia resources, of which 50 multimedia resources are from source platform 1, 40 multimedia resources are from source platform 2, and 10 multimedia resources are from source platform 3, then source platform 1 will be taken as the target source platform.
[0101] In some embodiments, the multimedia resources to be aggregated are aggregated into a target resource set to obtain the aggregation result of the multimedia resources to be aggregated. The target resource set is a set of candidate resources corresponding to a matching score equal to or greater than a matching threshold, including:
[0102] From the candidate resource set, select the candidate resource set corresponding to the matching score that is equal to or greater than the matching threshold to obtain each target resource set;
[0103] Obtain the weights of each target resource set;
[0104] The target matching score of the target resource set is determined based on the weight of the target resource set and the matching score corresponding to the target resource set.
[0105] The multimedia resources to be aggregated are aggregated into the target resource set corresponding to the highest target matching score, thus obtaining the aggregation result of the multimedia resources to be aggregated.
[0106] The weights of the target resource set can be set according to the source platforms of the multimedia resources in the target resource set. Each source platform corresponds to a different initial weight. The number of multimedia resources from the same source platform in the target resource set is counted, and the source platform corresponding to the largest number is taken as the target source platform. The initial weight corresponding to the target source platform is taken as the weight of the target resource set.
[0107] After obtaining the weight of the target resource set, the server can multiply the weight of the target resource set by the matching score corresponding to the target resource set to obtain the target matching score.
[0108] In this embodiment, when there are multiple matching scores equal to or greater than the matching threshold, the target resource set is filtered again by the initial weight of the source platform. The initial weight of the source platform can be determined according to the popularity of the source platform. For example, the higher the popularity, the greater the initial weight of the source platform, so that the aggregation result of the multimedia resources to be aggregated can better meet the user's needs and improve the user experience.
[0109] When there are multiple maximum target matching scores, the filtering rules can also include filtering the target resource set again based on the update time of the target resource set. In this case, the multimedia resources to be aggregated are aggregated into the target resource set corresponding to the maximum target matching score, resulting in the aggregation result of the multimedia resources to be aggregated, including:
[0110] If the maximum target matching score includes multiple targets, then determine the update time of the target resource set corresponding to the maximum target matching score;
[0111] The multimedia resources to be aggregated are aggregated into the target resource set with the latest update time in the target matching score, thus obtaining the resource set of the multimedia resources to be aggregated.
[0112] For example, if target resource set a is updated in 2012, target resource set b is updated in 2020, and target resource set c is updated in 2022, then the target resource set with the latest update time is target resource set c.
[0113] If there are multiple latest update times, the filtering rules can also include directly aggregating the multimedia resources to be aggregated to the target resource set with the highest matching score. If there are multiple highest matching scores, the filtering rules can also include directly aggregating the multimedia resources to be aggregated to the first target resource set or the last target resource set, where the first target resource set refers to the target resource set ranked first, and the last target resource set refers to the target resource set ranked last.
[0114] After obtaining the resource set of multimedia resources to be aggregated, the server can update the attribute information of the resource set of multimedia resources to be aggregated based on the attribute information of each multimedia resource in the resource set.
[0115] For example, the attribute information of each multimedia resource can be its publication time attribute. The latest publication time attribute is used as the publication time attribute of the resource set to be aggregated. After obtaining the resource set, if the publication time attribute of a resource to be aggregated is later than the publication time attribute of the resource set, then the publication time attribute of the resource to be aggregated is used as the publication time attribute of the resource set, thus updating the attribute information of the resource set.
[0116] Alternatively, the attribute information that appears most frequently in the same field can be used as the attribute information of the resource set of multimedia resources to be aggregated. After obtaining the resource set of multimedia resources to be aggregated, determine the number of times the attribute information of each multimedia resource in the resource set appears in the same field, and use the attribute information that appears most frequently as the corresponding attribute information of the resource set of multimedia resources to be aggregated in that field.
[0117] For example, if the most multimedia resources were released in 2012, then the release time attribute information for the resource set to be aggregated would be 2012. Similarly, if the most multimedia resources are on the children's channel, then the media channel attribute information for the resource set to be aggregated would be children's.
[0118] In other embodiments, the server can also aggregate the multimedia resources to be aggregated through a manual aggregation operation. Optionally, the server displays a manual aggregation page, which includes the multimedia resources to be aggregated. Then, in response to a trigger operation on the multimedia resources to be aggregated, the server displays a resource aggregation page for the multimedia resources to be aggregated corresponding to the trigger operation. The resource aggregation page includes a resource set. In response to a confirmation operation on the resource set, the server aggregates the multimedia resources to be aggregated into the resource set corresponding to the confirmation operation.
[0119] As described above, in this embodiment, the following steps are taken: First, the multimedia resources to be aggregated and the multimedia library are obtained, and the titles to be matched and the attribute information to be matched of the multimedia resources to be aggregated are extracted. Next, a set of candidate resources corresponding to titles matching the titles to be matched is obtained from the multimedia library. Then, based on the attribute information and the attribute information to be matched of the candidate resource set, the matching score of the candidate resource set is determined. Next, the type of the multimedia resources to be aggregated is determined, and a matching threshold is determined based on the type of the multimedia resources to be aggregated. Finally, the multimedia resources to be aggregated are aggregated into a target resource set to obtain the aggregation result of the multimedia resources to be aggregated. The target resource set is the set of candidate resources corresponding to matching scores equal to or greater than the matching threshold.
[0120] In this embodiment, a set of candidate resources corresponding to titles matching the title to be matched is first selected from the multimedia library. Then, the matching score of the candidate resource set is determined based on the attribute information of the candidate resource set and the attribute information to be matched. Matching is performed using both title and attribute information to improve the accuracy of the matching score. Furthermore, the matching threshold varies depending on the type of multimedia resources to be aggregated, so as to more accurately find a set of candidate resources containing the same multimedia resources as the multimedia resources to be aggregated. This makes the aggregation result more accurate when the multimedia resources to be aggregated are aggregated to a set of candidate resources with a matching score equal to or greater than the matching threshold, thereby improving the accuracy of aggregating the same multimedia resources.
[0121] The following reference Figure 3 This application describes another multimedia resource aggregation method provided in its embodiments.
[0122] The server retrieves and displays the multimedia resources to be aggregated, allowing manual intervention to supplement the matching attribute information. Next, the server extracts the standardized titles of the multimedia resources and determines whether a manual aggregation operation has been detected. If such an operation is detected, the multimedia resources are aggregated using the manual aggregation method.
[0123] If no manual aggregation operation is performed, it is determined whether there is a candidate resource set corresponding to a title that matches the standardized title. If there is no candidate resource set corresponding to a title that matches the standardized title, it is determined whether there is a candidate resource set corresponding to a title that matches the series name of the multimedia resource to be aggregated. If not, the multimedia resource to be aggregated is aggregated into a separate resource set to obtain the resource set of the multimedia resource to be aggregated.
[0124] If there exists a candidate resource set corresponding to a title that matches the standardized title, or if there exists a candidate resource set corresponding to a title that matches the series name of the multimedia resource to be aggregated, then the matching score of each candidate resource set is calculated based on the matching attribute information of the multimedia resource to be aggregated and the attribute information of the candidate resource sets.
[0125] Determine if there exists a candidate resource set with a matching score greater than the matching threshold. If so, select the final resource set from the candidate resource set with a matching score greater than the matching threshold according to the filtering rules, and then aggregate the multimedia resources to be aggregated into the final resource set to obtain the resource set of multimedia resources to be aggregated.
[0126] If there is no candidate resource set with a matching score greater than the matching threshold, the multimedia resources to be aggregated will be aggregated into a separate resource set to obtain the resource set of multimedia resources to be aggregated.
[0127] To facilitate better implementation of the multimedia resource aggregation method provided in this application, this application also provides an apparatus based on the above-described multimedia resource aggregation method. The meanings of the terms used are the same as in the multimedia resource aggregation method described above, and specific implementation details can be found in the descriptions within the method embodiments.
[0128] For example, such as Figure 4 As shown, the multimedia resource aggregation device may include:
[0129] The information acquisition module 401 is used to acquire the multimedia resources and multimedia library to be aggregated, and to extract the titles and attribute information to be matched of the multimedia resources to be aggregated.
[0130] The resource acquisition module 402 is used to acquire a set of candidate resources in the multimedia library that match the title to be matched.
[0131] The score determination module 403 is used to determine the matching score of the candidate resource set based on the attribute information of the candidate resource set and the attribute information to be matched.
[0132] The threshold determination module 404 is used to determine the type of multimedia resources to be aggregated and to determine the matching threshold based on the type of multimedia resources to be aggregated.
[0133] The resource aggregation module 405 is used to aggregate the multimedia resources to be aggregated into the target resource set to obtain the aggregation result of the multimedia resources to be aggregated. The target resource set is the candidate resource set corresponding to the matching score that is equal to or greater than the matching threshold.
[0134] Optionally, the score determination module 403 is specifically used to perform:
[0135] Determine the candidate fields corresponding to the attribute information of the candidate resource set;
[0136] Determine the correspondence between candidate fields and the fields corresponding to the attribute information to be matched;
[0137] The matching score of the candidate resource set is determined based on the attribute information, correspondence, and attribute information to be matched of the candidate resource set.
[0138] Optionally, the score determination module 403 is specifically used to perform:
[0139] Filter out the first correspondence relationship where the corresponding field exists and the second correspondence relationship where the corresponding field does not exist from the correspondence relationship;
[0140] Based on the attribute information corresponding to the candidate fields in the first correspondence and the attribute information to be matched, determine the first matching score of the candidate resource set in the first correspondence;
[0141] Obtain the first target value, and determine the second matching score corresponding to the candidate resource set in the second correspondence based on the first target value;
[0142] The matching score of the candidate resource set is determined based on the first matching score and the second matching score.
[0143] Optionally, the score determination module 403 is specifically used to perform:
[0144] Based on the attribute information corresponding to the candidate fields in the first correspondence relationship and the attribute information to be matched, determine the number of matches of the attribute information that matches the attribute information to be matched in the candidate fields of the first correspondence relationship.
[0145] Based on the number of matches, determine the first matching score of the candidate resource set in the first correspondence.
[0146] Optionally, the score determination module 403 is specifically used to perform:
[0147] Determine the number of target fields for which no corresponding field exists in the second correspondence;
[0148] Based on the number of targets and the first target value, determine the candidate scores corresponding to the candidate resource set in the second correspondence;
[0149] If the candidate score is less than or equal to the preset score, the candidate score will be used as the second matching score of the candidate resource set in the second correspondence.
[0150] If the candidate score is greater than the preset score, the preset score will be used as the second matching score of the candidate resource set in the second correspondence.
[0151] Optionally, the resource aggregation module 405 is specifically used to perform:
[0152] From the candidate resource set, select the candidate resource set corresponding to the matching score that is equal to or greater than the matching threshold to obtain each target resource set;
[0153] Obtain the weights of each target resource set;
[0154] The target matching score of the target resource set is determined based on the weight of the target resource set and the matching score corresponding to the target resource set.
[0155] The multimedia resources to be aggregated are aggregated into the target resource set corresponding to the highest target matching score, thus obtaining the aggregation result of the multimedia resources to be aggregated.
[0156] Optionally, the resource aggregation module 405 is specifically used to perform:
[0157] If the maximum target matching score includes multiple targets, then determine the update time of the target resource set corresponding to the maximum target matching score;
[0158] The multimedia resources to be aggregated are aggregated into the target resource set with the latest update time in the target matching score, thus obtaining the resource set of the multimedia resources to be aggregated.
[0159] In practice, each of the above modules can be implemented as an independent entity or can be combined arbitrarily to be implemented as the same or several entities. For the specific implementation methods and corresponding beneficial effects of each of the above modules, please refer to the previous method embodiments, which will not be repeated here.
[0160] This application also provides an electronic device, which may be a server or a terminal, etc. Figure 5 As shown, it illustrates a structural schematic diagram of the electronic device involved in the embodiments of this application, specifically:
[0161] The electronic device may include components such as a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, a power supply 503, and an input unit 504. Those skilled in the art will understand that... Figure 5 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0162] The processor 501 is the control center of the electronic device, connecting various parts of the device via various interfaces and lines. It executes computer programs and / or modules stored in the memory 502, and calls data stored in the memory 502, to perform various functions and process data. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 501.
[0163] The memory 502 can be used to store computer programs and modules. The processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, computer programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
[0164] The electronic device also includes a power supply 503 that supplies power to various components. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 503 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0165] The electronic device may also include an input unit 504, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0166] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 501 in the electronic device loads the executable files corresponding to the processes of one or more computer programs into the memory 502 according to the following instructions, and the processor 501 runs the computer programs stored in the memory 502 to realize various functions, such as:
[0167] Obtain the multimedia resources and multimedia library to be aggregated, and extract the titles and attribute information to be matched from the multimedia resources to be aggregated;
[0168] Retrieve the set of candidate resources in the multimedia library that match the title to be matched;
[0169] The matching score of the candidate resource set is determined based on the attribute information of the candidate resource set and the attribute information to be matched.
[0170] Determine the type of multimedia resources to be aggregated, and determine the matching threshold based on the type of multimedia resources to be aggregated;
[0171] The multimedia resources to be aggregated are aggregated into the target resource set to obtain the aggregation result of the multimedia resources to be aggregated. The target resource set is the candidate resource set corresponding to the matching score that is equal to or greater than the matching threshold.
[0172] For details on the specific implementation methods and corresponding beneficial effects of the above operations, please refer to the detailed description of the multimedia resource aggregation method above, which will not be repeated here.
[0173] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by a computer program, or by a computer program controlling related hardware. The computer program can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0174] Therefore, embodiments of this application provide a computer-readable storage medium storing a computer program that can be loaded by a processor to execute the steps of any of the multimedia resource aggregation methods provided in embodiments of this application. For example, the computer program can execute the following steps:
[0175] Obtain the multimedia resources and multimedia library to be aggregated, and extract the titles and attribute information to be matched from the multimedia resources to be aggregated;
[0176] Retrieve the set of candidate resources in the multimedia library that match the title to be matched;
[0177] The matching score of the candidate resource set is determined based on the attribute information of the candidate resource set and the attribute information to be matched.
[0178] Determine the type of multimedia resources to be aggregated, and determine the matching threshold based on the type of multimedia resources to be aggregated;
[0179] The multimedia resources to be aggregated are aggregated into the target resource set to obtain the aggregation result of the multimedia resources to be aggregated. The target resource set is the candidate resource set corresponding to the matching score that is equal to or greater than the matching threshold.
[0180] For details on the specific implementation methods and corresponding beneficial effects of the above operations, please refer to the previous embodiments, which will not be repeated here.
[0181] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0182] Since the computer program stored in the computer-readable storage medium can execute the steps in any of the multimedia resource aggregation methods provided in the embodiments of this application, the beneficial effects that any of the multimedia resource aggregation methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.
[0183] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the aforementioned multimedia resource aggregation method.
[0184] The above provides a detailed description of a multimedia resource aggregation method, apparatus, electronic device, and readable storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for aggregating multimedia resources, characterized in that, include: Obtain the multimedia resources and multimedia library to be aggregated, and extract the titles and attribute information to be matched from the multimedia resources to be aggregated; Obtain the set of candidate resources in the multimedia library that correspond to the title that matches the title to be matched; Based on the attribute information of the candidate resource set and the attribute information to be matched, the matching score of the candidate resource set is determined; Determine the type of the multimedia resource to be aggregated, and determine the matching threshold based on the type of the multimedia resource to be aggregated; The multimedia resources to be aggregated are aggregated into a target resource set to obtain the aggregation result of the multimedia resources to be aggregated. The target resource set is a candidate resource set corresponding to a matching score that is equal to or greater than the matching threshold. The step of determining the matching score of the candidate resource set based on the attribute information of the candidate resource set and the attribute information to be matched includes: Determine the candidate fields corresponding to the attribute information of the candidate resource set; Determine the correspondence between the candidate fields and the fields corresponding to the attribute information to be matched; Filter out the first correspondence relationship where the corresponding field exists and the second correspondence relationship where the corresponding field does not exist from the correspondence relationship; Based on the attribute information corresponding to the candidate fields in the first correspondence and the attribute information to be matched, determine the first matching score of the candidate resource set in the first correspondence; Obtain a first target value, and determine the second matching score of the candidate resource set in the second correspondence based on the first target value; The matching score of the candidate resource set is determined based on the first matching score and the second matching score.
2. The multimedia resource aggregation method according to claim 1, characterized in that, The step of determining the first matching score of the candidate resource set in the first correspondence based on the attribute information corresponding to the candidate fields in the first correspondence and the attribute information to be matched includes: Based on the attribute information corresponding to the candidate fields in the first correspondence relationship and the attribute information to be matched, determine the number of matching attribute information that matches the attribute information to be matched in the candidate fields of the first correspondence relationship. Based on the number of matches, determine the first matching score of the candidate resource set in the first correspondence.
3. The multimedia resource aggregation method according to claim 1, characterized in that, The step of determining the second matching score of the candidate resource set in the second correspondence based on the first target value includes: Determine the number of target fields for which no corresponding field exists in the second correspondence; Based on the number of targets and the first target value, determine the candidate score corresponding to the candidate resource set in the second correspondence; If the candidate score is less than or equal to the preset score, then the candidate score is used as the second matching score of the candidate resource set in the second correspondence relationship; If the candidate score is greater than the preset score, then the preset score is used as the second matching score of the candidate resource set in the second correspondence.
4. The multimedia resource aggregation method according to any one of claims 1-3, characterized in that, The step of aggregating the multimedia resources to be aggregated into a target resource set to obtain the aggregation result of the multimedia resources to be aggregated, wherein the target resource set is a candidate resource set corresponding to a matching score equal to or greater than the matching threshold, includes: From the candidate resource set, select the candidate resource set corresponding to the matching score that is equal to or greater than the matching threshold to obtain each target resource set; Obtain the weights of each target resource set; The target matching score of the target resource set is determined based on the weight of the target resource set and the matching score corresponding to the target resource set. The multimedia resources to be aggregated are aggregated into the target resource set corresponding to the highest target matching score to obtain the aggregation result of the multimedia resources to be aggregated.
5. The multimedia resource aggregation method according to claim 4, characterized in that, The step of aggregating the multimedia resources to be aggregated into the target resource set corresponding to the highest target matching score to obtain the aggregation result of the multimedia resources to be aggregated includes: If the maximum target matching score includes multiple values, then the update time of the target resource set corresponding to the maximum target matching score is determined. The multimedia resources to be aggregated are aggregated into the target resource set with the latest update time in the target matching score with the highest target, thus obtaining the resource set of the multimedia resources to be aggregated.
6. A multimedia resource aggregation device, characterized in that, include: The information acquisition module is used to acquire multimedia resources and multimedia libraries to be aggregated, and to extract the titles to be matched and the attribute information to be matched of the multimedia resources to be aggregated. The resource acquisition module is used to acquire a set of candidate resources in the multimedia library that correspond to the title that matches the title to be matched; The score determination module is used to determine the matching score of the candidate resource set based on the attribute information of the candidate resource set and the attribute information to be matched; A threshold determination module is used to determine the type of the multimedia resource to be aggregated, and to determine a matching threshold based on the type of the multimedia resource to be aggregated; The resource aggregation module is used to aggregate the multimedia resources to be aggregated into a target resource set to obtain the aggregation result of the multimedia resources to be aggregated. The target resource set is a candidate resource set corresponding to a matching score that is equal to or greater than the matching threshold. The score determination module is specifically used to determine the candidate fields corresponding to the attribute information of the candidate resource set; Determine the correspondence between candidate fields and the fields corresponding to the attribute information to be matched; Filter out the first correspondence relationship where the corresponding field exists and the second correspondence relationship where the corresponding field does not exist from the correspondence relationship; Based on the attribute information corresponding to the candidate fields in the first correspondence and the attribute information to be matched, determine the first matching score of the candidate resource set in the first correspondence; Obtain the first target value, and determine the second matching score corresponding to the candidate resource set in the second correspondence based on the first target value; The matching score of the candidate resource set is determined based on the first matching score and the second matching score.
7. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a computer program, and the processor running the computer program in the memory to perform the multimedia resource aggregation method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted for loading by a processor to execute the multimedia resource aggregation method according to any one of claims 1 to 5.