WO2024060559A1 - Method and apparatus for processing bullet chats in interactive fiction - Google Patents

Method and apparatus for processing bullet chats in interactive fiction Download PDF

Info

Publication number
WO2024060559A1
WO2024060559A1 PCT/CN2023/083909 CN2023083909W WO2024060559A1 WO 2024060559 A1 WO2024060559 A1 WO 2024060559A1 CN 2023083909 W CN2023083909 W CN 2023083909W WO 2024060559 A1 WO2024060559 A1 WO 2024060559A1
Authority
WO
WIPO (PCT)
Prior art keywords
human
target
novel
interactive
terminal device
Prior art date
Application number
PCT/CN2023/083909
Other languages
French (fr)
Chinese (zh)
Inventor
王一
Original Assignee
深圳市人马互动科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市人马互动科技有限公司 filed Critical 深圳市人马互动科技有限公司
Publication of WO2024060559A1 publication Critical patent/WO2024060559A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/4722End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting additional data associated with the content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting

Definitions

  • the present application belongs to the field of Internet technology, and specifically relates to a method and device for processing barrage in interactive novels.
  • Embodiments of the present application provide a method and device for processing barrages in interactive novels.
  • the server of the novel interactive system can realize the sending and acquisition of barrages during human-computer interaction with the user, thereby improving the fun and intelligence of using interactive novels. gender, effectively improving the reading experience.
  • inventions of the present application provide a method for processing barrages in interactive novels, which is applied to the server of the novel interactive system.
  • the novel interactive system includes a server and a terminal device for users to interactively read novels.
  • the server includes a dedicated human-machine dialogue.
  • Engine the human-machine dialogue logic of the dedicated human-machine dialogue engine is given by the human-machine dialogue script of the target interactive novel.
  • the human-machine dialogue script includes multiple human-machine dialogue plots.
  • a single human-machine dialogue plot includes machine output content and user expected input content.
  • the machine The output content includes outputting machine sentences and outputting novel text content; the method includes: calling a dedicated human-computer dialogue engine to perform human-computer interaction with the user of the terminal device according to the human-computer dialogue script; during the process of human-computer interaction, sending instruction messages to the terminal device , the instruction message is used to instruct the target barrage in the interactive novel interface of the terminal device.
  • a dedicated human-computer dialogue engine is called to perform human-computer interaction with the user of the terminal device according to the human-computer dialogue script; during the human-computer interaction process, an instruction message is sent to the terminal device, and the instruction message is used to Indicates the target barrage in the interactive novel interface of the terminal device.
  • the barrage can be sent and obtained during the user's human-computer interaction in interactive novels, making the use of interactive novels more interesting and intelligent, and effectively improving the reading experience.
  • the content information of the target barrage includes any of the following: the name of the character appearing in the target interactive novel, the brief information of the storyline associated with the current human-computer dialogue plot, the current human-computer dialogue plot
  • the triggering conditions for the target barrage include any of the following: click on the name of the character appearing in the target interactive novel, jump to the current person
  • the first plot node of the storyline associated with the human-machine dialogue plot, the instructions for outputting barrage operations included in the machine output content for executing the human-machine dialogue plot currently processed in the human-machine dialogue script, and the display strategy of the novel text content First, display it in the form of a barrage The display is then displayed in the default position, the user's barrage comment content is detected, and the barrage link displayed in the interactive novel interface is clicked;
  • the representation form of the target barrage includes at least one of the following: pictures, text, video, and voice.
  • the user can display the picture barrage corresponding to the character name by clicking on the character name, or can display the novel text corresponding to the first plot node of the storyline associated with the current dialogue plot during the human-computer dialogue process.
  • the novel text corresponding to the first plot node of the storyline associated with the current dialogue plot during the human-computer dialogue process.
  • you can also obtain and send barrages in interactive novels.
  • the diversity of human-computer interactive content enables users to have a better reading experience when reading novels.
  • the content information of the target barrage includes the names of characters appearing in the target interactive novel; the triggering conditions for the target barrage include clicking on the names of characters appearing in the target interactive novel; and the representation form of the target barrage includes a single picture.
  • the server triggers sending to the terminal device an instruction message carrying a single picture or a target identifier used to indicate a single picture prestored in the target interactive novel based on the user's click on the character name on the interactive novel interface.
  • the method before sending an indication message to the terminal device, the method also includes: receiving a user click event from the terminal device, the user click event is used to indicate a click operation on the name of a character appearing in the target interactive novel; responding to the user click event, querying the event set, and obtaining a target response strategy corresponding to the user click event, the target response strategy is to send an indication message, and the event set includes a correspondence between events and response strategies.
  • the server when the user clicks on a person's name, the server queries the event collection based on the user's click event and obtains the target response strategy corresponding to the click event.
  • the target response strategy is to send an instruction message.
  • the server responds to the strategy corresponding to the operation when the user performs different operations, thereby improving the intelligence of human-computer interaction.
  • a single picture is displayed in the form of a barrage in the interactive novel interface of the terminal device, and the display process is to hover and display the name of the character appearing in the target interactive novel for a preset period of time.
  • the time end of the preset duration is the time node when the user's statement or operation is detected, or the time node when the currently displayed novel text content starts to be updated.
  • the disadvantage of displaying the character picture for a fixed time can be avoided, the reading habits of different users can be adapted, and the reading experience can be improved.
  • the content information of the target barrage includes user comments; the triggering condition of the target barrage includes the output barrage additionally included in the machine output content of the human-computer dialogue plot currently processed in the human-computer dialogue script. Operation instructions; sending an instruction message to the terminal device, including: sending an instruction message carrying user comments to the terminal device.
  • the barrage of the plot node can be displayed. Using the above method, communication between different users in novel reading can be achieved.
  • the user comments are target comments filtered out from multiple candidate comments.
  • the multiple candidate comments On the basis of personalized comments uploaded by multiple users for the currently processed human-computer dialogue plot; the filtering operation includes the following steps: obtaining the number of votes for each candidate comment among the multiple candidate comments, and the number of votes represents the number of votes cast for the current candidate comment. The number of votes approved by other users; and, using the candidate comment with the largest number of votes among multiple candidate comments as the target comment; sending an instruction message to the terminal device, including: sending an instruction message carrying the target comment to the terminal device.
  • the target comments are selected from the multiple comments by the number of user votes and displayed as bullet screens. This allows users to directly see the comments they want to see after opening the comments, and avoids many comments that are irrelevant to the plot of the novel from hindering the user's novel reading process.
  • inventions of the present application provide a device for processing barrages in interactive novels, which is applied to the server of the novel interactive system.
  • the novel interactive system includes a server and a terminal device for users to interactively read novels.
  • the server includes a dedicated person.
  • Machine dialogue engine The human-machine dialogue logic of the dedicated human-machine dialogue engine is given by the human-machine dialogue script of the target interactive novel.
  • the human-machine dialogue script includes multiple human-machine dialogue plots.
  • a single human-machine dialogue plot includes machine output content and user expected input content. , the machine output content includes outputting machine sentences and outputting novel text content; the device includes:
  • a calling unit used to call a dedicated human-computer dialogue engine to perform human-computer interaction with a user of a terminal device according to a human-computer dialogue script;
  • the sending unit is configured to send an instruction message to the terminal device during human-computer interaction, where the instruction message is used to instruct the target barrage in the interactive novel interface of the terminal device.
  • inventions of the present application provide an electronic device.
  • the device includes a processor, a memory, and a communication interface.
  • the processor, the memory, and the communication interface are connected to each other and complete communication between each other.
  • the memory stores executable files.
  • Program code, the communication interface is used for wireless communication, and the processor is used to retrieve the executable program code stored in the memory, and execute some or all of the steps described in any method of the first aspect, for example.
  • embodiments of the present application provide a computer-readable storage medium.
  • Program data is stored in the computer-readable storage medium.
  • the program data is executed by a processor, it is used to execute the program data to implement the first embodiment of the present application. some or all of the steps described in this aspect.
  • embodiments of the present application provide a computer program product, wherein the above-mentioned computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the above-mentioned computer program is operable to cause the computer to execute the implementation of the present application. Examples include some or all of the steps described in the first aspect.
  • the computer program product may be a software installation package.
  • Figure 1 is a schematic structural diagram of a novel interactive system provided by an embodiment of the present application.
  • Figure 2 is a schematic flowchart of a method for processing barrages in interactive novels provided by an embodiment of the present application
  • FIG3 is a schematic diagram of a structure of a character picture display provided in an embodiment of the present application.
  • Figure 4 is a schematic structural diagram of an interactive novel interface display provided by an embodiment of the present application.
  • Figure 5 is a schematic structural diagram of a barrage display provided by an embodiment of the present application.
  • Figure 6a is a functional unit block diagram of a device for processing barrages in interactive novels provided by an embodiment of the present application
  • FIG6 b is a block diagram of functional units of another device for processing bullet comments in an interactive novel provided by an embodiment of the present application;
  • Figure 7 is a structural block diagram of an electronic device provided by an embodiment of the present application.
  • Figure 1 is a schematic structural diagram of a novel interactive system provided by an embodiment of the present application.
  • the transaction system includes a novel interactive server and a user terminal device.
  • the novel interactive server includes a knowledge base and a dedicated human-computer dialogue engine.
  • the knowledge base is used to store human-computer dialogue scripts.
  • the dedicated human-computer dialogue engine is used to perform human-computer interaction with user terminal equipment according to the human-computer dialogue script.
  • the user terminal equipment Used to display the interactive novel interface.
  • the operation project of the above-mentioned live broadcast system is specifically as follows: the user performs a series of trigger operations on the target barrage on the user terminal device, and the novel interactive server sends instructions for instructing the target barrage to the user terminal device based on the user's trigger operation on the target barrage. information.
  • Figure 2 is a schematic flow chart of a method for processing barrages in interactive novels provided by an embodiment of the present application.
  • the method for processing barrages in interactive novels is applied to the server of the novel interactive system.
  • the novel interactive system includes a server.
  • the server includes a dedicated human-computer dialogue engine.
  • the human-computer dialogue logic of the dedicated human-computer dialogue engine is given by the human-computer dialogue script of the target interactive novel.
  • the method includes the following steps:
  • Step 201 Call a dedicated human-computer dialogue engine to perform human-computer interaction with the user of the terminal device according to the human-computer dialogue script.
  • the human-machine dialogue script includes multiple human-machine dialogue plots, a single human-machine dialogue plot includes machine output content and user expected input content, and machine output content includes outputting machine sentences and outputting novel text content.
  • a single human-machine dialogue scenario includes a machine response strategy, a jump condition, and a scenario jump identifier.
  • the invention briefly includes outputting machine sentences and outputting novel text content.
  • the jump condition includes a triple representing the semantics of the expected user input sentence.
  • the triple includes a first entity, a second entity and an association relationship between the first entity and the second entity.
  • the association relationship includes a semantic relationship or a grammatical relationship.
  • the plot jump identifier is used to indicate the human-computer dialogue plot to be jumped to when the jump condition of the current plot is met.
  • the triplet is constructed from one or more semantic/grammatical relations.
  • a triplet is formed by one or more semantic/grammatical relations in the sentence and the knowledge nodes connected at both ends of the semantic/grammatical relation.
  • the knowledge node Including words, phrases or entities, etc.
  • the expression form of a triple can be ⁇ r(x, y) ⁇ , where x represents the knowledge node at one end of the triple, y represents the knowledge node at the other end of the triple, and r represents the relationship between the knowledge node x and the knowledge node y. semantic/grammatical relationship between them.
  • the novel interactive server can conduct human-computer interaction with the user according to the human-computer dialogue script through a dedicated human-computer dialogue engine.
  • the user can conduct human-computer dialogue with the terminal device during the reading process, thereby realizing other functions besides novel reading. Functions, such as sending barrages, introducing plot introductions, etc., enable users to no longer feel monotonous and boring during the reading process.
  • Step 202 During the human-computer interaction process, an instruction message is sent to the terminal device.
  • the instruction message is used to instruct the target barrage in the interactive novel interface of the terminal device.
  • the terminal device after receiving the instruction message, displays the target barrage on its own interactive novel interface.
  • barrage can also implement many other functions in addition to user communication, such as annotating keywords.
  • the content information of the target barrage includes any of the following: the name of the character appearing in the target interactive novel, the brief information of the storyline associated with the current human-computer dialogue plot, the current human-computer dialogue plot The associated novel text content, user comments, and all barrage content associated with the currently processed plot node;
  • the triggering conditions for the target barrage include any of the following: clicking on the character name appearing in the target interactive novel, jumping to the first plot node of the storyline associated with the current human-computer dialogue plot, executing the current human-computer dialogue script
  • the machine output content of the processed human-computer dialogue plot additionally contains instructions for outputting barrage operations, the display strategy of the novel text is to first display it in the form of barrage and then display it in the default position, detect the user's barrage comment content, Click the barrage link displayed in the interactive novel interface;
  • the representation form of the target barrage includes at least one of the following: pictures, text, video, and voice.
  • the triggering conditions for the target barrage include clicking on the names of characters appearing in the target interactive novel.
  • the triggering condition of the target barrage includes jumping to the first plot node of the storyline associated with the current human-computer dialogue plot. , or execute instructions for outputting barrage operations included in the machine output content of the currently processed human-machine dialogue plot in the human-machine dialogue script.
  • the trigger condition of the target barrage includes the display strategy of the text content of the novel: first display it in the form of a barrage and then display it at the default position.
  • the triggering conditions for the target barrage include detecting the user's barrage comment content, or additionally included in the output content of the machine executing the human-machine dialogue plot currently processed in the human-machine dialogue script. Instructions for outputting barrage operations.
  • the triggering condition for the target barrage includes clicking the barrage link displayed in the interactive novel interface.
  • the user can display the picture barrage corresponding to the character name by clicking on the character name, or can display the novel text corresponding to the first plot node of the storyline associated with the current dialogue plot during the human-computer dialogue process.
  • the novel text corresponding to the first plot node of the storyline associated with the current dialogue plot during the human-computer dialogue process.
  • you can also obtain and send barrages in interactive novels.
  • the diversity of human-computer interactive content enables users to have a better reading experience when reading novels.
  • the content information of the target barrage includes the name of the character appearing in the target interactive novel; the triggering condition of the target barrage includes clicking on the name of the character appearing in the target interactive novel; the representation form of the target barrage includes a single picture, and the image information of the single picture is a preset avatar of the character name; sending an indication message to the terminal device includes: sending an indication message carrying a single picture to the terminal device; or, sending an indication message carrying a target identifier to the terminal device, the target identifier is used to indicate a single picture pre-stored in the target interactive novel of the terminal device.
  • the novel author can shape the image of the characters in the novel during the publishing process, so that the user can have a series of reveries based on the image of the character while reading. Users can also shape the character based on their understanding of the character while reading the novel.
  • the image of the character is mainly reflected in the form of the character's picture.
  • the server triggers sending to the terminal device an instruction message carrying a single picture or a target identifier used to indicate a single picture prestored in the target interactive novel based on the user's click on the character name on the interactive novel interface.
  • the method before sending the instruction message to the terminal device, the method further includes: receiving a user click event from the terminal device, where the user click event is used to indicate a click operation on the character name appearing in the target interactive novel; responding When a user clicks an event, query the event collection to obtain the target response strategy corresponding to the user click event.
  • the target response strategy is to send an instruction message.
  • the event collection includes the correspondence between the event and the response strategy.
  • the server when the user clicks on the character name, the server will query the event set according to the user's click event and obtain the target response strategy corresponding to the click event, and the target response strategy is to send an indication message.
  • the above method enables the server to obtain the strategy corresponding to the operation when the user performs different operations, thereby improving the intelligence of human-computer interaction.
  • a single picture is displayed in the form of a barrage in the interactive novel interface of the terminal device, and the display process is to hover and display the name of the character appearing in the target interactive novel for a preset period of time.
  • Figure 3 is a schematic structural diagram of a character picture display provided by an embodiment of the present application. As shown in Figure 3, Figure 3 includes a first interactive novel interface 30, wherein the first interactive novel interface 30 includes a character name 301. When the user clicks on the character name 301, a character picture 302 will be displayed at the position of the character name 301.
  • the time end of the preset duration is the time node when the user's statement or operation is detected, or the time node when the currently displayed novel text content starts to be updated.
  • this embodiment detects the user's statements or operations. , if the user's statement or operation is detected, it means that the user has finished appreciating the character picture, and then the character picture will be canceled and continued to be displayed.
  • the disadvantage of displaying the character pictures for a fixed time can be avoided, and the reading habits of different users can be adapted to improve the reading experience.
  • the content information of the target barrage includes user comments; the triggering condition of the target barrage includes the output barrage additionally included in the machine output content of the human-computer dialogue plot currently processed in the human-computer dialogue script. Operation instructions; sending an instruction message to the terminal device, including: sending an instruction message carrying user comments to the terminal device.
  • the barrages existing in the current plot can be displayed.
  • the bullet screen of the plot node can be displayed.
  • user comments are target comments filtered out from multiple candidate comments, and the multiple candidate comments are personalized comments uploaded by multiple users for the currently processed human-computer dialogue plot;
  • the filtering operation includes the following Steps: Obtain the number of votes for each candidate comment among multiple candidate comments. The number of votes represents the number of times the current candidate comment has been voted and approved by other users; and, target the candidate comment with the largest number of votes among the multiple candidate comments. Comment; sending an instruction message to the terminal device, including: sending an instruction message carrying the target comment to the terminal device.
  • this embodiment will filter out the most valuable comments.
  • a user posts a comment other users vote on the comment.
  • the filtering operation is to filter out the comment with the largest number of votes as the target comment, and display the target comment in the bullet screen.
  • the vote can be a yes vote or a no vote, then the number of votes is the number of yes votes minus the number of no votes.
  • the target user if the target user votes against the displayed target comment, the target comment is not allowed to be displayed for the target user, and other candidate comments other than the target comment are screened to select the one with the largest number of votes.
  • the comments are displayed as new target comments in the barrage.
  • the target comments are filtered out from the multiple comments based on the number of user votes and displayed as a barrage. This allows users to directly see the comments they want to read after opening the comments, and avoids many comments that have nothing to do with the plot of the novel that hinder the user's reading of the novel.
  • the content information of the target barrage includes all the barrage content associated with the currently processed plot node, and the triggering conditions of the target barrage include clicking on the barrage link displayed in the interactive novel interface; sending to the terminal device
  • the instruction message includes: sending an instruction message carrying all the barrage content associated with the currently processed plot node to the terminal device.
  • all the barrage content in the novel plot node during the current human-computer dialogue can be displayed in the form of a barrage link.
  • the user clicks the barrage link he or she can jump to the corresponding barrage content.
  • the user is viewing the barrage it does not affect the user's continued human-computer dialogue.
  • the dedicated human-computer dialogue engine in the server will During the process of conducting the aforementioned four human-computer dialogue plot points with the user of the terminal device, the aforementioned two pictures and two text comments are output simultaneously. This allows users to smoothly use the human-computer dialogue function, and at the same time, they can continue to view the relevant barrage content of the current plot node, improving the comprehensiveness and flexibility of using interactive novels.
  • FIG. 4 is a schematic diagram of the structure of an interactive novel interface display provided by an embodiment of the present application.
  • FIG. 4 includes a second interactive novel interface 40 and a third interactive novel interface 41, wherein the second interactive novel interface 40 includes a bullet screen link 401.
  • the bullet screen link 401 When the user clicks the bullet screen link 401, all bullet screens of the plot node will be displayed, as shown in the bullet screen content 411 in the third interactive novel interface 41. And the display of the bullet screen will not affect the progress of the human-computer dialogue.
  • the user when the user is conducting a human-computer dialogue, if the currently processed plot node includes multiple human-computer dialogue plot nodes, and there are multiple barrages at the current plot node, the user is conducting multiple human-computer dialogue plot nodes. During the process, multiple barrages existing at the current plot node can still be output simultaneously. This enables users to smoothly use the human-machine dialogue function, and at the same time, they can continue to view the relevant barrage content of the current plot node, improving the comprehensiveness and flexibility of interactive novel use.
  • the content information of the target barrage includes user comments
  • the triggering condition of the target barrage includes detecting the user's barrage comment content
  • sending an instruction message to the terminal device includes: sending the user comment to the terminal device. instruction message.
  • the sentence input by the user of the terminal device contains a sentence with the content of a barrage comment during the human-machine dialogue
  • the sentence will be displayed as a user comment in the barrage.
  • This embodiment does not require the user to deliberately send barrages, but can be completed only during the human-computer dialogue process.
  • the user comments are target comments blocked based on malicious words.
  • the malicious word shielding includes: keyword matching the user comments with the malicious words in the malicious vocabulary database, and matching the successfully matched user comments.
  • the target keyword is replaced with other preset characters, the user comment after the target keyword is replaced with other preset characters is used as the target comment, and an instruction message is sent to the terminal device, including: sending an instruction message carrying the target comment to the terminal device.
  • the malicious thesaurus can be composed of malicious words collected in various thesauruses.
  • the target comments blocked by the malicious words can better adapt to the user's viewing and improve the user's novel reading experience.
  • the method before sending the instruction message to the terminal device, further includes: obtaining the first voice information sent by the terminal device during human-computer interaction, and determining the first text corresponding to the first voice information. , parse the first text text to obtain the first semantic triplet, and determine whether the first semantic triplet matches the preset user comment semantic triplet. If the first semantic triplet matches the preset user comment semantic triplet Group matching; sending an instruction message to the terminal device, including: sending an instruction message carrying user comments to the terminal device.
  • whether the first semantic triplet matches the preset user comment semantic triplet means that the first semantic triplet has the same semantic/grammatical relationship with the preset user comment semantic triplet, and the first semantic triplet matches the preset user comment semantic triplet.
  • the knowledge nodes at both ends of the triplet belong to the range of knowledge nodes at both ends of the preset user comment semantic triplet.
  • the default user comment semantic triple is ⁇ Go to school (Zhang San + Li Si, Peking University + Zhejiang University + Sun Yat-sen University) ⁇
  • firstly the semantic/grammatical relationship between "go to school” in the first semantic triplet and "go to school” in the preset user comment semantic triplet matches
  • secondly "Zhang San” in the first semantic triplet matches "Zhang San” in the default user comment semantic triplet "Zhang San + Li Si” matches
  • "Peking University” in the first semantic triplet matches "Peking University + Zhejiang” in the default user comment semantic triplet
  • Universality + Sun Yat-sen University” matches “Peking University”
  • the first semantic triplet matches the preset user comment semantic triplet.
  • the content information of the target barrage includes brief information of the storyline associated with the current human-computer dialogue plot
  • the triggering condition of the target barrage includes jumping to the story associated with the current human-computer dialogue plot.
  • the server when jumping to the first plot node of the storyline associated with the current human-computer dialogue plot, the server will explain the brief information of the current storyline to the user of the terminal device.
  • the brief information may include the type of the storyline. , such as fantasy, love, etc. It also includes the word count of the plot content, the role of the protagonist in the story, etc.
  • it can also initially display the background of the novel's storyline or the content of the first plot node of the novel's storyline. This is to allow users to have a preliminary understanding of the storyline, so that users can judge whether the storyline belongs to their favorite storyline type based on the brief information of the storyline before reading the interactive novel, so that users can quickly choose their own. My favorite interactive novel.
  • the content information of the target barrage includes the text content of the novel associated with the current human-computer dialogue plot
  • the triggering condition of the target barrage includes the display strategy of the text content of the novel: first display it in the form of a barrage and then display it in the form of a barrage.
  • the default position is displayed; sending an instruction message to the terminal device includes: sending an instruction message carrying the novel text content associated with the current human-computer dialogue plot to the terminal device.
  • the server when the user of the terminal device selects the plot of the current human-computer dialogue, the server will first display the novel text content associated with the plot corresponding to the user's selection in the form of a barrage and then display it in the default position. This is to make the content display unobtrusive, and for terminal device users, it also reflects the interactivity of the novel.
  • the method before sending the instruction message to the terminal device, the method further includes: determining whether the representation form of the target barrage is text or speech; if the representation form of the target barrage is text, determining whether the target barrage occupies The first proportion of the interactive novel interface, and at least one blank position in the novel interactive page account for at least one second proportion of the interactive novel interface. If there is at least one third proportion higher than the first proportion in the at least one second proportion, the In at least one blank position corresponding to at least one third ratio, the closest blank position to the machine output content in a single human-computer dialogue plot in the interactive novel interface is determined as the target position, if there is no higher than the third ratio in at least one second ratio. If there is at least one third ratio of a ratio, then the blank position corresponding to the highest ratio among the at least one second ratio is determined as the target position.
  • the blank position in the interactive novel interface closest to the machine output content in a single human-computer dialogue plot is determined as the target position; the instruction message is used to instruct the target bullet in the interactive novel interface of the terminal device.
  • the screen includes: the instruction message is used to instruct the target position of the interactive novel interface of the terminal device to output the target barrage; wherein, the blank position is used to represent the position in the interactive novel interface where the machine output content can be displayed but the machine output content is not displayed.
  • the embodiment of the present application detects the blank position in the current interactive novel interface and uses the blank position to perform the barrage. display.
  • the proportion of the page occupied by the text barrages changes according to the number of text in the barrages, but the proportion of the page occupied by the voice barrages can remain unchanged, because the proportion of the page occupied by the voice barrages remains the same. It can be a very small voice play button. Therefore, in the embodiment of the present application, when displaying the barrage, text barrage and voice barrage will be distinguished.
  • the picture barrage and video barrage can be displayed by storing links, that is, clicking the storage link of the corresponding picture barrage can display the picture barrage, so the picture barrage displayed by storing the link can be displayed here. and video barrages are displayed through the display method of Chinese text barrages in the interactive novel interface in this embodiment.
  • Figure 5 is a schematic structural diagram of a barrage display provided by an embodiment of the present application.
  • Figure 5 includes a fourth interactive novel interface 50.
  • the fourth interactive novel interface 50 includes a first blank position 501, a second blank position 502, a third blank position 503 and a fourth blank position 504.
  • the target barrage is displayed on the fourth blank position 504.
  • the user's reading of the novel can be not affected during the barrage display process, thereby improving the user's reading experience.
  • a dedicated human-computer dialogue engine is called to perform human-computer interaction with the user of the terminal device according to the human-computer dialogue script; during the human-computer interaction process, an instruction message is sent to the terminal device, and the instruction message is used to Indicates the target barrage in the interactive novel interface of the terminal device.
  • Figure 6a is a functional unit block diagram of a device for processing barrages in interactive novels provided by an embodiment of the present application. It is applied to the server of the novel interactive system.
  • the novel interactive The system includes a server and a terminal device for users to interactively read novels.
  • the server includes a dedicated human-computer dialogue engine.
  • the human-computer dialogue logic of the dedicated human-computer dialogue engine is given by the human-computer dialogue script of the target interactive novel.
  • the human-computer dialogue script includes multiple
  • a single human-computer dialogue plot includes machine output content and user expected input content.
  • Machine output content includes output machine sentences and output novel text content.
  • the device 60 for processing barrages in interactive novels includes: a calling unit 601, used to call a dedicated human-computer dialogue engine to perform human-computer interaction with the user of the terminal device according to the human-computer dialogue script; a sending unit 602, used to During the human-computer interaction process, an instruction message is sent to the terminal device, and the instruction message is used to instruct the target barrage in the interactive novel interface of the terminal device.
  • the content information of the target barrage includes any of the following: the name of the character appearing in the target interactive novel, the brief information of the storyline associated with the current human-computer dialogue plot, the current human-computer dialogue plot
  • the triggering conditions for the target barrage include any of the following: click on the name of the character appearing in the target interactive novel, jump to the current person
  • the representation form of the target barrage includes at least one of the following: pictures, text, videos and voice.
  • the content information of the target barrage includes the names of characters appearing in the target interactive novel; the triggering conditions for the target barrage include clicking on the names of characters appearing in the target interactive novel; and the representation form of the target barrage includes a single picture.
  • the method before sending the instruction message to the terminal device, the method further includes: receiving a user click event from the terminal device, where the user click event is used to indicate a click operation on the character name appearing in the target interactive novel; responding When a user clicks an event, query the event collection to obtain the target response strategy corresponding to the user click event.
  • the target response strategy is to send an instruction message.
  • the event collection includes the correspondence between the event and the response strategy.
  • a single picture is displayed in the form of a barrage in the interactive novel interface of the terminal device, and the display process is to hover and display the name of the character appearing in the target interactive novel for a preset period of time.
  • the time end of the preset duration is the time node when the user's statement or operation is detected, or the time node when the currently displayed novel text content starts to be updated.
  • the content information of the target barrage includes user comments; the triggering condition of the target barrage includes the output barrage additionally included in the machine output content of the human-computer dialogue plot currently processed in the human-computer dialogue script.
  • operate The instruction; sending an instruction message to the terminal device includes: sending an instruction message carrying user comments to the terminal device.
  • user comments are target comments filtered out from multiple candidate comments, and the multiple candidate comments are personalized comments uploaded by multiple users for the currently processed human-computer dialogue plot;
  • the filtering operation includes the following Steps: Obtain the number of votes for each candidate comment among multiple candidate comments. The number of votes represents the number of times the current candidate comment has been voted and approved by other users; and, target the candidate comment with the largest number of votes among the multiple candidate comments. Comment; sending an instruction message to the terminal device, including: sending an instruction message carrying the target comment to the terminal device.
  • Figure 6b is a functional unit block diagram of another device for processing barrages in interactive novels provided by an embodiment of the present application.
  • the device 61 for processing barrages in interactive novels includes: a processing module 612 and a communication module 611.
  • the processing module 612 is used to control and manage the actions of the processing device of the barrage in the interactive novel, for example, the steps of the calling unit 601 and the sending unit 602, and/or other processes for performing the technology described herein.
  • the communication module 611 is used to support the interaction between the barrage processing device in the interactive novel and other devices.
  • the device 61 for processing barrage in interactive novels may also include a storage module 613.
  • the storage module 613 is used to store program codes and data of the device for processing device for barrage in interactive novels.
  • the processing module 612 can be a processor or a controller, for example, it can be a central processing unit (CPU), a general processor, a digital signal processor (DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application.
  • the processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of DSP and microprocessors, and the like.
  • the communication module 611 can be a transceiver, an RF circuit or a communication interface, and the like.
  • the storage module 613 can be a memory.
  • the above-mentioned processing device 61 for barrages in interactive novels can all execute the method for processing barrages in interactive novels shown in FIG. 2 .
  • the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any other combination.
  • the above-described embodiments may be implemented in whole or in part in the form of a computer program product.
  • a computer program product includes one or more computer instructions or computer programs. When computer instructions or computer programs are loaded or executed on a computer, processes or functions according to embodiments of the present application are generated in whole or in part.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., computer instructions may be transmitted from a website, computer, server, or data center via wired or wireless To another website, computer, server or data center.
  • Computer-readable storage media can be any available media that can be accessed by the computer, or data storage devices such as servers and data centers that contain one or more sets of available media.
  • Usable media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media.
  • the semiconductor medium may be a solid state drive.
  • Figure 7 is a structural block diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device 700 may include one or more of the following components: a processor 701, a memory 702 coupled to the processor 701, where the memory 702 may store One or more computer programs may be configured to implement the methods described in the above embodiments when executed by one or more processors 701 .
  • the electronic device 700 may be the above-mentioned novel interactive server.
  • the processor 701 may include one or more processing cores.
  • the processor 701 uses various interfaces and lines to connect various parts of the entire electronic device 700, and executes various functions and processes data of the electronic device 700 by running or executing instructions, programs, code sets or instruction sets stored in the memory 702, and calling data stored in the memory 702.
  • the processor 701 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA).
  • the processor 701 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), and a modem.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • modem modem
  • the CPU mainly processes the operating system, passenger interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 701, but may be implemented separately through a communication chip.
  • the memory 702 may include random access memory (RAM) or read-only memory (Read-Only Memory, ROM). Memory 702 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 702 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing each of the above method embodiments, etc.
  • the storage data area may also store data created during use of the electronic device 700 and the like.
  • the electronic device 700 may include more or fewer structural elements than those in the above structural block diagram, including, for example, a power module, a physical button, a WiFi (Wireless Fidelity) module, a speaker, a Bluetooth module, and a sensor. etc., are not limited here.
  • Embodiments of the present application provide a computer-readable storage medium, wherein program data is stored in the computer-readable storage medium. When executed by a processor, the program data is used to perform any of the methods described in the above method embodiments. Some or all steps of how to handle barrages in interactive novels.
  • Embodiments of the present application also provide a computer program product.
  • the computer program product includes a non-transitory computer-readable storage medium storing a computer program.
  • the computer program is operable to cause the computer to execute any of the steps described in the above method embodiments. Some or all of the steps of a method for handling barrages in interactive novels.
  • the computer program product may be a software installation package, and the computer includes a receiving end and/or a sending end.
  • memory can include: flash disk, read-only memory (English: Read-Only Memory, abbreviation: ROM), random access device (English: Random Access Memory, abbreviation: RAM), magnetic disk or optical disk, etc.
  • each process and/or box in the flowchart and/or block diagram, and the combination of the process and/or box in the flowchart and/or block diagram can be realized by computer program instructions.
  • These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.
  • These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions
  • the device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
  • These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device.
  • Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided in the embodiments of the present application are a method and apparatus for processing bullet chats in an interactive fiction. The method comprises: calling a dedicated human-machine conversation engine to carry out, according to a human-machine conversation script, human-machine interaction with a user of a terminal device; and during a human-machine interaction process, sending an indication message to the terminal device, the indication message being used for indicating a target bullet chat in an interactive fiction interface of the terminal device. The method can achieve bullet chat sending and acquisition during processes of users carrying out interactive-fiction human-machine interaction, thus improving the interestingness and the intelligence of using interactive fictions, and effectively improving the reading experience.

Description

互动小说中弹幕的处理方法及装置Methods and devices for processing barrages in interactive novels
本申请要求于2022年09月20日提交中国专利局、申请号为202211140727.0、申请名称为“互动小说中弹幕的处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the China Patent Office on September 20, 2022, with the application number 202211140727.0 and the application title "Method and device for processing barrages in interactive novels", the entire content of which is incorporated by reference in in this application.
技术领域Technical field
本申请属于互联网技术领域,具体涉及一种互动小说中弹幕的处理方法及装置。The present application belongs to the field of Internet technology, and specifically relates to a method and device for processing barrage in interactive novels.
背景技术Background technique
随着互联网发展,纸质小说也开始慢慢普及为电子小说,用户可以直接通过移动设备或者其他终端设备来进行小说的阅读。并且随着电子小说的发展,读者也可以在电子小说上通过小说的弹幕发送来进行读者之间的沟通交流,小说作者也可以通过小说的弹幕来对小说中复杂的剧情进行解说。但是当用户需要发送弹幕和获取其他读者的弹幕时,还是需要手动翻页到指定位置,再进行弹幕的手动发送或者其他读者弹幕的手动获取,这样使得用户小说阅读过程进行弹幕互动的智能性不足,耗费大量多余时间,阅读体验无法得到提升。With the development of the Internet, paper novels have gradually become popular as electronic novels. Users can read novels directly through mobile devices or other terminal devices. And with the development of electronic novels, readers can also communicate with each other through barrages of novels on electronic novels, and novel authors can also explain complex plots in novels through barrages of novels. However, when users need to send barrages and obtain barrages from other readers, they still need to manually turn the page to the specified position, and then manually send barrages or manually obtain barrages from other readers. This makes the user's novel reading process proceed with barrages. The interaction is not intelligent enough, consumes a lot of extra time, and the reading experience cannot be improved.
发明内容Summary of the invention
本申请实施例提供了一种互动小说中弹幕的处理方法及装置,小说互动系统的服务器在与用户进行人机互动过程中可以实现弹幕的发送获取,提升互动小说使用的趣味性和智能性,有效提升阅读体验。Embodiments of the present application provide a method and device for processing barrages in interactive novels. The server of the novel interactive system can realize the sending and acquisition of barrages during human-computer interaction with the user, thereby improving the fun and intelligence of using interactive novels. gender, effectively improving the reading experience.
第一方面,本申请实施例提供了互动小说中弹幕的处理方法,应用于小说互动系统的服务器,小说互动系统包括服务器和用户进行小说互动阅读的终端设备,其中,服务器包括专用人机对话引擎,专用人机对话引擎的人机对话逻辑由目标互动小说的人机对话剧本赋予,人机对话剧本包括多个人机对话情节,单个人机对话情节包括机器输出内容和用户预期输入内容,机器输出内容包括输出机器语句和输出小说文字内容;方法包括:调用专用人机对话引擎按照人机对话剧本与终端设备的用户进行人机互动;在人机互动的过程中,向终端设备发送指示消息,指示消息用于指示终端设备的互动小说界面中的目标弹幕。In the first aspect, embodiments of the present application provide a method for processing barrages in interactive novels, which is applied to the server of the novel interactive system. The novel interactive system includes a server and a terminal device for users to interactively read novels. The server includes a dedicated human-machine dialogue. Engine, the human-machine dialogue logic of the dedicated human-machine dialogue engine is given by the human-machine dialogue script of the target interactive novel. The human-machine dialogue script includes multiple human-machine dialogue plots. A single human-machine dialogue plot includes machine output content and user expected input content. The machine The output content includes outputting machine sentences and outputting novel text content; the method includes: calling a dedicated human-computer dialogue engine to perform human-computer interaction with the user of the terminal device according to the human-computer dialogue script; during the process of human-computer interaction, sending instruction messages to the terminal device , the instruction message is used to instruct the target barrage in the interactive novel interface of the terminal device.
可以看出,本申请实施例中,调用专用人机对话引擎按照人机对话剧本与终端设备的用户进行人机互动;在人机互动的过程中,向终端设备发送指示消息,指示消息用于指示终端设备的互动小说界面中的目标弹幕。采用上述方法,在用户进行互动小说人机互动过程中可以实现弹幕的发送获取,提升互动小说使用的趣味性和智能性,有效提升阅读体验。It can be seen that in the embodiment of the present application, a dedicated human-computer dialogue engine is called to perform human-computer interaction with the user of the terminal device according to the human-computer dialogue script; during the human-computer interaction process, an instruction message is sent to the terminal device, and the instruction message is used to Indicates the target barrage in the interactive novel interface of the terminal device. Using the above method, the barrage can be sent and obtained during the user's human-computer interaction in interactive novels, making the use of interactive novels more interesting and intelligent, and effectively improving the reading experience.
在一个可行的实施例中,目标弹幕的内容信息包括以下任意一种:目标互动小说中出现的人物名称、当前的人机对话情节所关联的故事情节的简介信息、当前的人机对话情节所关联的小说正文内容、用户评论当前处理的剧情节点所关联的全部弹幕内容;目标弹幕的触发条件包括以下任意一种:点击目标互动小说中出现的人物名称、跳转至当前的人机对话情节所关联的故事情节的第一个剧情节点、执行人机对话剧本中当前处理的人机对话情节的机器输出内容中所额外包含的输出弹幕操作的指令、小说正文内容的显示策略为先以弹幕形式显 示然后在默认位置显示、检测到用户的弹幕评论内容、点击互动小说界面中显示的弹幕链接;目标弹幕的表征形式包括以下至少一种:图片、文字、视频以及语音。In a feasible embodiment, the content information of the target barrage includes any of the following: the name of the character appearing in the target interactive novel, the brief information of the storyline associated with the current human-computer dialogue plot, the current human-computer dialogue plot The associated text content of the novel and all the barrage content associated with the currently processed plot node of the user comment; the triggering conditions for the target barrage include any of the following: click on the name of the character appearing in the target interactive novel, jump to the current person The first plot node of the storyline associated with the human-machine dialogue plot, the instructions for outputting barrage operations included in the machine output content for executing the human-machine dialogue plot currently processed in the human-machine dialogue script, and the display strategy of the novel text content First, display it in the form of a barrage The display is then displayed in the default position, the user's barrage comment content is detected, and the barrage link displayed in the interactive novel interface is clicked; the representation form of the target barrage includes at least one of the following: pictures, text, video, and voice.
在本申请实施例中,用户可以通过点击人物名称显示人物名称对应的图片弹幕,也可以在人机对话过程中显示当前对话情节所关联的故事情节的第一个剧情节点所对应的小说正文内容,还可以进行互动小说中的弹幕的获取和发送。该人机互动内容的多样性使得用户在小说阅读中能有更好的阅读体验。In the embodiment of this application, the user can display the picture barrage corresponding to the character name by clicking on the character name, or can display the novel text corresponding to the first plot node of the storyline associated with the current dialogue plot during the human-computer dialogue process. Content, you can also obtain and send barrages in interactive novels. The diversity of human-computer interactive content enables users to have a better reading experience when reading novels.
在一个可行的实施例中,目标弹幕的内容信息包括目标互动小说中出现的人物名称;目标弹幕的触发条件包括点击目标互动小说中出现的人物名称;目标弹幕的表征形式包括单个图片,且单个图片的图像信息为人物名称的预设头像;向终端设备发送指示消息,包括:向终端设备发送携带单个图片的指示消息;或者,向终端设备发送携带目标标识的指示消息,目标标识用于指示终端设备的目标互动小说中预存的单个图片。In a feasible embodiment, the content information of the target barrage includes the names of characters appearing in the target interactive novel; the triggering conditions for the target barrage include clicking on the names of characters appearing in the target interactive novel; and the representation form of the target barrage includes a single picture. , and the image information of a single picture is a preset avatar of the character's name; sending an instruction message to the terminal device includes: sending an instruction message carrying a single picture to the terminal device; or, sending an instruction message carrying a target identifier to the terminal device, and the target identifier Used to indicate a single picture prestored in the target interactive novel of the terminal device.
在本申请实施例中,服务器根据用户在互动小说界面上对人物名称的点击来触发向终端设备发送携带单个图片或用于指示目标互动小说中预存的单个图片的目标标识的指示消息。采用上述方法,让用户在小说阅读中对小说人物形象得以理解,从而实现对该人物关联情节更多的遐想,提升用户的阅读体验。In this embodiment of the present application, the server triggers sending to the terminal device an instruction message carrying a single picture or a target identifier used to indicate a single picture prestored in the target interactive novel based on the user's click on the character name on the interactive novel interface. Using the above method, users can understand the characters of the novel while reading the novel, thereby realizing more reverie about the plot of the characters and improving the user's reading experience.
在一个可行的实施例中,向终端设备发送指示消息之前,该方法还包括:接收来自终端设备的用户点击事件,用户点击事件用于指示针对目标互动小说中出现的人物名称的点击操作;响应用户点击事件,查询事件集合,获取用户点击事件对应的目标响应策略,目标响应策略为发送指示消息,事件集合包括事件和响应策略之间的对应关系。In a feasible embodiment, before sending an indication message to the terminal device, the method also includes: receiving a user click event from the terminal device, the user click event is used to indicate a click operation on the name of a character appearing in the target interactive novel; responding to the user click event, querying the event set, and obtaining a target response strategy corresponding to the user click event, the target response strategy is to send an indication message, and the event set includes a correspondence between events and response strategies.
在本申请实施例中,在用户点击人物名时,服务器会根据用户点击事件查询事件集合,得到该点击事件对应的目标响应策略,该目标响应策略为发送指示消息。采用上述方法,使得服务器在用户进行不同操作时响应该操作对应的策略,提高人机互动的智能性。In this embodiment of the present application, when the user clicks on a person's name, the server queries the event collection based on the user's click event and obtains the target response strategy corresponding to the click event. The target response strategy is to send an instruction message. Using the above method, the server responds to the strategy corresponding to the operation when the user performs different operations, thereby improving the intelligence of human-computer interaction.
在一个可行的实施例中,单个图片在终端设备的互动小说界面中以弹幕的形式显示,且显示过程为在目标互动小说中出现的人物名称的位置悬浮显示预设时长。In a feasible embodiment, a single picture is displayed in the form of a barrage in the interactive novel interface of the terminal device, and the display process is to hover and display the name of the character appearing in the target interactive novel for a preset period of time.
在本申请实施例中,在用户点击了人物名称之后,在终端设备的互动小说界面中的人物名称上会对单个图片以弹幕的形式悬浮显示预设时长。采用上述方法,让人物图片的显示变得简单,不会产生页面的跳转,提升用户的阅读体验。In this embodiment of the present application, after the user clicks on the character's name, a single picture will be suspended and displayed in the form of a barrage for a preset duration on the character's name in the interactive novel interface of the terminal device. Using the above method, the display of character pictures becomes simple, without page jumps, and improves the user's reading experience.
在一个可行的实施例中,预设时长的时间终点为检测到用户的语句或操作的时间节点,或者,为当前显示的小说正文内容开始更新的时间节点。In a feasible embodiment, the time end of the preset duration is the time node when the user's statement or operation is detected, or the time node when the currently displayed novel text content starts to be updated.
在本申请实施例中,通过检测用户的语句或操作来判断是否继续显示人物图片,可以避免了人物图片显示固定时间的弊端,可以适应不同用户的阅读习惯,提升阅读体验。In the embodiment of the present application, by detecting the user's sentences or operations to determine whether to continue to display the character picture, the disadvantage of displaying the character picture for a fixed time can be avoided, the reading habits of different users can be adapted, and the reading experience can be improved.
在一个可行的实施例中,目标弹幕的内容信息包括用户评论;目标弹幕的触发条件包括执行人机对话剧本中当前处理的人机对话情节的机器输出内容中所额外包含的输出弹幕操作的指令;向终端设备发送指示消息,包括:向终端设备发送携带用户评论的指示消息。In a feasible embodiment, the content information of the target barrage includes user comments; the triggering condition of the target barrage includes the output barrage additionally included in the machine output content of the human-computer dialogue plot currently processed in the human-computer dialogue script. Operation instructions; sending an instruction message to the terminal device, including: sending an instruction message carrying user comments to the terminal device.
在本申请实施例中,对于存在弹幕的剧情节点,可以将该剧情节点的弹幕进行显示。采用上述方法,可以实现不同用户在小说阅读之间的交流。In this embodiment of the present application, for a plot node where a barrage exists, the barrage of the plot node can be displayed. Using the above method, communication between different users in novel reading can be achieved.
在一个可行的实施例中,用户评论为从多个候选评论中筛选出的目标评论,多个候选评 论为多个用户针对当前处理的人机对话情节所上传的个性化评论;筛选操作包括以下步骤:获取多个候选评论中每个候选评论的被投票数量,被投票数量表征当前的候选评论被其他用户投票认可的次数;以及,将多个候选评论中被投票数量最大的候选评论作为目标评论;向终端设备发送指示消息,包括:向终端设备发送携带目标评论的指示消息。In a feasible embodiment, the user comments are target comments filtered out from multiple candidate comments. The multiple candidate comments On the basis of personalized comments uploaded by multiple users for the currently processed human-computer dialogue plot; the filtering operation includes the following steps: obtaining the number of votes for each candidate comment among the multiple candidate comments, and the number of votes represents the number of votes cast for the current candidate comment. The number of votes approved by other users; and, using the candidate comment with the largest number of votes among multiple candidate comments as the target comment; sending an instruction message to the terminal device, including: sending an instruction message carrying the target comment to the terminal device.
在本申请实施例中,对于存在多个评论的情况下,将多个评论中通过用户投票数筛选出目标评论作为弹幕显示。这样可以使得用户打开评论后直接看到自己想看的评论,并且避免了很多与小说情节无关的评论对用户在小说阅读过程中产生的妨碍。In the embodiment of the present application, when there are multiple comments, the target comments are selected from the multiple comments by the number of user votes and displayed as bullet screens. This allows users to directly see the comments they want to see after opening the comments, and avoids many comments that are irrelevant to the plot of the novel from hindering the user's novel reading process.
第二方面,本申请实施例提供了一种互动小说中弹幕的处理装置,应用于小说互动系统的服务器,小说互动系统包括服务器和用户进行小说互动阅读的终端设备,其中,服务器包括专用人机对话引擎,专用人机对话引擎的人机对话逻辑由目标互动小说的人机对话剧本赋予,人机对话剧本包括多个人机对话情节,单个人机对话情节包括机器输出内容和用户预期输入内容,机器输出内容包括输出机器语句和输出小说文字内容;该装置包括:In the second aspect, embodiments of the present application provide a device for processing barrages in interactive novels, which is applied to the server of the novel interactive system. The novel interactive system includes a server and a terminal device for users to interactively read novels. The server includes a dedicated person. Machine dialogue engine. The human-machine dialogue logic of the dedicated human-machine dialogue engine is given by the human-machine dialogue script of the target interactive novel. The human-machine dialogue script includes multiple human-machine dialogue plots. A single human-machine dialogue plot includes machine output content and user expected input content. , the machine output content includes outputting machine sentences and outputting novel text content; the device includes:
调用单元,用于调用专用人机对话引擎按照人机对话剧本与终端设备的用户进行人机互动;A calling unit, used to call a dedicated human-computer dialogue engine to perform human-computer interaction with a user of a terminal device according to a human-computer dialogue script;
发送单元,用于在人机互动的过程中,向终端设备发送指示消息,指示消息用于指示终端设备的互动小说界面中的目标弹幕。The sending unit is configured to send an instruction message to the terminal device during human-computer interaction, where the instruction message is used to instruct the target barrage in the interactive novel interface of the terminal device.
第三方面,本申请实施例提供了一种电子设备,该设备包括处理器、存储器、通信接口,处理器、存储器和通信接口相互连接,并且完成相互间的通信工作,存储器上存储有可执行程序代码,通信接口用于进行无线通信,处理器用于调取存储器上存储的可执行程序代码,执行例如第一方面任一方法中所描述的部分或全部的步骤。In a third aspect, embodiments of the present application provide an electronic device. The device includes a processor, a memory, and a communication interface. The processor, the memory, and the communication interface are connected to each other and complete communication between each other. The memory stores executable files. Program code, the communication interface is used for wireless communication, and the processor is used to retrieve the executable program code stored in the memory, and execute some or all of the steps described in any method of the first aspect, for example.
第四方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质中存储有程序数据,程序数据在被处理器执行时,用于执行程序数据以实现本申请实施例第一方面所描述的部分或全部步骤。In the fourth aspect, embodiments of the present application provide a computer-readable storage medium. Program data is stored in the computer-readable storage medium. When the program data is executed by a processor, it is used to execute the program data to implement the first embodiment of the present application. some or all of the steps described in this aspect.
第五方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In the fifth aspect, embodiments of the present application provide a computer program product, wherein the above-mentioned computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the above-mentioned computer program is operable to cause the computer to execute the implementation of the present application. Examples include some or all of the steps described in the first aspect. The computer program product may be a software installation package.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present application or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.
图1为本申请实施例提供的一种小说互动系统的结构示意图;Figure 1 is a schematic structural diagram of a novel interactive system provided by an embodiment of the present application;
图2为本申请实施例提供的一种互动小说中弹幕的处理方法的流程示意图;Figure 2 is a schematic flowchart of a method for processing barrages in interactive novels provided by an embodiment of the present application;
图3为本申请实施例提供的一种人物图片显示的结构示意图;FIG3 is a schematic diagram of a structure of a character picture display provided in an embodiment of the present application;
图4为本申请实施例提供的一种互动小说界面显示的结构示意图; Figure 4 is a schematic structural diagram of an interactive novel interface display provided by an embodiment of the present application;
图5为本申请实施例提供的一种弹幕显示的结构示意图;Figure 5 is a schematic structural diagram of a barrage display provided by an embodiment of the present application;
图6a是本申请实施例提供的一种互动小说中弹幕的处理装置的功能单元组成框图;Figure 6a is a functional unit block diagram of a device for processing barrages in interactive novels provided by an embodiment of the present application;
图6b是本申请实施例提供的另一种互动小说中弹幕的处理装置的功能单元组成框图;FIG6 b is a block diagram of functional units of another device for processing bullet comments in an interactive novel provided by an embodiment of the present application;
图7是本申请实施例提供的一种电子设备的结构框图。Figure 7 is a structural block diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those in the technical field to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only These are part of the embodiments of this application, but not all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤的过程、方法、系统、产品或设备没有限定于已列出的步骤,而是可选地还包括没有列出的步骤,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤。The terms "first", "second", etc. in the description and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than describing a specific sequence. Furthermore, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps is not limited to the listed steps, but optionally also includes steps that are not listed, or optionally also includes steps for these processes, methods, Additional steps inherent to the product or device.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
首先对本申请实施例所涉及的系统架构进行介绍。First, the system architecture involved in the embodiment of this application is introduced.
请参阅图1,图1为本申请实施例提供的一种小说互动系统的结构示意图,如图1所示,该交易系统包括小说互动服务器和用户终端设备。其中,小说互动服务器包括知识库和专用人机对话引擎,知识库用于存储人机对话剧本,专用人机对话引擎用于按照该人机对话剧本与用户终端设备进行人机互动,用户终端设备用于显示互动小说界面。Please refer to Figure 1. Figure 1 is a schematic structural diagram of a novel interactive system provided by an embodiment of the present application. As shown in Figure 1, the transaction system includes a novel interactive server and a user terminal device. Among them, the novel interactive server includes a knowledge base and a dedicated human-computer dialogue engine. The knowledge base is used to store human-computer dialogue scripts. The dedicated human-computer dialogue engine is used to perform human-computer interaction with user terminal equipment according to the human-computer dialogue script. The user terminal equipment Used to display the interactive novel interface.
上述直播系统的运作工程具体为:用户在用户终端设备上进行一系列目标弹幕的触发操作,小说互动服务器根据用户对目标弹幕的触发操作向用户终端设备发送用于指示目标弹幕的指示消息。The operation project of the above-mentioned live broadcast system is specifically as follows: the user performs a series of trigger operations on the target barrage on the user terminal device, and the novel interactive server sends instructions for instructing the target barrage to the user terminal device based on the user's trigger operation on the target barrage. information.
基于此,本申请实施例提供了一种互动小说中弹幕的处理方法,下面结合附图对本申请实施例进行详细说明。Based on this, the embodiment of the present application provides a method for processing barrages in interactive novels. The embodiment of the present application will be described in detail below with reference to the accompanying drawings.
请参阅图2,图2为本申请实施例提供的一种互动小说中弹幕的处理方法的流程示意图,该互动小说中弹幕的处理方法应用于小说互动系统的服务器,小说互动系统包括服务器和用户进行小说互动阅读的终端设备,其中,服务器包括专用人机对话引擎,专用人机对话引擎的人机对话逻辑由目标互动小说的人机对话剧本赋予。如图2所示,该方法包括如下步骤:Please refer to Figure 2. Figure 2 is a schematic flow chart of a method for processing barrages in interactive novels provided by an embodiment of the present application. The method for processing barrages in interactive novels is applied to the server of the novel interactive system. The novel interactive system includes a server. A terminal device for interactive reading of novels with users. The server includes a dedicated human-computer dialogue engine. The human-computer dialogue logic of the dedicated human-computer dialogue engine is given by the human-computer dialogue script of the target interactive novel. As shown in Figure 2, the method includes the following steps:
步骤201,调用专用人机对话引擎按照人机对话剧本与终端设备的用户进行人机互动。Step 201: Call a dedicated human-computer dialogue engine to perform human-computer interaction with the user of the terminal device according to the human-computer dialogue script.
其中,人机对话剧本包括多个人机对话情节,单个人机对话情节包括机器输出内容和用户预期输入内容,机器输出内容包括输出机器语句和输出小说文字内容。Among them, the human-machine dialogue script includes multiple human-machine dialogue plots, a single human-machine dialogue plot includes machine output content and user expected input content, and machine output content includes outputting machine sentences and outputting novel text content.
具体的,单个人机对话情节包括机器响应策略、跳转条件和情节跳转标识,机器响应策 略包括输出机器语句和输出小说文字内容,跳转条件包括表征预期用户输入语句的语义的三元组,三元组包括第一实体、第二实体以及第一实体和第二实体之间的关联关系,关联关系包括语义关系或语法关系,情节跳转标识用于指示当前情节的跳转条件被满足条件下所需要跳转至的人机对话情节。Specifically, a single human-machine dialogue scenario includes a machine response strategy, a jump condition, and a scenario jump identifier. The invention briefly includes outputting machine sentences and outputting novel text content. The jump condition includes a triple representing the semantics of the expected user input sentence. The triple includes a first entity, a second entity and an association relationship between the first entity and the second entity. The association relationship includes a semantic relationship or a grammatical relationship. The plot jump identifier is used to indicate the human-computer dialogue plot to be jumped to when the jump condition of the current plot is met.
其中,三元组是由一个或多个语义/语法关系进行构建的,通过句子中的一个或多个语义/语法关系以及连接在语义/语法关系两端的知识节点构成一个三元组,知识节点包括词、词组或实体等。三元组的表达形式可以是{r(x,y)},其中,x表示三元组一端的知识节点,y表示三元组另一端的知识节点,r表示知识节点x与知识节点y之间的语义/语法关系。一个句子中可能存在两个以上的知识节点,以及多个语义/语法关系,因此,一个句子中可能存在多个三元组。Among them, the triplet is constructed from one or more semantic/grammatical relations. A triplet is formed by one or more semantic/grammatical relations in the sentence and the knowledge nodes connected at both ends of the semantic/grammatical relation. The knowledge node Including words, phrases or entities, etc. The expression form of a triple can be {r(x, y)}, where x represents the knowledge node at one end of the triple, y represents the knowledge node at the other end of the triple, and r represents the relationship between the knowledge node x and the knowledge node y. semantic/grammatical relationship between them. There may be more than two knowledge nodes and multiple semantic/grammatical relationships in a sentence, so there may be multiple triples in a sentence.
其中,小说从纸质小说转变为电子小说之后,使得用户的阅读介质从纸质书本变为各种电子终端设备,如手机、平板等。用户在进行小说的阅读中,可以直接在互动小说界面上进行小说剧情的切换,但是这样与阅读纸质小说并没有太大差异,使得电子小说在阅读中难免显得枯燥。而本申请中小说互动服务器可以通过专用人机对话引擎按照人机对话剧本来与用户进行人机互动,用户在阅读过程中可以与终端设备进行人机对话,从而实现除小说阅读之外的其他功能,如进行弹幕的发送、情节的简介介绍等,使得用户可以在阅读过程中不再显得单一枯燥。Among them, after novels changed from paper novels to electronic novels, users' reading media changed from paper books to various electronic terminal devices, such as mobile phones, tablets, etc. When users are reading novels, they can directly switch the plot of the novel on the interactive novel interface, but this is not much different from reading paper novels, making electronic novels inevitably boring to read. In this application, the novel interactive server can conduct human-computer interaction with the user according to the human-computer dialogue script through a dedicated human-computer dialogue engine. The user can conduct human-computer dialogue with the terminal device during the reading process, thereby realizing other functions besides novel reading. Functions, such as sending barrages, introducing plot introductions, etc., enable users to no longer feel monotonous and boring during the reading process.
步骤202,在人机互动的过程中,向终端设备发送指示消息,指示消息用于指示终端设备的互动小说界面中的目标弹幕。Step 202: During the human-computer interaction process, an instruction message is sent to the terminal device. The instruction message is used to instruct the target barrage in the interactive novel interface of the terminal device.
具体实现中,终端设备接收指示消息后,在自身的互动小说界面显示目标弹幕。In the specific implementation, after receiving the instruction message, the terminal device displays the target barrage on its own interactive novel interface.
其中,在电子小说融入了弹幕之后,使得用户与其他用户之间的交流变得方便起来,并且,弹幕除了进行用户交流之外还可以实现很多其他功能,如对关键词的注释等。Among them, after electronic novels are integrated into barrage, communication between users and other users becomes more convenient. In addition, barrage can also implement many other functions in addition to user communication, such as annotating keywords.
在一个可行的实施例中,目标弹幕的内容信息包括以下任意一种:目标互动小说中出现的人物名称、当前的人机对话情节所关联的故事情节的简介信息、当前的人机对话情节所关联的小说正文内容、用户评论、当前处理的剧情节点所关联的全部弹幕内容;In a feasible embodiment, the content information of the target barrage includes any of the following: the name of the character appearing in the target interactive novel, the brief information of the storyline associated with the current human-computer dialogue plot, the current human-computer dialogue plot The associated novel text content, user comments, and all barrage content associated with the currently processed plot node;
目标弹幕的触发条件包括以下任意一种:点击目标互动小说中出现的人物名称、跳转至当前的人机对话情节所关联的故事情节的第一个剧情节点、执行人机对话剧本中当前处理的人机对话情节的机器输出内容中所额外包含的输出弹幕操作的指令、小说正文内容的显示策略为先以弹幕形式显示然后在默认位置显示、检测到用户的弹幕评论内容、点击互动小说界面中显示的弹幕链接;目标弹幕的表征形式包括以下至少一种:图片、文字、视频以及语音。The triggering conditions for the target barrage include any of the following: clicking on the character name appearing in the target interactive novel, jumping to the first plot node of the storyline associated with the current human-computer dialogue plot, executing the current human-computer dialogue script The machine output content of the processed human-computer dialogue plot additionally contains instructions for outputting barrage operations, the display strategy of the novel text is to first display it in the form of barrage and then display it in the default position, detect the user's barrage comment content, Click the barrage link displayed in the interactive novel interface; the representation form of the target barrage includes at least one of the following: pictures, text, video, and voice.
其中,在用户在进行互动小说的人机互动时,存在多种人机互动形式,例如上述中点击互动小说中出现的人物名称,此时就会显示弹幕内容为目标互动小说中出现的人物名称图片的目标弹幕,或者点击互动小说界面中显示的弹幕链接就会显示该链接对应的弹幕内容,如图片弹幕或视频弹幕。并且还可以通过增加人机对话剧本来实现更多的人机互动情节。Among them, when the user interacts with the human-computer in the interactive novel, there are many forms of human-computer interaction. For example, when the user clicks on the name of the character appearing in the interactive novel, the barrage content will be displayed as the character appearing in the target interactive novel. The target barrage of the name picture, or clicking the barrage link displayed in the interactive novel interface will display the barrage content corresponding to the link, such as picture barrage or video barrage. And more human-computer interaction plots can be achieved by adding human-computer dialogue scripts.
其中,对于上述目标弹幕的内容信息和触发条件存在一定的对应关系,具体可以是:Among them, there is a certain corresponding relationship between the content information and the triggering conditions of the above-mentioned target barrages. Specifically, they can be:
若目标弹幕的内容信息包括目标互动小说中出现的人物名称,目标弹幕的触发条件包括点击目标互动小说中出现的人物名称。 If the content information of the target barrage includes the names of characters appearing in the target interactive novel, the triggering conditions for the target barrage include clicking on the names of characters appearing in the target interactive novel.
若目标弹幕的内容信息包括当前的人机对话情节所关联的故事情节的简介信息,目标弹幕的触发条件包括跳转至当前的人机对话情节所关联的故事情节的第一个剧情节点,或者,执行人机对话剧本中当前处理的人机对话情节的机器输出内容中所额外包含的输出弹幕操作的指令。If the content information of the target barrage includes the brief information of the storyline associated with the current human-computer dialogue plot, the triggering condition of the target barrage includes jumping to the first plot node of the storyline associated with the current human-computer dialogue plot. , or execute instructions for outputting barrage operations included in the machine output content of the currently processed human-machine dialogue plot in the human-machine dialogue script.
若目标弹幕的内容信息包括当前的人机对话情节所关联的小说正文内容,目标弹幕的触发条件包括小说正文内容的显示策略为先以弹幕形式显示然后在默认位置显示。If the content information of the target barrage includes the text content of the novel associated with the current human-computer dialogue plot, the trigger condition of the target barrage includes the display strategy of the text content of the novel: first display it in the form of a barrage and then display it at the default position.
若目标弹幕的内容信息包括用户评论,目标弹幕的触发条件包括检测到用户的弹幕评论内容,或者,执行人机对话剧本中当前处理的人机对话情节的机器输出内容中所额外包含的输出弹幕操作的指令。If the content information of the target barrage includes user comments, the triggering conditions for the target barrage include detecting the user's barrage comment content, or additionally included in the output content of the machine executing the human-machine dialogue plot currently processed in the human-machine dialogue script. Instructions for outputting barrage operations.
若目标弹幕的内容信息包括当前处理的剧情节点所关联的全部弹幕内容,目标弹幕的触发条件包括点击互动小说界面中显示的弹幕链接。If the content information of the target barrage includes all the barrage content associated with the currently processed plot node, the triggering condition for the target barrage includes clicking the barrage link displayed in the interactive novel interface.
在本申请实施例中,用户可以通过点击人物名称显示人物名称对应的图片弹幕,也可以在人机对话过程中显示当前对话情节所关联的故事情节的第一个剧情节点所对应的小说正文内容,还可以进行互动小说中的弹幕的获取和发送。该人机互动内容的多样性使得用户在小说阅读中能有更好的阅读体验。In the embodiment of this application, the user can display the picture barrage corresponding to the character name by clicking on the character name, or can display the novel text corresponding to the first plot node of the storyline associated with the current dialogue plot during the human-computer dialogue process. Content, you can also obtain and send barrages in interactive novels. The diversity of human-computer interactive content enables users to have a better reading experience when reading novels.
下面对其分别进行说明:They are explained below:
在一个可行的实施例中,目标弹幕的内容信息包括目标互动小说中出现的人物名称;目标弹幕的触发条件包括点击目标互动小说中出现的人物名称;目标弹幕的表征形式包括单个图片,且单个图片的图像信息为人物名称的预设头像;向终端设备发送指示消息,包括:向终端设备发送携带单个图片的指示消息;或者,向终端设备发送携带目标标识的指示消息,目标标识用于指示终端设备的目标互动小说中预存的单个图片。In a feasible embodiment, the content information of the target barrage includes the name of the character appearing in the target interactive novel; the triggering condition of the target barrage includes clicking on the name of the character appearing in the target interactive novel; the representation form of the target barrage includes a single picture, and the image information of the single picture is a preset avatar of the character name; sending an indication message to the terminal device includes: sending an indication message carrying a single picture to the terminal device; or, sending an indication message carrying a target identifier to the terminal device, the target identifier is used to indicate a single picture pre-stored in the target interactive novel of the terminal device.
其中,小说作者在进行小说的出版过程中,可以对小说中的人物进行形象塑造,使得用户在进行阅读中可以根据该人物的形象进行一系列的遐想。用户也可以根据小说阅读过程中对该人物的理解进行人物形象的塑造。人物的形象主要是根据人物图片的形式进行体现,当用户在点击该人物名称时,服务器就会向终端设备发送携带关于该人物图片的指示消息,或者发送小说作者或用户上传并存储在目标互动小说中的人物图片对应的目标标识,使得该人物图片可以在终端设备上进行显示。Among them, the novel author can shape the image of the characters in the novel during the publishing process, so that the user can have a series of reveries based on the image of the character while reading. Users can also shape the character based on their understanding of the character while reading the novel. The image of the character is mainly reflected in the form of the character's picture. When the user clicks on the character's name, the server will send an instruction message carrying the character's picture to the terminal device, or send the novel author or user to upload and store it in the target interaction The target identification corresponding to the character picture in the novel enables the character picture to be displayed on the terminal device.
在本申请实施例中,服务器根据用户在互动小说界面上对人物名称的点击来触发向终端设备发送携带单个图片或用于指示目标互动小说中预存的单个图片的目标标识的指示消息。采用上述方法,让用户在小说阅读中对小说人物形象得以理解,从而实现对该人物关联情节更多的遐想,提升用户的阅读体验。In this embodiment of the present application, the server triggers sending to the terminal device an instruction message carrying a single picture or a target identifier used to indicate a single picture prestored in the target interactive novel based on the user's click on the character name on the interactive novel interface. Using the above method, users can understand the characters of the novel while reading the novel, thereby realizing more reverie about the plot of the characters and improving the user's reading experience.
在一个可行的实施例中,向终端设备发送指示消息之前,该方法还包括:接收来自终端设备的用户点击事件,用户点击事件用于指示针对目标互动小说中出现的人物名称的点击操作;响应用户点击事件,查询事件集合,获取用户点击事件对应的目标响应策略,目标响应策略为发送指示消息,事件集合包括事件和响应策略之间的对应关系。In a feasible embodiment, before sending the instruction message to the terminal device, the method further includes: receiving a user click event from the terminal device, where the user click event is used to indicate a click operation on the character name appearing in the target interactive novel; responding When a user clicks an event, query the event collection to obtain the target response strategy corresponding to the user click event. The target response strategy is to send an instruction message. The event collection includes the correspondence between the event and the response strategy.
其中,在小说中一般存在多个人物,但是对于每个人物的形象是不一样的,因此,点击不同的人物名都有对应的响应策略,使得用户在点击不同的人物名称时弹出的人物形象图片 都是该人物所对应的人物的形象图片。除此之外,在人机互动过程中还存在许多不同于点击人物名称的操作,而这些操作也可以记录在该事件集合中,在用户进行不同于点击人物名称的操作时,也是响应该操作,查询事件集合,获取与该操作对应的目标响应策略。Among them, there are usually multiple characters in novels, but the image of each character is different. Therefore, clicking on different character names has corresponding response strategies, so that the character image pops up when the user clicks on different character names. picture They are all images of the characters corresponding to the characters. In addition, during human-computer interaction, there are many operations that are different from clicking on a character's name, and these operations can also be recorded in this event collection. When the user performs an operation that is different from clicking on a character's name, the user will also respond to the operation. , query the event collection to obtain the target response strategy corresponding to the operation.
在本申请实施例中,在用户点击人物名时,服务器会根据用户点击事件查询事件集合,得到该点击事件对应的目标响应策略,该目标响应策略为发送指示消息。采用上述方法,使得服务器在用户进行不同操作时可以得到该操作对应的策略,提高人机互动的智能性。In the embodiment of the present application, when the user clicks on the character name, the server will query the event set according to the user's click event and obtain the target response strategy corresponding to the click event, and the target response strategy is to send an indication message. The above method enables the server to obtain the strategy corresponding to the operation when the user performs different operations, thereby improving the intelligence of human-computer interaction.
在一个可行的实施例中,单个图片在终端设备的互动小说界面中以弹幕的形式显示,且显示过程为在目标互动小说中出现的人物名称的位置悬浮显示预设时长。In a feasible embodiment, a single picture is displayed in the form of a barrage in the interactive novel interface of the terminal device, and the display process is to hover and display the name of the character appearing in the target interactive novel for a preset period of time.
其中,用户点击目标互动小说中的人物名称,服务器进行响应之后,会在该人物名称的位置以弹幕的形式悬浮显示预设时长的人物名称对应的人物图片。示例性地,请参阅图3,图3为本申请实施例提供的一种人物图片显示的结构示意图,如图3所示,图3包括第一互动小说界面30,其中,第一互动小说界面30中包括人物名称301,当用户对该人物名称301进行点击之后,就会在人物名称301位置上显示人物图片302。Among them, the user clicks on the character name in the target interactive novel, and after the server responds, the character picture corresponding to the character name for a preset duration will be displayed in the form of a barrage at the position of the character name. Exemplarily, please refer to Figure 3. Figure 3 is a schematic structural diagram of a character picture display provided by an embodiment of the present application. As shown in Figure 3, Figure 3 includes a first interactive novel interface 30, wherein the first interactive novel interface 30 includes a character name 301. When the user clicks on the character name 301, a character picture 302 will be displayed at the position of the character name 301.
在本申请实施例中,在用户点击了人物名称之后,在终端设备的互动小说界面中的人物名称上会对单个图片以弹幕的形式悬浮显示预设时长。采用上述方法,让人物图片的显示变得简单,不会产生页面的跳转,提升用户的阅读体验。In this embodiment of the present application, after the user clicks on the character's name, a single picture will be suspended and displayed in the form of a barrage for a preset duration on the character's name in the interactive novel interface of the terminal device. Using the above method, the display of character pictures becomes simple, without page jumps, and improves the user's reading experience.
在一个可行的实施例中,预设时长的时间终点为检测到用户的语句或操作的时间节点,或者,为当前显示的小说正文内容开始更新的时间节点。In a feasible embodiment, the time end of the preset duration is the time node when the user's statement or operation is detected, or the time node when the currently displayed novel text content starts to be updated.
其中,人物图片的显示时间若是一个固定时间的话,太短会影响用户对人物图片的欣赏,太长会影响用户对小说的阅读以及其他操作,因此,本实施例对用户的语句或操作进行检测,若检测到用户的语句或操作,说明用户对人物图片已经欣赏完毕,这时就将人物图片取消继续显示。Among them, if the display time of the character pictures is a fixed time, too short will affect the user's appreciation of the character pictures, and too long will affect the user's reading of the novel and other operations. Therefore, this embodiment detects the user's statements or operations. , if the user's statement or operation is detected, it means that the user has finished appreciating the character picture, and then the character picture will be canceled and continued to be displayed.
在本申请实施例中,通过检测用户的语句或操作来判断是否继续显示人物图片,可以避免了人物图片显示固定时间的弊端,可以适应不同用户的阅读习惯,提升阅读体验。In the embodiment of the present application, by detecting the user's sentences or operations to determine whether to continue to display the character pictures, the disadvantage of displaying the character pictures for a fixed time can be avoided, and the reading habits of different users can be adapted to improve the reading experience.
在一个可行的实施例中,目标弹幕的内容信息包括用户评论;目标弹幕的触发条件包括执行人机对话剧本中当前处理的人机对话情节的机器输出内容中所额外包含的输出弹幕操作的指令;向终端设备发送指示消息,包括:向终端设备发送携带用户评论的指示消息。In a feasible embodiment, the content information of the target barrage includes user comments; the triggering condition of the target barrage includes the output barrage additionally included in the machine output content of the human-computer dialogue plot currently processed in the human-computer dialogue script. Operation instructions; sending an instruction message to the terminal device, including: sending an instruction message carrying user comments to the terminal device.
其中,若当前剧情存在弹幕时,可以对当前剧情存在的弹幕进行显示。Among them, if there are barrages in the current plot, the barrages existing in the current plot can be displayed.
在本申请实施例中,对于存在弹幕的剧情节点,可以将该剧情节点的弹幕进行显示。采用上述方法,可以实现不同用户在小说阅读之间的交流。In the embodiment of the present application, for a plot node with a bullet screen, the bullet screen of the plot node can be displayed. The above method can realize communication between different users while reading a novel.
在一个可行的实施例中,用户评论为从多个候选评论中筛选出的目标评论,多个候选评论为多个用户针对当前处理的人机对话情节所上传的个性化评论;筛选操作包括以下步骤:获取多个候选评论中每个候选评论的被投票数量,被投票数量表征当前的候选评论被其他用户投票认可的次数;以及,将多个候选评论中被投票数量最大的候选评论作为目标评论;向终端设备发送指示消息,包括:向终端设备发送携带目标评论的指示消息。In a feasible embodiment, user comments are target comments filtered out from multiple candidate comments, and the multiple candidate comments are personalized comments uploaded by multiple users for the currently processed human-computer dialogue plot; the filtering operation includes the following Steps: Obtain the number of votes for each candidate comment among multiple candidate comments. The number of votes represents the number of times the current candidate comment has been voted and approved by other users; and, target the candidate comment with the largest number of votes among the multiple candidate comments. Comment; sending an instruction message to the terminal device, including: sending an instruction message carrying the target comment to the terminal device.
其中,当评论存在多个时,由于多个评论中可能会存在很多对小说情节无关的评论,直接对多个评论进行显示的话,这些对小说情节无关的评论若显示在前列对用户进行小说的阅 读会有所妨碍。因此,本实施例在多个评论进行显示之前,会对多个评论进行筛选出最有价值的评论,用户发布评论时,其他用户对该评论进行投票,那么该筛选操作就是将评论的投票数量最大的评论筛选出来作为目标评论,并将该目标评论进行弹幕显示。Among them, when there are multiple comments, there may be many comments that are irrelevant to the plot of the novel. If multiple comments are displayed directly, these comments that are irrelevant to the plot of the novel will be displayed in the front row, which will be difficult for users to read the novel. Therefore, before displaying multiple comments, this embodiment will filter out the most valuable comments. When a user posts a comment, other users vote on the comment. Then the filtering operation is to filter out the comment with the largest number of votes as the target comment, and display the target comment in the bullet screen.
除此之外,该投票可以是投赞同票或反对票,那么该投票数量就是赞同票减去反对票的数量。并且针对目标用户而言,若目标用户对显示的目标评论投了反对票,则该目标评论对于该目标用户不允显示,并且在除该目标评论之外的其他候选评论中再筛选出投票数量最大的评论作为新的目标评论进行弹幕显示。In addition, the vote can be a yes vote or a no vote, then the number of votes is the number of yes votes minus the number of no votes. And for the target user, if the target user votes against the displayed target comment, the target comment is not allowed to be displayed for the target user, and other candidate comments other than the target comment are screened to select the one with the largest number of votes. The comments are displayed as new target comments in the barrage.
在本申请实施例中,对于存在多个评论的情况下,将多个评论中通过用户投票数筛选出目标评论作为弹幕显示。这样可以使得用户打开评论后直接看到自己想看的评论,并且避免了很多与小说情节无关的评论对用户在小说阅读过程中产生的妨碍。In the embodiment of this application, when there are multiple comments, the target comments are filtered out from the multiple comments based on the number of user votes and displayed as a barrage. This allows users to directly see the comments they want to read after opening the comments, and avoids many comments that have nothing to do with the plot of the novel that hinder the user's reading of the novel.
在一个可行的实施例中,目标弹幕的内容信息包括当前处理的剧情节点所关联的全部弹幕内容,目标弹幕的触发条件包括点击互动小说界面中显示的弹幕链接;向终端设备发送指示消息,包括:向终端设备发送携带当前处理的剧情节点所关联的全部弹幕内容的指示消息。In a feasible embodiment, the content information of the target barrage includes all the barrage content associated with the currently processed plot node, and the triggering conditions of the target barrage include clicking on the barrage link displayed in the interactive novel interface; sending to the terminal device The instruction message includes: sending an instruction message carrying all the barrage content associated with the currently processed plot node to the terminal device.
其中,可以将当前进行人机对话时的小说剧情节点中的全部弹幕内容由一个弹幕链接的方式进行显示,当用户点击该弹幕链接时,可以跳转到对应的弹幕内容。并且用户在进行弹幕查看时并不影响用户继续进行人机对话。Among them, all the barrage content in the novel plot node during the current human-computer dialogue can be displayed in the form of a barrage link. When the user clicks the barrage link, he or she can jump to the corresponding barrage content. And when the user is viewing the barrage, it does not affect the user's continued human-computer dialogue.
示例性地,若当前进行的剧情节点中所关联的全部弹幕内容包括两个图片和两个文字评论,且当前剧情节点包括四个人机对话剧情情节,则服务器中的专用人机对话引擎在与终端设备的用户进行前述四个人机对话剧情节点的过程中,同步输出前述两个图片和两个文字评论。这样使得用户即能够流畅的使用人机对话功能,同时可以持续查看当前剧情节点的关联弹幕内容,提高互动小说使用的全面性和灵活性。For example, if all the barrage content associated with the currently ongoing plot node includes two pictures and two text comments, and the current plot node includes four human-computer dialogue storylines, the dedicated human-computer dialogue engine in the server will During the process of conducting the aforementioned four human-computer dialogue plot points with the user of the terminal device, the aforementioned two pictures and two text comments are output simultaneously. This allows users to smoothly use the human-computer dialogue function, and at the same time, they can continue to view the relevant barrage content of the current plot node, improving the comprehensiveness and flexibility of using interactive novels.
示例性地,请参阅图4,图4为本申请实施例提供的一种互动小说界面显示的结构示意图,如图4所示,图4包括第二互动小说界面40和第三互动小说界面41,其中,第二互动小说界面40中包括弹幕链接401,当用户点击弹幕链接401后,会显示出该剧情节点的全部弹幕,就如第三互动小说界面41中的弹幕内容411所示。并且弹幕的显示不会影响人机对话的进行。For example, please refer to FIG. 4, which is a schematic diagram of the structure of an interactive novel interface display provided by an embodiment of the present application. As shown in FIG. 4, FIG. 4 includes a second interactive novel interface 40 and a third interactive novel interface 41, wherein the second interactive novel interface 40 includes a bullet screen link 401. When the user clicks the bullet screen link 401, all bullet screens of the plot node will be displayed, as shown in the bullet screen content 411 in the third interactive novel interface 41. And the display of the bullet screen will not affect the progress of the human-computer dialogue.
在本申请实施例中,用户在进行人机对话过程中,若当前处理的剧情节点包括多个人机对话剧情节点,且当前剧情节点存在多个弹幕时,用户在进行多个人机对话剧情节点的进程中,仍能同步输出当前剧情节点存在的多个弹幕。使得用户即能够流畅的使用人机对话功能,同时可以持续查看当前剧情节点的关联弹幕内容,提高互动小说使用的全面性和灵活性。In the embodiment of the present application, when the user is conducting a human-computer dialogue, if the currently processed plot node includes multiple human-computer dialogue plot nodes, and there are multiple barrages at the current plot node, the user is conducting multiple human-computer dialogue plot nodes. During the process, multiple barrages existing at the current plot node can still be output simultaneously. This enables users to smoothly use the human-machine dialogue function, and at the same time, they can continue to view the relevant barrage content of the current plot node, improving the comprehensiveness and flexibility of interactive novel use.
在一个可行的实施例中,目标弹幕的内容信息包括用户评论,目标弹幕的触发条件包括检测到用户的弹幕评论内容;向终端设备发送指示消息,包括:向终端设备发送携带用户评论的指示消息。In a feasible embodiment, the content information of the target barrage includes user comments, and the triggering condition of the target barrage includes detecting the user's barrage comment content; sending an instruction message to the terminal device includes: sending the user comment to the terminal device. instruction message.
其中,当进行人机对话过程中,检测到终端设备的用户输入的语句中携带有弹幕评论内容的语句,则将该语句作为用户评论进行弹幕显示。该实施例不需要用户进行刻意的弹幕发送,而只是在人机对话过程就可以完成。Among them, when it is detected that the sentence input by the user of the terminal device contains a sentence with the content of a barrage comment during the human-machine dialogue, the sentence will be displayed as a user comment in the barrage. This embodiment does not require the user to deliberately send barrages, but can be completed only during the human-computer dialogue process.
示例性地,若当前剧情节点对话内容是:“旁白:战斗教学:要是用技能,请说出技能的名字;你已习得技能‘水到渠成’和‘金玉满堂’”,“用户:使用‘水到渠成’吧,这 个技能感觉很厉害”,可以看出,终端设备的用户的人机对话语句中,除了对应的旁边的回复“水到渠成”之外,还存在“这个技能感觉很厉害”,而“这个技能感觉很厉害”就可以属于用户弹幕评论内容,服务器检测到该内容之后就会将其以弹幕的形式进行显示。这样可以方便用户的弹幕发送。For example, if the dialogue content of the current plot node is: "Narrator: Combat teaching: If you use skills, please name the skills; you have learned the skills 'Successfully' and 'Gold and jade are everywhere'", "User: Use 'Successfully''Well, this "This skill feels very powerful". It can be seen that in the human-machine dialogue sentences of terminal device users, in addition to the corresponding reply "It comes naturally", there are also "This skill feels very powerful" and "This skill feels very powerful". "Awesome" can belong to the user's barrage comment content. After the server detects the content, it will display it in the form of barrage. This can facilitate users to send barrages.
在一个可行的实施例中,该用户评论为根据恶意词屏蔽后的目标评论,该恶意词屏蔽包括:将用户评论与恶意词库中的恶意词进行关键字匹配,对用户评论中匹配成功的目标关键字使用其他预设字符进行代替,将目标关键字进行其他预设字符代替后的用户评论作为目标评论,向终端设备发送指示消息,包括:向终端设备发送携带目标评论的指示消息。In a feasible embodiment, the user comments are target comments blocked based on malicious words. The malicious word shielding includes: keyword matching the user comments with the malicious words in the malicious vocabulary database, and matching the successfully matched user comments. The target keyword is replaced with other preset characters, the user comment after the target keyword is replaced with other preset characters is used as the target comment, and an instruction message is sent to the terminal device, including: sending an instruction message carrying the target comment to the terminal device.
其中,恶意词库可以通过各种词库中收集的恶意词来组成,通过恶意词屏蔽后的目标评论更能适应用户的观看,提升了用户的小说阅读体验。Among them, the malicious thesaurus can be composed of malicious words collected in various thesauruses. The target comments blocked by the malicious words can better adapt to the user's viewing and improve the user's novel reading experience.
在一个可行的实施例中,在向终端设备发送指示消息之前,该方法还包括:获取终端设备在进行人机互动过程中发送的第一语音信息,确定第一语音信息对应的第一文本文字,对第一文本文字进行解析获得第一语义三元组,确定第一语义三元组与预设用户评论语义三元组是否匹配,若第一语义三元组与预设用户评论语义三元组匹配;向终端设备发送指示消息,包括:向终端设备发送携带用户评论的指示消息。In a feasible embodiment, before sending the instruction message to the terminal device, the method further includes: obtaining the first voice information sent by the terminal device during human-computer interaction, and determining the first text corresponding to the first voice information. , parse the first text text to obtain the first semantic triplet, and determine whether the first semantic triplet matches the preset user comment semantic triplet. If the first semantic triplet matches the preset user comment semantic triplet Group matching; sending an instruction message to the terminal device, including: sending an instruction message carrying user comments to the terminal device.
其中,第一语义三元组是否与预设用户评论语义三元组匹配是指,该第一语义三元组与预设用户评论语义三元组的语义/语法关系相同,并且该第一语义三元组两端的知识节点,属于预设用户评论语义三元组两端知识节点的范围。示例性地,若第一语义三元组为{上学(张三,北京大学)},预设用户评论语义三元组为{上学(张三+李四,北京大学+浙江大学+中山大学)},首先第一语义三元组中“上学”和预设用户评论语义三元组中“上学”之间的语义/语法关系相匹配,其次,第一语义三元组中“张三”与预设用户评论语义三元组“张三+李四”中的“张三”相匹配,第一语义三元组中“北京大学”与预设用户评论语义三元组中“北京大学+浙江大学+中山大学”中的“北京大学”相匹配,即第一语义三元组与预设用户评论语义三元组匹配。上述举例是为了便于对本申请实施例进行说明,不应造成对本申请方案的限制。Wherein, whether the first semantic triplet matches the preset user comment semantic triplet means that the first semantic triplet has the same semantic/grammatical relationship with the preset user comment semantic triplet, and the first semantic triplet matches the preset user comment semantic triplet. The knowledge nodes at both ends of the triplet belong to the range of knowledge nodes at both ends of the preset user comment semantic triplet. For example, if the first semantic triple is {Go to school (Zhang San, Peking University)}, the default user comment semantic triple is {Go to school (Zhang San + Li Si, Peking University + Zhejiang University + Sun Yat-sen University) }, firstly, the semantic/grammatical relationship between "go to school" in the first semantic triplet and "go to school" in the preset user comment semantic triplet matches, secondly, "Zhang San" in the first semantic triplet matches "Zhang San" in the default user comment semantic triplet "Zhang San + Li Si" matches, and "Peking University" in the first semantic triplet matches "Peking University + Zhejiang" in the default user comment semantic triplet "University + Sun Yat-sen University" matches "Peking University", that is, the first semantic triplet matches the preset user comment semantic triplet. The above examples are for convenience of describing the embodiments of the present application and should not limit the solution of the present application.
在一个可行的实施例中,目标弹幕的内容信息包括当前的人机对话情节所关联的故事情节的简介信息,目标弹幕的触发条件包括跳转至当前的人机对话情节所关联的故事情节的第一个剧情节点,或者,执行人机对话剧本中当前处理的人机对话情节的机器输出内容中所额外包含的输出弹幕操作的指令;向终端设备发送指示消息,包括:向终端设备发送携带当前的人机对话情节所关联的故事情节的简介信息的指示消息。In a feasible embodiment, the content information of the target barrage includes brief information of the storyline associated with the current human-computer dialogue plot, and the triggering condition of the target barrage includes jumping to the story associated with the current human-computer dialogue plot. The first plot node of the plot, or the instruction for outputting the barrage operation included in the machine output content of the human-machine dialogue plot currently being processed in the human-machine dialogue script; sending an instruction message to the terminal device, including: to the terminal The device sends an instruction message carrying brief information of the storyline associated with the current human-computer dialogue plot.
其中,当跳转到当前人机对话情节所关联的故事情节的第一个剧情节点时,服务器会对当前故事情节的简介信息向终端设备的用户进行说明,该简介信息可以包括故事情节的类型,如玄幻、爱情等,还包括情节内容的字数,主角在故事中的角色定位等。除此之外,还可以初步显示小说故事情节的背景或者小说故事情节的第一个剧情节点的内容。而这是为了让用户对该故事情节进行初步了解,使得用户在互动小说阅读前就可以根据故事情节的简介信息判断该故事情节是否属于自己喜欢的故事情节类型,以方便用户可以快速选择到自己喜欢的互动小说。 Among them, when jumping to the first plot node of the storyline associated with the current human-computer dialogue plot, the server will explain the brief information of the current storyline to the user of the terminal device. The brief information may include the type of the storyline. , such as fantasy, love, etc. It also includes the word count of the plot content, the role of the protagonist in the story, etc. In addition, it can also initially display the background of the novel's storyline or the content of the first plot node of the novel's storyline. This is to allow users to have a preliminary understanding of the storyline, so that users can judge whether the storyline belongs to their favorite storyline type based on the brief information of the storyline before reading the interactive novel, so that users can quickly choose their own. My favorite interactive novel.
在一个可行的实施例中,目标弹幕的内容信息包括当前的人机对话情节所关联的小说正文内容,目标弹幕的触发条件包括小说正文内容的显示策略为先以弹幕形式显示然后在默认位置显示;向终端设备发送指示消息,包括:向终端设备发送携带当前的人机对话情节所关联的小说正文内容的指示消息。In a feasible embodiment, the content information of the target barrage includes the text content of the novel associated with the current human-computer dialogue plot, and the triggering condition of the target barrage includes the display strategy of the text content of the novel: first display it in the form of a barrage and then display it in the form of a barrage. The default position is displayed; sending an instruction message to the terminal device includes: sending an instruction message carrying the novel text content associated with the current human-computer dialogue plot to the terminal device.
其中,当终端设备的用户对当前人机对话剧情情节进行了选择之后,服务器会将用户作出的选择所对应的剧情情节关联的小说正文内容先以弹幕形式显示然后在默认位置显示。这样是为了内容显示的不突兀,对于终端设备的用户来讲,也体现小说的互动性。Among them, when the user of the terminal device selects the plot of the current human-computer dialogue, the server will first display the novel text content associated with the plot corresponding to the user's selection in the form of a barrage and then display it in the default position. This is to make the content display unobtrusive, and for terminal device users, it also reflects the interactivity of the novel.
在一个可行的实施例中,在向终端设备发送指示消息之前,该方法还包括:确定目标弹幕的表征形式是否为文字或语音;若目标弹幕的表征形式为文字,确定目标弹幕占互动小说界面的第一比例,以及小说互动页面中的至少一个空白位置占互动小说界面的至少一个第二比例,若至少一个第二比例中存在高于第一比例的至少一个第三比例,将至少一个第三比例对应的至少一个空白位置中与单个人机对话情节中的机器输出内容在互动小说界面中距离最近的空白位置确定为目标位置,若至少一个第二比例中不存在高于第一比例的至少一个第三比例,则将至少一个第二比例中最高的比例所对应的空白位置确定为目标位置。In a feasible embodiment, before sending the instruction message to the terminal device, the method further includes: determining whether the representation form of the target barrage is text or speech; if the representation form of the target barrage is text, determining whether the target barrage occupies The first proportion of the interactive novel interface, and at least one blank position in the novel interactive page account for at least one second proportion of the interactive novel interface. If there is at least one third proportion higher than the first proportion in the at least one second proportion, the In at least one blank position corresponding to at least one third ratio, the closest blank position to the machine output content in a single human-computer dialogue plot in the interactive novel interface is determined as the target position, if there is no higher than the third ratio in at least one second ratio. If there is at least one third ratio of a ratio, then the blank position corresponding to the highest ratio among the at least one second ratio is determined as the target position.
若目标弹幕的表征形式为语音,将互动小说界面中离单个人机对话情节中的机器输出内容最近的空白位置确定为目标位置;指示消息用于指示终端设备的互动小说界面中的目标弹幕,包括:指示消息用于指示终端设备的互动小说界面的目标位置输出目标弹幕;其中,空白位置用于表征互动小说界面中可以显示机器输出内容但是并未显示机器输出内容的位置。If the representation form of the target bullet is voice, the blank position in the interactive novel interface closest to the machine output content in a single human-computer dialogue plot is determined as the target position; the instruction message is used to instruct the target bullet in the interactive novel interface of the terminal device. The screen includes: the instruction message is used to instruct the target position of the interactive novel interface of the terminal device to output the target barrage; wherein, the blank position is used to represent the position in the interactive novel interface where the machine output content can be displayed but the machine output content is not displayed.
其中,若弹幕直接在互动小说界面中的机器输出内容上进行显示可能会影响用户对小说的阅读,因此本申请实施例通过检测当前互动小说界面中的空白位置,通过利用空白位置进行弹幕的显示。而对于文字弹幕和语音弹幕,文字弹幕所占的页面比例大小是根据弹幕文字的多少而变化的,但是语音弹幕所占的页面比例是可以一直不变的,因为语音弹幕可以是一个很小的语音播放按钮,因此本申请实施例在进行弹幕显示时会进行文字弹幕和语音弹幕的区分。并且,由于图片弹幕和视频弹幕可以通过存储链接的方式进行显示,即点击对应的图片弹幕的存储链接就可以显示该图片弹幕,因此这里可以将通过存储链接方式显示的图片弹幕和视频弹幕通过本实施例中文字弹幕在互动小说界面中的显示方法来进行显示。Among them, if the barrage is displayed directly on the machine output content in the interactive novel interface, it may affect the user's reading of the novel. Therefore, the embodiment of the present application detects the blank position in the current interactive novel interface and uses the blank position to perform the barrage. display. For text barrages and voice barrages, the proportion of the page occupied by the text barrages changes according to the number of text in the barrages, but the proportion of the page occupied by the voice barrages can remain unchanged, because the proportion of the page occupied by the voice barrages remains the same. It can be a very small voice play button. Therefore, in the embodiment of the present application, when displaying the barrage, text barrage and voice barrage will be distinguished. Moreover, since the picture barrage and video barrage can be displayed by storing links, that is, clicking the storage link of the corresponding picture barrage can display the picture barrage, so the picture barrage displayed by storing the link can be displayed here. and video barrages are displayed through the display method of Chinese text barrages in the interactive novel interface in this embodiment.
示例性地,请参阅图5,图5为本申请实施例提供的一种弹幕显示的结构示意图,如图5所示,图5包括第四互动小说界面50,在第四互动小说界面50中包括第一空白位置501、第二空白位置502、第三空白位置503和第四空白位置504,当需要在第四互动小说界面50上进行目标弹幕的显示时,根据上述实施例所示的方法选择出对应的第四空白位置504后,则在第四空白位置504上对目标弹幕进行显示。Exemplarily, please refer to Figure 5. Figure 5 is a schematic structural diagram of a barrage display provided by an embodiment of the present application. As shown in Figure 5, Figure 5 includes a fourth interactive novel interface 50. In the fourth interactive novel interface 50 includes a first blank position 501, a second blank position 502, a third blank position 503 and a fourth blank position 504. When it is necessary to display the target barrage on the fourth interactive novel interface 50, according to the above embodiment After the corresponding fourth blank position 504 is selected, the target barrage is displayed on the fourth blank position 504.
在本申请实施例中,对于目标弹幕为文字的弹幕,在互动小说界面中寻找比其目标弹幕所占互动小说页面比例大的至少一个空白位置,并将该至少一个空白位置中离机器输出内容最近的空白位置作为目标弹幕显示的位置,若该至少一个空白位置不存在时,将互动小说界面中所占页面比例最大的空白位置作为目标弹幕显示的位置;对于弹幕为语音的弹幕,将互动小说页面中离机器输出内容最近的空白位置作为目标弹幕显示的位置。采用上述方法,可以在弹幕显示的过程中不影响用户对于小说的阅读,提升了用户的阅读体验。 In the embodiment of the present application, for a barrage whose target barrage is text, find at least one blank position in the interactive novel interface that is larger than the proportion of the target barrage in the interactive novel page, and move the at least one blank position away from the The nearest blank position of the machine output content is used as the position where the target barrage is displayed. If at least one blank position does not exist, the blank position that occupies the largest proportion of the page in the interactive novel interface is used as the position where the target barrage is displayed; for barrage: For voice barrage, the blank position closest to the machine output content on the interactive novel page is used as the position where the target barrage is displayed. Using the above method, the user's reading of the novel can be not affected during the barrage display process, thereby improving the user's reading experience.
可以看出,本申请实施例中,调用专用人机对话引擎按照人机对话剧本与终端设备的用户进行人机互动;在人机互动的过程中,向终端设备发送指示消息,指示消息用于指示终端设备的互动小说界面中的目标弹幕。采用上述方法,在用户进行人机互动过程中可以实现弹幕的发送获取,提升弹幕互动的智能性,有效提升阅读体验。It can be seen that in the embodiment of the present application, a dedicated human-computer dialogue engine is called to perform human-computer interaction with the user of the terminal device according to the human-computer dialogue script; during the human-computer interaction process, an instruction message is sent to the terminal device, and the instruction message is used to Indicates the target barrage in the interactive novel interface of the terminal device. Using the above method, it is possible to send and obtain barrages during human-computer interaction, thereby improving the intelligence of barrage interactions and effectively improving the reading experience.
与上述所示的实施例一致的,请参阅图6a,图6a是本申请实施例提供的一种互动小说中弹幕的处理装置的功能单元组成框图,应用于小说互动系统的服务器,小说互动系统包括服务器和用户进行小说互动阅读的终端设备,其中,服务器包括专用人机对话引擎,专用人机对话引擎的人机对话逻辑由目标互动小说的人机对话剧本赋予,人机对话剧本包括多个人机对话情节,单个人机对话情节包括机器输出内容和用户预期输入内容,机器输出内容包括输出机器语句和输出小说文字内容。如图6a所示,互动小说中弹幕的处理装置60包括:调用单元601,用于调用专用人机对话引擎按照人机对话剧本与终端设备的用户进行人机互动;发送单元602,用于在人机互动的过程中,向终端设备发送指示消息,指示消息用于指示终端设备的互动小说界面中的目标弹幕。Consistent with the embodiment shown above, please refer to Figure 6a. Figure 6a is a functional unit block diagram of a device for processing barrages in interactive novels provided by an embodiment of the present application. It is applied to the server of the novel interactive system. The novel interactive The system includes a server and a terminal device for users to interactively read novels. The server includes a dedicated human-computer dialogue engine. The human-computer dialogue logic of the dedicated human-computer dialogue engine is given by the human-computer dialogue script of the target interactive novel. The human-computer dialogue script includes multiple A single human-computer dialogue plot includes machine output content and user expected input content. Machine output content includes output machine sentences and output novel text content. As shown in Figure 6a, the device 60 for processing barrages in interactive novels includes: a calling unit 601, used to call a dedicated human-computer dialogue engine to perform human-computer interaction with the user of the terminal device according to the human-computer dialogue script; a sending unit 602, used to During the human-computer interaction process, an instruction message is sent to the terminal device, and the instruction message is used to instruct the target barrage in the interactive novel interface of the terminal device.
在一个可行的实施例中,目标弹幕的内容信息包括以下任意一种:目标互动小说中出现的人物名称、当前的人机对话情节所关联的故事情节的简介信息、当前的人机对话情节所关联的小说正文内容、用户评论当前处理的剧情节点所关联的全部弹幕内容;目标弹幕的触发条件包括以下任意一种:点击目标互动小说中出现的人物名称、跳转至当前的人机对话情节所关联的故事情节的第一个剧情节点、执行人机对话剧本中当前处理的人机对话情节的机器输出内容中所额外包含的输出弹幕操作的指令、小说正文内容的显示策略为先以弹幕形式显示然后在默认位置显示、检测到用户的弹幕评论内容、点击互动小说界面中显示的弹幕链接;目标弹幕的表征形式包括以下至少一种:图片、文字、视频以及语音。In a feasible embodiment, the content information of the target barrage includes any of the following: the name of the character appearing in the target interactive novel, the brief information of the storyline associated with the current human-computer dialogue plot, the current human-computer dialogue plot The associated text content of the novel and all the barrage content associated with the currently processed plot node of the user comment; the triggering conditions for the target barrage include any of the following: click on the name of the character appearing in the target interactive novel, jump to the current person The first plot node of the storyline associated with the human-machine dialogue plot, the instructions for outputting barrage operations included in the machine output content for executing the human-machine dialogue plot currently processed in the human-machine dialogue script, and the display strategy of the novel text content In order to first display in the form of barrage and then display it in the default position, detect the user's barrage comment content, and click on the barrage link displayed in the interactive novel interface; the representation form of the target barrage includes at least one of the following: pictures, text, videos and voice.
在一个可行的实施例中,目标弹幕的内容信息包括目标互动小说中出现的人物名称;目标弹幕的触发条件包括点击目标互动小说中出现的人物名称;目标弹幕的表征形式包括单个图片,且单个图片的图像信息为人物名称的预设头像;向终端设备发送指示消息,包括:向终端设备发送携带单个图片的指示消息;或者,向终端设备发送携带目标标识的指示消息,目标标识用于指示终端设备的目标互动小说中预存的单个图片。In a feasible embodiment, the content information of the target barrage includes the names of characters appearing in the target interactive novel; the triggering conditions for the target barrage include clicking on the names of characters appearing in the target interactive novel; and the representation form of the target barrage includes a single picture. , and the image information of a single picture is a preset avatar of the character's name; sending an instruction message to the terminal device includes: sending an instruction message carrying a single picture to the terminal device; or, sending an instruction message carrying a target identifier to the terminal device, and the target identifier Used to indicate a single picture prestored in the target interactive novel of the terminal device.
在一个可行的实施例中,向终端设备发送指示消息之前,该方法还包括:接收来自终端设备的用户点击事件,用户点击事件用于指示针对目标互动小说中出现的人物名称的点击操作;响应用户点击事件,查询事件集合,获取用户点击事件对应的目标响应策略,目标响应策略为发送指示消息,事件集合包括事件和响应策略之间的对应关系。In a feasible embodiment, before sending the instruction message to the terminal device, the method further includes: receiving a user click event from the terminal device, where the user click event is used to indicate a click operation on the character name appearing in the target interactive novel; responding When a user clicks an event, query the event collection to obtain the target response strategy corresponding to the user click event. The target response strategy is to send an instruction message. The event collection includes the correspondence between the event and the response strategy.
在一个可行的实施例中,单个图片在终端设备的互动小说界面中以弹幕的形式显示,且显示过程为在目标互动小说中出现的人物名称的位置悬浮显示预设时长。In a feasible embodiment, a single picture is displayed in the form of a barrage in the interactive novel interface of the terminal device, and the display process is to hover and display the name of the character appearing in the target interactive novel for a preset period of time.
在一个可行的实施例中,预设时长的时间终点为检测到用户的语句或操作的时间节点,或者,为当前显示的小说正文内容开始更新的时间节点。In a feasible embodiment, the time end of the preset duration is the time node when the user's statement or operation is detected, or the time node when the currently displayed novel text content starts to be updated.
在一个可行的实施例中,目标弹幕的内容信息包括用户评论;目标弹幕的触发条件包括执行人机对话剧本中当前处理的人机对话情节的机器输出内容中所额外包含的输出弹幕操作 的指令;向终端设备发送指示消息,包括:向终端设备发送携带用户评论的指示消息。In a feasible embodiment, the content information of the target barrage includes user comments; the triggering condition of the target barrage includes the output barrage additionally included in the machine output content of the human-computer dialogue plot currently processed in the human-computer dialogue script. operate The instruction; sending an instruction message to the terminal device includes: sending an instruction message carrying user comments to the terminal device.
在一个可行的实施例中,用户评论为从多个候选评论中筛选出的目标评论,多个候选评论为多个用户针对当前处理的人机对话情节所上传的个性化评论;筛选操作包括以下步骤:获取多个候选评论中每个候选评论的被投票数量,被投票数量表征当前的候选评论被其他用户投票认可的次数;以及,将多个候选评论中被投票数量最大的候选评论作为目标评论;向终端设备发送指示消息,包括:向终端设备发送携带目标评论的指示消息。In a feasible embodiment, user comments are target comments filtered out from multiple candidate comments, and the multiple candidate comments are personalized comments uploaded by multiple users for the currently processed human-computer dialogue plot; the filtering operation includes the following Steps: Obtain the number of votes for each candidate comment among multiple candidate comments. The number of votes represents the number of times the current candidate comment has been voted and approved by other users; and, target the candidate comment with the largest number of votes among the multiple candidate comments. Comment; sending an instruction message to the terminal device, including: sending an instruction message carrying the target comment to the terminal device.
可以理解的是,由于方法实施例与装置实施例为相同技术构思的不同呈现形式,因此,本申请中方法实施例部分的内容应同步适配于装置实施例部分,此处不再赘述。It can be understood that since the method embodiment and the device embodiment are different presentation forms of the same technical concept, the content of the method embodiment part in this application should be simultaneously adapted to the device embodiment part, and will not be described again here.
在采用集成的单元的情况下,如图6b所示,图6b是本申请实施例提供的另一种互动小说中弹幕的处理装置的功能单元组成框图。在图6b中,互动小说中弹幕的处理装置61包括:处理模块612和通信模块611。处理模块612用于对互动小说中弹幕的处理装置的动作进行控制管理,例如,调用单元601和发送单元602的步骤,和/或用于执行本文所描述的技术的其它过程。通信模块611用于支持互动小说中弹幕的处理装置与其他设备之间的交互。如图6b所示,互动小说中弹幕的处理装置61还可以包括存储模块613,存储模块613用于存储互动小说中弹幕的处理装置的程序代码和数据。In the case of using an integrated unit, as shown in Figure 6b, Figure 6b is a functional unit block diagram of another device for processing barrages in interactive novels provided by an embodiment of the present application. In Figure 6b, the device 61 for processing barrages in interactive novels includes: a processing module 612 and a communication module 611. The processing module 612 is used to control and manage the actions of the processing device of the barrage in the interactive novel, for example, the steps of the calling unit 601 and the sending unit 602, and/or other processes for performing the technology described herein. The communication module 611 is used to support the interaction between the barrage processing device in the interactive novel and other devices. As shown in Figure 6b, the device 61 for processing barrage in interactive novels may also include a storage module 613. The storage module 613 is used to store program codes and data of the device for processing device for barrage in interactive novels.
其中,处理模块612可以是处理器或控制器,例如可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),ASIC,FPGA或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信模块611可以是收发器、RF电路或通信接口等。存储模块613可以是存储器。Among them, the processing module 612 can be a processor or a controller, for example, it can be a central processing unit (CPU), a general processor, a digital signal processor (DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of DSP and microprocessors, and the like. The communication module 611 can be a transceiver, an RF circuit or a communication interface, and the like. The storage module 613 can be a memory.
其中,上述方法实施例涉及的各场景的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。上述互动小说中弹幕的处理装置61均可执行上述图2所示的互动小说中弹幕的处理方法。All relevant content of each scenario involved in the above method embodiments can be quoted from the functional description of the corresponding functional module, and will not be described again here. The above-mentioned processing device 61 for barrages in interactive novels can all execute the method for processing barrages in interactive novels shown in FIG. 2 .
上述实施例,可以全部或部分地通过软件、硬件、固件或其他任意组合来实现。当使用软件实现时,上述实施例可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令或计算机程序。在计算机上加载或执行计算机指令或计算机程序时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以为通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线或无线方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集合的服务器、数据中心等数据存储设备。可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质。半导体介质可以是固态硬盘。The above embodiments may be implemented in whole or in part by software, hardware, firmware, or any other combination. When implemented using software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions or computer programs. When computer instructions or computer programs are loaded or executed on a computer, processes or functions according to embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., computer instructions may be transmitted from a website, computer, server, or data center via wired or wireless To another website, computer, server or data center. Computer-readable storage media can be any available media that can be accessed by the computer, or data storage devices such as servers and data centers that contain one or more sets of available media. Usable media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media. The semiconductor medium may be a solid state drive.
图7是本申请实施例提供的一种电子设备的结构框图。如图7所示,电子设备700可以包括一个或多个如下部件:处理器701、与处理器701耦合的存储器702,其中存储器702可存储有 一个或多个计算机程序,一个或多个计算机程序可以被配置为由一个或多个处理器701执行时实现如上述各实施例描述的方法。其中,电子设备700可以是上述小说互动服务器。Figure 7 is a structural block diagram of an electronic device provided by an embodiment of the present application. As shown in Figure 7, the electronic device 700 may include one or more of the following components: a processor 701, a memory 702 coupled to the processor 701, where the memory 702 may store One or more computer programs may be configured to implement the methods described in the above embodiments when executed by one or more processors 701 . Wherein, the electronic device 700 may be the above-mentioned novel interactive server.
处理器701可以包括一个或者多个处理核。处理器701利用各种接口和线路连接整个电子设备700内的各个部分,通过运行或执行存储在存储器702内的指令、程序、代码集或指令集,以及调用存储在存储器702内的数据,执行电子设备700的各种功能和处理数据。可选地,处理器701可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器701可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、乘客界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器701中,单独通过一块通信芯片进行实现。The processor 701 may include one or more processing cores. The processor 701 uses various interfaces and lines to connect various parts of the entire electronic device 700, and executes various functions and processes data of the electronic device 700 by running or executing instructions, programs, code sets or instruction sets stored in the memory 702, and calling data stored in the memory 702. Optionally, the processor 701 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 701 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), and a modem. Among them, the CPU mainly processes the operating system, passenger interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 701, but may be implemented separately through a communication chip.
存储器702可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。存储器702可用于存储指令、程序、代码、代码集或指令集。存储器702可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等。存储数据区还可以存储电子设备700在使用中所创建的数据等。The memory 702 may include random access memory (RAM) or read-only memory (Read-Only Memory, ROM). Memory 702 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 702 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing each of the above method embodiments, etc. The storage data area may also store data created during use of the electronic device 700 and the like.
可以理解的是,电子设备700可包括比上述结构框图中更多或更少的结构元件,例如,包括电源模块、物理按键、WiFi(Wireless Fidelity,无线保真)模块、扬声器、蓝牙模块、传感器等,在此不进行限定。It can be understood that the electronic device 700 may include more or fewer structural elements than those in the above structural block diagram, including, for example, a power module, a physical button, a WiFi (Wireless Fidelity) module, a speaker, a Bluetooth module, and a sensor. etc., are not limited here.
本申请实施例提供了一种计算机可读存储介质,其中,计算机可读存储介质中存储有程序数据,该程序数据在被处理器执行时,用于执行上述方法实施例中记载的任何一种互动小说中弹幕的处理方法的部分或全部步骤。Embodiments of the present application provide a computer-readable storage medium, wherein program data is stored in the computer-readable storage medium. When executed by a processor, the program data is used to perform any of the methods described in the above method embodiments. Some or all steps of how to handle barrages in interactive novels.
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种互动小说中弹幕的处理方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括接收端和/或发送端。Embodiments of the present application also provide a computer program product. The computer program product includes a non-transitory computer-readable storage medium storing a computer program. The computer program is operable to cause the computer to execute any of the steps described in the above method embodiments. Some or all of the steps of a method for handling barrages in interactive novels. The computer program product may be a software installation package, and the computer includes a receiving end and/or a sending end.
需要说明的是,对于前述的任一种互动小说中弹幕的处理方法的方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请所必须的。It should be noted that for any of the foregoing method embodiments of the method for processing barrages in interactive novels, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that this application There is no limitation to the sequence of actions described, as certain steps may be performed in other orders or simultaneously in accordance with the present application. Secondly, those skilled in the art should also know that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily necessary for this application.
尽管在此结合各实施例对本申请进行了描述,然而,在实施所要求保护的本申请过程中,本领域技术人员通过查看附图、公开内容、以及所附权利要求书,可理解并实现所公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。 Although the present application has been described herein in conjunction with various embodiments, those skilled in the art may understand and implement the claimed application by reviewing the drawings, the disclosure, and the appended claims. Other variations of the embodiments are disclosed. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. The mere fact that certain measures are recited in mutually different dependent claims does not mean that a combination of these measures cannot be combined to advantageous effects.
本领域普通技术人员可以理解上述任一种互动小说中弹幕的处理方法的方法实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various method embodiments of any of the above methods for processing barrages in interactive novels can be completed by instructing relevant hardware through a program, and the program can be stored in In computer readable memory, memory can include: flash disk, read-only memory (English: Read-Only Memory, abbreviation: ROM), random access device (English: Random Access Memory, abbreviation: RAM), magnetic disk or optical disk, etc.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请一种互动小说中弹幕的处理方法及装置的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请一种互动小说中弹幕的处理方法及装置的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above is a detailed introduction to the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation of a method and device for processing barrages in interactive novels of the present application. The description of the above embodiments is only used to help understanding. The method of this application and its core idea; at the same time, for those of ordinary skill in the field, there will be changes in the specific implementation and application scope based on the idea of a method and device for processing barrages in interactive novels in this application. In summary, the content of this specification should not be construed as a limitation on this application.
本申请是参照本申请实施例的方法、硬件产品和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the flowchart and/or block diagram of the method, hardware product and computer program product of the embodiment of the present application. It should be understood that each process and/or box in the flowchart and/or block diagram, and the combination of the process and/or box in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
可以理解的是,凡是被控制或者被配置以用于执行本申请一种互动小说中弹幕的处理方法的方法实施例所描述的流程图的处理方法的产品,如上述流程图的终端以及计算机程序产品,均属于本申请所描述的相关产品的范畴。It can be understood that any product that is controlled or configured to execute the processing method of the flowchart described in the embodiment of the method for processing bullet comments in an interactive novel of this application, such as the terminal and computer of the above flowchart Program products all fall into the category of related products described in this application.
显然,本领域的技术人员可以对本申请提供的一种互动小说中弹幕的处理方法及装置进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。 Obviously, those skilled in the art can make various changes and modifications to the method and device for processing barrages in interactive novels provided in this application without departing from the spirit and scope of this application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (10)

  1. 一种互动小说中弹幕的处理方法,其特征在于,应用于小说互动系统的服务器,所述小说互动系统包括所述服务器和用户进行小说互动阅读的终端设备,其中,所述服务器包括专用人机对话引擎,所述专用人机对话引擎的人机对话逻辑由目标互动小说的人机对话剧本赋予,所述人机对话剧本包括多个人机对话情节,单个人机对话情节包括机器输出内容和用户预期输入内容,所述机器输出内容包括输出机器语句和输出小说文字内容;所述方法包括:A method for processing barrages in interactive novels, characterized by being applied to a server of a novel interactive system. The novel interactive system includes the server and a terminal device for users to interactively read novels. The server includes a dedicated person. Machine dialogue engine, the human-machine dialogue logic of the dedicated human-machine dialogue engine is given by the human-machine dialogue script of the target interactive novel, the human-machine dialogue script includes multiple human-machine dialogue plots, and a single human-machine dialogue plot includes machine output content and The user expects input content, and the machine output content includes outputting machine sentences and outputting novel text content; the method includes:
    调用所述专用人机对话引擎按照所述人机对话剧本与所述终端设备的用户进行人机互动;Call the dedicated human-computer dialogue engine to perform human-computer interaction with the user of the terminal device according to the human-computer dialogue script;
    在所述人机互动的过程中,向所述终端设备发送指示消息,所述指示消息用于指示所述终端设备的互动小说界面中的目标弹幕。During the human-computer interaction process, an instruction message is sent to the terminal device, and the instruction message is used to instruct the target barrage in the interactive novel interface of the terminal device.
  2. 根据权利要求1所述的方法,其特征在于,所述目标弹幕的内容信息包括以下任意一种:所述目标互动小说中出现的人物名称、当前的人机对话情节所关联的故事情节的简介信息、当前的人机对话情节所关联的小说正文内容、用户评论、当前处理的剧情节点所关联的全部弹幕内容;The method according to claim 1, characterized in that the content information of the target barrage includes any one of the following: the names of characters appearing in the target interactive novel, the plot of the story associated with the current human-computer dialogue plot. Introduction information, novel text content related to the current human-computer dialogue plot, user comments, and all barrage content related to the currently processed plot node;
    所述目标弹幕的触发条件包括以下任意一种:点击所述目标互动小说中出现的人物名称、跳转至所述当前的人机对话情节所关联的故事情节的第一个剧情节点、执行所述人机对话剧本中当前处理的人机对话情节的机器输出内容中所额外包含的输出弹幕操作的指令、小说正文内容的显示策略为先以弹幕形式显示然后在默认位置显示、检测到用户的弹幕评论内容、点击所述互动小说界面中显示的弹幕链接;The triggering conditions for the target barrage include any of the following: clicking on the character name appearing in the target interactive novel, jumping to the first plot node of the storyline associated with the current human-computer dialogue plot, executing The instructions for outputting barrage operations and the display strategy of the text content of the novel included in the machine output content of the currently processed human-machine dialogue plot in the human-machine dialogue script are to first display in the form of barrages and then display and detect in the default position Go to the user's barrage comment content and click on the barrage link displayed in the interactive novel interface;
    所述目标弹幕的表征形式包括以下至少一种:图片、文字、视频以及语音。The representation form of the target barrage includes at least one of the following: pictures, text, video, and voice.
  3. 根据权利要求2所述的方法,其特征在于,所述目标弹幕的内容信息包括所述目标互动小说中出现的人物名称;所述目标弹幕的触发条件包括所述点击所述目标互动小说中出现的人物名称;所述目标弹幕的表征形式包括单个图片,且所述单个图片的图像信息为所述人物名称的预设头像;The method according to claim 2, wherein the content information of the target barrage includes the names of characters appearing in the target interactive novel; the triggering condition of the target barrage includes the clicking of the target interactive novel. The character name appearing in; the representation form of the target barrage includes a single picture, and the image information of the single picture is the default avatar of the character name;
    所述向所述终端设备发送指示消息,包括:The sending of the instruction message to the terminal device includes:
    向所述终端设备发送携带所述单个图片的指示消息;或者,Send an instruction message carrying the single picture to the terminal device; or,
    向所述终端设备发送携带目标标识的指示消息,所述目标标识用于指示所述终端设备的所述目标互动小说中预存的所述单个图片。Send an instruction message carrying a target identifier to the terminal device, where the target identifier is used to indicate the single picture prestored in the target interactive novel of the terminal device.
  4. 根据权利要求3所述的方法,其特征在于,所述向所述终端设备发送指示消息之前,所述方法还包括:The method according to claim 3, characterized in that before sending the instruction message to the terminal device, the method further includes:
    接收来自所述终端设备的用户点击事件,所述用户点击事件用于指示针对所述目标互动小说中出现的人物名称的点击操作;Receive a user click event from the terminal device, where the user click event is used to indicate a click operation on a character name appearing in the target interactive novel;
    响应所述用户点击事件,查询事件集合,获取所述用户点击事件对应的目标响应策略,所述目标响应策略为发送所述指示消息,所述事件集合包括事件和响应策略之间的对应关系。In response to the user click event, query the event set, and obtain the target response strategy corresponding to the user click event, the target response strategy is to send the indication message, and the event set includes the correspondence between events and response strategies.
  5. 根据权利要求3或4所述的方法,其特征在于,所述单个图片在所述终端设备的互动小说界面中以弹幕的形式显示,且显示过程为在所述目标互动小说中出现的人物名称的位置悬浮显示预设时长。 The method according to claim 3 or 4, characterized in that the single picture is displayed in the form of a barrage in the interactive novel interface of the terminal device, and the display process is a character appearing in the target interactive novel. The position of the name is displayed for a preset duration.
  6. 根据权利要求5所述的方法,其特征在于,所述预设时长的时间终点为检测到所述用户的语句或操作的时间节点,或者,为当前显示的小说正文内容开始更新的时间节点。The method according to claim 5, characterized in that the time end of the preset duration is the time node when the user's statement or operation is detected, or the time node when the currently displayed novel text content starts to be updated.
  7. 根据权利要求2所述的方法,其特征在于,所述目标弹幕的内容信息包括所述用户评论,所述目标弹幕的触发条件包括执行所述人机对话剧本中当前处理的人机对话情节的机器输出内容中所额外包含的输出弹幕操作的指令;The method according to claim 2, characterized in that the content information of the target barrage includes the user comment, and the triggering condition of the target barrage includes executing the human-computer dialogue currently processed in the human-computer dialogue script. The machine output content of the plot additionally contains instructions for outputting barrage operations;
    所述向所述终端设备发送指示消息,包括:The sending of the instruction message to the terminal device includes:
    向所述终端设备发送携带所述用户评论的指示消息。Send an instruction message carrying the user comment to the terminal device.
  8. 根据权利要求7所述的方法,其特征在于,所述用户评论为从多个候选评论中筛选出的目标评论,所述多个候选评论为多个用户针对当前处理的人机对话情节所上传的个性化评论;The method according to claim 7, characterized in that the user comments are target comments filtered out from a plurality of candidate comments, and the plurality of candidate comments are uploaded by multiple users for the currently processed human-computer dialogue plot. personalized comments;
    筛选操作包括以下步骤:获取所述多个候选评论中每个候选评论的被投票数量,所述被投票数量表征当前的候选评论被其他用户投票认可的次数;以及,将所述多个候选评论中被投票数量最大的候选评论作为所述目标评论;The screening operation includes the following steps: obtaining the number of votes for each candidate comment in the plurality of candidate comments, where the number of votes represents the number of times the current candidate comment has been voted and approved by other users; and, dividing the plurality of candidate comments into The candidate comment with the largest number of votes is used as the target comment;
    所述向所述终端设备发送指示消息,包括:The sending of the instruction message to the terminal device includes:
    向所述终端设备发送携带所述目标评论的指示消息。Send an instruction message carrying the target comment to the terminal device.
  9. 一种互动小说中弹幕的处理装置,其特征在于,应用于小说互动系统的服务器,所述小说互动系统包括所述服务器和用户进行小说互动阅读的终端设备,其中,所述服务器包括专用人机对话引擎,所述专用人机对话引擎的人机对话逻辑由目标互动小说的人机对话剧本赋予,所述人机对话剧本包括多个人机对话情节,单个人机对话情节包括机器输出内容和用户预期输入内容,所述机器输出内容包括输出机器语句和输出小说文字内容;所述装置包括:A device for processing barrages in interactive novels, characterized in that it is applied to a server of a novel interactive system. The novel interactive system includes the server and a terminal device for users to interactively read novels. The server includes a dedicated person. Machine dialogue engine, the human-machine dialogue logic of the dedicated human-machine dialogue engine is given by the human-machine dialogue script of the target interactive novel, the human-machine dialogue script includes multiple human-machine dialogue plots, and a single human-machine dialogue plot includes machine output content and The user expects to input content, and the machine output content includes outputting machine sentences and outputting novel text content; the device includes:
    调用单元,用于调用所述专用人机对话引擎按照所述人机对话剧本与所述终端设备的用户进行人机互动;A calling unit, configured to call the dedicated human-computer dialogue engine to perform human-computer interaction with the user of the terminal device according to the human-computer dialogue script;
    发送单元,用于在所述人机互动的过程中,向所述终端设备发送指示消息,所述指示消息用于指示所述终端设备的互动小说界面中的目标弹幕。A sending unit, configured to send an instruction message to the terminal device during the human-computer interaction process, where the instruction message is used to instruct a target barrage in the interactive novel interface of the terminal device.
  10. 一种电子装置,其特征在于,所述装置包括:An electronic device, characterized in that the device includes:
    处理器、存储器、通信接口,所述处理器、所述存储器和所述通信接口相互连接,并且完成相互间的通信工作;A processor, a memory, and a communication interface. The processor, the memory, and the communication interface are connected to each other and complete mutual communication work;
    所述存储器上存储有可执行程序代码,所述通信接口用于进行无线通信;The memory stores executable program code, and the communication interface is used for wireless communication;
    所述处理器用于调取所述存储器上存储的所述可执行程序代码,执行如权利要求1-8任一项所述的方法。 The processor is configured to retrieve the executable program code stored in the memory and execute the method according to any one of claims 1-8.
PCT/CN2023/083909 2022-09-20 2023-03-25 Method and apparatus for processing bullet chats in interactive fiction WO2024060559A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211140727.0A CN115237301B (en) 2022-09-20 2022-09-20 Method and device for processing barrage in interactive novel
CN202211140727.0 2022-09-20

Publications (1)

Publication Number Publication Date
WO2024060559A1 true WO2024060559A1 (en) 2024-03-28

Family

ID=83680709

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/083909 WO2024060559A1 (en) 2022-09-20 2023-03-25 Method and apparatus for processing bullet chats in interactive fiction

Country Status (2)

Country Link
CN (1) CN115237301B (en)
WO (1) WO2024060559A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115237301B (en) * 2022-09-20 2022-12-20 深圳市人马互动科技有限公司 Method and device for processing barrage in interactive novel
CN116089728B (en) * 2023-03-23 2023-06-20 深圳市人马互动科技有限公司 Method and related device for generating voice interaction novel for children

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294293A (en) * 2016-07-21 2017-01-04 北京乐动卓越科技有限公司 A kind of realize interactive electronic read system, method and apparatus
CN107168934A (en) * 2017-05-15 2017-09-15 掌阅科技股份有限公司 E-book plot reminding method, electronic equipment and computer-readable storage medium
CN109062979A (en) * 2018-07-01 2018-12-21 王晓星 A method of label language realizes interactive multimedia novel
US10481904B1 (en) * 2016-06-14 2019-11-19 Open Invention Network Llc Comment data interaction and updating among input data received for a shared application
CN111488097A (en) * 2020-04-13 2020-08-04 上海连尚网络科技有限公司 Method and equipment for providing reading presentation information
CN115237301A (en) * 2022-09-20 2022-10-25 深圳市人马互动科技有限公司 Method and device for processing bullet screen in interactive novel

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10424293B1 (en) * 2015-07-21 2019-09-24 Amazon Technologies, Inc. Using audio input and output to interact with text-based interactive content
CN107181978A (en) * 2017-06-19 2017-09-19 武汉斗鱼网络科技有限公司 A kind of barrage processing method and processing device
CN108322788B (en) * 2018-02-09 2021-03-16 武汉斗鱼网络科技有限公司 Advertisement display method and device in live video
CN108924659A (en) * 2018-06-13 2018-11-30 河南趣读信息科技有限公司 A kind of barrage system read in application software for novel
CN109992342A (en) * 2019-03-25 2019-07-09 上海连尚网络科技有限公司 A kind of information display method and equipment based on novel
CN110113636A (en) * 2019-04-28 2019-08-09 维沃移动通信有限公司 Barrage display methods, barrage method for pushing, terminal device and server
CN110765395B (en) * 2019-09-23 2023-08-22 上海掌门科技有限公司 Method and equipment for providing novel information
CN113766336B (en) * 2020-06-04 2023-09-22 腾讯科技(深圳)有限公司 Video playing control method and device, computer equipment and storage medium
CN112791393B (en) * 2021-01-26 2023-03-14 腾讯科技(深圳)有限公司 Information processing method, device, equipment and medium
CN113157172A (en) * 2021-03-12 2021-07-23 游艺星际(北京)科技有限公司 Barrage information display method, transmission method, device, terminal and storage medium
CN113986421A (en) * 2021-10-14 2022-01-28 上海呵呵呵文化传播有限公司 Bullet screen display method and device for electronic books
CN114385049A (en) * 2021-12-09 2022-04-22 维沃移动通信有限公司 Message processing method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10481904B1 (en) * 2016-06-14 2019-11-19 Open Invention Network Llc Comment data interaction and updating among input data received for a shared application
CN106294293A (en) * 2016-07-21 2017-01-04 北京乐动卓越科技有限公司 A kind of realize interactive electronic read system, method and apparatus
CN107168934A (en) * 2017-05-15 2017-09-15 掌阅科技股份有限公司 E-book plot reminding method, electronic equipment and computer-readable storage medium
CN109062979A (en) * 2018-07-01 2018-12-21 王晓星 A method of label language realizes interactive multimedia novel
CN111488097A (en) * 2020-04-13 2020-08-04 上海连尚网络科技有限公司 Method and equipment for providing reading presentation information
CN115237301A (en) * 2022-09-20 2022-10-25 深圳市人马互动科技有限公司 Method and device for processing bullet screen in interactive novel

Also Published As

Publication number Publication date
CN115237301B (en) 2022-12-20
CN115237301A (en) 2022-10-25

Similar Documents

Publication Publication Date Title
US11256865B2 (en) Method and apparatus for sending sticker image during chat session
WO2024060559A1 (en) Method and apparatus for processing bullet chats in interactive fiction
JP6384474B2 (en) Information processing apparatus and information processing method
WO2017206949A1 (en) Bullet screen content processing method, and application server and user terminal
US20140280603A1 (en) User attention and activity in chat systems
CN111372109B (en) Intelligent television and information interaction method
CN107040452B (en) Information processing method and device and computer readable storage medium
WO2021147785A1 (en) Mind map display method and electronic device
WO2016115716A1 (en) Voice playing method and voice playing device
US20210051122A1 (en) Systems and methods for pushing content
JP2022108263A (en) Method and device for providing search service in connection with chat room of messenger application
US12001442B2 (en) Systems and methods for pushing content
CN114296853A (en) Control method and device of dynamic desktop, storage medium and electronic device
US20230345076A1 (en) Methods and systems for transition-coded media, measuring engagement of transition-coded media, and distribution of components of transition-coded media
CN112287220A (en) Session group pushing method, device, equipment and computer readable storage medium
WO2024113161A1 (en) Interface display method and apparatus, device and readable storage medium
US11830030B2 (en) Methods and systems for transition-coded media, measuring engagement of transition-coded media, and distribution of components of transition-coded media
CN113282268B (en) Sound effect configuration method and device, storage medium and electronic equipment
US20140181672A1 (en) Information processing method and electronic apparatus
CN109725798A (en) The switching method and relevant apparatus of Autonomous role
CN113542845B (en) Information display method, device, equipment and storage medium
US10943380B1 (en) Systems and methods for pushing content
CN114116105A (en) Control method and device of dynamic desktop, storage medium and electronic device
CN111046196A (en) Voice comment method, system, medium and device based on picture
CN116170647B (en) Picture interaction method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23866858

Country of ref document: EP

Kind code of ref document: A1