Bullet screen processing method, bullet screen playing method, equipment, medium and program product
By identifying the user's emotional index and generating positive barrages, the problem of poor management of bad barrages in the existing technology is solved, and more effective barrage management and user experience improvement are achieved.
Patent Information
- Application Number
- CN202410824420.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-11
AI Technical Summary
The management effect of bad barrages in the existing technology is poor, and it is difficult to effectively identify and process them.
By identifying the user emotion index corresponding to the bad barrages, and generating positive barrages based on the user's emotion index and display content, sending them to electronic devices to replace or enhance the original bad barrages, and using preset rules for display and management.
It improves the processing effect of bad barrages, enhances the diversity and flexibility of barrage management, reduces the generation and playback of bad barrages, reduces operational pressure, and improves user experience.
Smart Images

Figure CN118764658A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of artificial intelligence technology, and in particular to a bullet screen processing method, a bullet screen playback method, a device, a medium, and a program product. Background Art
[0002] With the continuous development of artificial intelligence technology, the application scope of artificial intelligence technology in people's lives is becoming more and more extensive. During the video playback process, a bullet screen can usually be displayed on the video playback screen.
[0003] In the prior art, the management method for barrages is usually to manually review the types of barrages and hide or delete bad barrages. It can be seen that the current management effect of bad barrages is poor. Summary of the invention
[0004] The embodiments of the present invention provide a bullet screen processing method, a bullet screen playing method, a device, a medium and a program product to solve the problem of poor management effect of bad bullet screens.
[0005] To solve the above problems, the present invention is achieved as follows:
[0006] In a first aspect, an embodiment of the present invention provides a bullet comment processing method, which is executed by a server, and the method includes:
[0007] Identify the user emotion index corresponding to the bad comments, where the user emotion index is used to indicate the degree of user excitement;
[0008] A positive bullet screen is generated according to the user emotion index and first display content for playback by an electronic device, wherein the first display content is display content corresponding to the negative bullet screen on the electronic device.
[0009] Optionally, generating a positive bullet screen according to the user emotion index and the first display content for playback by the electronic device includes:
[0010] Determining the emotion level information of the barrage to be generated according to the user emotion index, and determining the content information of the barrage to be generated according to the first display content;
[0011] The positive barrage is generated according to the emotion level information and the content information for playback by an electronic device.
[0012] Optionally, the determining content information of the to-be-generated bullet screen according to the first display content includes:
[0013] Determining a second display content and a third display content according to the first display content, wherein the second display content and the third display content are both display contents whose playing time is adjacent to the playing time of the first display content, and the playing time corresponding to the second display content is before the playing time corresponding to the first display content, and the playing time corresponding to the third display content is after the playing time corresponding to the first display content;
[0014] The content information of the barrage to be generated is determined according to a display content combination formed by the first display content, the second display content and the third display content.
[0015] Optionally, the identifying a user emotion index corresponding to a bad comment includes:
[0016] Receiving a user bullet comment sent by the electronic device;
[0017] Using a pre-trained bullet comment type recognition model to identify whether the user bullet comment is the bad bullet comment;
[0018] In the case where it is determined that the user barrage is the bad barrage, identifying a user emotion index corresponding to the bad barrage;
[0019] The generating a positive bullet screen according to the user emotion index and the first display content for playing by the electronic device includes:
[0020] The positive barrage is generated according to the user emotion index and the first display content using a pre-trained barrage generation model for playback by the electronic device.
[0021] Optionally, after generating a positive bullet screen according to the user emotion index and the first display content for playback by the electronic device, the method further includes:
[0022] Sending the positive barrage and preset rules to the electronic device, wherein the electronic device is used to play the positive barrage according to the preset rules;
[0023] The preset rules include at least one of the following:
[0024] Enlarging and displaying the positive bullet screen;
[0025] Display the positive bullet comments in a preset color;
[0026] The positive comment is displayed in a preset font.
[0027] Optionally, after sending the positive bullet screen and preset rules to the electronic device, the method further includes:
[0028] Detecting the number of bad barrages received from the electronic device within a preset time period from the first moment, and / or detecting the proportion of bad barrages received from the electronic device in user barrages within a preset time period from the first moment;
[0029] When the number of the bad barrages is greater than a preset number and / or the ratio of the bad barrages is greater than a preset ratio, increasing the number of newly generated multiple positive barrages sent to the electronic device, wherein the newly generated multiple positive barrages are different;
[0030] When the number of the bad barrages is less than or equal to the preset number, and / or the proportion of the bad barrages is less than or equal to the preset proportion, stop sending the newly generated positive barrages to the electronic device.
[0031] In a second aspect, an embodiment of the present invention provides a bullet screen playback method, which is performed by an electronic device, and the method includes:
[0032] Receive bad comments from users;
[0033] Sending the bad comments to a server;
[0034] Receiving a positive barrage sent by the server in response to the negative barrage, the positive barrage being a barrage generated by the server according to a user emotion index corresponding to the negative barrage and first display content, the user emotion index being used to indicate the degree of emotional excitement of the user, and the first display content being display content corresponding to the negative barrage on the electronic device;
[0035] Play the positive barrage.
[0036] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: a transceiver, a memory, a processor, and a program stored in the memory and executable on the processor; the processor is used to read the program in the memory to implement the steps of the method described in the first aspect; or, the processor is used to read the program in the memory to implement the steps of the method described in the second aspect.
[0037] In a fourth aspect, an embodiment of the present invention further provides a readable storage medium for storing a program, wherein when the program is executed by a processor, the program implements the steps in the method described in the first aspect, or implements the steps in the method described in the second aspect.
[0038] In a fifth aspect, an embodiment of the present invention further provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps of the method described in the first aspect or the second aspect above.
[0039] In an embodiment of the present invention, a user emotion index corresponding to a bad barrage can be identified, and a positive barrage can be generated according to the user emotion index and the first display content for playback by an electronic device. In this way, when a bad barrage is received from an electronic device, the electronic device can play a positive barrage, which is different from a bad barrage. That is, when a bad barrage is received, a positive barrage can be generated and played on the electronic device, thereby enhancing the processing effect of the barrage. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0041] Figure 1 is a schematic diagram of the structure of a network system to which an embodiment of the present invention can be applied;
[0042] Figure 2 is a flowchart of a method for processing barrage provided by an embodiment of the present invention;
[0043] Figure 3 This is one of the flow charts of the bullet screen playback method provided by an embodiment of the present invention;
[0044] Figure 4 This is the second flow chart of the bullet screen playback method provided by the embodiment of the present invention;
[0045] Figure 5 This is one of the structural schematic diagrams of the bullet screen processing device provided by an embodiment of the present invention;
[0046] Figure 6 This is the second structural diagram of the bullet screen playback device provided by an embodiment of the present invention;
[0047] Figure 7 It is one of the structural schematic diagrams of the electronic device provided by the embodiment of the present invention;
[0048] Figure 8 This is the second structural schematic diagram of the electronic device provided by the embodiment of the present invention. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] The terms "first", "second" etc. in the embodiments of the present invention are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. In addition, the terms "include" and "have" and any variation thereof are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units need not be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment. In addition, "and / or" is used in the present application to represent at least one of the connected objects, such as A and / or B and / or C, which represents 7 situations including single A, single B, single C, and A and B all exist, B and C all exist, A and C all exist, and A, B and C all exist.
[0051] See also Figure 1 , Figure 1 is a structural diagram of a network system to which an embodiment of the present invention can be applied, such as Figure 1 As shown, it includes a data sending device 11 and a data receiving device 12.
[0052] The data sending device 11 and the data receiving device 12 can communicate with each other. The data sending device 11 sends ciphertext information (Ciphertext Block) to the data receiving device 12.
[0053] In practical applications, the data sending device 11 may be an electronic device (also referred to as user equipment (UE)), and the data receiving device 12 may be a server; or, the data sending device 11 may be a server, and the data receiving device 12 may be an electronic device, but is not limited thereto.
[0054] The electronic device may be a mobile phone, a tablet personal computer, a laptop computer, a personal digital assistant (PDA), a mobile internet device (MID), a wearable device or a car-mounted device, etc.
[0055] The following describes the bullet screen processing and bullet screen playback method provided by the embodiments of the present invention.
[0056] See also Figure 2 , Figure 2 It is a flowchart of the bullet screen processing method provided by an embodiment of the present invention. Figure 2 The barrage processing method shown can be executed by the server.
[0057] like Figure 2 As shown, the bullet screen processing method may include the following steps:
[0058] Step 201: Identify the user emotion index corresponding to the bad comments.
[0059] The user emotion index is used to indicate the degree of emotional excitement of the user.
[0060] Among them, bad barrage can be a specific type of barrage, and bad barrage can also be called barrage used to express negative emotions. Correspondingly, positive barrage in the following text can be barrage used to express positive emotions.
[0061] Among them, negative emotions may include at least one of the following emotions: anxiety, tension, anger, frustration, sadness, pain, etc., while positive emotions may be the opposite of negative emotions, such as at least one of the following emotions: happiness, optimism, self-confidence, appreciation, relaxation, etc.
[0062] Among them, the user emotion index can also be referred to as an emotional value used to measure user emotions. For example, negative emotions and positive emotions can be normalized, the user emotion index corresponding to positive emotions can be a positive number, and the user emotion index corresponding to negative emotions can be a negative number.
[0063] Step 202: Generate a positive bullet screen for playback by an electronic device according to the user emotion index and the first display content.
[0064] Among them, the first display content is the display content corresponding to the bad barrage on the electronic device.
[0065] The first display content may be the display content corresponding to the target video, that is, the electronic device may be used to play the target video, and the first display content may be a certain frame or several frames of the target video. In addition, the display content corresponding to the bad bullet comment on the electronic device may be understood as the first display content and the bad bullet comment being displayed on the electronic device at the same time, that is, the first display content and the bad bullet comment are displayed on the electronic device at the same time.
[0066] In addition, the specific content of the target video is not limited here, for example, the target video can be a movie, a TV series or a documentary.
[0067] Among them, generating positive barrage according to the user emotion index and the first display content can enhance the correlation between the positive barrage, the user emotion index and the first display content, so that the positive barrage can more accurately reflect the user emotion index and the content of the first display content.
[0068] Among them, the positive barrage can be a barrage of the opposite type to the bad barrage, such as a bad barrage can be a barrage with negative emotions, while the positive barrage can be a barrage with positive emotions.
[0069] In an embodiment of the present invention, through steps 201 to 202, the user emotion index corresponding to the bad barrage can be identified, and a positive barrage can be generated according to the user emotion index and the first display content for playback by an electronic device. In this way, when a bad barrage is received from an electronic device, the electronic device can play a positive barrage, which is different from the bad barrage. That is, when a bad barrage is received, a positive barrage can be generated and played on the electronic device, thereby enhancing the processing effect of the barrage.
[0070] In addition, compared with the method of hiding or deleting bad barrage in the related art, the embodiment of the present invention provides a barrage processing method, which increases the diversity and flexibility of the barrage processing method.
[0071] In addition, when positive barrages are played on electronic devices, the generation of barrages corresponding to the positive barrage type can be guided (such as guiding users to increase the sending of barrages corresponding to the positive barrage type, that is, guiding users to reduce the sending of bad barrages), which in turn guides the reduction in the generation of bad barrages, thereby enhancing the effect of guiding the reduction in the generation of bad barrages.
[0072] In addition, when the number of bad comments decreases, the continuous pressure that bad comments bring to the operating staff and the audit system can also be alleviated, which reduces the audit workload of the operating staff and the audit system.
[0073] In addition, by playing positive barrages on electronic devices, the generation of barrages corresponding to the type of positive barrages can be guided, that is, the generation of positive barrages can be guided, and the generation of bad barrages can be reduced accordingly, thereby enhancing the effect of guiding the reduction of the generation of bad barrages. At the same time, the proportion of bad barrages played on electronic devices can be reduced, a good playing atmosphere can be created, and the user experience can be enhanced.
[0074] It should be noted that the specific method of determining whether the barrage sent by the electronic device is a bad barrage, and the specific method of generating a positive barrage according to the user emotion index and the first display content are not limited here.
[0075] As an optional implementation, generating a positive bullet screen according to the user emotion index and the first display content for playing by the electronic device includes:
[0076] Determining the emotion level information of the barrage to be generated according to the user emotion index, and determining the content information of the barrage to be generated according to the first display content;
[0077] The positive barrage is generated according to the emotion level information and the content information for playback by an electronic device.
[0078] Among them, the emotional level information of the barrage to be generated may be proportional to the user emotional index, that is, the higher the user emotional index and the more excited the user is, the higher the emotional level information of the barrage to be generated and the more positive the emotional level of the barrage to be generated.
[0079] Among them, determining the content information of the barrage to be generated according to the first display content can be understood as: the content information of the barrage to be generated can match the first display content. For example, the first display content can be the display content of a film or television clip, and the content information of the barrage to be generated can also be the display content of the film or television clip.
[0080] In the implementation manner of the present invention, positive barrage is generated according to the emotion level information and the content information for playing by the electronic device, so that the guiding effect of the generated positive barrage can be further enhanced.
[0081] As an optional implementation manner, determining the content information of the barrage to be generated according to the first display content includes:
[0082] Determining a second display content and a third display content according to the first display content, wherein the second display content and the third display content are both display contents whose playing time is adjacent to the playing time of the first display content, and the playing time corresponding to the second display content is before the playing time corresponding to the first display content, and the playing time corresponding to the third display content is after the playing time corresponding to the first display content;
[0083] The content information of the barrage to be generated is determined according to a display content combination formed by the first display content, the second display content and the third display content.
[0084] In an embodiment of the present invention, the second display content can be understood as the previous content of the first display content, and the third display content can be understood as the following content of the first display content. In this way, combined with the contextual content of the first display content, the content information of the barrage to be generated can be determined to be more accurate.
[0085] As an optional implementation manner, the identifying the user emotion index corresponding to the bad barrage includes:
[0086] Receiving a user bullet comment sent by the electronic device;
[0087] Using a pre-trained bullet comment type recognition model to identify whether the user bullet comment is the bad bullet comment;
[0088] In the case where it is determined that the user barrage is the bad barrage, identifying a user emotion index corresponding to the bad barrage;
[0089] The generating a positive bullet screen according to the user emotion index and the first display content for playing by the electronic device includes:
[0090] The positive barrage is generated according to the user emotion index and the first display content using a pre-trained barrage generation model for playback by the electronic device.
[0091] Optionally, the method for identifying the user emotion index corresponding to the bad barrage can be: using a large content emotion recognition model to identify the user emotion index; or, it can also be: different text contents correspond to different emotion indexes, and there is a one-to-one correspondence between the text content and the emotion index, for example: the emotion index corresponding to the first text content is the first-level emotion index, and the emotion index corresponding to the second text content is the second-level emotion index, the first-level emotion index is lower than the second-level emotion index, and the bad content included in the first text content is less than the bad content included in the second text content. In this way, the emotion index corresponding to the text content of the bad barrage can be directly found and determined through the text content of the bad barrage.
[0092] Among them, the barrage type recognition model can be trained using barrage sample data, and the barrage sample data can be obtained in the following way: obtain the target video, and obtain a large amount of barrage data corresponding to the target video, the above-mentioned large amount of barrage data may include positive barrage and bad barrage, and generate barrage sample data by semantically matching positive barrage and bad barrage.
[0093] In addition, barrage sample data can also be obtained in the following way: obtain the target video, and based on the content of the target video, use the barrage generation model to generate a large amount of barrage data, where the large amount of barrage data may include positive barrages and bad barrages, and generate barrage sample data by semantically matching positive barrages and bad barrages.
[0094] In addition, the barrage sample data can also be obtained in the following manner: a large number of positive barrages and bad barrages are manually collected by users, and then the positive barrages and the bad barrages are semantically matched to generate barrage sample data.
[0095] It should be noted that the method for obtaining the bullet comment sample data may adopt any of the above methods, or may combine at least two of the above methods, which is not specifically limited here.
[0096] The barrage type recognition model may be a neural network model for identifying bad barrages, and the barrage type recognition model may be a model obtained by fine-tuning data on a pre-trained large text model.
[0097] In an embodiment of the present invention, a pre-trained barrage type recognition model is used to identify whether a user's barrage is a bad barrage, and a barrage generation model is used to generate a positive barrage according to the user emotion index and the first display content. In this way, the recognition efficiency of bad barrages and the accuracy of the recognition results can be improved. At the same time, the generation efficiency of positive barrages and the accuracy of the generation results can also be improved.
[0098] Also, see Figure 4 , the bullet screen generation model can be called a large model in the professional field of bullet screen. During the training process, the bullet screen generation model can be a separate model, and the bullet screen generation model can be connected to the video database, the bullet screen recognition system and the front-end business system respectively, and the bullet screen generation model is connected to the video database (i.e. Figure 4 The film media resource system described in the above) can be used to obtain video data in the video database (i.e. Figure 4 The video media data in the video is obtained by connecting the barrage generation model to the barrage recognition system, which can be used to receive bad barrages in the barrage sample data; the barrage generation model is connected to the front-end business system, which can be used to push the generated positive barrage to the front-end business system. It should be noted that the barrage generation model can be used as follows Figure 4 As shown, the training process of the barrage generation model can be found in Figure 4 .
[0099] Among them, see Figure 4 The bullet screen recognition system can also be called a bad bullet screen recognition system, and the bullet screen generation system can also be called a positive bullet screen generation system. In addition, the server can also optionally include a front-end business system, and the bullet screen generation system generates positive bullet screens (i.e. Figure 4 After the positive barrage in the video is received, the positive barrage can be pushed to the front-end business system, and the front-end business system can send the positive barrage to the electronic device (ie, the client).
[0100] As an optional implementation manner, after generating a positive bullet screen according to the user emotion index and the first display content for playing by the electronic device, the method further includes:
[0101] Sending the positive barrage and preset rules to the electronic device, wherein the electronic device is used to play the positive barrage according to the preset rules;
[0102] The preset rules include at least one of the following:
[0103] Enlarging and displaying the positive bullet screen;
[0104] Display the positive bullet comments in a preset color;
[0105] The positive comment is displayed in a preset font.
[0106] Among them, the above preset rules can be called barrage display rules.
[0107] In the embodiment of the present invention, the electronic device is used to play positive barrage according to preset rules, so that the effect of guiding the reduction of bad barrage can be further enhanced. That is, the electronic device can display positive barrage in real time in the barrage display area to guide users to watch and inspire users to send positive barrage later, that is, the effect of guiding the reduction of bad barrage can be further enhanced.
[0108] As an optional implementation manner, after sending the positive barrage and the preset rules to the electronic device, the method further includes:
[0109] Detecting the number of bad barrages received from the electronic device within a preset time period from the first moment, and / or detecting the proportion of bad barrages received from the electronic device in user barrages within a preset time period from the first moment;
[0110] When the number of the bad barrages is greater than a preset number and / or the ratio of the bad barrages is greater than a preset ratio, increasing the number of newly generated multiple positive barrages sent to the electronic device, wherein the newly generated multiple positive barrages are different;
[0111] When the number of the bad barrages is less than or equal to the preset number, and / or the proportion of the bad barrages is less than or equal to the preset proportion, stop sending the newly generated positive barrages to the electronic device.
[0112] It should be noted that, the newly generated multiple positive barrages are different, which can be understood as: any two newly generated positive barrages are different, or, the newly generated first part of the positive barrage and the second part of the positive barrage are different, while the multiple positive barrages included in the first part of the positive barrage can be the same, and similarly, the multiple positive barrages included in the second part of the positive barrage can also be the same.
[0113] Among them, the first moment can be the moment when the positive barrage and the preset rules are sent to the electronic device, or the first moment can also be the moment after the moment when the positive barrage and the preset rules are sent to the electronic device, which is not limited here.
[0114] Among them, the number or proportion of bad barrages received from the electronic device within a preset time period from the first moment can be detected by data interception, such as: when bad barrages are displayed on the electronic device, the display interface of the electronic device can be screenshoted, and the number of bad barrages in the display interface of the electronic device and the proportion of bad barrages in all barrages in the display interface can be calculated.
[0115] In addition, when the proportion of bad barrages in all barrages in the display interface is greater than a preset proportion, it can be determined that there is a phenomenon of maliciously sending bad barrages, and it is necessary to strengthen the supervision and screening of electronic devices that maliciously send bad barrages; when the proportion of bad barrages in all barrages in the display interface is less than or equal to a preset proportion, it can be determined that there is no phenomenon of maliciously sending bad barrages.
[0116] In an embodiment of the present invention, at least one of the number and proportion of bad barrages received from an electronic device within a preset time period from a first moment is detected. When the number of bad barrages is greater than the preset number, and / or the proportion is greater than the preset proportion, it indicates that the effect of guiding the reduction of bad barrages is poor at this time, and it is necessary to increase the number of newly generated positive barrages sent to the electronic device to further enhance the effect of guiding the reduction of bad barrages; when the number of bad barrages is less than or equal to the preset number, and / or the proportion is less than or equal to the preset proportion, it indicates that the guiding effect of guiding the reduction of bad barrages is better at this time, and the sending of newly generated positive barrages to the electronic device is stopped. In this way, by tracking the number or proportion of bad barrages received from the electronic device within the preset time period from the first moment, the number of positive barrages sent to the electronic device can be flexibly adjusted to further enhance the effect of guiding the reduction of bad barrages.
[0117] See also Figure 3 , Figure 3 1 is a flow chart of a bullet screen playback method provided by an embodiment of the present invention. The bullet screen playback method of the embodiment of the present invention can be executed by an electronic device.
[0118] like Figure 3 As shown, the bullet screen playback method may include the following steps:
[0119] Step 301: Receive bad comments input by the user.
[0120] Among them, the electronic device can receive bad barrages input by the user, and the specific way in which the user inputs the bad barrages is not limited here. Optionally, the way in which the user inputs the bad barrages may include at least one of the following ways: touch input, press input, voice input, etc.
[0121] Step 302: Send the bad comment to the server.
[0122] The specific content of the inappropriate barrage is not limited here. Optionally, the inappropriate barrage can be a text barrage or an image barrage, etc.
[0123] Step 303: Receive the positive barrage sent by the server in response to the bad barrage.
[0124] Among them, the positive barrage is a barrage generated by the server based on the user emotion index corresponding to the bad barrage and the first display content, the user emotion index is used to indicate the user's emotional excitement level, and the first display content is the display content corresponding to the bad barrage on the electronic device.
[0125] The specific method of generating positive bullet comments by the server can be found in Figure 2 The corresponding expressions in the illustrated embodiments will not be described in detail here.
[0126] Step 304: play the forward barrage.
[0127] Among them, positive barrage can be played in the barrage display area on the electronic device.
[0128] In the embodiment of the present invention, by playing positive barrages, the user can, under the guidance of the positive barrages, subsequently send barrages corresponding to the positive barrage type through an electronic device, thereby reducing the sending of bad barrages and enhancing the effect of guiding the reduction of the generation of bad barrages.
[0129] As an optional implementation manner, the playing of the forward bullet screen includes:
[0130] The positive barrage is used to replace the bad barrage.
[0131] In the implementation manner of the present invention, positive barrages are used to replace the display of bad barrages, so that the proportion of bad barrages in the barrages can be reduced, and the proportion of positive barrages can be increased, thereby further enhancing the effect of guiding the reduction of the generation of bad barrages.
[0132] As an optional implementation manner, the receiving a positive barrage sent by the server in response to the bad barrage includes:
[0133] Receiving positive bullet comments and preset rules sent by the server for the bad bullet comments;
[0134] The playing of the forward bullet screen includes:
[0135] Play the positive bullet screen according to the preset rules;
[0136] The preset rules include at least one of the following:
[0137] Enlarging and displaying the positive bullet screen;
[0138] Display the positive bullet comments in a preset color;
[0139] The positive comment is displayed in a preset font.
[0140] In the implementation manner of the present invention, the electronic device plays positive barrage according to preset rules, so that the effect of guiding the reduction of bad barrage can be further enhanced. That is, the electronic device can display positive barrage in real time in the barrage display area to guide users to watch and inspire users to send positive barrage later, that is, the effect of guiding the reduction of bad barrage can be further enhanced.
[0141] It should be noted that this embodiment is an implementation of an electronic device corresponding to the above method embodiment, and therefore, reference may be made to the relevant description in the above method embodiment, and the same beneficial effects can be achieved. To avoid repeated description, it will not be repeated here.
[0142] The various optional implementation modes introduced in the embodiments of the present invention may be implemented in combination with each other or may be implemented separately if they do not conflict with each other, and the embodiments of the present invention are not limited to this.
[0143] For ease of understanding, the following examples are provided:
[0144] When a user is watching a video through an electronic device, he or she may input a barrage to insult a character that he or she does not like. The barrage that insults the character may be understood as the user barrage in this embodiment. The barrage processing method may be specifically as follows:
[0145] The user's bullet comments are sent to the front-end business system of the server through the electronic device, and then forwarded by the front-end business system to the bullet comment recognition system (also known as the bullet comment type recognition model);
[0146] When the barrage type recognition model identifies that the user's barrage is a bad barrage, the barrage generation system is automatically called.
[0147] The barrage system obtains the user emotion index, determines the barrage level to be generated according to the user emotion index, and then obtains information such as the plot of the first display content and the character settings of the characters.
[0148] The relevant context information is summarized and submitted to the barrage generation model, and the barrage generation model generates positive barrage according to the input barrage;
[0149] Push positive bullet comment data to the front-end business system;
[0150] The front-end business system sends positive barrage to the electronic device, and the electronic device displays the positive barrage according to preset rules.
[0151] Among them, positive barrages can be "If you don't like the male lead, you can also like the second male lead", "Why not take a look at the female lead", "This background is so cool", "If you were the male lead, how would you like the situation to develop" and so on.
[0152] In the implementation manner of the present invention, the server and the electronic device cooperate to enhance the effect of reducing bad comments. Figure 4 The corresponding steps shown in the figure, and the electronic device in the embodiment of the present invention can be understood as Figure 4 The client in .
[0153] See also Figure 5 , Figure 5 is a structural diagram of a bullet screen processing device provided by an embodiment of the present invention. The bullet screen processing device 500 is applied to a server, such as Figure 5 As shown, the bullet screen processing device 500 includes:
[0154] An identification module 501 is used to identify a user emotion index corresponding to a bad comment, where the user emotion index is used to indicate the degree of excitement of the user;
[0155] The generating module 502 is used to generate positive bullet comments for playing by the electronic device according to the user emotion index and the first display content, wherein the first display content is the display content corresponding to the negative bullet comments on the electronic device.
[0156] As an optional implementation, the generating module 502 includes:
[0157] A first generating submodule, configured to determine the emotion level information of the barrage to be generated according to the user emotion index, and determine the content information of the barrage to be generated according to the first display content;
[0158] The second generating submodule is used to generate the positive barrage according to the emotion level information and the content information for playing by the electronic device.
[0159] As an optional implementation, the first generation submodule is also used to: determine the second display content and the third display content based on the first display content, the second display content and the third display content are display content whose playback time is adjacent to the playback time of the first display content, and the playback time corresponding to the second display content is before the playback time corresponding to the first display content, and the playback time corresponding to the third display content is after the playback time corresponding to the first display content; determine the content information of the barrage to be generated based on the display content combination formed by the first display content, the second display content and the third display content.
[0160] As an optional implementation, the identification module 501 includes:
[0161] A first receiving submodule, used to receive user bullet comments sent by the electronic device;
[0162] A first identification submodule, used to identify whether the user's barrage is the bad barrage by using a pre-trained barrage type identification model;
[0163] A second identification submodule is used to identify the user emotion index corresponding to the bad barrage when it is determined that the user barrage is the bad barrage;
[0164] The generation module 502 is also used to use a pre-trained barrage generation model to generate the positive barrage according to the user emotion index and the first display content for playback by the electronic device.
[0165] As an optional implementation, the bullet screen processing device 500 further includes:
[0166] A first sending module, configured to send the positive barrage and a preset rule to the electronic device, wherein the electronic device is configured to play the positive barrage according to the preset rule;
[0167] The preset rules include at least one of the following:
[0168] Enlarging and displaying the positive bullet screen;
[0169] Display the positive bullet comments in a preset color;
[0170] The positive comment is displayed in a preset font.
[0171] As an optional implementation, the bullet screen processing device 500 further includes:
[0172] A detection module, used to detect the number of bad barrages received from the electronic device within a preset time period from the first moment, and / or to detect the proportion of bad barrages received from the electronic device in the user barrages within a preset time period from the first moment;
[0173] An additional sending module is used to increase the number of newly generated positive barrages sent to the electronic device when the number of the bad barrages is greater than a preset number and / or the proportion of the bad barrages is greater than a preset proportion;
[0174] A sending stop module is used to stop sending multiple newly generated positive barrages to the electronic device when the number of the bad barrages is less than or equal to the preset number and / or the proportion of the bad barrages is less than or equal to the preset proportion, and the multiple newly generated positive barrages are different.
[0175] The bullet screen processing device 500 can realize the Figure 2 The various processes of the method embodiment and the same beneficial effects are achieved, and will not be described again here to avoid repetition.
[0176] See also Figure 6 , Figure 6 600 is a structural diagram of a bullet screen playback device provided by an embodiment of the present invention. The bullet screen playback device 600 is applied to electronic devices, such as Figure 6 As shown, the bullet screen playback device 600 includes:
[0177] The first receiving module 601 is used to receive bad comments input by the user;
[0178] A second sending module 602, configured to send the bad comment to a server;
[0179] The second receiving module 603 is used to receive a positive barrage sent by the server for the bad barrage, where the positive barrage is a barrage generated by the server according to a user emotion index corresponding to the bad barrage and a first display content, where the user emotion index is used to indicate the degree of emotional excitement of the user, and the first display content is the display content corresponding to the bad barrage on the electronic device;
[0180] The playing module 604 is used to play the positive barrage.
[0181] As an optional implementation manner, the second receiving module 603 is further used to receive the positive barrage and preset rules sent by the server for the bad barrage;
[0182] The playing module 604 is further used to play the positive bullet screen according to the preset rules;
[0183] The preset rules include at least one of the following:
[0184] Enlarging and displaying the positive bullet screen;
[0185] Display the positive bullet comments in a preset color;
[0186] The positive comment is displayed in a preset font.
[0187] The bullet screen playback device 600 can realize the embodiment of the present invention Figure 3 The various processes of the method embodiment and the same beneficial effects are achieved, and will not be described again here to avoid repetition.
[0188] The embodiment of the present invention further provides an electronic device, which may be a server. Figure 7 The server may include a processor 701, a memory 702, and a program 7021 stored in the memory 702 and executable on the processor 701. When the program 7021 is executed by the processor 701, Figure 2 Any steps in the corresponding method embodiments and achieving the same beneficial effects will not be repeated here.
[0189] The embodiment of the present invention also provides an electronic device. Figure 8 , the electronic device may include a processor 801, a memory 802, and a program 8021 stored in the memory 802 and executable on the processor 801. When the program 8021 is executed by the processor 801, Figure 3 Any steps in the corresponding method embodiments and achieving the same beneficial effects will not be repeated here.
[0190] A person skilled in the art can understand that all or part of the steps of implementing the above-mentioned embodiment method can be completed by hardware related to program instructions, and the program can be stored in a readable medium. The embodiment of the present invention also provides a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned Figure 2 or Figure 3 Any steps in the corresponding method embodiments can achieve the same technical effect and will not be repeated here to avoid repetition.
[0191] The storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0192] The embodiment of the present invention also provides a computer program product, including computer instructions, which, when executed by a processor, implement the above Figure 2 or Figure 3 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0193] The above is a preferred implementation of the embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for processing barrage, characterized in that: Applied to a server, the method comprises: Identify the user emotion index corresponding to the bad comments, where the user emotion index is used to indicate the degree of user excitement; A positive bullet screen is generated according to the user emotion index and first display content for playback by an electronic device, wherein the first display content is display content corresponding to the negative bullet screen on the electronic device.
2. The method according to claim 1, characterized in that: The generating a positive bullet screen according to the user emotion index and the first display content for playing by the electronic device includes: Determining the emotion level information of the barrage to be generated according to the user emotion index, and determining the content information of the barrage to be generated according to the first display content; The positive barrage is generated according to the emotion level information and the content information for playback by an electronic device.
3. The method according to claim 2, characterized in that The determining the content information of the barrage to be generated according to the first display content includes: Determining a second display content and a third display content according to the first display content, wherein the second display content and the third display content are both display contents whose playing time is adjacent to the playing time of the first display content, and the playing time corresponding to the second display content is before the playing time corresponding to the first display content, and the playing time corresponding to the third display content is after the playing time corresponding to the first display content; The content information of the barrage to be generated is determined according to a display content combination formed by the first display content, the second display content and the third display content.
4. The method according to claim 1, characterized in that The user emotion index corresponding to the identification of bad comments includes: Receiving a user bullet comment sent by the electronic device; Using a pre-trained bullet comment type recognition model to identify whether the user bullet comment is the bad bullet comment; In the case where it is determined that the user barrage is the bad barrage, identifying a user emotion index corresponding to the bad barrage; The generating a positive bullet screen according to the user emotion index and the first display content for playing by the electronic device includes: The positive barrage is generated according to the user emotion index and the first display content using a pre-trained barrage generation model for playback by the electronic device.
5. The method according to any one of claims 1 to 4, characterized in that After generating a positive bullet screen according to the user emotion index and the first display content for playing by the electronic device, the method further includes: Sending the positive barrage and preset rules to the electronic device, wherein the electronic device is used to play the positive barrage according to the preset rules; The preset rules include at least one of the following: Enlarging and displaying the positive bullet screen; Display the positive bullet comments in a preset color; The positive comment is displayed in a preset font.
6. The method according to claim 5, characterized in that After sending the positive bullet screen and the preset rules to the electronic device, the method further includes: Detecting the number of bad barrages received from the electronic device within a preset time period from the first moment, and / or detecting the proportion of bad barrages received from the electronic device in the user barrages within a preset time period from the first moment; When the number of the bad barrages is greater than a preset number and / or the ratio of the bad barrages is greater than a preset ratio, increasing the number of newly generated multiple positive barrages sent to the electronic device, wherein the newly generated multiple positive barrages are different; When the number of the bad barrages is less than or equal to the preset number, and / or the proportion of the bad barrages is less than or equal to the preset proportion, stop sending the newly generated positive barrages to the electronic device.
7. A bullet screen playback method, characterized in that: Applied to electronic equipment, the method comprises: Receive bad comments from users; Sending the bad comments to a server; Receiving a positive barrage sent by the server in response to the negative barrage, the positive barrage being a barrage generated by the server according to a user emotion index corresponding to the negative barrage and first display content, the user emotion index being used to indicate the degree of emotional excitement of the user, and the first display content being display content corresponding to the negative barrage on the electronic device; Play the positive barrage.
8. An electronic device comprising: A transceiver, a memory, a processor, and a program stored in the memory and executable on the processor; characterized in that the processor is used to read the program in the memory to implement the steps in the barrage processing method as described in any one of claims 1 to 6, or the processor is used to read the program in the memory to implement the steps in the barrage playback method as described in claim 7.
9. A readable storage medium for storing a program, characterized in that: When the program is executed by the processor, the steps of the barrage processing method as described in any one of claims 1 to 6 are implemented; or, the steps of the barrage playback method as described in claim 7 are implemented.
10. A computer program product, characterized in that It includes computer instructions, which, when executed by a processor, implement the steps of the barrage processing method as described in any one of claims 1 to 6, or, when executed by a processor, implement the steps of the barrage playback method as described in claim 7.
Citation Information
Patent Citations
Barrage display control method, electronic device and storage medium
CN107566914A
Bullet screen information processing method and system
CN108513175A
Artificial intelligence big data analysis processing system and method
CN111914546A
Live commenting generation method and device, electronic equipment and computer storage medium
CN112016573A
Emotion fluctuation index acquisition method, emotion fluctuation index display method, and multimedia content production method
CN112073757A
