Information processing method, device, electronic device and storage medium

Through large language models and information processing methods, it integrates character information in online novels, solves the problems of long length and complicated text, improves the accuracy and efficiency of information extraction, and is suitable for massive novel platforms.

CN118657134BActive Publication Date: 2024-10-29TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411126765.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-10-29
Estimated Expiration
2044-08-16

AI Technical Summary

Technical Problem

Online novels are long and complex in text content, making it difficult for traditional text analysis methods to effectively extract and integrate character information, resulting in low efficiency and low accuracy.

Method used

Using a large language model combined with information processing methods, by obtaining the text and summary introduction, integrating the object information of the target chapter and previous chapters, generating object extraction prompts for the next chapter, and integrating the object information of the local and target chapters to form full-text object information , used for accurate extraction of character information and image rendering.

Benefits of technology

It improves the accuracy and efficiency of information processing methods, ensures high recall and consistency of character information, is suitable for massive novel platforms, and solves the efficiency and accuracy problems of traditional methods when processing long texts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657134B_ABST
    Figure CN118657134B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses an information processing method, device, electronic device and storage medium; the embodiment of the present application can obtain a text and a summary of the text; obtain the object integration information of the target chapter; generate an object extraction prompt for the next chapter according to the object integration information and the summary of the target chapter; use a large language model to determine the local object information of the next chapter in the next chapter according to the object extraction prompt of the next chapter; integrate the local object information of the next chapter with the object integration information of the target chapter to obtain the object integration information of the next chapter; obtain the full-text object information, and the full-text object information includes the object integration information of the last chapter in the text. The present application is divided according to chapters, extracts the description information of the objects appearing in each chapter, and integrates the description information of all chapters to finally obtain accurate object information, thereby, the present solution can improve the accuracy of the information processing method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to an information processing method, device, electronic device and storage medium. Background Art

[0002] Online novels are long and have complex text content. Character information such as character name, gender, age, classification of main and supporting characters, image and demeanor description, personality analysis, etc. are distributed in different chapters, and sometimes need to be inferred from dialogues, narration or descriptions of other characters. Moreover, the characters in online novels usually change as the plot develops, and their personality and image may fluctuate greatly in different chapters or plots, making unified character description complicated.

[0003] Currently, the number of online novels is growing rapidly, the content is long, and the text styles vary greatly. It is difficult to cope with it using traditional text analysis methods, especially for platforms with massive novels. The extraction of character data from long-text novels is inefficient and inaccurate. Summary of the invention

[0004] The embodiments of the present application provide an information processing method, an apparatus, an electronic device, and a storage medium, which can improve the accuracy of the information processing method.

[0005] The present application provides an information processing method, including:

[0006] Obtaining a text and a summary of the text, wherein the text includes a plurality of sequentially arranged chapters, and the plurality of chapters includes a target chapter;

[0007] Obtaining object integration information of the target chapter, the object integration information includes the integration of information of objects appearing in the target chapter and all previous chapters in the text;

[0008] Generate an object extraction prompt for a subsequent chapter based on the object integration information and summary of the target chapter, where the subsequent chapter is the chapter after the target chapter in the text;

[0009] A large language model is used to extract hints of objects in the next chapter, and local object information of the next chapter is determined in the next chapter, where the local object information of the next chapter is description information of the object appearing in the next chapter;

[0010] Integrate the local object information of the next chapter with the object integration information of the target chapter to obtain the object integration information of the next chapter;

[0011] The full-text object information is obtained, and the full-text object information includes the object integration information of the last chapter in the text.

[0012] The present application also provides an information processing device, including:

[0013] A text acquisition unit, used for acquiring a text and a summary of the text, wherein the text includes a plurality of chapters arranged in sequence, and the plurality of chapters includes a target chapter;

[0014] An integration acquisition unit, used to acquire object integration information of a target chapter, wherein the object integration information includes the integration of information of objects appearing in the target chapter and all previous chapters in the text;

[0015] A prompt generating unit, for generating an object extraction prompt for a subsequent chapter according to the object integration information and the summary introduction of the target chapter, where the subsequent chapter is the chapter after the target chapter in the text;

[0016] A local information unit, used to determine local object information of the next chapter in the next chapter according to the object extraction prompt of the next chapter using the large language model, where the local object information of the next chapter is description information of the object appearing in the next chapter;

[0017] An integration unit, used for integrating the local object information of the next chapter with the object integration information of the target chapter to obtain the object integration information of the next chapter;

[0018] The full-text information unit is used to obtain the full-text object information, which includes the object integration information of the last chapter in the text.

[0019] In some embodiments, the text acquisition unit includes:

[0020] A text acquisition subunit is used to acquire text and a summary of the text;

[0021] The split sub-unit is used to split the text to obtain multiple chapters to be processed in order;

[0022] The adding subunit is used to add the ending content of the previous chapter to be processed and the starting content of the next chapter to be processed to the chapter to be processed to obtain the processed chapter. The previous chapter to be processed is the previous chapter to be processed of the chapter to be processed, and the next chapter to be processed is the next chapter to be processed of the chapter to be processed.

[0023] In some embodiments, a subunit is added for:

[0024] Determine the last paragraph in the previous chapter to be processed as the ending content;

[0025] Determine the first paragraph in the next chapter to be processed as the starting content;

[0026] The ending content is added to the end of the chapter to be processed, and the starting content is added to the beginning of the chapter to be processed to obtain the processed chapter.

[0027] In some embodiments, the prompt generating unit includes:

[0028] The template subunit is used to obtain a preset prompt template, wherein the preset prompt template includes an object space and a summary space;

[0029] The inserting subunit is used to insert the object integration information of the target chapter into the object space of the preset prompt template, and to insert the summary introduction into the summary space of the preset prompt template to obtain the object extraction prompt of the next chapter.

[0030] In some embodiments, the template subunit is used to:

[0031] Determine the content type of the text based on the abstract;

[0032] Get the preset prompt template corresponding to the content type in the template collection.

[0033] In some embodiments, the content type of the text includes a time-travel novel type and an ancient style novel type, and obtaining a preset prompt template corresponding to the content type in the template set includes:

[0034] When the content type of the text is a time-travel novel type, a time-travel novel template in the template set is used as a preset prompt template, and the time-travel novel template includes content that prompts the changes of the characters before and after the time travel.

[0035] When the content type of the text is an ancient style novel type, the ancient style novel template in the template set is used as a preset prompt template, and the ancient style novel template includes content that prompts the use of ancient style terms.

[0036] In some embodiments, the prompt generating unit is used to:

[0037] When the target chapter is the first chapter in the text, an object extraction prompt for the second chapter is generated according to the summary introduction;

[0038] When the target chapter is a chapter other than the first chapter in the text, an object extraction prompt for the subsequent chapter is generated based on the object integration information and summary of the target chapter.

[0039] In some embodiments, the local information unit is used to:

[0040] Using a large language model to extract hints of objects in the next chapter, perform named entity recognition on the next chapter to determine the names of objects that appear in the next chapter;

[0041] Identify the relationships between objects that appear in subsequent chapters;

[0042] The names of objects and the relationships between them are stored in a structured manner to obtain the local object information of the next chapter.

[0043] In some embodiments, the description information includes the name, appearance, and attribute information of the object.

[0044] In some embodiments, after obtaining the full-text object information, the integration unit is further used to:

[0045] For each object in the full-text object information, generate an image drawing request of the object, the image drawing request including description information of the object;

[0046] The drawing model is used to create an object image for the object based on an image drawing request.

[0047] In some embodiments, after obtaining the full-text object information, the integration unit is further used to:

[0048] Based on the full-text object information, object relationships are sorted out to obtain the association relationships between objects in the full-text object information;

[0049] Perform event summary processing based on the full-text object information to obtain the events in which the objects in the full-text object information participate;

[0050] Based on the association relationships between objects and the events in which the objects participate, the knowledge graph of the text in the knowledge database is updated so that the knowledge graph can be used to answer users' questions about the text.

[0051] In some embodiments, after updating the knowledge graph of the text in the knowledge database, the method further includes:

[0052] Obtain the user's question message, which carries a text identifier;

[0053] Based on the text identifier, search for the target text corresponding to the text identifier in the knowledge database;

[0054] Obtain the knowledge graph of the target text;

[0055] Using the knowledge graph of the target text, answer the question message and get a reply message;

[0056] Return a reply message to the user.

[0057] An embodiment of the present application also provides an electronic device, including a memory storing multiple instructions; the processor loads instructions from the memory to execute the steps of any information processing method provided in the embodiment of the present application.

[0058] An embodiment of the present application also provides a computer-readable storage medium, which stores a plurality of instructions, and the instructions are suitable for a processor to load to execute the steps of any one of the information processing methods provided in the embodiments of the present application.

[0059] The embodiment of the present application can obtain a text and a summary of the text, wherein the text includes multiple chapters arranged in sequence, and the multiple chapters include a target chapter; obtain object integration information of the target chapter, and the object integration information includes the integration of information of objects appearing in the target chapter and all previous chapters in the text; generate an object extraction prompt for a subsequent chapter based on the object integration information and the summary of the target chapter, and the subsequent chapter is the chapter after the target chapter in the text; use a large language model to determine local object information of the subsequent chapter in the subsequent chapter based on the object extraction prompt of the subsequent chapter, and the local object information of the subsequent chapter is description information of the object appearing in the subsequent chapter; integrate the local object information of the subsequent chapter with the object integration information of the target chapter to obtain the object integration information of the subsequent chapter; obtain full-text object information, and the full-text object information includes the object integration information of the last chapter in the text.

[0060] This application divides a long text into chapters, and generates object extraction prompts for the next chapter based on the object descriptions of all objects in the chapter and previous chapters, so as to prompt the large language model to extract local object information of the objects appearing in the next chapter, thereby integrating the role information distributed in different chapters. As a result, the accuracy of the information processing method is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0062] Figure 1a It is a scenario schematic diagram of the information processing method provided in the embodiment of the present application;

[0063] Figure 1b It is a flowchart of the information processing method provided in the embodiment of the present application;

[0064] Figure 1c It is a prompt generation schematic diagram of the information processing method provided in the embodiment of the present application;

[0065] Figure 2 It is a diagram showing the effect of applying the information processing method provided in the embodiment of the present application to a novel scene;

[0066] Figure 3a is a schematic diagram of the structure of an information processing device provided in an embodiment of the present application;

[0067] Figure 3b is a schematic diagram of the structure of an information processing device provided in an embodiment of the present application;

[0068] Figure 3c is a schematic diagram of the structure of an information processing device provided in an embodiment of the present application;

[0069] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0070] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0071] Embodiments of the present application provide an information processing method, device, electronic device, and storage medium.

[0072] The information processing device may be integrated into an electronic device, which may be a terminal, a server, or other equipment. The terminal may be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, or a personal computer (PC); the server may be a single server or a server cluster consisting of multiple servers.

[0073] In some embodiments, the information processing device may also be integrated into multiple electronic devices. For example, the information processing device may be integrated into multiple servers, and the information processing method of the present application may be implemented by multiple servers.

[0074] For example, refer to Figure 1a, the electronic device can be a server, the server can obtain a text and a summary of the text, the text includes a plurality of chapters arranged in order, and the plurality of chapters include a target chapter; obtain object integration information of the target chapter, the object integration information includes the integration of information of objects appearing in the target chapter and all previous chapters in the text; generate an object extraction prompt of the next chapter according to the object integration information and the summary of the target chapter, "Now you play an excellent novelist, this is a time-travel novel, you need to extract the novel according to the content of the novel...", the next chapter is the next chapter of the target chapter in the text; use a large language model to determine the local object information of the next chapter in the next chapter according to the object extraction prompt of the next chapter, "role name: Lin Chen, gender: male, role category: male protagonist, appearance description: short hair, big eyes, long pants", "role name: Xiao Chen, gender: male, role category: supporting role, identity: teacher", the local object information of the next chapter is the description information of the object appearing in the next chapter; integrate the local object information of the next chapter with the object integration information of the target chapter to obtain the object integration information of the next chapter; obtain the full-text object information, the full-text object information includes the object integration information of the last chapter in the text.

[0075] It should be noted that the serial numbers of the following embodiments are not intended to limit the preferred order of the embodiments.

[0076] In this embodiment, an information processing method is provided, such as Figure 1b As shown, the specific process of the information processing method can be as follows:

[0077] 101. Obtain a text and a summary of the text, where the text includes multiple chapters arranged in sequence, and the multiple chapters include a target chapter.

[0078] Among them, texts may include novels, articles, essays, poems, scripts, reports, letters, etc.

[0079] The abstract is a brief summary of the text, which aims to summarize the core content and main points of the text.

[0080] In some embodiments, when the text is a novel text, the summary of the novel may include the main plot, characters, novel type, etc., to help readers quickly understand the core content of the novel; among them, the novel type can be divided into romance novels, fantasy novels, time-travel novels, ancient style novels, urban novels, etc.

[0081] In some embodiments, after acquiring the text, a large language model may be used to understand the text and extract a summary of the text.

[0082] In some embodiments, in addition to storing the text, the text database also stores a summary corresponding to the text, and the summary can be provided by the author of the text.

[0083] In some embodiments, since there are logical associations between chapters, for example, there are suspense blanks at the end of some chapters, and there are plot reviews at the beginning of some chapters, etc., in order to prevent the logical associations between chapters from being lost, step 101 includes:

[0084] a1. Obtain the text and the summary of the text;

[0085] a2. Split the text into sections to obtain multiple sections to be processed in order;

[0086] a3. Add the ending content of the previous chapter to be processed and the starting content of the next chapter to be processed to the chapter to be processed to obtain the processed chapter. The previous chapter to be processed is the previous chapter to be processed of the chapter to be processed, and the next chapter to be processed is the next chapter to be processed of the chapter to be processed.

[0087] This embodiment adds a portion of the content of the previous chapter and the next chapter to the chapter to be processed to ensure the content integrity of the chapter to be processed, thereby ensuring the understanding of the novel by the large language model.

[0088] The added content may be dynamically determined according to content requirements and time requirements. For example, in some embodiments, the content to be added may be determined according to paragraphs. Therefore, step a3 includes:

[0089] Determine the last paragraph in the previous chapter to be processed as the ending content;

[0090] Determine the first paragraph in the next chapter to be processed as the starting content;

[0091] The ending content is added to the end of the chapter to be processed, and the starting content is added to the beginning of the chapter to be processed to obtain the processed chapter.

[0092] For example, for the second chapter Chapter2, you can add the last paragraph of the first chapter Chapter1-para-last and the first paragraph of the third chapter Chapter3-para-first to the second chapter to get the updated second chapter Chapter2-New:

[0093] Chapter2-New={Chapter1-para-last,Chap2, Chapter3-para-first}

[0094] In some embodiments, the previous chapter and the next chapter may be directly added to the chapter to be processed, thereby obtaining the updated second chapter Chapter2-New:

[0095] Chapter2-New={Chapter1,Chap2, Chapter3}

[0096] 102. Obtain object integration information of the target chapter, where the object integration information includes integration of information of objects appearing in the target chapter and all previous chapters in the text.

[0097] Among them, the object can refer to the characters or things in the novel, such as the male protagonist, female protagonist, supporting role, villain, pet, artifact, special item, scene, etc.

[0098] In the embodiment of the present application, steps 102 to 105 may be executed in a loop, that is, each loop obtains the object integration information of the target chapter obtained in the previous loop, and finally obtains the object integration information of the next chapter obtained in this loop, until the last chapter.

[0099] Integration refers to summarizing relevant information of the same object in a chapter. Object integration information can be used to comprehensively characterize all aspects of the object and provide reference and basis for the subsequent generation of object extraction prompts.

[0100] The integrated content may include multiple aspects, such as summarizing the name, gender, age, and physical features of the subject; integrating the subject's background story, such as past experiences, family situation, and educational background; summarizing the relationship between the subject and other characters; summarizing characteristics describing the subject's personality, such as bravery, kindness, and indifference; integrating the subject's typical behaviors and habits, such as frequently spoken words and actions; summarizing the important events and plot developments in which the subject participates in each chapter, as well as the subject's growth and change process from the beginning of the story to the target chapter.

[0101] The generation of object integration information for each chapter will be introduced in step 104 below and will not be described in detail here.

[0102] 103. Generate an object extraction prompt for a subsequent chapter according to the object integration information and the summary introduction of the target chapter, where the subsequent chapter is the chapter after the target chapter in the text.

[0103] To improve the accuracy and consistency of large language models in processing and understanding novel characters, refer to Figure 1c In some embodiments, the summary introduction, as well as the object integration information of object 1 and the object integration information of object 2 in the target chapter can be input into the large language model so that the large language model generates object extraction prompts for the next chapter.

[0104] Among them, the summary of the novel and the character description in the previous chapter provide rich background information and context, which can help the large language model better understand the role and personality traits of the character in the whole story, ensure that the character description in the new chapter remains consistent, and avoid inconsistencies.

[0105] For example:

[0106] The summary introduction "In a world full of magic and adventure, the young magician Elena embarks on a journey to find the lost kingdom. She meets various partners and enemies, and together they uncover the secrets hidden in history." and the description of the characters in the target chapter "Elena is a gifted young magician with long golden hair and blue eyes. She is strong-willed and fearless. Her mentor Alfred is a wise and stern old magician who wears round-framed glasses and always wears a robe." Input into the large language model to obtain the object extraction prompt of the following chapter "Please extract a detailed description of the characters that appear in this chapter. Make sure to include relevant information about the following characters: Elena-her appearance features (such as long golden hair, blue eyes) and personality traits (such as strong, brave). Alfred-the clothes he wears (such as robes, round-framed glasses) and his personality traits (such as wisdom, stern). Note: The extracted description should be consistent with the known character information to avoid inconsistency with the previous description."

[0107] In some embodiments, when the target chapter is the first chapter in the text, step 103 can directly generate an object extraction prompt for the second chapter based on the summary introduction; when the target chapter is a chapter other than the first chapter in the text, step 103 can generate an object extraction prompt for the latter chapter based on the object integration information and summary introduction of the target chapter.

[0108] In some embodiments, step 103 includes:

[0109] b1. Get the preset prompt template, which includes object slots and summary slots;

[0110] b2. Insert the object integration information of the target chapter into the object space of the preset prompt template, and insert the summary introduction into the summary space of the preset prompt template to obtain the object extraction prompt of the latter chapter.

[0111] For example, the preset prompt template is:

[0112] “Prompt:

[0113] Abstract:

[0114] "[Summary vacancy]"

[0115] Please extract detailed descriptions of the roles that appear in this section, making sure to include relevant information about the following roles:

[0116] "[object slot]"

[0117] Note: The extracted description should be consistent with known character information to avoid inconsistencies with previous descriptions. "

[0118] In some embodiments, step b1 includes:

[0119] Determine the content type of the text based on the abstract introduction;

[0120] Get the preset prompt template corresponding to the content type in the template collection.

[0121] For different types of text, a special prompt template can be used to guide the large language model to extract relevant information. For example, in some embodiments, the content type of the text includes time-travel novel type and ancient style novel type. The step of obtaining the preset prompt template corresponding to the content type in the template set includes:

[0122] When the content type of the text is a time-travel novel type, a time-travel novel template in the template set is used as a preset prompt template, and the time-travel novel template includes content that prompts the changes of the characters before and after the time travel.

[0123] When the content type of the text is an ancient style novel type, the ancient style novel template in the template set is used as a preset prompt template, and the ancient style novel template includes content that prompts the use of ancient style terms.

[0124] For example, a time travel novel prompt template

[0125] Novel summary:

[0126] "[Summary vacancy]"

[0127] Description of the role in the previous chapter:

[0128] "[object slot]"

[0129] Character Extraction Tips: Please extract a detailed description of the characters that appear in this chapter, paying special attention to the changes before and after the characters travel through time, and make sure to include the following information:

[0130] Before traveling through time: the character’s name, gender, age, appearance, etc.

[0131] After the time travel: the character's new name (if any), gender (if changed), age, image (such as clothing style, hairstyle, etc.).

[0132] Please pay attention to linking the character information before and after the time travel, and the description should reflect the changes of the character in different timelines or worlds. "

[0133] For example, the ancient novel prompt template

[0134] Novel summary:

[0135] "[Summary vacancy]"

[0136] Description of the role in the previous chapter:

[0137] "[object slot]"

[0138] Character Extraction Tips: Please extract detailed descriptions of the characters that appear in this chapter, paying special attention to the following points:

[0139] Appearance description: Make sure the character's clothing and hairstyle are in line with the ancient style and avoid modern elements. The description should include ancient costumes, hair accessories, makeup, etc.

[0140] Personality traits: The character's personality traits should be consistent with the ancient background and reflect ancient culture and social customs.

[0141] Please closely relate the character's appearance and personality description to the ancient style scene so that it fits the atmosphere of the ancient style novel.

[0142] 104. A large language model is used to extract hints of the object in the next chapter, and local object information of the next chapter is determined in the next chapter. The local object information of the next chapter is description information of the object appearing in the next chapter.

[0143] In some embodiments, the large language model can be a model composed of multiple transformer network structures, wherein Transformer is a network structure composed of self-Attenion and Feed Forward Neural Network, which is widely used in the field of NLP. The current large language model is mainly composed of transformer network structure.

[0144] Among them, the object extraction prompt of the next chapter and the text content of the next chapter can be input into the large language model, so that the large language model uses the character information of the target chapter in the object extraction prompt as a reference to identify the characters involved in the next chapter and pay attention to how these characters appear in the next chapter, including the characters' dialogues, behaviors, appearance descriptions, etc.

[0145] In some embodiments, the large language model uses a self-attention mechanism to focus on important parts of the text content in the next chapter, for example, paragraphs and sentences related to the characters, to extract detailed descriptions. The large language model then compares the character information in the next chapter with the information in the target chapter to ensure that the extracted character description is consistent with the previous description.

[0146] In some embodiments, the description information includes the name, appearance, and attribute information of the object. The name may include name, nickname, alias, etc.; the appearance may include appearance, clothing, hairstyle, special features, etc.; the attribute information may include gender, age, identity, etc.

[0147] In some embodiments, the description information may also include behavior attitude, background information, role relationships, changes and developments, and other information.

[0148] Therefore, in some embodiments, step 104 includes:

[0149] Using a large language model to extract hints of objects in the next chapter, perform named entity recognition on the next chapter to determine the names of objects that appear in the next chapter;

[0150] Identify the relationships between objects that appear in subsequent chapters;

[0151] The names of objects and the relationships between them are stored in a structured manner to obtain the local object information of the next chapter.

[0152] 105. Integrate the local object information of the next chapter with the object integration information of the target chapter to obtain the object integration information of the next chapter.

[0153] In an embodiment of the present application, descriptions of the same role scattered in different chapters may be integrated, wherein the integration may be performed through knowledge graphs, natural language processing technology, data storage, rule templates, and the like.

[0154] 106. Obtain full-text object information, where the full-text object information includes object integration information of the last chapter in the text.

[0155] In some embodiments, the full text object information can be used to draw a comic setting of the protagonist of the novel, that is, to convert the detailed character description into an image, and after step 106, the following is further included:

[0156] For each object in the full-text object information, generate an image drawing request of the object, the image drawing request including description information of the object;

[0157] The drawing model is used to create an object image for the object based on an image drawing request.

[0158] The drawing model may be an AI drawing model, such as DALL-E, Midjourney, or Stable Diffusion.

[0159] For example, an image drawing request for an object could be:

[0160] [Please draw the following character:

[0161] Character name: Elena

[0162] Gender: Female

[0163] Age: Young

[0164] Physical features: long blond hair, blue eyes

[0165] Dress: Long blue dress with intricate patterns

[0166] Personality traits: Determined, brave

[0167] Background environment: an old magic library with shelves full of old books and magic symbols on the walls

[0168] Art Style: Classic comic book style, detailed line work and bright colors]

[0169] In some embodiments, after step 106, the method further includes:

[0170] Based on the full-text object information, object relationships are sorted out to obtain the association relationships between objects in the full-text object information;

[0171] Perform event summary processing based on the full-text object information to obtain the events in which the objects in the full-text object information participate;

[0172] Based on the association relationships between objects and the events in which the objects participate, the knowledge graph of the text in the knowledge database is updated so that the knowledge graph can be used to answer users' questions about the text.

[0173] Among them, the knowledge graph can be composed of nodes (Entities), relationships (Relationships) and attributes (Attributes). Among them, nodes include people, places, objects, events, etc.; relationships describe the relationship between nodes, such as "person-belongs to-place" or "person-participates in-event"; attributes are detailed information of nodes, such as the appearance characteristics of the person, background story, etc.

[0174] Among them, object relationship combing can add relationships to the knowledge graph based on the relationship information in the full-text object information, for example, "Elena-lives in-the ancient magic library".

[0175] The event summary process can update the detailed properties of the node according to the property information in the full-text object information, for example, adding "blonde long hair" and "blue eyes" to the properties of the node "Elena".

[0176] In some embodiments, after updating the knowledge graph of the text in the knowledge database, the method further includes:

[0177] Obtain the user's question message, which carries a text identifier;

[0178] Based on the text identifier, search for the target text corresponding to the text identifier in the knowledge database;

[0179] Obtain the knowledge graph of the target text;

[0180] Using the knowledge graph of the target text, answer the question message and get a reply message;

[0181] Return a reply message to the user.

[0182] For example, the question “What is Elena’s background?” is answered with “Elena is a young magician who lives in an old magic library with shelves full of ancient books.”

[0183] As can be seen from the above, the embodiment of the present application can obtain a text and a summary of the text, wherein the text includes multiple chapters arranged in order, and the multiple chapters include a target chapter; obtain object integration information of the target chapter, and the object integration information includes the integration of information on objects appearing in the target chapter and all previous chapters in the text; generate an object extraction prompt for the subsequent chapter based on the object integration information and the summary of the target chapter, and the subsequent chapter is the chapter after the target chapter in the text; use a large language model to determine local object information of the subsequent chapter in the subsequent chapter based on the object extraction prompt of the subsequent chapter, and the local object information of the subsequent chapter is the description information of the object appearing in the subsequent chapter; integrate the local object information of the subsequent chapter with the object integration information of the target chapter to obtain the object integration information of the subsequent chapter; obtain full-text object information, and the full-text object information includes the object integration information of the last chapter in the text.

[0184] Therefore, this solution can be divided according to chapters, extract the description information of the objects appearing in each chapter, and integrate the description information of all chapters to finally obtain accurate object information. Therefore, this solution can improve the accuracy of the information processing method.

[0185] The following is a further introduction to this program:

[0186] The number of online novels has increased dramatically. They are long and varied in style. Traditional text analysis methods are unable to cope with their complexity. In addition, traditional text models usually require parameter fine-tuning on specific novel content, which makes them less efficient in processing massive novel platforms.

[0187] In order to improve the efficiency and accuracy of extracting character information in novels, an embodiment of the present application proposes a method for extracting character information from novels based on a large language model. The method first designs precise text input prompts for the character information extraction task to guide the large language model to understand the content of the novel and extract information, ensuring a high recall rate of character information. Next, in order to solve the problem of non-standardization of the output results of the large language model, the embodiment of the present application formulates a series of post-processing rules to organize the non-standard output of the large language model into formatted character information, thereby improving the efficiency of downstream tasks in utilizing character information. Finally, in order to cope with the input length limit of the large language model and the problem of information forgetting in very long texts, the embodiment of the present application designs a global character information maintenance and update strategy to ensure the consistency and integrity of character information in novels.

[0188] The embodiment of the present application utilizes the understanding and memory ability of the large language model in processing long texts to conduct an in-depth analysis of the novel content, thereby providing a more intelligent and accurate novel understanding service. In the application process of the large language model, the embodiment of the present application innovatively introduces an automated prompt word construction method based on the novel summary information, so that the prompt word can fully and accurately express the content of the novel, thereby improving the accuracy of the large language model in extracting character information in the novel. In view of the problem that the large language model is limited in processing input length and the time consumption of processing ultra-long texts, the embodiment of the present application adopts a strategy of inputting the full text of the novel chapter by chapter, and constructs a dynamically updated character information database. The database is continuously iterated and updated with the output results of the large language model, providing a more comprehensive information description of the novel characters, and at the same time serving as auxiliary information when the large language model processes the content of each chapter to improve the accuracy of understanding the content of the novel.

[0189] 1. Novel division

[0190] Since the length of current novels is usually far beyond the processing capabilities of large language models, and very long text inputs consume a lot of memory and time resources, it is necessary to split long novels into segments that the model can handle.

[0191] The usual method is to divide the novel into chapters and input each chapter into the model for processing. However, this method ignores the correlation between chapters. For example, some chapters may end with a suspense, and the next chapter will continue to solve these suspense. If the input model is truncated at the end of the chapter, it may result in incomplete content, thus affecting the model's understanding of the novel.

[0192] Therefore, the embodiment of the present application proposes an overlapping input method:

[0193] When processing the content of each chapter, the end of the previous chapter and the beginning of the next chapter are added and input into the model together. The length of the overlapping part can be dynamically adjusted according to the content and time requirements, so that each chapter retains richer contextual information, which helps the model understand the content more comprehensively.

[0194] 2. Prompt word generation

[0195] When processing a specific task, the large language model relies on the prompt words provided by the user to clarify the task content. The embodiment of the present application proposes a method for automatically generating prompt words based on novel summary information and extracted character information using a large language model.

[0196] For example, the input of the embodiment of the present application includes a novel content summary and currently extracted character information. The task of the large language model is to generate a prompt word for processing the next paragraph of the novel content based on the provided novel summary and known character information.

[0197] Among them, the novel summary covers the main characters and plots, which helps the model identify and extract character information. For example, if the novel summary indicates that this is a time-travel novel, the generated prompt words will guide the model to pay attention to the changes in the character's name, gender, age, and image before and after the time travel, thereby associating the character before and after the time travel. For ancient style novels, the prompt words will guide the model to be closer to the ancient style scenes when extracting character information, such as the description of the character's appearance should reflect the ancient style of clothing and avoid modern style.

[0198] The currently extracted character information comes from the model's analysis and integration of the processed novel content. Character information helps the model understand the local content of the novel, especially in terms of reference, title, and character alias. For example, if the existing information describes the character "Xiao Chen" as the teacher of "Lin Chen", then "Lin Chen's teacher" should refer to the known character "Xiao Chen" rather than a new character.

[0199] In order to adapt to different novel summary information and existing character information, the embodiment of the present application uses a large language model to automatically generate character extraction prompt words. The input format is:

[0200] “Task description: Please generate prompt words for the character information extraction task based on the following novel summary and the currently known character information. Please use the thought chain method to guide the model to gradually extract and condense the character information. The following is the novel summary: {Summary information}. The following is the known character information in the novel: {Character information}.”

[0201] 3. Extraction of chapter role information.

[0202] The large language model can extract character information based on the text content of each chapter, partial contextual content of the previous and next chapters, and prompt words. The process can be expressed as:

[0203] Character x =Φ(Chap x ,Chap( x - 1 ),Chap( x + 1 ),prompt)

[0204] Among them, Φ represents the large language model, Character x It indicates the character information extracted in Chapter x, and prompt indicates the prompt word.

[0205] (IV) Integration and update of character information throughout the text.

[0206] After obtaining the role information of each chapter, it is necessary to integrate the role information to form the role information of the entire text. This process can be expressed as:

[0207] Character F x =Merge(Character x ,Character F x-1 )

[0208] Among them, Character F x Indicates the character information of the entire text after merging the character information of Chapter x. Character F x-1 Indicates the character information of the entire text after merging the character information of Chapter x-1.

[0209] This application uses 10 online novels to test the effect of the method. For each online novel, 3 chapters are selected as test data, totaling 30 chapters of test content, and each chapter is about 2,000 words. The character information in these novels is annotated by manual annotation. The present invention uses four indicators, namely, role recall rate, role accuracy rate, description efficiency rate, and type (main and supporting role) accuracy rate, to evaluate the effect of the method. Its performance is referenced Figure 2 .

[0210] refer to Figure 2 It can be seen that the embodiment of the present application can extract character information very completely and accurately (recall rate 94.23%, accuracy rate 92.49%). At the same time, the description of the character and the determination of the main and supporting roles are both highly performed. Therefore, the present invention can provide accurate character information for online novel platforms, dynamic comic production tools, etc.

[0211] In order to better implement the above method, the embodiment of the present application also provides an information processing device, which can be integrated in an electronic device, and the electronic device can be a terminal, a server, etc. Among them, the terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, a personal computer, etc.; the server can be a single server or a server cluster composed of multiple servers.

[0212] For example, in this embodiment, the method of the embodiment of the present application will be described in detail by taking the information processing device being specifically integrated in a server as an example.

[0213] For example, Figure 3a As shown, the information processing device may include a text acquisition unit 301, an integration acquisition unit 302, a prompt generation unit 303, a local information unit 304, an integration unit 305, and a full text information unit 306, as follows:

[0214] (1) Text acquisition unit 301.

[0215] The text acquisition unit 301 is used to acquire a text and a summary of the text. The text includes a plurality of chapters arranged in sequence, and the plurality of chapters includes a target chapter.

[0216] In some embodiments, reference Figure 3b , the text acquisition unit 301 includes:

[0217] A text acquisition subunit is used to acquire text and a summary of the text;

[0218] The split sub-unit is used to split the text to obtain multiple chapters to be processed in order;

[0219] The adding subunit is used to add the ending content of the previous chapter to be processed and the starting content of the next chapter to be processed to the chapter to be processed to obtain the processed chapter. The previous chapter to be processed is the previous chapter to be processed of the chapter to be processed, and the next chapter to be processed is the next chapter to be processed of the chapter to be processed.

[0220] In some embodiments, a subunit is added for:

[0221] Determine the last paragraph in the previous chapter to be processed as the ending content;

[0222] Determine the first paragraph in the next chapter to be processed as the starting content;

[0223] The ending content is added to the end of the chapter to be processed, and the starting content is added to the beginning of the chapter to be processed to obtain the processed chapter.

[0224] (2) Integration acquisition unit 302.

[0225] The integration acquisition unit 302 is used to acquire object integration information of the target chapter, where the object integration information includes the integration of information of objects appearing in the target chapter and all previous chapters in the text.

[0226] (3) Prompt generation unit 303.

[0227] The prompt generating unit 303 is used to generate an object extraction prompt for a subsequent chapter according to the object integration information and the abstract introduction of the target chapter, where the subsequent chapter is the chapter after the target chapter in the text.

[0228] In some embodiments, reference Figure 3c , the prompt generating unit 303 comprises:

[0229] The template subunit is used to obtain a preset prompt template, wherein the preset prompt template includes an object space and a summary space;

[0230] The inserting subunit is used to insert the object integration information of the target chapter into the object space of the preset prompt template, and to insert the summary introduction into the summary space of the preset prompt template to obtain the object extraction prompt of the next chapter.

[0231] In some embodiments, the template subunit is used to:

[0232] Determine the content type of the text based on the abstract introduction;

[0233] Get the preset prompt template corresponding to the content type in the template collection.

[0234] In some embodiments, the content type of the text includes a time-travel novel type and an ancient style novel type, and obtaining a preset prompt template corresponding to the content type in the template set includes:

[0235] When the content type of the text is a time-travel novel type, a time-travel novel template in the template set is used as a preset prompt template, and the time-travel novel template includes content that prompts the changes of the characters before and after the time travel.

[0236] When the content type of the text is an ancient style novel type, the ancient style novel template in the template set is used as a preset prompt template, and the ancient style novel template includes content that prompts the use of ancient style terms.

[0237] In some embodiments, the prompt generating unit 303 is used to:

[0238] When the target chapter is the first chapter in the text, an object extraction prompt for the second chapter is generated according to the summary introduction;

[0239] When the target chapter is a chapter other than the first chapter in the text, an object extraction prompt for the subsequent chapter is generated based on the object integration information and summary of the target chapter.

[0240] (4) Local information unit 304.

[0241] The local information unit 304 is used to determine the local object information of the next chapter in the next chapter according to the object extraction prompt of the next chapter using the large language model. The local object information of the next chapter is the description information of the object appearing in the next chapter.

[0242] In some embodiments, the local information unit 304 is used to:

[0243] Using a large language model to extract hints of objects in the next chapter, perform named entity recognition on the next chapter to determine the names of objects that appear in the next chapter;

[0244] Identify the relationships between objects that appear in subsequent chapters;

[0245] The names of objects and the relationships between them are stored in a structured manner to obtain the local object information of the next chapter.

[0246] In some embodiments, the description information includes the name, appearance, and attribute information of the object.

[0247] (5) Integration unit 305.

[0248] The integration unit 305 is used to integrate the local object information of the next chapter with the object integration information of the target chapter to obtain the object integration information of the next chapter.

[0249] In some embodiments, after obtaining the full-text object information, the integration unit 305 is further used to:

[0250] For each object in the full-text object information, generate an image drawing request of the object, the image drawing request including description information of the object;

[0251] The drawing model is used to create an object image for the object based on an image drawing request.

[0252] In some embodiments, after obtaining the full-text object information, the integration unit 305 is further used to:

[0253] Based on the full-text object information, object relationships are sorted out to obtain the association relationships between objects in the full-text object information;

[0254] Perform event summary processing based on the full-text object information to obtain the events in which the objects in the full-text object information participate;

[0255] Based on the association relationships between objects and the events in which the objects participate, the knowledge graph of the text in the knowledge database is updated so that the knowledge graph can be used to answer users' questions about the text.

[0256] In some embodiments, after updating the knowledge graph of the text in the knowledge database, the method further includes:

[0257] Obtain the user's question message, which carries a text identifier;

[0258] Based on the text identifier, search for the target text corresponding to the text identifier in the knowledge database;

[0259] Obtain the knowledge graph of the target text;

[0260] Using the knowledge graph of the target text, answer the question message and get a reply message;

[0261] Return a reply message to the user.

[0262] (6) Full-text information unit 306.

[0263] The full-text information unit 306 is used to obtain full-text object information, which includes object integration information of the last chapter in the text.

[0264] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.

[0265] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0266] As can be seen from the above, the information processing device of this embodiment obtains the text and the abstract of the text by the text acquisition unit, and the text includes multiple chapters arranged in order, and the multiple chapters include the target chapter; the object integration information of the target chapter is obtained by the integration acquisition unit, and the object integration information includes the integration of the information of the objects appearing in the target chapter and all previous chapters in the text; the prompt generation unit generates the object extraction prompt of the next chapter according to the object integration information and the abstract of the target chapter, and the next chapter is the next chapter of the target chapter in the text; the local information unit uses a large language model to determine the local object information of the next chapter in the next chapter according to the object extraction prompt of the next chapter, and the local object information of the next chapter is the description information of the object appearing in the next chapter; the integration unit integrates the local object information of the next chapter with the object integration information of the target chapter to obtain the object integration information of the next chapter; the full-text information unit obtains the full-text object information, and the full-text object information includes the object integration information of the last chapter in the text. Therefore, the embodiment of the present application can improve the accuracy of the information processing method.

[0267] The embodiment of the present application also provides an electronic device, which can be a terminal, a server, etc. The terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, a personal computer, etc. The server can be a single server or a server cluster composed of multiple servers, etc.

[0268] In some embodiments, the information processing device may also be integrated into multiple electronic devices. For example, the information processing device may be integrated into multiple servers, and the information processing method of the present application may be implemented by multiple servers.

[0269] In this embodiment, the electronic device of this embodiment is a server as an example for detailed description, for example, Figure 4 As shown, it shows a schematic diagram of the structure of the electronic device involved in the embodiment of the present application, specifically:

[0270] The electronic device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, an input module 404, and a communication module 405. Those skilled in the art will appreciate that Figure 4 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0271] The processor 401 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, it performs various functions of the electronic device and processes data, thereby performing overall detection of the electronic device. In some embodiments, the processor 401 may include one or more processing cores; in some embodiments, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.

[0272] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.

[0273] The electronic device also includes a power supply 403 for supplying power to various components. In some embodiments, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 403 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0274] The electronic device may further include an input module 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0275] The electronic device may further include a communication module 405. In some embodiments, the communication module 405 may include a wireless module. The electronic device may perform short-range wireless transmission through the wireless module of the communication module 405, thereby providing the user with wireless broadband Internet access. For example, the communication module 405 may be used to help the user send and receive emails, browse web pages, and access streaming media.

[0276] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402, thereby realizing various functions, such as the following:

[0277] Obtaining a text and a summary of the text, wherein the text includes a plurality of sequentially arranged chapters, and the plurality of chapters includes a target chapter;

[0278] Obtaining object integration information of the target chapter, the object integration information includes the integration of information of objects appearing in the target chapter and all previous chapters in the text;

[0279] Generate an object extraction prompt for a subsequent chapter based on the object integration information and summary of the target chapter, where the subsequent chapter is the chapter after the target chapter in the text;

[0280] A large language model is used to extract hints of objects in the next chapter, and local object information of the next chapter is determined in the next chapter, where the local object information of the next chapter is description information of the object appearing in the next chapter;

[0281] Integrate the local object information of the next chapter with the object integration information of the target chapter to obtain the object integration information of the next chapter;

[0282] The full-text object information is obtained, and the full-text object information includes the object integration information of the last chapter in the text.

[0283] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0284] It can be seen from the above that the embodiments of the present application can improve the accuracy of the information processing method.

[0285] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0286] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the information processing methods provided in the embodiments of the present application. For example, the instructions can execute the following steps:

[0287] Obtaining a text and a summary of the text, wherein the text includes a plurality of sequentially arranged chapters, and the plurality of chapters includes a target chapter;

[0288] Obtaining object integration information of the target chapter, the object integration information includes the integration of information of objects appearing in the target chapter and all previous chapters in the text;

[0289] Generate an object extraction prompt for a subsequent chapter based on the object integration information and summary of the target chapter, where the subsequent chapter is the chapter after the target chapter in the text;

[0290] A large language model is used to extract hints of objects in the next chapter, and local object information of the next chapter is determined in the next chapter, where the local object information of the next chapter is description information of the object appearing in the next chapter;

[0291] Integrate the local object information of the next chapter with the object integration information of the target chapter to obtain the object integration information of the next chapter;

[0292] The full-text object information is obtained, and the full-text object information includes the object integration information of the last chapter in the text.

[0293] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0294] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementations of the character extraction, question answering, or AI comic generation aspects provided in the above embodiments.

[0295] Since the instructions stored in the storage medium can execute the steps in any information processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any information processing method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0296] The above is a detailed introduction to an information processing method, device, electronic device and computer-readable storage medium provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. An information processing method, characterized in that: include: Acquire a text and a summary of the text, wherein the text includes a plurality of sequentially arranged chapters, and the plurality of sequentially arranged chapters include a target chapter; Acquire object integration information of a target chapter, wherein the object integration information includes integration of information of objects appearing in the target chapter and all previous chapters in the text; Inserting the object integration information of the target chapter and the summary introduction into a preset prompt template to generate an object extraction prompt for a subsequent chapter, wherein the subsequent chapter is the chapter after the target chapter in the text; Using a large language model to perform named entity recognition on the subsequent chapter according to the object extraction prompt of the subsequent chapter, determine the names of the objects appearing in the subsequent chapter; determine the relationship between the objects appearing in the subsequent chapter; store the names of the objects and the relationship between the objects in a structured manner to obtain local object information of the subsequent chapter, wherein the local object information of the subsequent chapter is description information of the objects appearing in the subsequent chapter; Integrating the local object information of the subsequent chapter with the object integration information of the target chapter to obtain the object integration information of the subsequent chapter; Full-text object information is obtained, wherein the full-text object information includes object integration information of the last chapter in the text.

2. The information processing method according to claim 1, characterized in that: The acquired text and the abstract of the text, wherein the text includes a plurality of sequentially arranged chapters, wherein the plurality of sequentially arranged chapters include a target chapter, include: Obtaining text and a summary of the text; Splitting the text to obtain a plurality of chapters to be processed arranged in sequence; The ending content of the previous chapter to be processed and the starting content of the next chapter to be processed are added to the chapter to be processed to obtain a processed chapter, wherein the previous chapter to be processed is the previous chapter to be processed of the chapter to be processed, and the next chapter to be processed is the next chapter to be processed of the chapter to be processed.

3. The information processing method according to claim 2, characterized in that: The step of adding the ending content of the previous chapter to be processed and the starting content of the next chapter to be processed to the chapter to be processed to obtain a processed chapter includes: Determine the last paragraph in the previous to-be-processed chapter as the ending content; Determine the first paragraph in the next to-be-processed chapter as the starting content; The ending content is added to the end of the to-be-processed chapter, and the starting content is added to the beginning of the to-be-processed chapter to obtain a processed chapter.

4. The information processing method according to claim 1, wherein: The step of inserting the object integration information of the target chapter and the summary introduction into a preset prompt template to generate an object extraction prompt for a subsequent chapter includes: Acquire a preset prompt template, wherein the preset prompt template includes an object space and a summary space; The object integration information of the target chapter is inserted into the object space of the preset prompt template, and the summary introduction is inserted into the summary space of the preset prompt template to obtain the object extraction prompt of the next chapter.

5. The information processing method according to claim 4, characterized in that: The step of obtaining a preset prompt template includes: Determine the content type of the text according to the abstract introduction; Obtain a preset prompt template corresponding to the content type in the template collection.

6. The information processing method according to claim 5, characterized in that: The content type of the text includes a time-travel novel type and an ancient style novel type, and obtaining a preset prompt template corresponding to the content type in the template set includes: When the content type of the text is a time-travel novel type, a time-travel novel template in the template set is used as a preset prompt template, and the time-travel novel template includes content that prompts the character changes before and after the time travel; When the content type of the text is an ancient style novel type, an ancient style novel template in the template set is used as a preset prompt template, and the ancient style novel template includes content prompting the use of ancient style terms.

7. The information processing method according to claim 1, characterized in that: The step of inserting the object integration information of the target chapter and the summary introduction into a preset prompt template to generate an object extraction prompt for a subsequent chapter includes: When the target chapter is the first chapter in the text, generating an object extraction prompt for the second chapter according to the summary introduction; When the target chapter is a chapter other than the first chapter in the text, the object integration information of the target chapter and the abstract introduction are inserted into a preset prompt template to generate an object extraction prompt for the next chapter.

8. The information processing method according to claim 1, wherein: The description information includes the name, appearance and attribute information of the object.

9. The information processing method according to claim 8, characterized in that: After obtaining the full-text object information, the method further includes: For each object in the full-text object information, generating an image drawing request for the object, the image drawing request including description information of the object; An object image is created for the object based on the image drawing request using a drawing model.

10. The information processing method according to claim 1, wherein: After obtaining the full-text object information, the method further includes: Based on the full-text object information, object relationship sorting is performed to obtain association relationships between objects in the full-text object information; Performing event summary processing based on the full-text object information to obtain events in which the objects in the full-text object information participate; According to the association relationship between the objects and the events in which the objects participate, the knowledge graph of the text in the knowledge database is updated so as to use the knowledge graph to answer users' questions regarding the text.

11. The information processing method according to claim 10, characterized in that: After the knowledge graph of the text in the knowledge database is updated, the method further includes: Obtaining a question message from a user, wherein the question message carries a text identifier; Based on the text identifier, searching a knowledge database for a target text corresponding to the text identifier; Obtaining a knowledge graph of the target text; Using the knowledge graph of the target text, answer the question message to obtain a reply message; The reply message is returned to the user.

12. An information processing device, characterized in that: include: A text acquisition unit, used to acquire a text and a summary of the text, wherein the text includes a plurality of sequentially arranged chapters, and the plurality of sequentially arranged chapters includes a target chapter; An integration acquisition unit, used to acquire object integration information of a target chapter, wherein the object integration information includes the integration of information of objects appearing in the target chapter and all previous chapters in the text; A prompt generating unit, configured to insert the object integration information of the target chapter and the summary introduction into a preset prompt template, and generate an object extraction prompt for a subsequent chapter, wherein the subsequent chapter is a chapter subsequent to the target chapter in the text; A local information unit is used to use a large language model to perform named entity recognition on the subsequent chapter according to the object extraction prompt of the subsequent chapter, determine the names of the objects appearing in the subsequent chapter; determine the relationship between the objects appearing in the subsequent chapter; and perform structured storage on the names of the objects and the relationship between the objects to obtain local object information of the subsequent chapter, wherein the local object information of the subsequent chapter is description information of the objects appearing in the subsequent chapter; An integration unit, configured to integrate the local object information of the subsequent chapter with the object integration information of the target chapter to obtain the object integration information of the subsequent chapter; The full-text information unit is used to obtain full-text object information, wherein the full-text object information includes object integration information of the last chapter in the text.

13. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the steps in the information processing method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the information processing method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Information display method and device, computer equipment and storage medium

    CN115421837A

  • Product specification generation method and system based on artificial intelligence generation content

    CN116796718A