Interactive work generation method and related apparatus
By acquiring user input information, determining user needs and appropriate review levels, and generating target interactive works, the problem of interactive works failing to satisfy different user preferences is solved, thereby improving user experience and the efficiency of interactive work generation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- XIAMEN QIWU INTELLIGENT TECH CO LTD
- Filing Date
- 2023-11-01
- Publication Date
- 2026-06-30
AI Technical Summary
Existing interactive works fail to satisfy the preferences of different users, resulting in poor user experience, low usage frequency, and dull content.
By acquiring user input information, determining user needs and appropriate review levels, and generating target interactive works, including determining the initial interactive story and expanding its content, ensuring the compliance and diversity of the story content, and generating target interactive works.
It achieves intelligence and efficiency in generating interactive works on the server, improving the user experience.
Smart Images

Figure CN117493667B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the general data processing technology field of the Internet industry, and specifically relates to an interactive work generation method and related apparatus. Background Technology
[0002] Currently, as people's demands for entertainment increase, interactive works are gradually becoming popular in the market to meet user needs.
[0003] However, the story content and scope presented in interactive works are difficult to satisfy the preferences of all users, making some users feel bored and uninterested when using interactive works, and resulting in a lack of immersion and loss of interest in continuing to use the works. This leads to low user frequency and short usage time for interactive works.
[0004] Therefore, there is an urgent need for an interactive work generation method and related device to solve the above problems. Summary of the Invention
[0005] This application provides an interactive work generation method and related apparatus. By acquiring user input information to determine the appropriate review level and user needs, the target interactive work is generated. This improves the intelligence and efficiency of the server in generating interactive works, ensuring the compliance and richness of interactive works while meeting user needs, and enhancing the user experience.
[0006] In a first aspect, embodiments of this application provide an interactive work generation method, applied to a server, wherein the server is communicatively connected to a terminal device, and the method includes:
[0007] The system receives an interactive work generation instruction from the terminal device, the instruction carrying user input information input by the user through the terminal device.
[0008] In response to the interactive work generation instruction, the system determines user needs based on the user input information, wherein the user needs are used to indicate the user's preferences for the story content of the target interactive work; and determines a target review level that is appropriate for the user based on the user input information.
[0009] Determine the initial interactive story that aligns with the user's needs;
[0010] Based on the story restriction set corresponding to the target review level, the initial interactive story is updated to determine the target interactive story, where the story restriction set is used to limit the scope of the story content of the initial interactive story;
[0011] Based on the target interactive story, perform content expansion operations to determine the target interactive work.
[0012] Secondly, an interactive work generation device is applied to a server, the server being communicatively connected to a terminal device, the device comprising:
[0013] The receiving unit is configured to receive an interactive work generation instruction from the terminal device, the interactive work generation instruction carrying user input information input by the user through the terminal device;
[0014] A response unit is configured to respond to the interactive work generation instruction, determine user needs based on the user input information, wherein the user needs are used to indicate the user's preferences for the story content of the target interactive work; and determine a target review level that is appropriate for the user based on the user input information.
[0015] A story generation unit is used to determine an initial interactive story that fits the user's needs;
[0016] The review unit is used to update the initial interactive story according to the story restriction set corresponding to the target review level to determine the target interactive story, wherein the story restriction set is used to limit the scope of the story content of the initial interactive story;
[0017] An extension unit is used to perform content extension operations based on the target interactive story to determine the target interactive work.
[0018] Thirdly, embodiments of this application provide a server including a processor, a memory, and one or more programs, the one or more programs being stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps as described in the first aspect of embodiments of this application.
[0019] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program / instructions stored thereon, which, when executed by a processor, implement the steps in the first aspect of embodiments of this application.
[0020] Fifthly, embodiments of this application provide a computer program product, including a computer program / instructions, which, when executed by a processor, implement some or all of the steps described in the first aspect of embodiments of this application.
[0021] As can be seen, in this embodiment of the application, the server obtains user input information to determine user needs and review levels, and then generates target interactive stories based on these, thereby determining target interactive works. This improves the flexibility and efficiency of the server in generating interactive works, while ensuring the compliance and diversity of interactive story content and enhancing user experience. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a structural block diagram of an interactive work generation system provided in an embodiment of this application;
[0024] Figure 2 This is a flowchart illustrating an interactive work generation method provided in an embodiment of this application;
[0025] Figure 3 This is a schematic diagram of a scenario provided in this application for updating interactive stories based on trending news content;
[0026] Figure 4 This is a schematic diagram of a vocabulary review scenario provided in an embodiment of this application;
[0027] Figure 5 This is a schematic diagram illustrating a scenario where a server performs content expansion operations, as provided in an embodiment of this application.
[0028] Figure 6a This is a functional unit block diagram of an interactive work generation device provided in an embodiment of this application;
[0029] Figure 6b This is a functional unit block diagram of another interactive work generation device provided in the embodiments of this application;
[0030] Figure 7 This is a structural block diagram of a server provided in an embodiment of this application. Detailed Implementation
[0031] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0032] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.
[0033] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0034] Please see Figure 1 , Figure 1 This is a structural block diagram of an interactive work generation system provided in an embodiment of this application. For example... Figure 1 As shown, the interactive work generation system 100 includes a server 110 and terminal devices 120. The server 110 and terminal devices 120 are communicatively connected. The terminal devices 120 generate interactive work generation instructions based on user input information and send them to the server. The server 110 determines user needs and the appropriate target review level by obtaining the user input information carried in the interactive work generation instructions from the terminal devices 120, thereby ensuring the intelligence of the server-generated interactive works and improving the diversity and compliance of the interactive works. The server 110 can be a single server, a server cluster consisting of several servers, or a cloud computing service center. The terminal devices 120 can be smartphones, laptops, or other electronic devices capable of sending instructions. One server 110 can simultaneously correspond to multiple terminal devices 120, or the interactive work generation system 100 includes multiple servers 110, with each server 110 corresponding to one or more terminal devices 120.
[0035] Based on this, the present application provides a method for generating interactive works. The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0036] Please see Figure 2 , Figure 2This is a flowchart illustrating an interactive work generation method provided in an embodiment of this application. The method is applied to server 110 in an interactive work generation system 100. The interactive work generation system 100 also includes a terminal device 120, and the server 110 is connected to the terminal device via communication 120. The method includes:
[0037] Step 201: Receive the interactive work generation instruction from the terminal device.
[0038] The interactive work generation instruction carries user input information entered by the user through the terminal device.
[0039] Since the interactive work generation instruction comes from the terminal device, the terminal device can actively send the interactive work generation instruction to the server, or the server can first send the instruction to the terminal device, and the terminal device can then respond to the instruction sent by the server by sending back the interactive work generation instruction. There is no limitation here.
[0040] The data type of user input is not limited here and depends on the type of terminal device used by the user and the input method. For example, if the user types the information, the input will be text data; if the user inputs the information by voice, the input will be voice data. Furthermore, the server can pre-send preset selectable schemes to the user's terminal device. These preset selectable schemes are multiple pre-selected options used to instruct the server to generate key elements of the interactive story. The user selects the corresponding scheme on the terminal device's display interface, and the terminal device will then send back the interactive creation command. The user's input information is then determined by the terminal device based on the selected scheme. Key elements can specifically include protagonist information, plot settings, story meaning, etc., and are not limited here.
[0041] Step 202: In response to the interactive work generation instruction, determine the user's needs based on the user's input information; and determine the target review level that is appropriate for the user based on the user's input information.
[0042] The user requirements are used to indicate the user's preferences for the story content of the target interactive work.
[0043] In one possible example, determining the target review level suitable for the user based on the user input information includes: determining the user's predicted age group based on the user input information; and determining the review level in the review level set corresponding to the predicted age group as the target review level.
[0044] The set of review levels includes multiple review levels, each corresponding to a user's age group. The review level indicates the different sets of story restrictions that follow. The principle of matching review levels according to user age groups is that the range of story content that people can accept and understand varies at different ages. For example, children can understand and accept vernacular stories, fables, idiom stories, and myths, while young adults and adults can understand and accept a much wider range of story content, including science fiction, detective stories, time-travel stories, and theatrical stories. Furthermore, the language and writing systems that children can recognize differ significantly from those of adults. To ensure the reasonableness of the story content range and the user's mental and physical well-being, matching review levels according to the user's age group is necessary and reasonable.
[0045] For example, in determining the user's predicted age range based on the user input information, the method can be divided into two cases depending on the data type of the user input information: In the first case, if the data type of the user input information is voice data, then voice analysis is performed on the user input information to determine the user's voiceprint features, and the predicted age range is determined based on the user's voiceprint features; In the second case, if the data type of the user input information is text data, then the predicted age range is determined based on the sentence complexity of at least one user statement in the user input information.
[0046] As can be seen in this example, the server can determine the user's predicted age range based on the user's input information, and match the corresponding review level based on the predicted age range. This review level is used to indicate different levels of review strategies for the server, ensuring the compliance of the subsequently generated interactive stories, and ensuring that the scope of interactive stories is not narrowed due to uniform review standards, but rather matched with a suitable story range based on the user's age range. This improves the intelligence and practicality of the server's data processing and enhances the user experience.
[0047] Step 203: Determine the initial interactive story that aligns with user needs.
[0048] Technicians can install artificial intelligence or pre-train story generation models on servers to expand the plot according to user needs and generate initial interactive stories that are adapted to user needs.
[0049] In one possible example, the user requirement includes at least one target story element; determining the initial interactive story that matches the user requirement includes: determining the missing element type based on the type of the target story element and a preset basic element type; obtaining the user's target age group and a set of interactive stories; determining the interactive story corresponding to the target age group as a reference interactive story; determining the reference story element corresponding to each basic element type based on the reference interactive story; determining the reference story element with the highest occurrence frequency corresponding to the missing element type as the target story element; and generating the initial interactive story based on the supplemented target story element.
[0050] The basic element type refers to the type of story element required by the server to generate the interactive story, and the missing element type refers to the basic element type for which the user has not indicated their personal needs; the interactive story set is a collection of all interactive stories generated by the server within a preset time period, and each interactive story in the interactive story set corresponds to an age group.
[0051] For example, basic element types may include character information, scene information, plot information, and detail information, or time, place, characters, events, and story type—that is, some basic elements used to constitute a story. For instance, story type may include: fairy tales, fables, idiom stories, myths, stories based on real events, science fiction, detective stories, time travel stories, dramatic stories, legends, everyday life stories, historical stories, inspirational stories, spiritual stories, and coming-of-age stories; character information includes the number of characters, their gender, age, species, etc.; plot information includes what different characters did; and detail information includes whether the story contains science fiction elements, whether characters have superpowers, or whether the protagonist can travel through time, etc.
[0052] For example, consider a basic element type that includes character information, scene information, plot information, and detail information. When the target story element type only includes character information and plot information, the server can determine that the missing element types include scene information and detail information. The server then obtains interactive stories generated based on different user input information within a preset time period and their corresponding age groups, as well as the user's target age group. This allows the server to determine reference interactive stories corresponding to age groups that are the same as or adjacent to the user's target age group. From the reference story elements corresponding to these reference interactive stories, the server identifies the story element with the highest frequency that is the same as the missing element type as the target story element to supplement the user's needs. In other words, it uses the story element that is popular in the corresponding age group as the supplementary story element, thereby forming a complete set of basic elements for generating the target interactive story. This ensures that the server can correctly generate the target interactive story, and that the story elements in the target interactive story are also suitable for the user's needs or the user's corresponding age group.
[0053] As can be seen in this example, by identifying the types of story elements and sets of interactive stories missing from the user's needs, the most popular story elements in the user's corresponding age group are supplemented as target story elements, thereby generating interactive stories for the user, improving the intelligence of the server in story generation, and enhancing user interest and experience.
[0054] In one possible example, if the target age group is adults and the missing element type only includes events; after determining the reference story element corresponding to each of the basic element types based on the reference interactive story, and before generating the initial interactive story based on the supplemented target story element, the method further includes: determining story type preferences based on user needs; determining target search terms based on story type preferences; obtaining hot topics corresponding to hot word groups associated with the target search terms within a preset time period; obtaining news content corresponding to each hot topic; determining the relevance of each news content based on the frequency of occurrence of the target search term; and determining the target story element corresponding to the missing element type based on the news content with the highest relevance.
[0055] For example, please refer to Figure 3 , Figure 3 This is a schematic diagram illustrating a scenario provided in this application where interactive stories are updated based on trending news content. For example... Figure 3 As shown, Figure 3 01 in the middle is used Figure 3 The user is an adult using a terminal device. This user uses the terminal device to communicate with the server (…). Figure 3 03) Send user input information to generate Figure 3 The initial interactive story in section 04. During this process, when the server determines that there is a missing element in the user's input information corresponding to the user's needs, and the missing element type is an event, it needs to combine... Figure 3 The hot news content corresponding to the hot topics in 05 is used to determine the story elements of the event as the element type, and the initial interactive story is generated based on the story elements in the user's needs and the story elements generated according to the hot news content.
[0056] When the missing element type includes events or only events, the server can determine the user's desired story type preference based on user needs and determine the target search terms accordingly. Using target search terms, the server can retrieve relevant trending topics within a preset time period from common search websites or applications, selecting the news content with the highest relevance to determine the corresponding target story elements. The reason for setting the target age group to adults is that adults are generally more interested in trending news or topics. Adding such elements to interactive stories can increase adults' reading interest, thereby increasing reading time and user engagement.
[0057] As can be seen in this example, when the missing element type includes an event, the target story element corresponding to the event is determined by the news content associated with the user's desired story type preference. This allows the interactive story to incorporate current events, improves the richness of the interactive story content, and thus increases the user's interest.
[0058] Step 204: Update the initial interactive story to determine the target interactive story based on the story restriction set corresponding to the target review level.
[0059] The story restriction set is used to limit the scope of the story content of the initial interactive story.
[0060] In one possible example, the story restriction set includes a plot type set, which is a set of plot types of plot nodes that conform to the acceptance level of the corresponding predicted age group; updating the initial interactive story to determine the target interactive story based on the story restriction set corresponding to the target review level includes: reviewing the type of each plot node in the initial interactive story; if there is a first plot node whose type does not belong to the plot type set, then determining the first plot node as a plot to be replaced; determining related plot types in the plot type set based on the types of adjacent plot nodes of the plot to be replaced; determining replaceable and non-replaceable elements of the plot to be replaced; updating the replaceable elements based on the related plot types; determining a reference plot based on the non-replaceable elements and the updated replaceable elements; and replacing the plot to be replaced with the reference plot.
[0061] Wherein, the first plot node is any one of the plot nodes, the irreplaceable elements include time and characters, and the replaceable elements include story scenes and story events.
[0062] For example, the plot type set is a collection of plot types that match the acceptance level of the corresponding predicted age group. Therefore, different plot types can be configured for different predicted age groups to ensure the user's mental and physical well-being and reading interest. For instance, when the predicted age group is children, plot types may include stories about life, coming-of-age, fairy tales, fables, and idioms; when the predicted age group is young adults, plot types may include realistic events, science fiction, detective stories, time-travel stories, dramatic stories, and legendary stories; when the predicted age group is adults, plot types may include everyday life stories, historical stories, inspirational stories, and horror stories.
[0063] In this process, because the plot type of the scene to be replaced is unsuitable for user reading, the server determines the plot type of the relatively related scene to be regenerated by obtaining the types of adjacent scene nodes to ensure the continuity of the story content. Adjacent scene nodes can be the previous scene, the next scene, or a pre-set number of preceding scene segments; there are no restrictions here. The determination of irreplaceable and replaceable elements is to ensure the continuity of the regenerated story content. Irreplaceable elements are used as elements, allowing the story generation model or artificial intelligence to regenerate the story. Finally, the unsuitable scene to be replaced is replaced with a reference scene to ensure a good user experience of the interactive work.
[0064] As can be seen in this example, the server improves the compliance and quality of interactive stories, enhances user experience, and increases the flexibility and usability of the server in data processing by reviewing whether the plot type of the story is suitable for the user's age group and replacing unsuitable plot types.
[0065] In one possible example, the story restriction set includes a vocabulary set and a sensitive word set. The vocabulary set is a set of commonly used words that match the cognitive abilities of the corresponding predicted age group, and the sensitive word set is a set of basic and variant words associated with the illegal content. Updating the initial interactive story to determine the target interactive story based on the story restriction set corresponding to the target review level includes: performing word segmentation on the initial interactive story to determine a keyword set; if there are keywords in the keyword set that do not belong to the vocabulary set, then those keywords are determined as keywords to be replaced; if the keywords to be replaced do not belong to the sensitive word set, then synonyms or near-synonyms of the keywords to be replaced are determined as replacement words based on the vocabulary set; if the keywords to be replaced belong to the sensitive word set, then a set of related words that match the plot nodes corresponding to the keywords to be replaced are determined based on the vocabulary set, and related words in the related word set that have the same semantic meaning as the keywords to be replaced are determined as replacement words; updating the corresponding keywords to be replaced based on the replacement words to determine the target interactive story.
[0066] This example illustrates the server's review process for vocabulary appearing in the initial interactive story. The review based on a vocabulary set ensures that the words in the interactive story are understandable and accessible to users of the appropriate age group, guaranteeing a high-quality reading experience. The review based on a sensitive word set ensures the compliance of the words in the interactive story, avoiding words associated with prohibited content. Prohibited content types include pornography, illegal content, social anxiety, violence, etc. To ensure rigorous review, the sensitive word set includes not only the basic words corresponding to the sensitive words but also variant words, effectively reducing the likelihood of prohibited content appearing in the interactive story.
[0067] The server employs different methods to handle overly complex or sensitive words identified during the review process. For keywords not included in either the vocabulary set or the sensitive word set, it indicates that the keyword is merely difficult for users to understand; in this case, it simply needs to be replaced with a synonym or near-synonym from the vocabulary set. For keywords belonging to the sensitive word set, a set of related words is determined based on the story content described in the plot points containing the sensitive words. The keyword to be replaced is then updated with semantically equivalent related words from this set, ensuring that the plot points after the word replacement do not feel abrupt to the user in terms of reading and comprehension.
[0068] For example, please refer to Figure 4 , Figure 4 This is a schematic diagram illustrating a vocabulary review scenario provided in an embodiment of this application. For example... Figure 4As shown, in the target interactive story, there is a section where "He said something provocative to Xiaoming, which enraged Xiaoming. Xiaoming grabbed a weapon nearby and killed Xiaoli." After... Figure 4 After a word review process by the server, the sensitive word "murder" was found in the story content. The server then marked and tagged the sensitive word. Figure 4 The warning label 02 is used to identify the sensitive word and replace it in subsequent server searches. After identifying the word as the replacement word, the related word set in the plot node can be used to identify the related word with the same semantic meaning as "kill" - "harm". Replace the sensitive word with "harm" to make the story content of the target interactive story conform to the specifications.
[0069] Specifically, after determining that the word to be replaced belongs to the sensitive word set, the method further includes: determining that the statement containing the word to be replaced is a first statement to be adjusted; determining the expressive intent and sentence structure of the first statement to be adjusted; and updating the sentence structure of the first statement to be adjusted according to the expressive intent to determine a second statement to be adjusted, wherein the second statement to be adjusted does not include the word to be replaced.
[0070] In this example, the server rewrote the sentence structure to avoid the use of sensitive words. By rearranging sentences or changing the descriptive style, the story content remains unaffected. This ensures that the rewritten sentences still convey the same information and emotion, maintaining the compliance of the storyline while improving its overall continuity.
[0071] Specifically, after performing word segmentation on the initial interactive story to determine the keyword set, the method further includes: determining the frequency of occurrence of sensitive words in the initial interactive story based on the sensitive word set; if the frequency of occurrence of the sensitive words is greater than a first preset number, determining the story scene and plot outline of the initial interactive story; determining the correlation degree between each of the sensitive words and the story scene and the plot outline; if there is a second preset number of sensitive words whose correlation degree is greater than the preset correlation degree, updating the story scene and plot of the initial interactive story to determine the target interactive story.
[0072] In this example, the server uses plot or scene adjustments. If the plot or scene contains elements that could lead to the appearance of sensitive words, adjustments can be made to avoid their use. This may require some modifications to the story, but it ensures the story's flow and integrity.
[0073] Specifically, when the preset age range is less than the predicted age, in addition to machine review by the server mentioned above, manual review can also be conducted to protect the physical and mental health of younger users, filter high-risk keywords, and ensure the compliance and quality of the content.
[0074] As can be seen in this example, the review based on the vocabulary set and the sensitive word set can ensure the compliance of interactive story content, and prevent users from stopping using interactive works due to their inability to understand or know the story content, thereby improving the user experience and the quality of interactive works.
[0075] Step 205: Perform content expansion operations based on the target interactive story to determine the target interactive work.
[0076] Specifically, the server obtains the target interactive work based on the target interactive story through the following steps: First, the server automatically generates multimedia information and interactive text that match the target interactive story after review; then, it generates audio interactive works (plot, narration, dialogue, etc.) from the text story content and interactive text through an automatic development model based on a natural language processing engine or artificial intelligence; finally, it configures the corresponding multimedia information based on the generated audio interactive works to obtain the complete interactive work.
[0077] For example, please refer to Figure 5 , Figure 5 This is a schematic diagram illustrating a scenario where a server performs content expansion operations, as provided in an embodiment of this application. Figure 5 As shown, Figure 5 The 01 in the diagram represents the user and the terminal device they use. The user communicates with the terminal device via... Figure 5 The 02 server in the middle sends an interactive artwork generation command. In response to the interactive artwork generation command, the server first generates... Figure 5 The target interactive story in section 03 is then used to generate multimedia information related to the target interactive story. Figure 5 04 in the middle), by combining the two, can be generated. Figure 5 The target interactive work is number 05. Finally, the server sends the target interactive work to the user's terminal device, allowing the user to use it. Because this target interactive work contains a lot of multimedia information, it can provide users with various reading experiences such as playing videos and music, immersing them in the experience.
[0078] In one possible example, the step of performing content expansion operations based on the target interactive story to determine the target interactive work includes: identifying the character with the highest appearance percentage in the target interactive story as the protagonist; dividing the target interactive story into plots based on scene change nodes associated with the protagonist; dividing the corresponding plots into interactive story nodes based on character interaction nodes in each plot; performing plot expansion operations on each interactive story node in each plot to determine the interactive text corresponding to the target interactive story; generating corresponding associated multimedia information based on each interactive story node in the interactive text; and determining the target interactive work based on the interactive text and the associated multimedia information.
[0079] The character interaction node is a story node in which the main character interacts with other characters.
[0080] The types of associated multimedia information are not limited to audio, images, music, video, 3D, etc.
[0081] Since target interactive works typically contain numerous interactive plot points, each with narration, dialogue, and character interactions to ensure the story's interactivity and engagement, this example uses the different interactive points of the story's protagonist in different scenes as the basis for dividing the target interactive story into multiple interactive plot points. The storyline of each interactive plot point is then expanded, and related multimedia information is generated to enrich the content of each interactive plot point, ultimately resulting in a target interactive work generated from the target interactive story.
[0082] As can be seen, in this example, by using the storyline of the main character as the main thread, the entire target interactive story is divided into multiple interactive plot nodes. By using plot expansion and generating related multimedia, the content of each interactive plot node is enriched, the efficiency of server data processing is improved, the fun of the target interactive work is enhanced, and the user experience is improved.
[0083] Specifically, the method further includes: sharing the target interactive work to a preset story community website, or generating a sharing file from the target interactive work and sending the sharing file to the corresponding terminal device in response to a sharing instruction from the terminal device.
[0084] By sharing interactive works, users can gain attention and views for their creations, increasing readership and the number of users. Furthermore, when other users click to share the file on their devices, they will download the application used to generate the interactive work, view the user's work, listen to the story audio, or interact with the server via voice to answer questions.
[0085] visible, Figure 2 This is a flowchart illustrating an interactive work generation method provided in this application embodiment. The server obtains user input information to determine user needs and review levels, and then generates a target interactive story based on this, thereby determining the target interactive work. This improves the flexibility and efficiency of the server in generating interactive works, while ensuring the compliance and diversity of the interactive story content and enhancing the user experience.
[0086] The following are embodiments of the apparatus of this application. These embodiments of the apparatus and the embodiments of the method of this application belong to the same concept and are used to execute the methods described in the embodiments of this application. For ease of explanation, only the parts related to the apparatus embodiments of this application are shown in the embodiments of this application. For specific technical details not disclosed, please refer to the description of the embodiments of the method of this application, which will not be repeated here.
[0087] This application provides an interactive work generation device, which is applied to... Figure 1 The interactive work generation system 100 shown includes a server 110 and a terminal device 120, which are communicatively connected. The terminal device generates an interactive work generation instruction based on user input and sends it to the server. Specifically, the interactive work generation device executes the steps described by the server in the above interactive work generation method. The interactive work generation device provided in this application embodiment may include modules corresponding to the respective steps.
[0088] This application embodiment can divide the interactive work generation device into functional modules based on the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. The module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0089] When dividing each function into modules according to its corresponding function. Figure 6aThis is a functional unit block diagram of an interactive work generation device provided in this application embodiment; the interactive work generation device 60 includes: a receiving unit 601, configured to receive an interactive work generation instruction from the terminal device, the interactive work generation instruction carrying user input information input by the user through the terminal device; a response unit 602, configured to respond to the interactive work generation instruction, determine user needs based on the user input information, the user needs indicating the user's preference for story content of a target interactive work; and determine a target review level suitable for the user based on the user input information; a story generation unit 603, configured to determine an initial interactive story suitable for the user needs; a review unit 604, configured to update the initial interactive story according to a story restriction set corresponding to the target review level to determine a target interactive story, the story restriction set being used to limit the scope of story content of the initial interactive story; and an expansion unit 605, configured to perform a content expansion operation based on the target interactive story to determine the target interactive work.
[0090] In one possible example, regarding determining the target review level suitable for the user based on the user input information, the response unit 602 is specifically configured to: determine the user's predicted age range based on the user input information; determine the review level in the review level set corresponding to the predicted age range as the target review level, the review level set including multiple review levels, each review level corresponding to a user age range.
[0091] In one possible example, the story constraint set includes a plot type set, which is a set of plot types of plot nodes that conform to the acceptance level of the corresponding predicted age group; in terms of updating the initial interactive story according to the story constraint set corresponding to the target review level to determine the target interactive story, the review unit 604 is specifically used to: review the type of each plot node in the initial interactive story; if there is a first plot node whose type does not belong to the plot type set, then determine the first plot node as a plot to be replaced, and the first plot node is any one of the plot nodes; determine the associated plot types in the plot type set according to the types of the adjacent plot nodes of the plot to be replaced; determine the replaceable and non-replaceable elements of the plot to be replaced, the non-replaceable elements including time and characters, and the replaceable elements including story scenes and story events; update the replaceable elements according to the associated plot types; determine a reference plot according to the non-replaceable elements and the updated replaceable elements; and replace the plot to be replaced with the reference plot.
[0092] In one possible example, the story restriction set includes a vocabulary set and a sensitive word set. The vocabulary set is a set of commonly used words that match the cognitive abilities of the corresponding predicted age group, and the sensitive word set is a set of basic and variant words associated with the illegal content. In updating the initial interactive story to determine the target interactive story based on the story restriction set corresponding to the target review level, the review unit 604 is specifically used to: perform word segmentation on the initial interactive story to determine a keyword set; if there are keywords in the keyword set that do not belong to the vocabulary set, then determine those keywords as replacement keywords; if the replacement keyword does not belong to the sensitive word set, then determine synonyms or near-synonyms of the replacement keyword as replacement words based on the vocabulary set; if the replacement keyword belongs to the sensitive word set, then determine a set of related words that match the plot node corresponding to the replacement keyword based on the vocabulary set, and determine related words in the related word set that have the same semantics as the replacement keyword as replacement words; update the corresponding replacement keyword based on the replacement words to determine the target interactive story.
[0093] In one possible example, the user requirement includes at least one target story element; in determining the initial interactive story that matches the user requirement, the story generation unit 603 is specifically configured to: determine a missing element type based on the type of the target story element and a preset basic element type, wherein the basic element type is the type of story element required by the server to generate the interactive story, and the missing element type is the basic element type for which the user has not indicated a personal requirement; obtain the user's target age group and a set of interactive stories, wherein the set of interactive stories is a set of all interactive stories generated by the server within a preset time period, and each interactive story in the set of interactive stories corresponds to an age group; determine the interactive story corresponding to the target age group as a reference interactive story; determine a reference story element corresponding to each basic element type based on the reference interactive story; determine the reference story element with the highest occurrence frequency corresponding to the missing element type as the target story element; and generate the initial interactive story based on the supplemented target story element.
[0094] In a possible example, if the target age group is adults and the missing element type only includes events; after determining the reference story element corresponding to each of the basic element types based on the reference interactive story, and before generating the initial interactive story based on the supplemented target story element, the story generation unit 603 is further configured to: determine story type preferences based on the user needs; determine target search terms based on the story type preferences; obtain hot topics corresponding to hot word groups associated with the target search terms within a preset time period; obtain news content corresponding to each hot topic; determine the relevance of each news content based on the frequency of occurrence of the target search term; and determine the target story element corresponding to the missing element type based on the news content with the highest relevance.
[0095] In one possible example, regarding the step of performing content expansion operations based on the target interactive story to determine the target interactive work, the expansion unit 605 is specifically configured to: determine the character with the highest proportion of appearance in the target interactive story as the protagonist; divide the target interactive story according to the scene change nodes associated with the protagonist, and determine the storyline; divide the corresponding storyline according to the character interaction nodes in each storyline, and determine the interactive plot nodes, wherein the character interaction nodes are story nodes in which the protagonist interacts with other characters; perform a plot expansion operation for each interactive plot node in each storyline, and determine the interactive text corresponding to the target interactive story; generate corresponding associated multimedia information based on each interactive plot node in the interactive text; and determine the target interactive work based on the interactive text and the associated multimedia information.
[0096] When using integrated units, such as Figure 6b As shown, Figure 6b This is a functional unit block diagram of another interactive work generation device provided in this application embodiment. Figure 6b The interactive work generation device 61 includes a processing module 612 and a communication module 611. The processing module 612 controls and manages the actions of the interactive work generation device, such as the steps of the receiving unit 601, the response unit 602, the story generation unit 603, the review unit 604, and the expansion unit 605, and / or other processes for executing the techniques described herein. The communication module 611 supports interaction between the interactive work generation device and other devices. Figure 6b As shown, the interactive work generation device may include a storage module 613, which is used to store the program code and data of the interactive work generation device.
[0097] The processing module 612 can be a processor or controller, such as a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an ASIC, an FPGA, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logic blocks, 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 a DSP and a microprocessor, etc. The communication module 611 can be a transceiver, RF circuitry, or a communication interface, etc. The storage module 613 can be a memory.
[0098] All relevant content in each scenario involved in the above method embodiments can be referenced from the functional descriptions of the corresponding functional modules, and will not be repeated here. The above-mentioned interactive work generation device 61 can all perform the above-mentioned... Figure 2 The interactive artwork generation method is shown.
[0099] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented using software, the above embodiments can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more sets of available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. A semiconductor medium can be a solid-state drive.
[0100] Figure 7 This is a structural block diagram of a server provided in an embodiment of this application. For example... Figure 7As shown, server 700 may include one or more of the following components: processor 701, memory 702 coupled to processor 701, wherein memory 702 may store one or more computer programs, which may be configured to implement the methods described in the above embodiments when executed by one or more processors 701. Server 700 may be server 110 in the above embodiments.
[0101] Processor 701 may include one or more processing cores. Processor 701 connects to various parts within server 700 using various interfaces and lines, and performs various functions and processes data of server 700 by running or executing instructions, programs, code sets, or instruction sets stored in memory 702, and by calling data stored in memory 702. Optionally, processor 701 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 701 may integrate one or more of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into processor 701 and may be implemented separately using a communication chip.
[0102] The memory 702 may include random access memory (RAM) or read-only memory (ROM). The memory 702 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 702 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described above. The data storage area may also store data created by the server 700 during use.
[0103] It is understood that server 700 may include more or fewer structural elements than those shown in the above block diagram, and this is not limited here.
[0104] This application also provides a computer storage medium storing a computer program / instructions thereon, which, when executed by a processor, implements some or all of the steps of any of the methods described in the above method embodiments.
[0105] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments.
[0106] It should be understood that in the various embodiments of this application, the order of the above-mentioned processes does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0107] In the several embodiments provided in this application, it should be understood that the disclosed methods, apparatuses, and systems can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for example, the division of units is merely a logical functional division, and other division methods may exist in actual implementation; for example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0108] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0109] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can be physically comprised separately, or two or more units can be integrated into one unit. The integrated unit described above can be implemented in hardware or in the form of hardware plus software functional units.
[0110] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute some steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, volatile memory, or non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDR SDRAM), enhanced synchronous DRAM (ESDRAM), synchronous linked DRAM (SLDRAM), and direct rambus RAM (DR RAM), etc., which are various media capable of storing program code.
[0111] While the present invention has been disclosed above, it is not limited thereto. Any person skilled in the art can easily conceive of variations or substitutions without departing from the spirit and scope of the present invention, and various modifications and alterations can be made, including combinations of the different functions and implementation steps described above, as well as software and hardware implementation methods, all of which are within the protection scope of the present invention.
Claims
1. An interactive work generation method characterized by comprising: Applied to a server, wherein the server is communicatively connected to a terminal device, the method includes: The system receives an interactive work generation instruction from the terminal device, the instruction carrying user input information input by the user through the terminal device. In response to the interactive work generation instruction, the system determines user needs based on the user input information, the user needs being used to indicate the user's preferences for the story content of the target interactive work; and determines the user's predicted age group based on the user input information; and determines the review level in the review level set corresponding to the predicted age group as the target review level, the review level set including multiple review levels, each review level corresponding to a user age group; Determine the initial interactive story that aligns with the user's needs; The initial interactive story is updated to determine the target interactive story based on the story restriction set corresponding to the target review level. This includes: reviewing the type of each plot node in the initial interactive story; if the type of a first plot node does not belong to the plot type set, then the first plot node is determined to be a plot to be replaced, and the first plot node is any one of the plot nodes; determining the associated plot types in the plot type set based on the types of the adjacent plot nodes of the plot to be replaced; determining the replaceable and non-replaceable elements of the plot to be replaced, where the non-replaceable elements include time and characters, and the replaceable elements include story scenes and story events; updating the replaceable elements based on the associated plot types; determining a reference plot based on the non-replaceable elements and the updated replaceable elements; and replacing the plot to be replaced with the reference plot. The story restriction set is used to limit the scope of the story content of the initial interactive story. The story restriction set includes the plot type set, which is a set of plot types of plot nodes that meet the acceptance ability of the corresponding predicted age group. The first plot node is any one of the plot nodes, and the non-replaceable elements include time and characters, while the replaceable elements include story scenes and story events. Based on the target interactive story, perform content expansion operations to determine the target interactive work.
2. The method of claim 1, wherein, The story restriction set includes a vocabulary set and a sensitive word set. The vocabulary set is a set of commonly used words that match the cognitive abilities of the corresponding predicted age group. The sensitive word set is a set of basic words and variant words associated with the illegal content. The step of updating the initial interactive story to determine the target interactive story based on the story restriction set corresponding to the target review level includes: The initial interactive story is segmented to determine a set of keywords; If there are keywords in the keyword set that do not belong to the vocabulary set, then the keywords that do not belong to the vocabulary set are determined to be keywords to be replaced. If the keyword to be replaced does not belong to the sensitive word set, then the synonyms or near-synonyms of the keyword to be replaced are determined as replacement words according to the vocabulary set; If the keyword to be replaced belongs to the sensitive word set, then a set of related words that are compatible with the plot node corresponding to the keyword to be replaced is determined according to the word set, and the related words in the related word set that have the same semantics as the keyword to be replaced are determined as the replacement words; The target interactive story is determined by updating the corresponding keywords to be replaced based on the replacement words.
3. The method of claim 1, wherein, The user requirements include at least one target story element; determining the initial interactive story that matches the user requirements includes: Based on the type of the target story element and the preset basic element type, the missing element type is determined. The basic element type is the type of story element required by the server to generate the interactive story. The missing element type is the basic element type for which the user has not indicated their personal needs. Obtain the user's target age group and set of interactive stories. The set of interactive stories is a collection of all interactive stories generated by the server within a preset time period, and each interactive story in the set corresponds to an age group. The interactive stories corresponding to the target age group are identified as reference interactive stories; Based on the aforementioned interactive story, determine the reference story element corresponding to each of the aforementioned basic element types; The reference story element with the highest frequency of occurrence corresponding to the missing element type is identified as the target story element. The initial interactive story is generated based on the supplemented target story elements.
4. The method of claim 3, wherein, If the target age group is adults, and the missing element type only includes events; after determining the reference story element corresponding to each basic element type based on the reference interactive story, and before generating the initial interactive story based on the supplemented target story element, the method further includes: Based on the user's needs, determine the story type preference; Based on the aforementioned story type preferences, determine the target search terms; Obtain trending topics corresponding to trending phrases associated with the target search term within a preset time period; Get the news content corresponding to each trending topic; The relevance of each news item is determined based on the frequency of occurrence of the target search term. Based on the news content with the highest relevance, determine the target story element corresponding to the missing element type.
5. The method according to any of claims 1 to 4, characterized in that, The step of performing content expansion operations based on the target interactive story to determine the target interactive work includes: The character with the highest percentage of screen time in the target interactive story is identified as the protagonist. The target interactive story is divided into segments based on the scene change nodes associated with the main character, and the storyline is determined. The corresponding storyline is divided according to the character interaction node in each storyline, and the interactive plot node is determined. The character interaction node is the story node in which the protagonist of the story interacts with other characters. Perform a plot expansion operation for each interactive plot node in each of the storylines to determine the interactive text corresponding to the target interactive story; Generate corresponding associated multimedia information based on each interactive plot node in the interactive text; The target interactive work is determined based on the interactive text and the associated multimedia information.
6. An interactive production generating apparatus characterized by comprising: Applied to a server, wherein the server is communicatively connected to a terminal device, the device includes: The receiving unit is configured to receive an interactive work generation instruction from the terminal device, the interactive work generation instruction carrying user input information input by the user through the terminal device; A response unit is configured to respond to the interactive work generation instruction, determine user needs based on the user input information, wherein the user needs are used to indicate the user's preferences for the story content of the target interactive work; and determine the user's predicted age group based on the user input information; and determine the review level corresponding to the predicted age group in the review level set as the target review level, wherein the review level set includes multiple review levels, and each review level corresponds to a user age group; A story generation unit is used to determine an initial interactive story that fits the user's needs; The review unit is used to update the initial interactive story to determine the target interactive story based on the story restriction set corresponding to the target review level. This includes: reviewing the type of each plot node in the initial interactive story; if a first plot node's type does not belong to the plot type set, then determining the first plot node as a plot to be replaced, where the first plot node is any one of the plot nodes; determining the associated plot types in the plot type set based on the types of adjacent plot nodes of the plot to be replaced; determining the replaceable and non-replaceable elements of the plot to be replaced, where the non-replaceable elements include time and characters, and the replaceable elements include story scenes and story events; updating the replaceable elements based on the associated plot types; determining a reference plot based on the non-replaceable elements and the updated replaceable elements; and replacing the plot to be replaced with the reference plot. The story restriction set is used to limit the scope of the story content of the initial interactive story. The story restriction set includes the plot type set, which is a set of plot types of plot nodes that conform to the acceptance ability of the corresponding predicted age group. The first plot node is any one of the plot nodes, and the non-replaceable elements include time and characters, while the replaceable elements include story scenes and story events. An extension unit is used to perform content extension operations based on the target interactive story to determine the target interactive work.
7. A server, characterized by It includes a processor, a memory, a communication interface, and one or more programs, said one or more programs being stored in the memory and configured to be executed by the processor, said programs including instructions for performing the steps of the method as claimed in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, A computer program for storing electronic data interchange is provided, wherein the computer program causes a computer to perform the method as described in any one of claims 1-5.