Movatterモバイル変換


[0]ホーム

URL:


CN113553423A - Script information processing method and device, electronic equipment and storage medium - Google Patents

Script information processing method and device, electronic equipment and storage medium
Download PDF

Info

Publication number
CN113553423A
CN113553423ACN202110757681.6ACN202110757681ACN113553423ACN 113553423 ACN113553423 ACN 113553423ACN 202110757681 ACN202110757681 ACN 202110757681ACN 113553423 ACN113553423 ACN 113553423A
Authority
CN
China
Prior art keywords
scenario
field
scene
score
outlier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110757681.6A
Other languages
Chinese (zh)
Other versions
CN113553423B (en
Inventor
喻想想
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co LtdfiledCriticalBeijing QIYI Century Science and Technology Co Ltd
Priority to CN202110757681.6ApriorityCriticalpatent/CN113553423B/en
Publication of CN113553423ApublicationCriticalpatent/CN113553423A/en
Application grantedgrantedCritical
Publication of CN113553423BpublicationCriticalpatent/CN113553423B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention relates to a script information processing method, a device, an electronic device and a storage medium, wherein the script information processing method comprises the following steps: acquiring a scenario text corresponding to each field in the scenario file; calculating an analysis index corresponding to each scene according to the scenario text corresponding to each scene, wherein the analysis index is used for analyzing the wonderful degree information of each scene in the scenario file; calculating the wonderful degree score of each field based on the analysis index corresponding to the field aiming at each field; and generating a wonderness change curve for representing the wonderness change condition of each field based on the wonderness score of each field. According to the embodiment of the invention, the characteristic information in the scenario text is quantized by calculating the analysis indexes according to the scenario text corresponding to each scene, the calculation of the wonderful degree score based on the analysis indexes is facilitated, the automatic generation of the wonderful degree change curve based on the wonderful degree score is facilitated, and the generation efficiency and the accuracy of the wonderful degree change curve are improved.

Description

Script information processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a scenario information processing method and apparatus, an electronic device, and a storage medium.
Background
The script mainly comprises lines and stage instructions. Dialogs, monologs and juxtapores are used, and commonly used in operas and songs are represented by vocabularies. The stage instructions in the script are narrative written descriptions written in breath of the author. The method comprises the steps of replacing the time and the place of occurrence of a scenario, describing the image characteristics, the body actions and the internal activities of characters in the scenario, explaining the scene and the atmosphere, and meeting the requirements on the aspects of scenery, light, sound effect and the like.
Different from a novel or a video watching curve, the wonderful degree of the scene of the drama cannot be measured by the user behavior, and only scoring can be performed based on the text content, so that a scorer is required to deeply understand the business characteristics of the drama, and meanwhile, the wonderful degree change curve of the scene is drawn by using the existing text understanding work result, however, the efficiency of the manually drawn wonderful degree change curve is low, and the curves drawn by different scorers may have great difference and poor accuracy.
Disclosure of Invention
In order to solve the technical problems described above or at least partially solve the technical problems, the present application provides a scenario information processing method, apparatus, electronic device, and storage medium.
In a first aspect, the present application provides a scenario information processing method, including:
acquiring a scenario text corresponding to each field in the scenario file;
calculating an analysis index corresponding to each scene according to the scenario text corresponding to each scene, wherein the analysis index is used for analyzing the wonderful degree information of each scene in the scenario file;
calculating the wonderful degree score of each field based on the analysis index corresponding to the field aiming at each field;
and generating a wonderness change curve for representing the wonderness change condition of each field based on the wonderness score of each field.
Optionally, the analysis indicator comprises: one or more of the important role appearance ratio, the appearance role number, the total drama of the appearance role, the interaction times of the core character, the total emotional intensity of the appearance role and the feature value of the plot point;
the important role appearance ratio is the proportion of the number of the important roles appearing in the scene to the total number of the roles appearing in the scene, and the important roles are the roles with the largest plays in the script file;
the number of the outgoing characters is the total number of the outgoing characters in the field;
the total playbacks of the outgoing characters are the total playbacks of each character in the playbacks;
the interaction times of the core figures are the interaction times among the core figures in the scene, and the core figures are a plurality of roles of the figure relation core in the script file;
the total emotional intensity of the appearance characters is the sum of the emotional values of the appearance characters in the scene;
the scenario characteristic value is the importance degree of the scenario in the scenario node to which the scenario belongs.
Optionally, calculating an analysis index corresponding to each session according to the scenario text corresponding to each session, including:
acquiring the roles of the scene, the play data of each role and the total number of the roles of the scene in the script file, wherein the play data is determined according to the behaviors of the roles in the scene and the occurrence times of dialogue;
sorting the play data of each role in the play file, and selecting a plurality of roles with the top play ranking to obtain a plurality of important roles in the play file;
counting the number of the roles matched with any important role in the roles which appear in the field to obtain a first number of the important roles which appear in the field;
and calculating the ratio of the first quantity to the total quantity to obtain the field ratio of the important characters.
Optionally, calculating an analysis index corresponding to each session according to the scenario text corresponding to each session, including:
acquiring plot point information of a plot point to which the plot belongs, the plots contained in the plot point information and the arrangement sequence of the plots;
and calculating the characteristic value of the situation node according to the field arrangement sequence and the position of the field in the field arrangement sequence.
Optionally, for each session, calculating a highlight score of each session based on the analysis index corresponding to the session includes:
converting each analysis index into a characteristic score aiming at the analysis index corresponding to each field;
and multiplying the characteristic score of each field by the corresponding weight coefficient to obtain the wonderful score of each field.
Optionally, generating a highlight variation curve for representing the highlight variation of each field based on the highlight score of each field comprises:
performing exponential smoothing on the wonderful score of each field to obtain a first intermediate score of each field;
performing outlier detection in the first intermediate score of each field to obtain a head outlier set, a tail outlier set and a normal point set;
normalizing the head outlier set to a first interval, normalizing the tail outlier set to a second interval, and normalizing the normal point set to a third interval to obtain a second intermediate score of each session, wherein a smaller boundary threshold of the first interval is greater than or equal to a larger boundary threshold of the third interval, and a smaller boundary threshold of the third interval is greater than or equal to a larger boundary threshold of the second interval;
and generating a wonderness change curve based on the second intermediate scores of the fields.
Optionally, performing outlier detection in the first intermediate score of each session to obtain a head outlier set, a tail outlier set, and a normal point set, including:
determining a first intermediate score larger than a first preset threshold value as a head outlier, and constructing a head outlier set comprising the head outlier;
determining a first intermediate score smaller than a second preset threshold value as a tail outlier, and constructing a tail outlier set comprising the tail outlier, wherein the first preset threshold value is larger than the second preset threshold value;
determining first intermediate scores except for the head outlier and the tail outlier among the first intermediate scores of all the fields as normal points, and constructing a normal point set including the normal points.
In a second aspect, the present application provides a scenario information processing apparatus comprising:
the obtaining module is used for obtaining a scenario text corresponding to each scene in the scenario file;
the first calculation module is used for calculating an analysis index corresponding to each scene according to the scenario text corresponding to each scene, and the analysis index is used for analyzing the highlight information of each scene in the scenario file;
the second calculation module is used for calculating the wonderful degree score of each field based on the analysis index corresponding to the field aiming at each field;
and the generating module is used for generating a wonderness change curve for representing the wonderness change condition of each field based on the wonderness score of each field.
In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor configured to implement the scenario information processing method according to any one of the first aspect when executing the program stored in the memory.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a program of a scenario information processing method, which when executed by a processor, implements the steps of the scenario information processing method of any one of the first aspects.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
the embodiment of the invention firstly obtains the scenario text corresponding to each scene in the scenario file, then calculates the analysis index corresponding to each scene according to the scenario text corresponding to each scene, then calculates the wonderness score of each scene based on the analysis index corresponding to the scene aiming at each scene, and finally generates the wonderness change curve for representing the wonderness change condition of each scene based on the wonderness score of each scene.
According to the embodiment of the invention, the characteristic information in the scenario text is quantized by calculating the analysis indexes according to the scenario text corresponding to each scene, the calculation of the wonderful degree score based on the analysis indexes is facilitated, the automatic generation of the wonderful degree change curve based on the wonderful degree score is facilitated, and the generation efficiency and the accuracy of the wonderful degree change curve are improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of a scenario information processing method provided in an embodiment of the present application;
fig. 2 is a structural diagram of a scenario information processing apparatus according to an embodiment of the present application;
fig. 3 is a block diagram of an electronic device according to an embodiment of the present disclosure;
fig. 4 is a structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Different from a novel or a video watching curve, the wonderful degree of the scene of the drama cannot be measured by the user behavior, and only scoring can be performed based on the text content, so that a scorer is required to deeply understand the business characteristics of the drama, and meanwhile, the wonderful degree change curve of the scene is drawn by using the existing text understanding work result, however, the efficiency of the manually drawn wonderful degree change curve is low, and the curves drawn by different scorers may have great difference and poor accuracy. To this end, embodiments of the present invention provide a scenario information processing method, an apparatus, an electronic device, and a storage medium, where the scenario information processing method may be applied in a computer.
As shown in fig. 1, the scenario information processing method may include the steps of:
step S101, obtaining a scenario text corresponding to each scene in a scenario file;
in the embodiment of the invention, the script file comprises a plurality of scenes, and the character content corresponding to each scene is the script text. The scene characters, the interaction between the characters (such as behavior interaction and conversation interaction) and the emotional state of each character can be recorded in each scenario text.
Step S102, calculating an analysis index corresponding to each scene according to the scenario text corresponding to each scene, wherein the analysis index is used for analyzing the highlight information of each scene in the scenario file;
in practical applications, the resolution of the transcript is generally determined by the following method:
1) generally speaking, the group play (more people are present) and the times of the important character present are more wonderful according to the abundance degree of the character present and whether the important character is present;
2) according to the number of character interactions, the more the characters interact with each other, the more wonderful the content;
3) the scenes with more actions and white proportion are more wonderful in content, and the scenes with more descriptive languages are relatively poor in content;
4) the frequency of extreme value appearing in role emotion and the emotion intensity can be used as the basis for judging the climax.
5) The middle part of a complete plot (consisting of a plurality of scenes) is often more wonderful, and the head and tail of the plot are connected with other plots, so that the wonderful value is lower.
Based on this, in the embodiment of the present invention, an analysis index is set, and the analysis index includes: one or more of the important role appearance ratio, the appearance role number, the total drama of the appearance role, the interaction times of the core character, the total emotional intensity of the appearance role and the feature value of the plot point;
the important role appearance ratio is the ratio of the number of the important roles appearing in the scene to the total number of the roles appearing in the scene, the important roles are the roles with the largest number of plays in the script file, and the calculation mode of the important role appearance ratio is described in detail later;
the number of the outgoing roles is the total number of the outgoing roles in the session, that is, for each session, the total number of the outgoing roles in the session is counted, so that the number v2 of the outgoing roles can be obtained, v2 is roll _ count, the roll _ count represents the number of the outgoing roles in the session, the number of the outgoing roles can represent whether the session has a group play, and the occurrence of the group play represents that the play is more brilliant;
the total playbacks of the outgoing characters are the total playbacks of each character in the session, that is, for each session, the playbacks of the character in the session can be counted for each character, and the playbacks of each character are added to obtain the total playbacks of each character in the session. The total play of the appearance characters is used for expressing the behaviors of all appearance characters in the scene, the number of times of dialogue occurrence and the like.
In the embodiment of the invention, the drama may refer to the performance workload of the character in the session, and exemplarily, the number of drama may be obtained by counting the occurrence times of behavior interaction, dialogue interaction or single emotion description in the session;
the total playfulness v3 of the outgoing character can be calculated by the following formula:
Figure BDA0003148452880000071
wherein, drama _ count represents the play of the character i in the session, and P represents the session of the character set.
In the embodiment of the present invention, whether a preset interactive verb exists in the script content of the session may be detected, if the interactive verb is detected, whether at least two character nouns or character representatives exist within a preset character length range (for example, 5 characters on the left and right) near the interactive verb may be detected, and if the interactive verb exists, the interaction may be determined, for example, the interactive verb includes: clap, pull, push, listen, and speak, etc., for example: the script content is as follows: "I clap the shoulders of little brightness", because "I" and "little brightness" are detected near "clap", it can be determined that an interaction is detected; for another example: "i explain little" because "saying" detects "me" and "explain little" nearby, can confirm that detects an interaction too; for another example: "i zips up", since only one character noun or character pronoun of "i" is detected near "zips", it can be determined that no interaction is detected.
The number of core character interactions v4 can be calculated by:
Figure BDA0003148452880000072
wherein, the interactive _ count represents the number of times the core character (top10) in the local field interacts.
The total emotional intensity (i.e. the seven emotional intensities) of the characters appearing in the field is the sum of the emotional values of the characters appearing in the field, that is, for each field, the emotional value of each character can be calculated according to a preset algorithm for calculating the emotional value of the characters appearing in the field, and the emotional values of the characters appearing in the field are added to obtain the total emotional intensity;
the total emotional intensity v5 of the emerging character can be calculated by:
Figure BDA0003148452880000081
in the embodiment of the present invention, whether preset emotion words exist in a preset character length range (such as left and right 3 characters) near a target character in the scenario content of the scenario can be detected, each preset emotion word has a corresponding emotion score, based on each detected emotion word, an emotion score corresponding to the emotion word is searched, and the emotion scores corresponding to all emotion words of the target character are accumulated to obtain the emotion value of the target character.
For example: the emotional words comprise: smile, laugh, cry and \24696, cry and the like, wherein the emotion score corresponding to the smile is 2 points, the emotion score corresponding to the laugh is 4 points, the emotion score corresponding to the cry is 3 points, \24696, the emotion score corresponding to the cry is 5 points, and the hypothesis is that: the script content is as follows: "red little smiling," because "smile" is detected near "red little" of the target character, can determine that the emotional value adds 2 points; for another example: the target character is a little red and big smile, and because the target character is a little red and big smile, the emotional value can be determined to be added by 4 points; for another example: "Small red 24696;" cry ", because" 24696; "cry" is detected in the vicinity of "small red" of the target character, it is possible to determine the emotional value plus 5, etc.
The feature value of an episode point is the importance of the event in the episode node to which the episode belongs, the episode point in the composition term of a movie or a tv show specifies a change or event which is tightly woven into the story and turns the story to another direction, an episode node may contain at least one episode, and the calculation of the feature value of an episode point is described in detail later.
In this step, information such as the appearance characters, the interaction between the characters (such as behavior interaction and conversation interaction) and the emotional state of each character in the scenario text corresponding to each session can be extracted, important character information, core character information, interaction information between each character and other characters, and the like are extracted from the scenario-related file, and the analysis index corresponding to each session is calculated based on the extracted information.
Step S103, calculating the wonderful degree score of each field according to the analysis index corresponding to each field;
since the difference of the measure of each analysis index is large and each analysis index has different influence on the highlight of the scenario text, in this step, the analysis indexes of each scenario may be converted into the same measure, and a weight may be added to each analysis index to obtain the highlight score of each scenario.
And step S104, generating a wonderness change curve for representing the wonderness change condition of each field based on the wonderness score of each field.
In this step, the wonderness change curve may be generated with the wonderness score of each field as the Y-axis and the field as the X-axis.
The embodiment of the invention firstly obtains the scenario text corresponding to each scene in the scenario file, then calculates the analysis index corresponding to each scene according to the scenario text corresponding to each scene, then calculates the wonderness score of each scene based on the analysis index corresponding to the scene aiming at each scene, and finally generates the wonderness change curve for representing the wonderness change condition of each scene based on the wonderness score of each scene.
According to the embodiment of the invention, the characteristic information in the scenario text is quantized by calculating the analysis indexes according to the scenario text corresponding to each scene, the calculation of the wonderful degree score based on the analysis indexes is facilitated, the automatic generation of the wonderful degree change curve based on the wonderful degree score is facilitated, and the generation efficiency and the accuracy of the wonderful degree change curve are improved.
In another embodiment of the present invention, the step S102 calculates an analysis index corresponding to each scenario according to the scenario text corresponding to each scenario, including:
step 201, obtaining the role of the session, the play data of each role, and the total number of the roles of the session in the scenario file.
In the embodiment of the invention, the play data is determined according to the behavior of the character in the field and the occurrence frequency of dialogue;
202, sequencing the play data of each role in the play file, and selecting a plurality of roles with the top play ranking to obtain a plurality of important roles in the play file;
in this step, the play data of each character in the play file may be sorted according to the number of plays, and several important characters ranked at the top in the sorting may be selected. For example, the characters in the drama file may be sorted in the order of the play from the most to the least, and the characters in the drama file may be sorted in the order of the play from the least to the most.
Step 203, counting the number of the roles matched with any important role in the roles of the scene, and obtaining the first number of the important roles of the scene;
and 204, calculating the ratio of the first quantity to the total quantity to obtain the field ratio of the important character.
In the embodiment of the invention, the ratio of the important character to the present can be calculated by the following formula:
v_1=top_role/role_count
where top _ role refers to the first number of important characters present in the field, and role _ count represents the total number of characters present in the field.
In the embodiment of the present invention, the number of important characters with the largest play in the play file is calculated as follows:
Figure BDA0003148452880000101
where N represents the total number of characters present in the transcript file.
The embodiment of the invention can automatically calculate the analysis index of the ratio of the important characters to the scene, realizes the quantification of the characteristic information in the scenario text, is convenient for calculating the wonderful degree score based on the analysis index subsequently, is further convenient for automatically generating the wonderful degree change curve based on the wonderful degree score, and improves the generation efficiency and the accuracy of the wonderful degree change curve.
In another embodiment of the present invention, calculating an analysis index corresponding to each scenario according to the scenario text corresponding to each scenario includes:
step 303, obtaining the plot information of the plot belonging to the field, the field contained in the plot information and the arrangement sequence of the field;
and 304, calculating the characteristic value of the situation node according to the field arrangement sequence and the position of the field in the field arrangement sequence.
The plot characteristic value v6 may be calculated by the following equation:
v6=f(plot_num)
where plot _ num is a field identifier, illustratively, the f () function represents: and sorting the scenes belonging to the same situation node according to the sequence of the scenes, setting the scene point characteristic values of the scenes at two ends to be 0.5, and sequentially adding 0.5 to the middle scene to be used as the scene point characteristic value of the corresponding scene, wherein the scenes do not belong to any situation node and the scene point characteristic value is 0.
For example: if 7 scenes belong to the same scene node, the scene node feature values of the 7 scenes are [0.5,1,1.5,2,1.5,1,0.5]) in sequence.
The embodiment of the invention can automatically calculate the analysis index of the plot characteristic value, realizes the quantification of the characteristic information in the plot text, is convenient for calculating the wonderful degree score based on the analysis index subsequently, is further convenient for automatically generating the wonderful degree change curve based on the wonderful degree score, and improves the generation efficiency and the accuracy of the wonderful degree change curve.
In another embodiment of the present invention, for each session, calculating the highlight score of each session based on the analysis index corresponding to the session includes:
step 401, converting each analysis index into a feature score for the analysis index corresponding to each session;
in practical application, for each analysis index, the analysis index is constructed in n fieldsSet F of corresponding numerical values in the next1={v11,v12,…,v1n}; each analytical index can then be converted to a characteristic score using the Z-core normalization method of the following formula:
Figure BDA0003148452880000111
wherein, mean () function and std () function represent mean value and standard deviation respectively, and other analysis indexes adopt the above-mentioned mode in turn, convert the analysis index into characteristic score.
And step 402, multiplying the characteristic score of each field by the corresponding weight coefficient to obtain the wonderful score of each field.
The formula for calculating the chroma score is as follows:
Figure BDA0003148452880000112
where t is the field, i represents the ith feature, wi=[0.6,1.0,0.8,1.0,1.2,0.5]The corresponding weight coefficient is assigned to each feature.
Based on the above equation, a set S ═ S of the highlight score for each field can be calculated1,s2,…,sn-s 1 is the highlight score of the first field, -s 2 is the highlight score of the second field, and sn is the highlight score of the nth field.
The embodiment of the invention can automatically calculate the wonderness score of each field, is convenient for automatically generating the wonderness change curve based on the wonderness score, and improves the generation efficiency and the accuracy of the wonderness change curve.
In a further embodiment of the present invention, generating a highlight variation curve for characterizing a highlight variation of each field based on the highlight score of each field comprises:
step 501, performing exponential smoothing processing on the wonderness score of each field to obtain a first intermediate score of each field;
the highlight scores of each field may be exponentially smoothed as follows
si=α×si+(1-α)×si-1,i∈{2,3,…,n}
Wherein a is a preset natural number.
Step 502, performing outlier detection in the first intermediate score of each field to obtain a head outlier set, a tail outlier set and a normal point set;
in this step, a first intermediate score greater than a first preset threshold may be determined as a head outlier, and a head outlier set including the head outlier is constructed; determining a first intermediate score smaller than a second preset threshold value as a tail outlier, and constructing a tail outlier set comprising the tail outlier, wherein the first preset threshold value is larger than the second preset threshold value; determining first intermediate scores except for the head outlier and the tail outlier among the first intermediate scores of all the fields as normal points, and constructing a normal point set including the normal points.
Illustratively, assuming q1 and q3 are 0.25 quantile and 0.75 quantile of s, respectively, for each si, si is defined as head outliers if si < q1-3 × (q3-q1), and as tail outliers if si > q3+3 (q3-q1), with the remaining points being normal points. Wherein, the quantile number refers to arranging a group of numbers from small to large, the number at the position of 1/4 is 0.25 quantile, and the number at the position of 3/4 is 0.75 quantile.
Step 503, normalizing the head outlier set to a first interval, normalizing the tail outlier set to a second interval, and normalizing the normal point set to a third interval to obtain a second intermediate score of each session.
Wherein the smaller boundary threshold for the first interval is greater than or equal to the larger boundary threshold for the third interval, which is greater than or equal to the larger boundary threshold for the second interval;
since the data point values have positive or negative values and the difference of the numerical range obtained by each scenario is large, the data point values are normalized to be between 0 and 100, and the data point values are more normative, for example: there is a set of data: [ -100, -99, -1,0,1,2,3,2,1,3, 99,100], the set of numbers being calculated in terms of outliers, -100, -99 being tail outliers, 99 and 100 being head outliers (i.e., too different from the overall data, direct plotting will cause these individual outlier data to press the intermediate curves very gently, showing no fluctuations), thus normalizing tail outliers [ -100, -99] to between 3-7, head outliers [99,100] to between 93-100, normal points [ -1,0,1,2,3,2,1,3] to between 11-85.
In this step, the head outlier set Sh, the normal point set Sn, and the tail outlier set St may be normalized according to the following equations:
Figure BDA0003148452880000131
wherein h ismin=3,hmax=7,nmin=11,nmax=85,tmin=93,tmax=100。
And step 504, generating a wonderful degree change curve based on the second intermediate scores of the fields.
The embodiment of the invention can automatically carry out exponential smoothing processing, outlier detection and normalization processing on the wonderness scores of all the fields, and is convenient for smoothing the generated wonderness change curve.
For easy understanding, the present invention further provides an embodiment in practical application, as shown in fig. 2, assuming that the scenario file includes n scenes,scene 1, scene 2, and scene … …, six analysis indexes, i.e., the exposure percentage of the important character, the number of the exposure characters, the total drama of the exposure characters, the number of times of interaction of the core character, the total emotional intensity of the exposure characters, and the feature value of the plot, may be first calculated, then each analysis index is converted into a feature score to obtain v1, v2, and … … v6, then v1, v2, and … … v6 are weighted and averaged to obtain a highlight score of each scene, then the highlight score of each scene is subjected to index smoothing, outlier detection, and normalization processing, and finally a highlight change curve is generated based on the processed data.
In still another embodiment of the present invention, as shown in fig. 3, there is also provided a scenario information processing apparatus including:
the obtaining module 11 is configured to obtain a scenario text corresponding to each scenario in the scenario file;
the first calculating module 12 is configured to calculate an analysis index corresponding to each scenario according to the scenario text corresponding to each scenario, where the analysis index is used to analyze the highlight information of each scenario in the scenario file;
a second calculating module 13, configured to calculate, for each session, a highlight score of each session based on an analysis index corresponding to the session;
and the generating module 14 is used for generating a wonderness change curve for representing the wonderness change condition of each field based on the wonderness score of each field.
In another embodiment of the present invention, an electronic device is further provided, which includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the script information processing method of any one of the method embodiments when executing the program stored in the memory.
In the electronic device provided by the embodiment of the invention, the processor executes the program stored in the memory to realize that the scenario text corresponding to each scenario in the scenario file is firstly obtained, then the analysis index corresponding to each scenario is calculated according to the scenario text corresponding to each scenario, then the highlight score of each scenario is calculated based on the analysis index corresponding to each scenario aiming at each scenario, and finally the highlight change curve for representing the highlight change condition of each scenario can be generated based on the highlight score of each scenario.
According to the embodiment of the invention, the characteristic information in the scenario text is quantized by calculating the analysis indexes according to the scenario text corresponding to each scene, the calculation of the wonderful degree score based on the analysis indexes is facilitated, the automatic generation of the wonderful degree change curve based on the wonderful degree score is facilitated, and the generation efficiency and the accuracy of the wonderful degree change curve are improved.
Thecommunication bus 1140 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. Thecommunication bus 1140 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
Thecommunication interface 1120 is used for communication between the electronic device and other devices.
Thememory 1130 may include a Random Access Memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
Theprocessor 1110 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the integrated circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components.
In still another embodiment of the present invention, there is also provided a computer-readable storage medium having stored thereon a program of a scenario information processing method, which when executed by a processor, implements the steps of the scenario information processing method described in any one of the method embodiments described above.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A scenario information processing method, comprising:
acquiring a scenario text corresponding to each field in the scenario file;
calculating an analysis index corresponding to each scene according to the scenario text corresponding to each scene, wherein the analysis index is used for analyzing the wonderful degree information of each scene in the scenario file;
calculating the wonderful degree score of each field based on the analysis index corresponding to the field aiming at each field;
and generating a wonderness change curve for representing the wonderness change condition of each field based on the wonderness score of each field.
2. The scenario information processing method according to claim 1, wherein the analysis index includes: one or more of the important role appearance ratio, the appearance role number, the total drama of the appearance role, the interaction times of the core character, the total emotional intensity of the appearance role and the feature value of the plot point;
the important role appearance ratio is the proportion of the number of the important roles appearing in the scene to the total number of the roles appearing in the scene, and the important roles are the roles with the largest plays in the script file;
the number of the outgoing characters is the total number of the outgoing characters in the field;
the total playbacks of the outgoing characters are the total playbacks of each character in the playbacks;
the interaction times of the core figures are the interaction times among the core figures in the scene, and the core figures are a plurality of roles of the figure relation core in the script file;
the total emotional intensity of the appearance characters is the sum of the emotional values of the appearance characters in the scene;
the scenario characteristic value is the importance degree of the scenario in the scenario node to which the scenario belongs.
3. The scenario information processing method of claim 2, wherein calculating the analysis index corresponding to each scenario according to the scenario text corresponding to each scenario comprises:
acquiring the roles of the scene, the play data of each role and the total number of the roles of the scene in the script file, wherein the play data is determined according to the behaviors of the roles in the scene and the occurrence times of dialogue;
sorting the play data of each role in the play file, and selecting a plurality of roles with the top play ranking to obtain a plurality of important roles in the play file;
counting the number of the roles matched with any important role in the roles which appear in the field to obtain a first number of the important roles which appear in the field;
and calculating the ratio of the first quantity to the total quantity to obtain the field ratio of the important characters.
4. The scenario information processing method of claim 2, wherein calculating the analysis index corresponding to each scenario according to the scenario text corresponding to each scenario comprises:
acquiring plot point information of a plot point to which the plot belongs, the plots contained in the plot point information and the arrangement sequence of the plots;
and calculating the characteristic value of the situation node according to the field arrangement sequence and the position of the field in the field arrangement sequence.
5. The scenario information processing method according to claim 1, wherein calculating, for each session, a highlight score for each session based on an analysis index corresponding to the session includes:
converting each analysis index into a characteristic score aiming at the analysis index corresponding to each field;
and multiplying the characteristic score of each field by the corresponding weight coefficient to obtain the wonderful score of each field.
6. The scenario information processing method according to claim 1, wherein generating a highlight variation curve for representing a highlight variation of each of the fields based on the highlight score of each of the fields comprises:
performing exponential smoothing on the wonderful score of each field to obtain a first intermediate score of each field;
performing outlier detection in the first intermediate score of each field to obtain a head outlier set, a tail outlier set and a normal point set;
normalizing the head outlier set to a first interval, normalizing the tail outlier set to a second interval, and normalizing the normal point set to a third interval to obtain a second intermediate score of each session, wherein a smaller boundary threshold of the first interval is greater than or equal to a larger boundary threshold of the third interval, and a smaller boundary threshold of the third interval is greater than or equal to a larger boundary threshold of the second interval;
and generating a wonderness change curve based on the second intermediate scores of the fields.
7. The scenario information processing method of claim 6, wherein performing outlier detection in the first middle score of each session to obtain a head outlier set, a tail outlier set, and a normal point set comprises:
determining a first intermediate score larger than a first preset threshold value as a head outlier, and constructing a head outlier set comprising the head outlier;
determining a first intermediate score smaller than a second preset threshold value as a tail outlier, and constructing a tail outlier set comprising the tail outlier, wherein the first preset threshold value is larger than the second preset threshold value;
determining first intermediate scores except for the head outlier and the tail outlier among the first intermediate scores of all the fields as normal points, and constructing a normal point set including the normal points.
8. A scenario information processing apparatus comprising:
the obtaining module is used for obtaining a scenario text corresponding to each scene in the scenario file;
the first calculation module is used for calculating an analysis index corresponding to each scene according to the scenario text corresponding to each scene, and the analysis index is used for analyzing the highlight information of each scene in the scenario file;
the second calculation module is used for calculating the wonderful degree score of each field based on the analysis index corresponding to the field aiming at each field;
and the generating module is used for generating a wonderness change curve for representing the wonderness change condition of each field based on the wonderness score of each field.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the scenario information processing method according to any one of claims 1 to 7 when executing the program stored in the memory.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a program of a scenario information processing method, which when executed by a processor, realizes the steps of the scenario information processing method of any one of claims 1 to 7.
CN202110757681.6A2021-07-052021-07-05Scenario information processing method and device, electronic equipment and storage mediumActiveCN113553423B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110757681.6ACN113553423B (en)2021-07-052021-07-05Scenario information processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110757681.6ACN113553423B (en)2021-07-052021-07-05Scenario information processing method and device, electronic equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN113553423Atrue CN113553423A (en)2021-10-26
CN113553423B CN113553423B (en)2023-10-10

Family

ID=78102717

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110757681.6AActiveCN113553423B (en)2021-07-052021-07-05Scenario information processing method and device, electronic equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN113553423B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114065742A (en)*2021-11-192022-02-18马上消费金融股份有限公司 A text detection method and device
CN114936289A (en)*2022-05-122022-08-23咪咕文化科技有限公司Text analysis method and device
CN117851587A (en)*2024-01-162024-04-09腾讯科技(深圳)有限公司 Plot extraction method, device, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20110112671A1 (en)*2009-11-092011-05-12Phil WeinsteinSystem and method for providing music based on a mood
KR101585830B1 (en)*2015-06-222016-01-15이호석Storytelling system and method according to emotion of audience
US20160117311A1 (en)*2014-10-222016-04-28Thomson LicensingMethod and Device for Performing Story Analysis
CN107193969A (en)*2017-05-252017-09-22南京大学A kind of method for automatically generating novel text emotion curve and predicting recommendation
US20170300748A1 (en)*2015-04-022017-10-19Scripthop LlcScreenplay content analysis engine and method
CN107480136A (en)*2017-08-022017-12-15陈雷 A Method Applied to the Analysis of Sentiment Curve in Movie Script
CN108563688A (en)*2018-03-152018-09-21西安影视数据评估中心有限公司A kind of movie and television play principle thread recognition methods
CN110457691A (en)*2019-07-262019-11-15北京影谱科技股份有限公司 Emotional curve analysis method and device based on script characters
CN110458428A (en)*2019-07-262019-11-15北京小土科技有限公司A kind of excellent metrization assessment system of screen play

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20110112671A1 (en)*2009-11-092011-05-12Phil WeinsteinSystem and method for providing music based on a mood
US20160117311A1 (en)*2014-10-222016-04-28Thomson LicensingMethod and Device for Performing Story Analysis
US20170300748A1 (en)*2015-04-022017-10-19Scripthop LlcScreenplay content analysis engine and method
KR101585830B1 (en)*2015-06-222016-01-15이호석Storytelling system and method according to emotion of audience
CN107193969A (en)*2017-05-252017-09-22南京大学A kind of method for automatically generating novel text emotion curve and predicting recommendation
CN107480136A (en)*2017-08-022017-12-15陈雷 A Method Applied to the Analysis of Sentiment Curve in Movie Script
CN108563688A (en)*2018-03-152018-09-21西安影视数据评估中心有限公司A kind of movie and television play principle thread recognition methods
CN110457691A (en)*2019-07-262019-11-15北京影谱科技股份有限公司 Emotional curve analysis method and device based on script characters
CN110458428A (en)*2019-07-262019-11-15北京小土科技有限公司A kind of excellent metrization assessment system of screen play

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114065742A (en)*2021-11-192022-02-18马上消费金融股份有限公司 A text detection method and device
CN114065742B (en)*2021-11-192023-08-25马上消费金融股份有限公司Text detection method and device
CN114936289A (en)*2022-05-122022-08-23咪咕文化科技有限公司Text analysis method and device
CN117851587A (en)*2024-01-162024-04-09腾讯科技(深圳)有限公司 Plot extraction method, device, equipment and storage medium
CN117851587B (en)*2024-01-162025-03-18腾讯科技(深圳)有限公司 Plot extraction method, device, equipment and storage medium

Also Published As

Publication numberPublication date
CN113553423B (en)2023-10-10

Similar Documents

PublicationPublication DateTitle
CN113553423A (en)Script information processing method and device, electronic equipment and storage medium
CN114547329B (en) Method for establishing pre-trained language model, semantic parsing method and device
US20230103340A1 (en)Information generating method and apparatus, device, storage medium, and program product
CN110020437B (en)Emotion analysis and visualization method combining video and barrage
CN113392236B (en) A data classification method, computer device and readable storage medium
CN110909205B (en)Video cover determination method and device, electronic equipment and readable storage medium
CN110263854B (en)Live broadcast label determining method, device and storage medium
CN109862397B (en)Video analysis method, device, equipment and storage medium
CN109961041B (en)Video identification method and device and storage medium
CN106776528B (en)Information processing method and device
CN110765246A (en)Question answering method and device based on intelligent robot, storage medium and intelligent equipment
CN114037946B (en) Video classification method, device, electronic equipment and medium
CN109491915B (en)Data processing method and device, medium and computing equipment
CN112733654B (en)Method and device for splitting video
CN117521628B (en)Script creation method, device, equipment and chip based on artificial intelligence
CN112995690B (en)Live content category identification method, device, electronic equipment and readable storage medium
CN117768597B (en)Guide broadcasting method, device, equipment and storage medium
CN115438222A (en)Context-aware method, device and system for answering video-related questions
CN118400589A (en)Determination method and device for target fragment combination and electronic equipment
CN108764972A (en)A kind of film box office prediction technique and device
CN112153424A (en)Content pushing method and device, electronic equipment and storage medium
CN114566153A (en)Voice recognition method and related device, electronic equipment and storage medium
CN114189754A (en)Video plot segmentation method and system
CN113822045A (en)Multi-mode data-based film review quality identification method and related device
CN113688280A (en)Sorting method, sorting device, computer equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp