Text file display method and device, electronic equipment and storage medium
By identifying and displaying key information in the script and novels, the problem of low efficiency of traditional assessment methods is solved, the efficient text file display and evaluation have been achieved, and the accuracy and timelyness of the assessment are improved.
Patent Information
- Application Number
- CN202411371588.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-01-21
AI Technical Summary
The evaluation methods of traditional scripts and novels are inefficient, and evaluators need to spend a lot of time reading the complete manuscript, which leads to a slow evaluation process and it is difficult to quickly screen out poor quality works, which affects the accuracy and timeliness of the evaluation.
By obtaining the text file uploaded by the user, analyze its literary genre type, identify key information, such as storyline and character attributes, and use these key information to display the content view of the text file to avoid manual reading.
It improves the display efficiency and evaluation efficiency of text files, reduces manual intervention, improves the accuracy and timeliness of evaluation, and can quickly screen out works of poor quality.
Smart Images

Figure CN119337818A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for displaying a text file. Background Art
[0002] In the related technologies, with the rapid development of the film and television industry, the market demand for movies and TV series is increasing, which makes the importance of script creation and evaluation more and more prominent. However, the traditional script evaluation method faces significant challenges. Evaluators need to read the entire script or novel, which consumes a huge amount of time and human resources, resulting in extremely low efficiency.
[0003] In the relevant technology, there are still several serious bottleneck problems in the evaluation process of scripts and novels. First, the traditional evaluation method requires evaluators to spend a lot of time reading the entire manuscript, which makes the evaluation process extremely slow and inefficient. Secondly, since it takes a long time to read the full text, it is difficult for evaluators to quickly screen out works of poor quality, which not only increases the workload, but also affects the accuracy and timeliness of the evaluation. The existence of the above problems obviously makes it difficult for existing script evaluation methods and tools to effectively respond to the industry's demand for efficient script evaluation.
[0004] With respect to the above-mentioned problems existing in the related technologies, no effective solutions have been found so far. Summary of the invention
[0005] The embodiments of the present invention provide a method, device, electronic device and storage medium for displaying a text file to solve the technical problems in the related art.
[0006] According to one aspect of an embodiment of the present application, a method for displaying a text file is provided, comprising: obtaining a text file uploaded by a user terminal; parsing the literary genre type of the text file; identifying key information in the text file based on the literary genre type, wherein the key information is used to describe the storyline and character attributes of the text file; and using the key information to display a content view of the text file.
[0007] Further, identifying key information in the text file based on the literary genre type includes: if the literary genre type is a script type, splitting the text file into multiple first sub-texts according to scenes; identifying a first set of key elements of the text file from the multiple first sub-texts, wherein the first set of key elements includes: story outline, episode synopsis, character biographies, character relationship diagram, plot points, and a chronology of major events; if the literary genre type is a novel type, splitting the text file into multiple second sub-texts according to chapters; identifying a second set of key elements of the text file from the multiple second sub-texts, wherein the second set of key elements includes: worldview, story outline, chapter synopsis, character biographies, character relationship diagram, and a chronology of major events.
[0008] Further, identifying the key information in the text file based on the literary genre type includes: obtaining a product strategy for the literary genre type, wherein the product strategy is used to indicate a marketing strategy for a platform to attract readers; generating a personalized prompt for the text file based on the product strategy; inputting the text file and the personalized prompt into a generative artificial intelligence AIGC model, and outputting the key information in the text file, wherein the key information includes at least one of the following key elements: world view, story outline, episode synopsis, chapter synopsis, character biography, character relationship diagram, plot points, and chronology of major events.
[0009] Furthermore, using the key information to display the content view of the text file includes: extracting multiple key elements from the key information; for each key element, searching for a view frame that matches the key element in a preset view template; and displaying the corresponding key element or index information of the key element in the view frame.
[0010] Furthermore, the key element is a brief biography of a character, and displaying the corresponding key element in the view frame includes: obtaining a character portrait of each character from the key information, wherein the character portrait includes at least one of the following information: character name, gender, age, appearance, identity and position, personality, and character fate line; and displaying the character portrait of each character in a list in the first view frame.
[0011] Furthermore, the key element is a script scene, and displaying the corresponding key element in the view frame includes: counting the scene information of each plot scene in the text file, wherein the scene information includes at least one of the following: scene name, number of episodes in which it appears, number of times it appears in the scene, and number of pages in which it appears; and displaying the scene information in a list in the second view frame.
[0012] Furthermore, after using the key information to display the content view of the text file, the method also includes: obtaining model key information of a preset model sample of the literary genre type; calculating the similarity between the model key information and the key information; and outputting the similarity as a quality score of the text file, wherein the quality score is used to characterize the recommendation degree of the text file.
[0013] According to another aspect of an embodiment of the present application, a text file display device is also provided, including: a first acquisition module, used to acquire a text file uploaded by a user terminal; a parsing module, used to parse the literary genre type of the text file; an identification module, used to identify key information in the text file based on the literary genre type, wherein the key information is used to describe the storyline and character attributes of the text file; and a generation module, used to use the key information to display a content view of the text file.
[0014] Further, the identification module includes: a first identification unit, used to split the text file into multiple first sub-texts according to scenes if the literary genre type is a script type; identify a first set of key elements of the text file from the multiple first sub-texts, wherein the first set of key elements includes: story outline, episode synopsis, character biographies, character relationship diagram, plot points, and chronology; a second identification unit, used to split the text file into multiple second sub-texts according to chapters if the literary genre type is a novel type; identify a second set of key elements of the text file from the multiple second sub-texts, wherein the second set of key elements includes: worldview, story outline, chapter synopsis, character biographies, character relationship diagram, and chronology.
[0015] Furthermore, the identification module includes: an acquisition unit, used to acquire the product strategy of the literary genre type, wherein the product strategy is used to indicate the marketing strategy of the platform to attract readers; a generation unit, used to generate a personalized prompt for the text file based on the product strategy; a processing unit, used to input the text file and the personalized prompt into a generative artificial intelligence AIGC model, and output key information in the text file, wherein the key information includes at least one of the following key elements: world view, story outline, episode synopsis, chapter synopsis, character biography, character relationship diagram, plot points, and chronology of major events.
[0016] Furthermore, the generation module includes: an extraction unit, used to extract multiple key elements from the key information; a search unit, used to search for a view frame matching the key element in a preset view template for each key element; and a display unit, used to display the corresponding key element or index information of the key element in the view frame.
[0017] Furthermore, the key element is a brief biography of a character, and the display unit includes: an acquisition subunit, used to acquire a character portrait of each character from the key information, wherein the character portrait includes at least one of the following information: character name, gender, age, appearance, identity and position, personality, and character fate line; a first display subunit, used to display the character portrait of each character in a list in a first view frame.
[0018] Furthermore, the key element is a script scene, and the display unit includes: a statistical subunit, used to count the scene information of each plot scene in the text file, wherein the scene information includes at least one of the following: scene name, number of episodes in which it appears, number of times it appears in the scene, and number of pages in which it appears; a second display subunit, used to display the scene information in a list in a second view frame.
[0019] Furthermore, the device also includes: a second acquisition module, used to obtain model key information of a preset model sample of the literary genre type after the generation module uses the key information to display the content view of the text file; a calculation module, used to calculate the similarity between the model key information and the key information; and an output module, used to output the similarity as a quality score of the text file, wherein the quality score is used to characterize the recommendation degree of the text file.
[0020] According to another aspect of an embodiment of the present application, a storage medium is further provided, which includes a stored program, and the above steps are executed when the program is run.
[0021] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein: the memory is used to store computer programs; and the processor is used to execute the steps in the above method by running the program stored in the memory.
[0022] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps in the above method.
[0023] The embodiments of the present invention propose a method, device, electronic device and storage medium for displaying a text file, which obtains a text file uploaded by a user; parses the literary genre type of the text file; identifies key information in the text file based on the literary genre type, wherein the key information is used to describe the plot and character attributes of the text file; and uses the key information to display a content view of the text file, thereby generating a content view that is convenient for display by parsing the text file and identifying the key information, avoiding manual intervention and reading the original text, and solving the technical problem of low efficiency in evaluating text files in related technologies, thereby improving the display efficiency of text files and also improving the efficiency and accuracy of evaluating the text files. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0025] Figure 1 is a hardware structure block diagram of a computer according to an embodiment of the present invention;
[0026] Figure 2 is a flowchart of a method for displaying a text file according to an embodiment of the present invention;
[0027] Figure 3 is a schematic diagram of splitting and evaluating a script according to an embodiment of the present invention;
[0028] Figure 4 is a schematic diagram of splitting and evaluating a novel in an embodiment of the present invention;
[0029] Figure 5 is a schematic diagram showing a biography of a person in an embodiment of the present invention;
[0030] Figure 6 is a schematic diagram showing a script page in an embodiment of the present invention;
[0031] Figure 7 is a structural block diagram of a text file display device according to an embodiment of the present invention;
[0032] Figure 8 It is a structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0033] In order 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 in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] The method embodiment provided in the first embodiment of the present application can be executed in a mobile phone, a computer, a server or a similar computing device. Taking running on a computer as an example, Figure 1 is a hardware structure block diagram of a computer according to an embodiment of the present invention. Figure 1 As shown, the computer may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the computer may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0036] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a method for displaying a text file in an embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0037] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0038] In this embodiment, a method for displaying a text file is provided. Figure 2 is a flowchart of a method for displaying a text file according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0039] S202, obtaining a text file uploaded by the user;
[0040] The text file in this embodiment is a file in a text format (such as txt, word, etc.), and can also be a media file in a multimedia format including text and pictures.
[0041] S204, parsing the literary genre type of the text file;
[0042] The literary genre type in this embodiment may be a novel, a play, or a poem, an essay, a drama, a fable, a fairy tale, etc.
[0043] S206, identifying key information in the text file based on the literary genre type, wherein the key information is used to describe the plot and character attributes of the text file;
[0044] Optionally, key information includes multiple items, each corresponding to a key element, such as world view, story outline, episode and chapter synopsis, character biographies, character relationship diagram, plot points, etc. Among them, world view is used to describe the fictional world where the story is located and its rules and background; story outline is used to summarize the main plot and development direction of the whole story; episode and chapter synopsis is used to summarize the main events and plot direction episode by episode or chapter by chapter; character biographies are used to describe the background, personality and motivation of the main characters; character relationship diagram is used to illustrate the relationship and interaction between the main characters; plot points are used to mark important turning points and climaxes in the story.
[0045] S208: Use the key information to display a content view of the text file.
[0046] The content view of this embodiment is a visual interface, which splits each key element in the key information and displays them in different locations, or displays them in different pages, and can also display them according to the number of episodes / shows.
[0047] The solution of this embodiment can be applied to the evaluation platform to perform literary evaluation on text files, providing an efficient evaluation tool that can significantly improve evaluation efficiency and accuracy; the solution of this embodiment can also be applied to self-examination for content creators, helping authors quickly understand the key information of the work, so as to better create and optimize.
[0048] By adopting the scheme of this embodiment, a text file uploaded by a user is obtained; the literary genre type of the text file is parsed; key information in the text file is identified based on the literary genre type, wherein the key information is used to describe the plot and character attributes of the text file; the key information is used to display a content view of the text file, and by parsing the text file and identifying the key information, a content view that is convenient for display and text quality evaluation is generated, thereby avoiding manual intervention and reading the original text, solving the technical problem of low efficiency in evaluating text files in related technologies, improving the display efficiency of text files, and also improving the efficiency and accuracy of evaluating the text files.
[0049] In one implementation of the present embodiment, identifying key information in the text file based on the literary genre type includes: if the literary genre type is a script type, splitting the text file into multiple first sub-texts according to scenes; identifying a first set of key elements of the text file from the multiple first sub-texts, wherein the first set of key elements includes: story outline, episode synopsis, character biographies, character relationship diagram, plot points, and a chronology of major events; if the literary genre type is a novel type, splitting the text file into multiple second sub-texts according to chapters; identifying a second set of key elements of the text file from the multiple second sub-texts, wherein the second set of key elements includes: worldview, story outline, chapter synopsis, character biographies, character relationship diagram, and a chronology of major events.
[0050] In this embodiment, the text file can be a novel, a script (such as a TV script, a film and television script, a short video script) or other literary genre types. By parsing the uploaded text file, regular expressions and large models can be used to automatically extract the episode number or scene number in the text file and complete the disassembly. Figure 3 is a schematic diagram of splitting and evaluating a script according to an embodiment of the present invention, Figure 4 It is a schematic diagram of splitting and evaluating a novel according to an embodiment of the present invention.
[0051] In another implementation of this embodiment, identifying the key information in the text file based on the literary genre type includes: obtaining the product strategy of the literary genre type, wherein the product strategy is used to indicate the marketing strategy of the platform to attract readers; generating a personalized prompt for the text file based on the product strategy; inputting the text file and the personalized prompt into a generative artificial intelligence AIGC model, and outputting the key information in the text file, wherein the key information includes at least one of the following key elements: world view, story outline, episode synopsis, chapter synopsis, character biography, character relationship diagram, plot points, and chronology of major events.
[0052] Based on text analysis, we combine product strategy with AIGC technology to automatically identify and extract a variety of key information in the text, including: world view: describing the fictional world in which the story is located and its rules and background; story outline: outlining the main plot and development direction of the whole story; episode and chapter synopsis: summarizing the main events and plot trends episode by episode or chapter by chapter; character biographies: describing the background, personality and motivation of the main characters; character relationship diagram: illustrating the relationship and interaction between the main characters; plot points: marking important turning points and climaxes in the story.
[0053] Among the above key elements, before outputting the episode synopsis and chapter synopsis, the text file needs to be split into multiple sub-texts according to the number of episodes or scenes, and then each sub-text and personalized prompt is input into the generative artificial intelligence AIGC model respectively, and the episode synopsis and chapter synopsis of the corresponding episode or scene in the text file are output.
[0054] In this embodiment, using the key information to display the content view of the text file includes: extracting multiple key elements from the key information; for each key element, searching for a view frame that matches the key element in a preset view template; and displaying the corresponding key element or index information of the key element in the view frame.
[0055] Optionally, the preset view template includes a thumbnail view box and multiple full view boxes. The thumbnail view box is used to display the element information of all key elements, corresponding to the thumbnail information in the text file. The thumbnail information is extracted from the key information, such as the number of episodes, number of scenes, character list, and plot point distribution of the script. By clicking the index information in the thumbnail view box, you can enter the associated full view box to display the corresponding key information and view all the information extracted from the text file of the current project. This facilitates horizontal comparison with other excellent works of the same circle, track, and type in a visual way. The full view box is used to display the content of the corresponding key information. The displayed content can be text, relationship diagrams, comparison diagrams, etc.
[0056] The automatically extracted key information is integrated and presented to the user through an intuitive interface. The user can quickly browse all the storylines and character attributes in a centralized and concise view, and grasp the framework and core content of the script or novel as a whole.
[0057] In one example, the key element is a brief biography of a character, and displaying the corresponding key element in the view frame includes: obtaining a character portrait of each character from the key information, wherein the character portrait includes at least one of the following information: character name, gender, age, appearance, identity and position, personality, and character fate line; and displaying the character portrait of each character in a list in the first view frame.
[0058] On the character display page, a character portrait is generated for the characters in the script or novel, including: character name, gender, age, appearance, identity and position, personality, and character destiny line, and it also supports custom modifications. Figure 5 1 is a schematic diagram showing character biographies in an embodiment of the present invention, and the story characters shown include: Wenxiu, Zhang Fengxia, Ba Tai, Grandma, Sailike, Token, and Gao Xiaoliang.
[0059] The key information of this embodiment also includes a character relationship diagram, because a reasonable character relationship network is a dimension that reflects whether the storyline is full and reasonable. In order to ensure the accuracy of the character relationship diagram, in one example, the character relationship diagram is generated through the biographies of all characters in the text file, including: for each target character, determining the associated characters that have plot intersections with the target character, determining the character relationship between the target character and the associated characters through the character portraits of the target character and the associated characters, taking the target character and the associated characters as nodes, generating a relationship line between the two nodes according to the relationship type, and removing duplicate branches from the relationship lines of all target characters to obtain a character relationship diagram.
[0060] Optionally, relationship types can be divided into family relationships and social relationships. Family relationships correspond to the solid lines in the character relationship diagram, and social relationships correspond to the dotted lines in the character relationship diagram. Family relationships include relationships based on blood or marriage, such as father and son, mother and son, and husband and wife. Social relationships include friendship relationships, master-apprentice relationships, companion relationships, hostile relationships, etc.
[0061] In another example, the key element is a script scene, and displaying the corresponding key element in the view frame includes: counting the scene information of each plot scene in the text file, wherein the scene information includes at least one of the following: scene name, number of episodes in which it appears, number of times it appears in the scene, and number of pages in which it appears; and displaying the scene information in a list in the second view frame.
[0062] The script scene can display the scene name, episode number, number of scenes, and page statistics that appear in the text file.
[0063] In an example of this embodiment, the content view also includes a script page, which is used to display the script information and key information of each sub-text of the text file according to chapters or episodes. The script page includes a first view window and a second view window, wherein the first view window is used to display the original content of the script of the chapter, and the second view window is used to display the key information of the chapter, such as the appearing characters, plot point overview, chapter functions, etc., which is used to briefly introduce the plot content of the chapter. Figure 6 It is a schematic diagram of displaying a script page in an embodiment of the present invention, illustrating the script content and key information of the first episode of the script.
[0064] By breaking down the text file into episodes, you can display the content of each episode separately. Click to enter the script editor window to view the original text and make corresponding annotations. You can also view the extracted plot points in the current view page to understand the development rhythm of the story more quickly.
[0065] In an implementation scenario of this embodiment, after using the key information to display the content view of the text file, it also includes: obtaining the model key information of a preset model sample of the literary genre type; calculating the similarity between the model key information and the key information; and outputting the similarity as a quality score of the text file, wherein the quality score is used to characterize the recommendation degree of the text file.
[0066] With the key information displayed by the system, users can quickly make a preliminary assessment. For some scripts or novels of obviously poor quality, users can quickly screen them out without having to read the full text, which greatly saves time and labor costs. It not only improves the efficiency of the assessment, but also makes the assessment process more professional and accurate.
[0067] By adding an automatic evaluation model for the quality of scripts and novels, the system gives a quality score after comparison with similar excellent works. Those with quality scores higher than the preset threshold are allowed to go online, while those with quality scores lower than the preset threshold need to be optimized before they can go online to ensure the reader experience. Optimization suggestions can also be given based on the weaknesses identified in the analysis and comparison.
[0068] The solution of this embodiment adopts an innovative rapid evaluation solution. After the user uploads the script or novel, the system will automatically analyze and generate a series of key information, including an overview of the world view, a summary of the story outline, a detailed summary of each episode and chapter, the writing of character biographies, the drawing of character relationship diagrams, and the extraction of key plot points. Through this information, the user can quickly obtain a preliminary understanding of the work, thereby quickly screening out works of poor quality, greatly saving the time required for full text reading.
[0069] Based on the text file disassembly technology of this solution, the content extraction of scripts or novels, and the splitting of episodes and chapters can be completed within minutes, greatly improving efficiency; based on key information extraction technology, multi-dimensional analysis and extraction of key information in the text can reduce human intervention and improve accuracy; based on information integration and display technology, the extracted key information can be effectively integrated and displayed to users in an easy-to-understand way to improve user experience; users can quickly conduct preliminary evaluation and screening, saving time reading the original text and improving evaluation efficiency.
[0070] The solution of this embodiment solves the inefficiency problem of traditional evaluation methods, and it is expected to greatly improve the quality and accuracy of the evaluation through technical means. The core features of this rapid evaluation method are its efficiency and degree of automation. Users only need to upload scripts or novels, and the system can generate detailed key information within minutes, including the construction of a worldview, the organization of story outlines, the synopsis of episodes and chapters, and the writing of character biographies. At the same time, the system can also draw a character relationship diagram and extract key plot points. This series of functions not only greatly shortens the time required for evaluation, but also provides creators, producers, and evaluation teams with a clearer and more intuitive reference basis, greatly improving overall work efficiency.
[0071] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0072] In this embodiment, a display device for text files is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0073] Figure 7 is a structural block diagram of a text file display device according to an embodiment of the present invention. Figure 7 As shown, the device includes: a first acquisition module 70, a parsing module 72, a recognition module 74, and a generation module 76, wherein:
[0074] A first acquisition module 70, used to acquire a text file uploaded by a user terminal;
[0075] A parsing module 72, used for parsing the literary genre type of the text file;
[0076] An identification module 74, used to identify key information in the text file based on the literary genre type, wherein the key information is used to describe the plot and character attributes of the text file;
[0077] The generating module 76 is used to display the content view of the text file using the key information.
[0078] Optionally, the identification module includes: a first identification unit, used to split the text file into multiple first sub-texts according to scenes if the literary genre type is a script type; identify a first set of key elements of the text file from the multiple first sub-texts, wherein the first set of key elements includes: story outline, episode synopsis, character biographies, character relationship diagram, plot points, and a chronology of major events; a second identification unit, used to split the text file into multiple second sub-texts according to chapters if the literary genre type is a novel type; identify a second set of key elements of the text file from the multiple second sub-texts, wherein the second set of key elements includes: worldview, story outline, chapter synopsis, character biographies, character relationship diagram, and a chronology of major events.
[0079] Optionally, the identification module includes: an acquisition unit for acquiring a product strategy for the literary genre type, wherein the product strategy is used to indicate the platform's marketing strategy for attracting readers; a generation unit for generating a personalized prompt for the text file based on the product strategy; and a processing unit for inputting the text file and the personalized prompt into a generative artificial intelligence AIGC model, and outputting key information in the text file, wherein the key information includes at least one of the following key elements: world view, story outline, episode synopsis, chapter synopsis, character biography, character relationship diagram, plot points, and chronology of major events.
[0080] Optionally, the generation module includes: an extraction unit, used to extract multiple key elements from the key information; a search unit, used to search for a view frame matching the key element in a preset view template for each key element; and a display unit, used to display the corresponding key element or index information of the key element in the view frame.
[0081] Optionally, the key element is a brief biography of a character, and the display unit includes: an acquisition subunit, used to acquire a character portrait of each character from the key information, wherein the character portrait includes at least one of the following information: character name, gender, age, appearance, identity and position, personality, and character fate line; a first display subunit, used to display the character portrait of each character in a list in a first view frame.
[0082] Optionally, the key element is a script scene, and the display unit includes: a statistical subunit, used to count the scene information of each plot scene in the text file, wherein the scene information includes at least one of the following: scene name, number of episodes in which it appears, number of times it appears in the scene, and number of pages in which it appears; a second display subunit, used to display the scene information in a list in a second view frame.
[0083] Optionally, the device also includes: a second acquisition module, used to obtain model key information of a preset model sample of the literary genre type after the generation module uses the key information to display the content view of the text file; a calculation module, used to calculate the similarity between the model key information and the key information; and an output module, used to output the similarity as a quality score of the text file, wherein the quality score is used to characterize the recommendation degree of the text file.
[0084] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0085] The embodiment of the present application also provides an electronic device, Figure 8 is a structural diagram of an electronic device according to an embodiment of the present invention, such as Figure 8 As shown, it includes a processor 81, a communication interface 82, a memory 83 and a communication bus 84, wherein the processor 81, the communication interface 82 and the memory 83 communicate with each other through the communication bus 84, and the memory 83 is used to store computer programs; when the processor 81 is used to execute the program stored in the memory 83, the following steps are implemented: obtaining a text file uploaded by the user; parsing the literary genre type of the text file; identifying key information in the text file based on the literary genre type, wherein the key information is used to describe the plot and character attributes of the text file; and using the key information to display the content view of the text file.
[0086] Further, identifying key information in the text file based on the literary genre type includes: if the literary genre type is a script type, splitting the text file into multiple first sub-texts according to scenes; identifying a first set of key elements of the text file from the multiple first sub-texts, wherein the first set of key elements includes: story outline, episode synopsis, character biographies, character relationship diagram, plot points, and a chronology of major events; if the literary genre type is a novel type, splitting the text file into multiple second sub-texts according to chapters; identifying a second set of key elements of the text file from the multiple second sub-texts, wherein the second set of key elements includes: worldview, story outline, chapter synopsis, character biographies, character relationship diagram, and a chronology of major events.
[0087] Further, identifying the key information in the text file based on the literary genre type includes: obtaining a product strategy for the literary genre type, wherein the product strategy is used to indicate a marketing strategy for a platform to attract readers; generating a personalized prompt for the text file based on the product strategy; inputting the text file and the personalized prompt into a generative artificial intelligence AIGC model, and outputting the key information in the text file, wherein the key information includes at least one of the following key elements: world view, story outline, episode synopsis, chapter synopsis, character biography, character relationship diagram, plot points, and chronology of major events.
[0088] Furthermore, using the key information to display the content view of the text file includes: extracting multiple key elements from the key information; for each key element, searching for a view frame that matches the key element in a preset view template; and displaying the corresponding key element or index information of the key element in the view frame.
[0089] Furthermore, the key element is a brief biography of a character, and displaying the corresponding key element in the view frame includes: obtaining a character portrait of each character from the key information, wherein the character portrait includes at least one of the following information: character name, gender, age, appearance, identity and position, personality, and character fate line; and displaying the character portrait of each character in a list in the first view frame.
[0090] Furthermore, the key element is a script scene, and displaying the corresponding key element in the view frame includes: counting the scene information of each plot scene in the text file, wherein the scene information includes at least one of the following: scene name, number of episodes in which it appears, number of times it appears in the scene, and number of pages in which it appears; and displaying the scene information in a list in the second view frame.
[0091] Furthermore, after using the key information to display the content view of the text file, the method also includes: obtaining model key information of a preset model sample of the literary genre type; calculating the similarity between the model key information and the key information; and outputting the similarity as a quality score of the text file, wherein the quality score is used to characterize the recommendation degree of the text file.
[0092] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0093] The communication interface is used for communication between the above terminal and other devices.
[0094] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0095] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0096] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is executed on a computer, the computer executes the method for displaying a text file described in any of the above embodiments.
[0097] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the text file display method described in any of the above embodiments.
[0098] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is 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. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may 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 available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0099] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
[0100] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A method for displaying a text file, characterized in that: include: Get the text file uploaded by the user; Analyzing the literary genre type of the text file; Identify key information in the text file based on the literary genre type, wherein the key information is used to describe the plot and character attributes of the text file; The key information is used to display a content view of the text file.
2. The method according to claim 1, characterized in that Identifying key information in the text file based on the literary genre type includes: If the literary genre is a script type, split the text file into a plurality of first sub-texts according to the scenes; identify a first key element set of the text file from the plurality of first sub-texts, wherein the first key element set includes: a story outline, an episode summary, a character biography, a character relationship diagram, plot points, and a chronology of major events; If the literary genre type is a novel type, the text file is split into multiple second sub-texts according to chapters; and a second key element set of the text file is identified from the multiple second sub-texts, wherein the second key element set includes: world view, story outline, chapter outline, character biography, character relationship diagram, and chronology of major events.
3. The method according to claim 1, characterized in that Identifying key information in the text file based on the literary genre type includes: Obtaining a product strategy for the literary genre type, wherein the product strategy is used to indicate a marketing strategy for the platform to attract readers; Generate a personalized prompt for the text file based on the product strategy; The text file and the personalized prompt are input into a generative artificial intelligence AIGC model, and key information in the text file is output, wherein the key information includes at least one of the following key elements: world view, story outline, episode synopsis, chapter synopsis, character biographies, character relationship diagrams, plot points, and a chronology of major events.
4. The method according to claim 1, characterized in that The content view of the text file displayed by using the key information includes: extracting a plurality of key elements from the key information; For each key element, searching for a view frame matching the key element in a preset view template; The corresponding key element or index information of the key element is displayed in the view frame.
5. The method according to claim 4, characterized in that The key element is a brief biography of the character, and the corresponding key elements displayed in the view frame include: Obtaining a character portrait of each character from the key information, wherein the character portrait includes at least one of the following information: character name, gender, age, appearance, identity and position, personality, and character fate line; In the first view frame, the portraits of each character are displayed in a list.
6. The method according to claim 4, characterized in that The key element is a script scene, and the corresponding key elements displayed in the view frame include: Counting the scene information of each plot scene in the text file, wherein the scene information includes at least one of the following: scene name, episode number, scene number, and page number; The scene information is displayed in a list in the second view frame.
7. The method according to claim 4, characterized in that After displaying the content view of the text file using the key information, the method further includes: Obtaining exemplary key information of a preset exemplary sample of the literary genre type; Calculating the similarity between the model key information and the key information; The similarity is output as a quality score of the text file, wherein the quality score is used to characterize the recommendation degree of the text file.
8. A text file display device, characterized in that: include: The first acquisition module is used to acquire the text file uploaded by the user; A parsing module, used for parsing the literary genre type of the text file; An identification module, used for identifying key information in the text file based on the literary genre type, wherein the key information is used for describing the plot and character attributes of the text file; A generating module is used to display a content view of the text file using the key information.
9. An electronic device, characterized in that: The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the method for displaying a text file as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for displaying a text file as claimed in any one of claims 1 to 7.