Mind map generation method, mind map generation device and electronic equipment

Through the natural language processing model and multiple iteration generation technology based on supervised fine-tuning, combined with the optimal model and visual element matching, the problems of low efficiency and poor accuracy of the existing mind map generation methods are solved, and efficient and accurate automated mind mapping is achieved. Graph generation.

CN118690847APending Publication Date: 2024-09-24BAIDU COM TIMES TECH (BEIJING) CO LTD

Patent Information

Application Number
CN202410703012.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing mind map generation methods are inefficient and inaccurate, mainly due to the limitations of manual drawing and template matching methods.

Method used

Using a natural language processing model based on supervised fine-tuning, the mind map framework and content are generated through structured information extraction and multiple iterations, combined with the optimal model and visual element matching to achieve automated and efficient mind map generation.

Benefits of technology

It improves the accuracy and efficiency of mind map generation, can handle large amounts of content information, enhances the depth and richness of content understanding, and ensures the stability and visual effects of the output.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690847A
    Figure CN118690847A
Patent Text Reader

Abstract

The invention provides a mind map generation method, and relates to the technical field of computers, in particular to the technical field of artificial intelligence, large language models and natural language processing. According to the specific implementation scheme, the method comprises the steps of obtaining structured information of a content object based on the content object input by a user; inputting the structured information into a mind map generation model for understanding to obtain an output mind map corresponding to the content object; wherein the mind map generation model is obtained by training a natural language processing model based on a supervised fine tuning mode. According to the method provided by the invention, the complete mind map can be automatically generated after language understanding is carried out based on the content object, so that an efficient mind map generation mode with accurate understanding is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to the field of artificial intelligence, large language models, and natural language processing. Background Art

[0002] Mind mapping, also known as brain map, is a practical thinking tool that can express the relationship between different information being subordinate or parallel to each other in a hierarchical diagram. It has the advantages of being clear, simple and efficient.

[0003] At present, thinking Figure 1 Generally, it is generated by manually drawing with mind mapping tools, which is inefficient. Alternatively, it is generated by searching and matching to find a mind map template that meets user needs, which is inaccurate. Summary of the invention

[0004] The present disclosure provides a mind map generation method, a mind map generation device and an electronic device for solving at least one of the above-mentioned technical problems.

[0005] According to one aspect of the present disclosure, a method for generating a mind map is provided, wherein the method comprises:

[0006] Based on the content object input by the user, obtaining structured information of the content object;

[0007] Inputting the structured information into a mind map generation model for understanding, and obtaining an output mind map corresponding to the content object;

[0008] The mind map generation model is obtained by training the natural language processing model based on supervised fine-tuning.

[0009] According to another aspect of the present disclosure, a device for generating a mind map is provided, wherein the device comprises:

[0010] A structure extraction module, used to obtain structured information of a content object based on a content object input by a user;

[0011] A mind map generation module, used for inputting the structured information into a mind map generation model for understanding, and obtaining a mind map corresponding to the content object as output;

[0012] The mind map generation model is obtained by training the natural language processing model based on supervised fine-tuning.

[0013] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the above method.

[0017] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the above method.

[0018] According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program implements the above method when executed by a processor.

[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0021] Figure 1 It is a flowchart of a method for generating a mind map provided by the first embodiment of the present disclosure;

[0022] Figure 2 is a table of parameters of an exemplary mind map generation model;

[0023] Figure 3 is a schematic diagram of an exemplary structured information;

[0024] Figure 4 It is a schematic diagram of an exemplary mind mapping framework;

[0025] Figure 5 It is a schematic diagram of an exemplary mind map;

[0026] Figure 6 It is a flowchart of another method for generating a mind map provided by the first embodiment of the present disclosure;

[0027] Figure 7 is a structural schematic diagram of a mind map generating device provided by the second embodiment of the present disclosure;

[0028] Figure 8 The block diagram is a block diagram of an electronic device for implementing the method of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0030] In the absence of conflict, the various embodiments of the present disclosure and the various features therein may be combined with each other.

[0031] As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.

[0032] The terminology used herein is for describing particular embodiments only and is not intended to limit the present disclosure.As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0033] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined as such herein.

[0034] The mind map generation method according to the present disclosure can be executed by an electronic device such as a terminal device or a server. The terminal device can be a vehicle-mounted device, a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. The method can be implemented by a processor calling a computer-readable program instruction stored in a memory. Alternatively, the mind map generation method provided by the present disclosure can be executed by a server.

[0035] In the first embodiment disclosed, see Figure 1 , Figure 1 A flowchart of a method for generating a mind map provided in the first embodiment of the present disclosure is shown. The method comprises:

[0036] S101. Based on a content object input by a user, obtain structured information of the content object.

[0037] S102: Input the structured information into the mind map generation model for understanding, and obtain a mind map corresponding to the output content object.

[0038] Among them, the mind map generation model is obtained by training the natural language processing model based on supervised fine-tuning.

[0039] Among them, the natural language processing model may include multiple models, for example, including any of the following: a large language model, a recursive neural network (RNN), a long short-term memory network (LSTM), a transformer model, and a bag-of-words model, without limitation here.

[0040] Among them, the supervised fine tuning (Supervised Fine Tuning, SFT) method can adopt any supervised fine tuning method, for example, including at least one of the following: low-rank adaptation of large language models (Lora) method, prompt word fine tuning (P-tuning) method, frozen parameter (Freeze) fine tuning method, which is not limited here.

[0041] The content object may include content objects in various forms of expression, for example, at least one of the following: an image object, a text object, and a voice object, which are not limited here.

[0042] The method disclosed herein extracts structured information from content objects so that a subsequent mind map generation model can quickly understand the content objects; the structured information is then understood by the mind map generation model, and a mind map is output, so that a complete mind map can be automatically generated based on language understanding of the content objects, thereby realizing an efficient mind map generation method with accurate understanding.

[0043] In some examples, S101 includes:

[0044] A content object structure extraction model is adopted to obtain the structured information of the content object based on the content object input by the user.

[0045] The content object structure extraction model is obtained by training the decoder structure of the transformer model. The content object structure extraction model can extract the content of the content object using the attention mechanism to obtain structured information with a logical structure.

[0046] In some examples, S101 includes:

[0047] Step 1: Based on the content object, the content object is divided into multiple sub-content objects, and the structural relationship between the multiple sub-content objects is determined.

[0048] For example, a content object that is a text object is input, the text object is divided into multiple sub-text chapters based on the text content, and the structural relationship between the multiple sub-text chapters, such as the sequential relationship, is determined.

[0049] Step 2: Convert the format of multiple sub-content objects into a format that is compatible with the input data of the mind map generation model.

[0050] In some cases, the formats of multiple sub-content objects can be converted into a format that is convenient for processing by the mind map generation model, thereby simplifying the input data of the model and improving the operating efficiency of the model.

[0051] It should be noted that, in some cases, step 2 can be omitted, which is not limited here.

[0052] In some examples, the mind map generation model includes a first mind map generation sub-network and a second mind map generation sub-network connected to each other. Based on this, S102 includes:

[0053] Step 1: Input the structured information into the first mind map generation sub-network for understanding, and obtain the output mind map framework.

[0054] Step 2: Input the structured information and the mind map framework into the second mind map generation sub-network for understanding, and obtain the output mind map.

[0055] Among them, the first mind map generation sub-network is obtained by training the natural language processing model based on the supervised fine-tuning method, with the structured information set of the content object as sample data and the mind map framework set as label data. That is to say, the training task of the first mind map generation sub-network is to summarize the mind map framework from the structured information of the content object.

[0056] Among them, the second mind map generation sub-network is obtained by training the natural language processing model based on the supervised fine-tuning method, with the structured information set of the content object and the mind map framework set as sample data and the mind map set as label data. In other words, the training task of the second mind map generation sub-network is to further understand the structured information of the content object based on the mind map framework to obtain a complete mind map.

[0057] It should be noted that in some examples, such as when the amount of information in the content object is small, the structured information can be directly input into the second mind map generation subnetwork, and the second mind map generation subnetwork can be used to generate the completed mind map. In other words, step one can be omitted.

[0058] In some examples, taking the case where the first mind map generation subnetwork and / or the second mind map generation subnetwork are trained using the Lora method as an example, the training method of the first mind map generation subnetwork and / or the second mind map generation subnetwork may include:

[0059] The original weight matrix in the self-attention module of the first mind map generation sub-network or the second mind map generation sub-network is retained, and the weight matrix is ​​low-rank decomposed;

[0060] During the training process, only the parameters of the low-rank part are updated and repeated.

[0061] Among them, see Figure 2 , Figure 2 A table showing parameters of an exemplary mind map generation model, which can be adjusted according to the training data during the training process Figure 2 At least some of the parameters shown in the table.

[0062] In some examples, mind mapping frameworks include:

[0063] A plurality of content subsections, and a position of each of the plurality of content subsections in the content object.

[0064] See also Figure 3-Figure 5 ,in, Figure 3 A schematic diagram showing an exemplary structured information; Figure 4 A schematic diagram showing an exemplary mind map framework, Figure 5 A schematic diagram of an exemplary mind map is shown. It should be noted that the gray blocks in the figure are shielding codes for sensitive information.

[0065] Combination Figure 3-Figure 5 As an example to illustrate the method, take the content object as a text object as an example, the original text object is a text with disordered content (not shown in the figure), after S101, extract the following Figure 3 The structured information shown.

[0066] Input the structured information into the first mind map generation sub-network for overall understanding, and obtain the following Figure 4 The mind map framework shown includes multiple content sections, such as Figure 4 In some examples, the mind map framework also includes the position of each content section in the content object, such as "Financial Status", "Business Table Items", "Market Trends", etc. In some examples, the mind map framework also includes the position of each content section in the content object, and in some examples, it can also be the position in the structured information.

[0067] After obtaining the mind map framework, the original structured information and the mind map framework summarized by the first mind map generation sub-network are input into the second mind map generation sub-network. The second mind map generation sub-network will combine each content section of the mind map framework, further understand the content object according to the position of each content section in the structured information of the content object, fill in the content of each content section, and generate Figure 5 The complete mind map shown.

[0068] In this way, the first mind map generation subnetwork can make an overall summary of the content object and summarize the content of the mind map framework. The subsequent second mind map generation subnetwork further understands the content object based on the content of the mind map framework to obtain a detailed and complete mind map. In this way, the understanding of the content of the content object can be strengthened, and the method provided by the present disclosure can process content objects with large amounts of content information (such as long text objects, ultra-clear pixel image objects), improve the accuracy and depth of content understanding, and enrich the mind map with content.

[0069] For some examples, see Figure 6 , Figure 6 A schematic flow chart of another method for generating a mind map is shown. Based on the above S101, S102 includes:

[0070] The structured information is input into the mind map generation model for understanding, and multiple mind maps corresponding to the content objects output multiple times are obtained.

[0071] Continue to see Figure 6 In this case, after S102A, the method further includes:

[0072] S103. Determine a final mind map from multiple mind maps.

[0073] In some examples, in order to make the exported mind map of higher quality, S102 can be executed multiple times, so that the model outputs mind maps multiple times, and then a mind map with high quality is selected as the final output result. There are many ways to select a mind map, such as presetting a mind map selection rule, and the mind map selection rule is, for example, selecting the mind map with the highest complexity, selecting the mind map with the least nodes, etc.

[0074] Of course, in some examples, a model may also be used to perform S103, where S103 includes:

[0075] Input multiple mind maps into the optimal selection model to obtain the final mind map as output.

[0076] Among them, the optimal model is obtained by training with mind map pairs in a pre-constructed mind map corpus as sample data.

[0077] In other words, the mind map pair is a sample pair constructed based on a pairing method. Specifically, a mind map pair is constructed based on the mind maps outputted at any two times by the mind map generation model. When constructing the mind map pair, the order of the mind map with higher quality (called the first mind map) is always placed in front of another mind map (called the second mind map), and the two are associated with the structured information of the corresponding content object, and the order of the structured information is in front of the first mind map and the second mind map. The structure of the mind map pair constructed in this way is arranged in order of precedence: the structured information of the content object-the first mind map-the second mind map. Among them, the priority of the first mind map is higher than that of the second mind map. In this way, multiple mind map pairs are constructed, and then a mind map corpus is constructed based on multiple mind map pairs. In the training process of the optimal model, the first mind map and the second mind map in the mind map pair are used as sample data, and the training goal of the optimal model is: select the mind map with a high priority as the output mind map. Therefore, the optimal model can learn to select the mind map with the highest quality from multiple mind maps as the final mind map. In this way, the accuracy of the final generated mind map can be further guaranteed, and the stability of the output can be guaranteed.

[0078] Continue to see Figure 6 After S103, the method further includes:

[0079] S104: Based on a preset visual element matching rule, determine a corresponding visual element for the mind map in a preset visual element library.

[0080] S105. Apply visual elements to mind maps.

[0081] Through S104 and S105, the visual effects of the mind map can be enriched, and the visual elements can include various types of elements, such as color matching elements, picture matching elements, text format elements, etc.

[0082] In some examples, S104 includes:

[0083] The description tag of the content object is obtained, and matching is performed based on the description tag and the element tags of each visual element in the visual element library, and the corresponding visual element is determined according to the matching result.

[0084] There are many ways to select matching visual elements for a mind map. In some examples, multiple element tags can be set for each visual element in the visual element library, and multiple description tags are extracted based on the content of the content object. The element tags and description tags are then matched, and the visual elements with high relevance are used as the final selected visual elements.

[0085] The description tag of the content object is determined in the following way:

[0086] Determine the description tag according to the content characteristics of the content object.

[0087] and / or,

[0088] A descriptive label is determined based on personal characteristics of a user who inputs the content object.

[0089] In some examples, the description tag can be obtained by understanding the content of the content object, or according to the user's personal characteristics (such as interest characteristics), which is not limited here. In this way, the flexibility and personalization of the selection of visual elements can be improved.

[0090] In some examples, any of steps S103, S104 and S105 may be omitted, which is not limited here.

[0091] In the disclosed second embodiment, based on Figure 1 The same principle, Figure 7 A mind map generation device 70 provided in the third embodiment of the present disclosure is shown, and the device includes:

[0092] The structure extraction module 701 is used to obtain structured information of a content object based on the content object input by a user.

[0093] A mind map generation module 702 is used to input structured information into a mind map generation model for understanding, and obtain a mind map corresponding to the output content object;

[0094] Among them, the mind map generation model is obtained by training the natural language processing model based on supervised fine-tuning.

[0095] In some examples, the map generation module includes:

[0096] A first generation submodule is used to input structured information into a first mind map generation subnetwork for understanding, and obtain an output mind map framework;

[0097] The second generation submodule inputs the structured information and the mind map framework into the second mind map generation subnetwork for understanding, and obtains an output mind map;

[0098] Among them, the first mind map generation sub-network is obtained by training the natural language processing model based on the supervised fine-tuning method, using the structured information set of the content object as sample data and the mind map frame set as label data;

[0099] The second mind map generation sub-network is obtained by training the natural language processing model based on supervised fine-tuning, using the structured information set of content objects and the mind map frame set as sample data and the mind map set as label data.

[0100] In some examples, mind mapping frameworks include:

[0101] A plurality of content subsections, and a position of each of the plurality of content subsections in the content object.

[0102] In some examples, the natural language processing model includes any of the following: a large language model, a recursive neural network, a long short-term memory network, a transformer model, a bag-of-words model.

[0103] In some examples, the supervised fine-tuning method includes at least one of the following: a low-order adaptation method of a large language model, a prompt word fine-tuning method, and a frozen parameter fine-tuning method.

[0104] In some examples, the map generation module is specifically used to:

[0105] Input the structured information into the mind map generation model for understanding, and obtain multiple mind maps corresponding to the content objects output multiple times;

[0106] The device also includes:

[0107] The optimization module is used to determine the final mind map from multiple mind maps.

[0108] In some examples, the optimization module is specifically used to:

[0109] Input multiple mind maps into the optimal selection model to obtain the final mind map as output;

[0110] Among them, the optimal model is obtained by training with the mind map pairs in the pre-built mind map corpus as sample data;

[0111] The mind map pair includes: structured information of the content object, a first mind map, and a second mind map arranged in order of precedence, wherein the first mind map has a higher priority than the second mind map;

[0112] The training goal of the optimization model is to select the mind map with high optimization priority as the output mind map.

[0113] In some examples, the apparatus further includes: a visual element module, configured to:

[0114] Based on the preset visual element matching rules, the corresponding visual elements are determined for the mind map in the preset visual element library;

[0115] Apply visual elements to your mind map.

[0116] In some examples, the visual element module is specifically used to:

[0117] The description tag of the content object is obtained, and matching is performed based on the description tag and the element tag of each visual element in the visual element library, and the corresponding visual element is determined according to the matching result.

[0118] In some examples, the descriptive tags of the content objects in the visual element module are determined as follows:

[0119] Determine a description tag according to content features of the content object;

[0120] and / or,

[0121] A description label is determined based on personal characteristics of a user who inputs the content object.

[0122] In some examples, the structure extraction module is specifically configured to:

[0123] Adopting a content object structure extraction model, based on the content object input by the user, the structured information of the content object is obtained;

[0124] Among them, the content object structure extraction model is trained based on the decoder structure of the transformer model.

[0125] In some examples, the structure extraction module is specifically configured to:

[0126] Based on the content object, the content object is divided into a plurality of sub-content objects, and a structural relationship between the plurality of sub-content objects is determined.

[0127] In some examples, the structure extraction module is also used to:

[0128] The multiple sub-content objects are format-converted into a format compatible with input data of a mind map generation model.

[0129] In some examples, the content object includes at least one of the following: an image object, a text object, a voice object.

[0130] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0131] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0132] Figure 8 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0133] like Figure 8 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0134] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0135] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as the generation method of the mind map. For example, in some embodiments, the generation method of the mind map may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the generation method of the mind map described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured as the generation method of the mind map by any other appropriate means (e.g., by means of firmware).

[0136] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0137] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0138] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0139] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0140] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0141] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0142] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0143] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for generating a mind map, wherein: The method comprises: Based on the content object input by the user, obtaining structured information of the content object; Inputting the structured information into a mind map generation model for understanding, and obtaining an output mind map corresponding to the content object; The mind map generation model is obtained by training the natural language processing model based on supervised fine-tuning.

2. The method according to claim 1, wherein: The mind map generation model includes a first mind map generation sub-network and a second mind map generation sub-network connected to each other; The step of inputting the structured information into a mind map generation model for understanding, and obtaining an output mind map corresponding to the content object, comprises: Inputting the structured information into the first mind map generation subnetwork for understanding, and obtaining an output mind map framework; Inputting the structured information and the mind map framework into a second mind map generation subnetwork for understanding, and obtaining the output mind map; The first mind map generation sub-network is obtained by training the natural language processing model based on supervised fine-tuning with the structured information set of the content object as sample data and the mind map framework set as label data; The second mind map generation sub-network is obtained by training a natural language processing model based on a supervised fine-tuning method, using the structured information set of the content object and the mind map framework set as sample data and the mind map set as label data.

3. The method according to claim 2, wherein: The mind map framework includes: A plurality of content subsections and a position of each of the plurality of content subsections in the content object.

4. The method according to any one of claims 1 to 3, wherein: The natural language processing model includes any one of the following: a large language model, a recursive neural network, a long short-term memory network, a converter model, and a bag-of-words model.

5. The method according to any one of claims 1 to 4, wherein: The supervised fine-tuning method includes at least one of the following: a low-order adaptive method of a large language model, a prompt word fine-tuning method, and a frozen parameter fine-tuning method.

6. The method according to any one of claims 1 to 5, wherein: The step of inputting the structured information into a mind map generation model for understanding, and obtaining an output mind map corresponding to the content object, comprises: Inputting the structured information into a mind map generation model for understanding, and obtaining multiple mind maps corresponding to the content objects outputted multiple times; After inputting the structured information into the mind map generation model for understanding and obtaining the output mind map corresponding to the content object, the method further includes: A final mind map is determined from the multiple mind maps.

7. The method according to claim 6, wherein: Determining a final mind map from the multiple mind maps comprises: Inputting the multiple mind maps into the optimal selection model to obtain the final mind map as output; The optimal model is obtained by training with mind map pairs in a pre-constructed mind map corpus as sample data; The mind map pair includes: structured information of the content object, a first mind map, and a second mind map arranged in order of precedence, wherein the first mind map has a higher priority than the second mind map; The training goal of the optimization model is to select a mind map with a high optimization priority as the output mind map.

8. The method according to claim 6 or 7, wherein: After determining the final mind map from the multiple mind maps, the method further includes: Based on a preset visual element matching rule, determining a corresponding visual element for the mind map in a preset visual element library; Applying the visual element to the mind map.

9. The method according to claim 8, wherein: The determining of corresponding visual elements for the mind map in a preset visual element library based on preset visual element matching rules includes: A description tag of the content object is obtained, and matching is performed based on the description tag and the element tag of each visual element in the visual element library, and the corresponding visual element is determined according to the matching result.

10. The method according to claim 9, wherein: The description tag of the content object is determined in the following manner: Determining the description tag according to the content feature of the content object; and / or, The descriptive tag is determined according to personal characteristics of a user who inputs the content object.

11. The method according to any one of claims 1 to 10, wherein: The acquiring structured information of the content object based on the content object input by the user includes: Adopting a content object structure extraction model to obtain structured information of the content object based on the content object input by the user; The content object structure extraction model is obtained by training the decoder structure based on the converter model.

12. The method according to any one of claims 1 to 11, wherein: The acquiring structured information of the content object based on the content object input by the user includes: Based on the content object, the content object is divided into a plurality of sub-content objects, and a structural relationship between the plurality of sub-content objects is determined.

13. The method according to claim 12, wherein: After dividing the content object into a plurality of sub-content objects based on the content object and determining the structural relationship between the plurality of sub-content objects, acquiring the structural information of the content object based on the content object input by the user further includes: The multiple sub-content objects are format-converted into a format compatible with input data of the mind map generation model.

14. The method according to any one of claims 1 to 13, wherein: The content object includes at least one of the following: an image object, a text object, and a voice object.

15. A mind map generating device, wherein: The device comprises: A structure extraction module, used to obtain structured information of a content object based on a content object input by a user; A mind map generation module, used for inputting the structured information into a mind map generation model for understanding, and obtaining a mind map corresponding to the content object as output; The mind map generation model is obtained by training the natural language processing model based on supervised fine-tuning.

16. The device according to claim 15, wherein: The map generation module includes: A first generation submodule, used for inputting the structured information into a first mind map generation subnetwork for understanding, and obtaining an output mind map framework; A second generation submodule inputs the structured information and the mind map framework into a second mind map generation subnetwork for understanding, thereby obtaining the output mind map; The first mind map generation sub-network is obtained by training the natural language processing model based on supervised fine-tuning with the structured information set of the content object as sample data and the mind map framework set as label data; The second mind map generation sub-network is obtained by training a natural language processing model based on a supervised fine-tuning method, using the structured information set of the content object and the mind map framework set as sample data and the mind map set as label data.

17. The device according to claim 16, wherein: The mind map framework includes: A plurality of content subsections and a position of each of the plurality of content subsections in the content object.

18. The device according to any one of claims 15 to 17, wherein: The natural language processing model includes any one of the following: a large language model, a recursive neural network, a long short-term memory network, a converter model, and a bag-of-words model.

19. The device according to any one of claims 15 to 18, wherein: The supervised fine-tuning method includes at least one of the following: a low-order adaptive method of a large language model, a prompt word fine-tuning method, and a frozen parameter fine-tuning method.

20. The device according to any one of claims 15 to 19, wherein: The map generation module is specifically used for: Inputting the structured information into a mind map generation model for understanding, and obtaining multiple mind maps corresponding to the content objects outputted multiple times; The device also includes: The optimization module is used to determine the final mind map from the multiple mind maps.

21. The device according to claim 20, wherein: The optimization module is specifically used for: Inputting the multiple mind maps into the optimal selection model to obtain the final mind map as output; The optimal model is obtained by training with mind map pairs in a pre-constructed mind map corpus as sample data; The mind map pair includes: structured information of the content object, a first mind map, and a second mind map arranged in order of precedence, wherein the first mind map has a higher priority than the second mind map; The training goal of the optimization model is to select a mind map with a high optimization priority as the output mind map.

22. The device according to claim 20 or 21, wherein: The device further comprises: a visual element module, configured to: Based on a preset visual element matching rule, determining a corresponding visual element for the mind map in a preset visual element library; Applying the visual element to the mind map.

23. The device according to claim 22, wherein: The visual element module is specifically used for: A description tag of the content object is obtained, and matching is performed based on the description tag and the element tag of each visual element in the visual element library, and the corresponding visual element is determined according to the matching result.

24. The device according to claim 23, wherein: The description tag of the content object in the visual element module is determined in the following manner: Determining the description tag according to the content feature of the content object; and / or, The descriptive tag is determined according to personal characteristics of a user who inputs the content object.

25. The device according to any one of claims 15 to 24, wherein: The structure extraction module is specifically used for: Adopting a content object structure extraction model to obtain structured information of the content object based on the content object input by the user; The content object structure extraction model is obtained by training the decoder structure based on the converter model.

26. The device according to any one of claims 15 to 25, wherein: The structure extraction module is specifically used for: Based on the content object, the content object is divided into a plurality of sub-content objects, and a structural relationship between the plurality of sub-content objects is determined.

27. The device according to claim 26, wherein: The structure extraction module is further used for: The multiple sub-content objects are format-converted into a format compatible with input data of the mind map generation model.

28. The device according to any one of claims 15 to 27, wherein: The content object includes at least one of the following: an image object, a text object, and a voice object.

29. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 14.

30. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-14.

31. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Mind mapping generation method and device based on large language model and electronic equipment

    CN117933377A

  • Bidet device with waterproof channel

    KR102462352B1

Cited By

  • Mind mapping generation method and device based on large model and electronic equipment

    CN120471154A