A method for generating character feature labels

By generating personality tags for characters, the problem of lack of character tags in the media database is solved, personalized recommendations for film and television dramas in the media database are realized, and the accuracy of recommendations and user experience are improved.

CN114117130BActive Publication Date: 2024-10-29青岛聚看云科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111431633.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-29
Publication Date
2024-10-29
Estimated Expiration
2041-11-29

AI Technical Summary

Technical Problem

The lack of character tags in the media database makes it impossible to recommend character-based dramas.

Method used

By obtaining the introduction text of the target character or determining its cast and crew, the character characteristic parameters and the character characteristics of historical characters are used to generate character character tags, and then the character characteristic tags are added to the film and television dramas in the media library to realize the personality of the character. Recommended plays.

Benefits of technology

It realizes the recommendation of personalized dramas based on personality and character types for users, solves the problem of lack of character tags in the media database, and improves the accuracy and personalization of drama recommendations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114117130B_ABST
    Figure CN114117130B_ABST
Patent Text Reader

Abstract

The present application provides a method for generating a character feature label, including obtaining an introduction text of a target character, generating a character label of the target character based on the introduction text after obtaining the introduction text; if the introduction text is not obtained, determining the cast member corresponding to the target character, and generating a character label of the target character based on character feature parameters and the character and personality features of the cast member's historical roles. After obtaining the character feature label, the film and television dramas in the media resource library can be labeled according to the character features, and in the process of arranging the film and television dramas, the character feature label can be added, so as to achieve the purpose of recommending personalized dramas of character roles to users, so as to solve the problem that there are no character feature labels in the current media resource library and it is impossible to recommend dramas of character and personality roles.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method for generating a character feature label. Background Art

[0002] Display devices refer to terminal devices that can output specific display images, such as smart TVs, mobile terminals, smart advertising screens, projectors, etc. Taking smart TVs as an example, smart TVs can be based on Internet application technology, have open operating systems and chips, have open application platforms, can realize two-way human-computer interaction functions, and are TV products that integrate multiple functions such as audio and video, entertainment, and data to meet the diverse and personalized needs of users.

[0003] For example, a user may select a certain category of multimedia resources to control the smart TV to access the link address of the multimedia resources in the category to obtain video data corresponding to the category and play the corresponding video screen on the display device.

[0004] In some scenarios, users may want multimedia resources to recommend some personalized dramas based on personality and characters, such as TV dramas about overbearing CEOs. To achieve this effect, you need to know the character characteristics of the characters in the TV dramas. For example, in TV dramas about overbearing CEOs, "overbearing" is the character characteristic of the protagonist in the drama. However, there are currently no character characteristic tags in the media resource library, so it is impossible to recommend dramas based on character and personality. Summary of the invention

[0005] The present application provides a method for generating a character feature label to solve the problem that there are no character feature labels in the current media resource library and it is impossible to recommend dramas based on character personality.

[0006] In a first aspect, the present application provides a method for generating a character feature label, comprising:

[0007] Get the target character's introduction text;

[0008] After acquiring the introduction text, generating a personality label of the target character according to the introduction text;

[0009] After the introduction text is not obtained, the cast member corresponding to the target role is determined, and a character label of the target role is generated based on character characteristic parameters and the character characteristic of the historical role played by the cast member; the character characteristic parameters are the character characteristic of the historical role played by the cast member and the probability value of the character characteristic.

[0010] In a second aspect, the present application further provides a server, comprising a memory and a processor, wherein the memory is used to store program instructions, and the processor is used to execute the following steps by running the program instructions:

[0011] Get the target character's introduction text;

[0012] After acquiring the introduction text, generating a personality label of the target character according to the introduction text;

[0013] After the introduction text is not obtained, the cast member corresponding to the target role is determined, and a character label of the target role is generated based on character characteristic parameters and the character characteristic of the historical role played by the cast member; the character characteristic parameters are the character characteristic of the historical role played by the cast member and the probability value of the character characteristic.

[0014] It can be seen from the above technical solutions that the present application provides a method for generating a character feature label, including obtaining an introduction text of a target character, and after obtaining the introduction text, generating a personality label of the target character based on the introduction text; after failing to obtain the introduction text, determining the cast and crew corresponding to the target character, and generating a personality label of the target character based on the personality feature parameters and the character personality features of the cast and crew's historical roles. After obtaining the character feature label, the film and television dramas in the media resource library can be labeled according to the character features, and in the process of arranging the film and television dramas, the character feature label can be added, thereby achieving the purpose of recommending personalized dramas of character roles to users, so as to solve the problem that there are no character feature labels in the current media resource library and that dramas of character personality roles cannot be recommended. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 This is the usage scenario of the server and the display device in the embodiment of the present application;

[0017] Figure 2 This is a schematic diagram of pushing resources in a media resource library to a display device shown in an embodiment of the present application;

[0018] Figure 3 A user behavior diagram for an embodiment of the present application;

[0019] Figure 4 This is a schematic diagram of media resource labeling shown in an embodiment of the present application;

[0020] Figure 5 A schematic diagram of a TV terminal pushing a program according to an embodiment of the present application;

[0021] Figure 6 A schematic diagram of a method for generating a role feature label according to an embodiment of the present application;

[0022] Figure 7 A logical schematic diagram of crawling Baidu Encyclopedia pages and performing word segmentation on the crawling results shown in an embodiment of the present application;

[0023] Figure 8 A schematic diagram of crawling Baidu Encyclopedia pages according to the title field shown in an embodiment of the present application;

[0024] Fig. 9 A logical schematic diagram of inputting training corpus into word2vec to generate similarity results according to an embodiment of the present application;

[0025] Fig.10 A logical schematic diagram of generating personality characteristic parameters shown in an embodiment of the present application;

[0026] Fig.11 A schematic diagram of the word segmentation effect of the character introduction text shown in an embodiment of the present application;

[0027] Fig.12 A schematic diagram of character feature label extraction and display effect shown in an embodiment of the present application;

[0028] Fig.13 This is a schematic diagram of the effect displayed on the display device after extracting the character feature labels shown in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to make the purpose and implementation method of the present application clearer, the exemplary implementation method of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0030] Based on the exemplary embodiments shown in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application. In addition, although the disclosure in this application is introduced according to one or several exemplary examples, it should be understood that each aspect of these disclosures can also constitute a complete technical solution separately.

[0031] It should be understood that the terms "first", "second", "third", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, for example, they can be implemented according to an order other than those given in the diagrams or descriptions of the embodiments of this application.

[0032] In addition, the terms "include" and "have" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to those components expressly listed but may include other components not expressly listed or inherent to such products or devices.

[0033] The term "module" as used in this application refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.

[0034] Figure 1 FIG. 1 is a schematic diagram of an operation scenario between a display device and a control device according to an embodiment. Figure 1 As shown, the user can operate the display device 200 through the smart device 300 or the control apparatus 100 .

[0035] In some embodiments, the control device 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or Bluetooth protocol communication, and other short-range communication methods, and the display device 200 is controlled wirelessly or wired. The user may control the display device 200 by inputting user commands through buttons on the remote controller, voice input, control panel input, etc.

[0036] In some embodiments, a smart device 300 (such as a mobile terminal, a tablet computer, a computer, a laptop computer, etc.) may also be used to control the display device 200. For example, the display device 200 is controlled using an application running on the smart device.

[0037] In some embodiments, the display device 200 can also be controlled in a manner other than the control device 100 and the smart device 300. For example, the user's voice command control can be directly received through a module for obtaining voice commands configured inside the display device 200, or the user's voice command control can be received through a voice control device set outside the display device 200.

[0038] In some embodiments, the display device 200 also communicates data with the server 400. The display device 200 may be allowed to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactions to the display device 200. The server 400 may be one cluster or multiple clusters, and may include one or more types of servers.

[0039] The usage scenario of the embodiment of the present application is that when a user turns on the TV and logs in to Juhaokan, the TV terminal will request a user data packet from the system end (for example, the server 400), that is, requesting the operation arrangement or recommended repertoires and videos. After receiving the request from the terminal, the system end can obtain data in the form of recommendation engine, operation arrangement, and recommendation offline database (offline recommendation), and display it to the user. At this time, the user will see some push repertoires recommended and configured by the operation on the display device 200.

[0040] The dramas viewed by the user on the display device 200 are from a media resource library. The media resource library can be understood as a database storing media resource data, which can be deployed in the server 400 . Figure 2 This is a schematic diagram of pushing resources in a media resource library to a display device shown in an embodiment of the present application, such as Figure 2 As shown, in some embodiments, after acquiring data from the media resource library through a recommendation engine, operation orchestration, and offline recommendation, the acquired data resources are pushed to the display device 200, and can then be presented to the user on the display device 200.

[0041] Regardless of which of the above methods is used to obtain data from the media library, the dramas ultimately recommended to the user depend to a certain extent on user behavior or media resource tags. Figure 3 This is a user behavior diagram shown in an embodiment of the present application, such as Figure 3 As shown, in some embodiments, user behavior may include but is not limited to the user's viewing history, search history, collection history, etc. Based on the user behavior, the operator can push related dramas according to the user's preferences.

[0042] In some embodiments, a media asset tag is used to mark the content or related features of a media asset. Figure 4 This is a schematic diagram of the media resource labeling shown in the embodiment of the present application, such as Figure 4 As shown, it is common to label certain dramas according to categories and cast members. For example, according to categories, dramas can be divided into comedies, suspense dramas, historical dramas, martial arts dramas, etc. According to cast members, all dramas in which a certain cast member has participated can be listed, and a certain drama can also be labeled, such as drama A is a comedy, drama B is a suspense drama, etc. In addition, media resource labels can also include other categories, such as era, character traits, etc.

[0043] Figure 5 This is a schematic diagram of a TV terminal pushing a program according to an embodiment of the present application. After a user logs in to Juhaokan, he will see the following on the display device 200: Figure 5The pushed dramas shown in the figure are currently the dramas that users see, which are extracted based on the media asset tags in the media asset library, and are the characteristics of the film and television dramas. However, in some scenarios, users may want to recommend some personalized dramas of character, that is, dramas related to the characters in the drama, such as TV dramas about overbearing CEOs. At this time, you need to know the character feature tags of the characters in the film and television dramas, where the character feature tags can be the character's personality characteristics. For example, "overbearing" here is the character feature data of the protagonist in the drama. However, there are currently no character feature tags in the media asset library, so it is impossible to recommend dramas of character personality.

[0044] Based on the above usage scenarios, this application provides a method for generating character feature labels, which can be applied to the scenarios of smart TV configuration and personalized drama recommendation. The effect achieved by this application is that after obtaining the character feature labels, the film and television dramas in the media resource library can be labeled according to the character features. In the process of arranging the film and television dramas, the character feature labels can be added, thereby achieving the purpose of recommending personalized dramas of character roles to users.

[0045] The following is an example of the process of generating the character feature label of the present application with reference to the accompanying drawings.

[0046] Figure 6 A flow chart of a method for generating a role feature label is shown in an embodiment of the present application, such as Figure 6 As shown, a method for generating a role feature label includes the following contents:

[0047] Obtain an introduction text of the target character, and after obtaining the introduction text, generate a personality label of the target character based on the introduction text; if the introduction text is not obtained, determine the cast member corresponding to the target character, and generate a personality label of the target character based on personality characteristic parameters and the personality characteristics of the historical roles played by the cast member, wherein the personality characteristic parameters are the personality characteristics of the historical roles played by the cast member and the probability values ​​of the personality characteristics.

[0048] In actual application scenarios, before obtaining the introduction text of the target character, some data preparation is also required. In some embodiments, the following steps may be included:

[0049] The information retrieval results of all the cast and crew members in the media resource library are obtained, and the obtained results are segmented to generate a first segmentation text, where the first segmentation text includes multiple segmentation words; the similarity between any two segmentation words in the first segmentation text is learned to generate a similarity result between any two segmentation words.

[0050] For all the cast and crew members in the media library, information retrieval results of all the cast and crew members in the media library are obtained. For example, the acquisition method may include but is not limited to crawling, and the information retrieval results may include but are not limited to Baidu Encyclopedia pages, which are not specifically limited in this application. The following is a schematic description of the process of obtaining information retrieval results of all the cast and crew members in the media library, taking the acquisition method as crawling, the information retrieval result as Baidu Encyclopedia pages, and the character characteristics as the character's personality characteristics as an example.

[0051] Figure 7 This is a logical diagram of crawling Baidu Encyclopedia pages and segmenting the crawled results, as shown in the embodiment of the present application. Figure 7 As shown, the cast and crew in the media resource library can be stored in the form of a table, including some fields, such as the cast and crew id, that is, the identity document, which can represent the identity identification number of the cast and crew, and the cast and crew title, which can represent the name of the cast and crew, and can also include some other fields, etc. The specific content of the fields can be formulated according to actual needs.

[0052] Take a field such as title as an example, and crawl its Baidu Encyclopedia page according to the field. Figure 8 This is a schematic diagram of crawling Baidu Encyclopedia pages according to the title field shown in the embodiment of the present application. Figure 8 As shown in the figure, after entering the name of the actor "Yang" on the Baidu Encyclopedia page, the page will display the crawled results. The crawled results include some encyclopedia information text introduction of the actor, such as a brief introduction of the actor, representative works, basic information, early life, acting experience, personal life, etc.

[0053] Continue to see Figure 7 , segment the above crawled results to generate the first segmented text. The segmentation here refers to dividing a long text sentence into multiple words. The result of crawling Baidu Encyclopedia pages is some text introductions. For example, the crawled text sentence is "Yang is humorous and cute", then the result after segmentation, that is, the first segmented text, can include "Yang", "humorous", "cute" and other segmented words, that is, the first segmented text includes multiple segmented words.

[0054] After obtaining the first segmented text, learn the similarity between any two segmented words in the first segmented text, and generate the similarity result between any two segmented words. In one implementation, learn the similarity between any two segmented words through word2vec. Word2vec is essentially a language model tool. Word2vec can be efficiently trained on a dictionary of millions and hundreds of millions of data. The training result obtained by the tool is a word vector. Because the word vector can measure the similarity between words well, word2vec can be used to calculate the similarity of the words input into the model tool. Since the first segmented text may have tens of thousands of segmented words after segmentation, when calculating the similarity between segmented words, due to the large number of segmented words, the similarity between each segmented word cannot be provided manually. Word2vec can be used to learn the similarity between segmented words.

[0055] Using word2vec to learn the similarity between any two segmentation words in the first segmentation text, generating a similarity result may include the following steps: inputting the segmentation words into word2vec as training corpus, and then, word2vec trains the segmentation words to generate a similarity result.

[0056] In this link, when calculating the similarity, the training corpus includes the results of word segmentation of all the data of Baidu Encyclopedia pages crawled, that is, the training corpus is the most comprehensive word segmentation vocabulary formed after word segmentation of all the text introductions of Baidu Encyclopedia pages. Here, the purpose of using the most comprehensive word segmentation vocabulary as training corpus to calculate the similarity between word segmentation vocabulary is to improve the accuracy of similarity calculation.

[0057] Take the word "humor" as an example. The commonly known synonyms are "funny, witty, and funny". The similarity between these three words and "humor" should be relatively high. However, in thousands of corpora, in addition to these most obvious similar words, there are many other similar word segmentation words. Due to the huge amount of data, it is impossible to manually screen and compare them one by one. The advantage of word2vec is that it can be efficiently trained on millions of dictionaries and hundreds of millions of data. The training results are word vectors, which can measure the similarity between words very well. More importantly, in a huge training corpus, the same meaning may also be expressed through a series of actions. For example, some verbs may also have commonalities with the word segmentation word "humor" and may express the same personality traits. In this way, word2vec can more comprehensively and accurately calculate the similarity between any word segmentation words.

[0058] After the segmentation vocabulary is input into word2vec as training corpus, word2vec will output the similarity results between any two segmentation vocabulary. Fig. 9 This is a logical diagram of inputting training corpus into word2vec to generate similarity results, as shown in the embodiment of the present application. Fig. 9 As shown in the figure, after multiple segmentation words are input into word2vec as training corpus, word2vec will train the training corpus and output the similarity results between any two segmentation words. For example, the similarity result between segmentation words 1 and segmentation words 2 in the figure is 30%, that is, 0.3, which means that there is a certain similarity between the two.

[0059] In a sense, high similarity can be understood as the two segmentation words may be synonyms, low similarity may mean that there is a little similarity or association between the two words, and a similarity of 0 means no similarity, which indicates that there is no association between the two segmentation words.

[0060] After the similarity results between any two segmentation words are generated, the following steps may be continued: segmentation words matching the personality trait dictionary are selected according to the similarity results to generate personality trait parameters.

[0061] It should be noted that the personality trait dictionary is pre-set based on information retrieval results such as Baidu Encyclopedia pages, and the personality trait dictionary includes multiple personality words. In other words, the personality trait dictionary comes from the Baidu Encyclopedia page, and can be a collection of multiple personality words pre-extracted from the Baidu Encyclopedia page. In actual use scenarios, specific personality words in the personality trait dictionary can be pre-set according to the needs of actual repertoire arrangement, and the personality trait dictionary can be stored in the form of txt text, and the specific form is not specifically limited in this application.

[0062] The steps of selecting segmentation words that match the personality trait dictionary based on the similarity results and generating personality trait parameters may include the following steps: traversing the personality trait dictionary and comparing the segmentation words in the similarity results with the personality words; based on the comparison results, removing the segmentation words that do not match the personality words in the segmentation words and generating personality trait parameters.

[0063] In some embodiments, when the introduction text can be obtained currently, after determining the user's personality, personality characteristic parameters can continue to be generated for use later when the actor plays a new role without introduction text.

[0064] In some embodiments, when the introduction text is not obtained, the character characteristic parameters pre-calculated by the server can be used. In some embodiments, it can be determined first whether the character parameters of various characters corresponding to the actor are stored. If not, the introduction information of the historical roles can be crawled to determine the corresponding character characteristic parameters.

[0065] In some embodiments, when no introduction text is obtained, introduction information of historical roles may be crawled to determine corresponding personality trait parameters.

[0066] Fig.10 This is a logical diagram of generating personality characteristic parameters shown in an embodiment of the present application, such as Fig.10 As shown in the figure, after the text description in the Baidu Encyclopedia page is segmented and trained with word2vec, the similarity results of the segmented words are generated. The similarity results can usually be divided into two cases: one is that the similarity result is greater than 0, indicating that there is similarity between the two segmented words; the other is that the similarity is equal to 0, indicating that there is no similarity between the two segmented words.

[0067] In the above steps, the similarity between the segmented words in the Baidu Encyclopedia page has been calculated, and the personality trait dictionary comes from the Baidu Encyclopedia page. Therefore, when the similarity result of the segmented words in the Baidu Encyclopedia page is calculated, it is equivalent to calculating the similarity between the personality words in the personality trait dictionary.

[0068] When classifying personalized dramas of character roles in the media resource library, a basis for classifying character roles is required. For example, overbearing CEOs, cute, etc., all belong to personality vocabulary. Before classifying a personalized drama, it is necessary to analyze the characters in the drama, so the data basis for character personality analysis must be obtained first, that is, the basis for selecting the personality vocabulary for classifying the dramas of character roles in the media resource library.

[0069] Continue to see Fig.10 In one implementation, the segmented words in the similarity result are compared with the personality words in the personality trait dictionary, and the personality trait dictionary is used to filter out the segmented words related to the character personality category that are actually needed as the data basis for character personality analysis.

[0070] For example, the comparison can be performed by traversing the personality trait dictionary. The personality trait dictionary has some pre-set personality words, such as "humorous", "peaceful", "resilient", etc. Because the personality trait dictionary is extracted from Baidu Encyclopedia pages, Baidu Encyclopedia pages also contain personality words such as "humorous", "peaceful", "resilient", etc. The similarity between each word segmentation word in the Baidu Encyclopedia page has been calculated through word2vec. Therefore, in the large set of similarity results, as long as the similarity result with a certain personality word is not 0, it is considered that there is similarity between the two.

[0071] Taking the personality word "humor" as an example, if the similarity between word A and "humor" is 80%, the similarity between word B and "humor" is 5%, and the similarity between word C and "humor" is 0, it means that both word A and word B have a certain similarity with "humor", and the similarity of word A is greater than that of word B, that is, word A contains more "humor" elements, and word C has no similarity with "humor", that is, word C has nothing to do with humor.

[0072] After obtaining the comparison results, the segmentation words that cannot be matched with the personality words are eliminated according to the comparison results to generate personality characteristic parameters. Specifically, the segmentation words that belong to the personality characteristic dictionary and have a similarity result with a certain personality word greater than 0 are retained, and the similarity result of 0 is filtered out, that is, the segmentation words that cannot be matched with the personality words are eliminated, and all the segmentation words that are finally retained are used as personality characteristic parameters. Here, the personality characteristic parameters are the segmentation words of the character personality category that are actually needed. They are the data basis for the personalized repertoire for dividing personality role categories. At the same time, they also include the similarity results between each segmentation word.

[0073] The above is only an illustrative description of the similarity result algorithm, and this application does not make any specific limitation on this. In some embodiments, the similarity result can be used as the data basis for dividing the character role repertoire. After the data basis for dividing the personalized repertoire of the character role class is determined, in the actual scenario of generating the character feature label, there are two situations. One is the situation where the repertoire has no introduction text, and the other is the situation where the repertoire has an introduction text. The following introduces these two situations respectively.

[0074] The first case is when there is no introduction text for the character in the play. If there is no introduction text for the character in the play, after the introduction text is not obtained, the cast member corresponding to the target role is determined, and the character label of the target role is generated based on the character characteristic parameters and the character characteristic of the historical role played by the cast member. Among them, the character characteristic parameters are the character characteristic of the historical role played by the cast member and the probability value of the character characteristic.

[0075] There are usually many characters in a play, some of which may have introduction texts, while others may not. For characters that do not have introduction texts (which can be called target characters), if you want to generate personality tags for the target characters, you must first determine the cast and crew corresponding to the target characters. It is easy to understand that the cast and crew information corresponding to the target characters can be obtained through the cast and crew introduction of the play.

[0076] In one implementation, generating a personality label for a target character based on personality trait parameters and personality traits of historical roles played by cast members may include the following steps: obtaining a set of role trait text segmentations of the cast member corresponding to the target character, the set of role trait text segmentations including a plurality of role trait text segmentations; calculating an average value of the personality traits of the roles played by the cast members based on the role trait text segmentations and personality trait parameters, and generating a personality label for the target character.

[0077] When the introduction text is not obtained, the personality tag of the target character is calculated by a first formula, which may be pre-set. In some embodiments, the first formula may be:

[0078]

[0079] Among them, C is the personality trait dictionary, Ci is the character personality trait, Ci∈C; P is the cast database formed by the set of all cast members, Pm is the cast member in the cast database, Pm∈P; Bm is the set of text segmentations of the character characteristics played by the cast members, and P(Pm, Ci) is the probability that the character personality trait created by cast member Pm is Ci.

[0080] In the formula, Bm is the text segmentation set of the role characteristics of the cast and crew. The following steps can be used to obtain the text segmentation set of the role characteristics of the cast and crew corresponding to the target role, obtain the acting experience of the cast and crew in the information retrieval results, and then segment the performing experience to obtain the text segmentation set of the role characteristics of the cast and crew.

[0081] For a play without an introduction text, it is impossible to directly obtain the introduction text of each character in the play. In this case, the information of the actors and staff who played in the play can be obtained. For all the actors and staff, the acting experience of the actors and staff in the information retrieval results can be obtained. For example, the character characteristics of the roles played by the actors and staff in history can be calculated by crawling the acting experience of the actors and staff in the Baidu Encyclopedia page.

[0082] Suppose you want to calculate the character traits of the roles played by actor Yang, and crawl Yang's Baidu Encyclopedia page for his acting experience. For example, the crawled acting experience is "Young Actor Training Class" (in the actual crawling process, the acting experience will include a lot of text introductions, and here only a part of the text introduction is intercepted for a brief explanation of the first formula). Combined with the first formula, P(Pm, Ci) means calculating the probability that the character traits of the role portrayed by actor Pm are Ci.

[0083] For example, according to the above setting, Pm is Yang, and assuming that the character trait Ci is "humor", then P(Pm, Ci) represents the probability value of the character trait of humor created by Yang. The acting experience of Yang "Young Actor Training Class" is segmented to obtain the two character feature text segmentations of "Young Actor" and "Training Class". Then Bm refers to the character feature text segmentation set played by the actor Yang. Then, referring to the first formula, the denominator |Bm| in the first formula is 2.

[0084] After obtaining a character feature text segmentation set and performing segmentation on it, a plurality of character feature text segmentations are obtained. The average value of the character features of the roles played by the cast and crew is calculated according to the character feature text segmentations and the character feature parameters, and the character label of the target role is generated, which may include the following steps: according to the character feature text segmentations and the character feature parameters, the probability values ​​of the character feature text segmentations and the character character features are accumulated to generate the probability sum of the character features played by the cast and crew; and the probability sum is divided by the number of the character feature text segmentations in the character feature text segmentation set to generate the character label of the target role.

[0085] Specifically, in the process of calculating the first formula, the character feature dictionary C can be understood as a character feature text segmentation in Bm, that is, C∈Bm. According to the above segmentation results, C can be the two words "little actor" and "training class". The character feature parameters have been generated in the above steps, including the segmentation vocabulary of the character personality category actually required and the similarity results between the segmentation vocabulary. For example, the similarity between the segmentations of the two character personality categories of "humor" and "little actor" and "training class" has been calculated in the above steps. If the similarity between "humor" and "little actor" is 0.3, and the similarity between "humor" and "training class" is 0.5, then according to the calculation method of the first formula, P(Pm, Ci) = (0.3 + 0.5) / 2 = 0.4, which means that the probability value of the character personality feature of "humor" created by Yang is 0.4.

[0086] For any character trait, the probability value of the cast member playing (shaping) the character trait can be obtained according to the above method. For example, a play is starred by cast member A and cast member B. Under the condition that there is no introduction text for the play, the probability that cast member A plays the character trait of "domineering" is 0.6 calculated by the first formula, and the probability that cast member B plays the character trait of "cute" is 0.5 calculated by the first formula. When the operator adds media tags to the play, you can set tags such as "Main cast member A-domineering, Main cast member B-cute" according to actual needs. In this way, personalized plays of character roles have character trait tags, and users can use this as data to filter plays.

[0087] The first case is the method of generating a character feature label when the play has no introduction text. The second case is the case when the play has an introduction text. If the character in the play has an introduction text, after obtaining the introduction text, the character label of the target character is generated according to the introduction text. In one implementation, the character label of the target character can be calculated by a second formula. In some embodiments, the second formula can be:

[0088]

[0089] Among them, C is the personality trait dictionary, Ci is the character personality trait, Ci∈C; P is the cast library formed by the set of all cast members, Vm is the virtual character in the play (it can be any character in the play you want to calculate), Am is the set of introductory text segmentations, and P(Vm, Ci) is the probability that the character personality trait of the virtual character Vm is Ci.

[0090] In the formula, Am is a set of introductory text segmentation words, which can be obtained in the following ways, including: obtaining media asset basic information, which is obtained from the media asset library, searching for matching videos and encyclopedia information in the information retrieval results through preset fields in the media asset basic information; extracting role introduction text from the video and encyclopedia information, and segmenting the role introduction text to generate a set of introduction text segmentation words.

[0091] Specifically, firstly, basic information of the media asset is obtained from the media asset library. For example, the basic information of the media asset is as follows: the media asset id is 10000001 and the media asset title is Eternal Love. In this step, the preset fields can be pre-specified according to actual needs. For example, if the title field is used as the preset field, the information retrieval results such as the matching videos and encyclopedia information in Baidu Encyclopedia can be searched through the title (i.e. Eternal Love) field.

[0092] After searching for relevant video and encyclopedia information, the search results can be judged according to actual needs and certain judgment criteria. For example, the judgment criteria here can be that if the performers in the play are the same, it is considered the same media asset.

[0093] After determining the videos and encyclopedia information to be searched, extract the character introduction text from the searched videos and encyclopedia information. For example, the character introduction text of the character "Bai Qian" in the play "Three Lives Three Worlds, Ten Miles of Peach Blossoms" is "The upper god is handsome and beautiful", and the character introduction text is segmented.

[0094] In one implementation, a word segmentation tool can be used to segment the character introduction text, and the specific word segmentation tool is not limited in this application. During the word segmentation process, the stop words can be removed using the word segmentation tool. Here, the stop words can be understood as non-verbs and non-nouns, such as words without actual meaning like "le" (了) and "de" (的), and only the words with actual meaning are left.

[0095] In the second formula, P(Vm, Ci) represents the meaning of calculating the probability value that a virtual character Vm plays a character with personality trait Ci. For example, if the virtual character Vm is Bai Qian and the character personality trait Ci is "humorous", then P(Vm, Ci) represents the probability that the character Bai Qian plays the character personality trait of "humorous". Among them, Ci, that is, the character personality trait, comes from the personality trait dictionary C. Here, Ci is the character personality trait of "humorous", and Vm is Bai Qian.

[0096] Fig.11 This is a schematic diagram showing the effect of segmenting the character introduction text shown in the embodiments of this application, as Fig.11 shown. After segmenting the character introduction text "The upper god is handsome and beautiful" through a word segmentation tool, three segmented texts of the introduction text, namely "upper god", "handsome", and "beautiful", are generated. Here, Am is the set of the segmented texts of the introduction text "upper god", "handsome", and "beautiful" in the second formula. Then, referring to the second formula, the denominator |Am| = 3 in the second formula.

[0097] In the process of calculating the second formula, the character feature dictionary C can be understood as an introduction text segmentation word in Am, that is, C∈Am. According to the above segmentation results, C can be the three words "God", "handsome", and "beautiful". In the above steps, the character feature parameters have been generated, including the segmentation words of the character personality category actually required and the similarity results between the segmentation words. For example, after calculating the similarity between the three introduction text segmentations of "humor" and "God", "handsome", and "beautiful", if the similarity between "humor" and "God" is 0.2, the similarity between "humor" and "handsome" is 0.1, and the similarity between "humor" and "beautiful" is 0.3, then according to the calculation method of the second formula, P(Vm, Ci) = (0.2 + 0.1 + 0.3) / 3 = 0.2, which means that the probability of Bai Qian playing the character trait of "humor" is 0.2.

[0098] It can be seen from the calculation method of the second formula above that P(Vm, Ci) is the average value of the similarity between each word in the introduction text segmentation and the character's personality characteristics (such as "humor"). For a longer character introduction text, it may contain stop words, and the stop words can be removed according to actual needs during the calculation. It can be understood that the probability value of a character's personality characteristics can be extracted for each character in the play according to the above method. According to the needs of operation or arrangement, the character's personality characteristic probability or a combination of character characteristic probabilities can be used as the final character characteristic label of the play.

[0099] Fig.12 This is a schematic diagram of the character feature label generation and display effect shown in the embodiment of the present application, such as Fig.12 As shown in FIG. 1 , for a play without an introduction text, after determining the cast member corresponding to the target role, the character feature parameters and the character feature of the cast member's historical role are used as the character feature label of the play. For a play with an introduction text, the character label of the target role can be generated based on the introduction text ( Fig.12 It is only a schematic representation of the display effect of the character feature label and does not represent the actual display effect. The actual display effect needs to be determined according to the operation arrangement and needs).

[0100] It should be noted that the information in Baidu Encyclopedia pages is not always the same, but will be updated. Therefore, when extracting the character feature tags of a certain play, check the Baidu Encyclopedia page in time to see if there are any updates. If the play does not have an introduction text, use the first formula. If the play has an introduction text, use the second formula. Baidu Encyclopedia pages can be crawled in stages according to actual conditions. For example, subsequent increments in Baidu Encyclopedia pages can be crawled once a day, and relevant change data (such as segmentation vocabulary, similarity results between segmentation vocabulary, etc.) can be written into the media resource library and related databases after calculation. The specific form can be determined according to actual needs.

[0101] Regardless of whether the first formula or the second formula is used, the character feature label of the play can be calculated. After the character feature label is extracted, it is attributed to the corresponding media resource as the media resource label of the personalized play of the character type in the media resource library. Fig.13 This is a schematic diagram of the effect of displaying the device after extracting the character feature tags shown in the embodiment of the present application, such as Fig.13 As shown, after the media resource library extracts the character feature labels, it can use them as the data basis to recommend dramas with different character traits to users, such as overbearing CEO dramas, humorous dramas, etc.

[0102] According to the above embodiments, some embodiments of the present application further include a server, including a memory and a processor, the memory is used to store program instructions, and the processor is used to execute the following steps by running the program instructions:

[0103] Get the target character's introduction text;

[0104] After obtaining the introduction text, generate the personality label of the target character according to the introduction text;

[0105] After the introduction text is not obtained, the cast member corresponding to the target role is determined, and a character label of the target role is generated based on the character characteristic parameters and the character characteristic of the historical role played by the cast member; the character characteristic parameters are the character characteristic of the historical role played by the cast member and the probability value of the character characteristic.

[0106] It can be seen from the above technical solutions that the present application provides a method for generating a character feature label, including obtaining an introduction text of a target character, and after obtaining the introduction text, generating a personality label of the target character based on the introduction text; after failing to obtain the introduction text, determining the cast and crew corresponding to the target character, and generating a personality label of the target character based on the personality feature parameters and the character personality features of the cast and crew's historical roles. After obtaining the character feature label, the film and television dramas in the media resource library can be labeled according to the character features, and in the process of arranging the film and television dramas, the character feature label can be added, thereby achieving the purpose of recommending personalized dramas of character roles to users, so as to solve the problem that there are no character feature labels in the current media resource library and that dramas of character personality roles cannot be recommended.

[0107] In some embodiments, the method for generating character feature tags provided by the present application also includes writing the character feature tags into the codis cluster for the system to call. In this way, when the user logs in to Ju Haokan, after the system obtains the user ID, it retrieves the corresponding recommendation results from the codis cluster. For example, personalized recommendation results can be calculated based on user behavior and displayed to the user. The display presentation effect can be combined according to the character feature tags and other media asset tags to form a relevant introduction to the repertoire. In addition, the operation can also specify the arrangement of the repertoire by popularity or update time, and write the arrangement results into the codis cluster for later call. In this way, when the operation arranges the repertoire, it can search and match the corresponding media asset resources, arrange the repertoire according to actual needs, etc.

[0108] Similar parts between the embodiments provided in this application can be referenced to each other. The specific implementation methods provided above are only a few examples under the general concept of this application and do not constitute a limitation on the protection scope of this application. For those skilled in the art, any other implementation methods expanded based on the scheme of this application without creative work belong to the protection scope of this application.

Claims

1. A method for generating a character feature label, characterized in that: include: Get the target character's introduction text; After acquiring the introduction text, generating a personality label of the target character according to the introduction text; After failing to obtain the introduction text, the cast member corresponding to the target role is determined, and a character label of the target role is generated based on character characteristic parameters and the character characteristic of the historical role played by the cast member; the character characteristic parameters are the character characteristic of the historical role played by the cast member and the probability value of the character characteristic; the character characteristic parameters are the segmentation of information retrieval results of all cast members in the media resource library, and the segmentation words that match the character characteristic dictionary are screened out based on the similarity results between any two segmentation words; the character characteristic dictionary is pre-set based on the information retrieval results, and the character characteristic dictionary includes a plurality of character words.

2. The method for generating a character feature label according to claim 1, characterized in that: Generating a character label of the target character according to the character characteristic parameters and the character characteristic of the historical character of the cast and crew member includes: Obtain a role feature text segmentation set of the cast and crew corresponding to the target role, wherein the role feature text segmentation set includes a plurality of role feature text segmentations; The average value of the character characteristics of the role played by the cast and crew is calculated according to the character characteristic text segmentation and the character characteristic parameters to generate a character label of the target role.

3. The method for generating a character feature label according to claim 2, characterized in that: Obtaining a set of character feature text segmentations of the cast and crew corresponding to the target character, including: Obtaining the performing experience of the performing staff corresponding to the target role in the information retrieval result; The performing experience is segmented to obtain a text segmentation set of the role characteristics of the performers.

4. The method for generating a character feature label according to claim 2, characterized in that: Calculating the average value of the character characteristics of the character played by the cast and crew according to the character characteristic text segmentation and the character characteristic parameters to generate the character label of the target character includes: Accumulating the probability values ​​of the character feature text segmentation and the character feature parameters according to the character feature text segmentation and the character feature parameters to generate a probability sum of the cast member playing the character feature; The probability sum is divided by the number of the role feature text segmentations in the role feature text segmentation set to generate a personality label for the target role.

5. The method for generating a character feature label according to claim 1, characterized in that: When the introduction text is not obtained, the personality label of the target character is calculated by a first formula, and the first formula is preset.

6. The method for generating a character feature label according to claim 5, characterized in that: The first formula is: Among them, C is the personality trait dictionary, Ci is the personality trait parameter; P is the cast and crew database formed by the set of all cast and crew members, Pm is the cast and crew member in the cast and crew database, Pm∈P; Bm is the set of text segmentation words of the role characteristics played by the cast and crew member, and P(Pm, Ci) is the probability that the personality trait parameter shaped by the cast and crew member Pm is Ci.

7. The method for generating a character feature label according to claim 1, characterized in that: Before getting the target character's intro text, also include: Get the information search results of all the actors and staff in the media resource library; Performing word segmentation on the obtained result to generate a first word segmentation text, wherein the first word segmentation text includes a plurality of word segmentation words; The similarity between any two segmentation words in the first segmentation text is learned to generate a similarity result between any two segmentation words.

8. The method for generating a character feature label according to claim 1, characterized in that: When the introduction text is obtained, the personality label of the target character is calculated by a second formula, which is: Among them, C is the personality trait dictionary, Ci is the personality trait parameter; P is the cast and crew library formed by the set of all cast and crew members, Vm is the virtual character in the play, Am is the set of introductory text segmentations, and P(Vm, Ci) is the probability that the personality trait parameter of the virtual character Vm is Ci.

9. The method for generating a character feature label according to claim 8, characterized in that: The Am is obtained in the following manner: Obtaining basic information of media assets, wherein the basic information of media assets is obtained from a media asset library; Search for matching videos and encyclopedia information in the information retrieval results through preset fields in the basic information of media resources; Extract the character introduction text from the video and the encyclopedia information, and segment the character introduction text to generate a set of introduction text segmentations.

10. A server, characterized in that: The invention comprises a memory and a processor, wherein the memory is used to store program instructions, and the processor is used to execute the following steps by running the program instructions: Get the target character's introduction text; After acquiring the introduction text, generating a personality label of the target character according to the introduction text; After failing to obtain the introduction text, the cast member corresponding to the target role is determined, and a character label of the target role is generated based on character characteristic parameters and the character characteristic of the historical role played by the cast member; the character characteristic parameters are the character characteristic of the historical role played by the cast member and the probability value of the character characteristic; the character characteristic parameters are the segmentation of information retrieval results of all cast members in the media resource library, and the segmentation words that match the character characteristic dictionary are screened out based on the similarity results between any two segmentation words; the character characteristic dictionary is pre-set based on the information retrieval results, and the character characteristic dictionary includes a plurality of character words.

Citation Information

Patent Citations

  • Role analysis method and system

    CN109325115A

  • Actor screening method and device

    CN109740623A