Document generation method and device, equipment, medium and product
By analyzing user requests to generate a document template and publishing a document generation task based on this template, the problem that data reports generated by BI tools cannot be generated according to user needs is solved, the document presentation effect and efficiency are improved, and offline meeting scenarios are supported.
Patent Information
- Application Number
- CN202411410581.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2025-02-18
AI Technical Summary
The data reports generated by existing BI tools cannot be generated based on user needs, resulting in poor document presentation and inability to support offline meeting scenarios, and the content is inefficient in real-time calculation and synthesis.
By receiving the document generation request from the requesting side, the document template is parsed, the document generation task is published based on the document template, and the document generation task is executed through the task scheduling platform to generate the final document.
It realizes the generation of documents based on user needs, improves the document presentation effect, supports offline meeting scenarios, and improves efficiency when content is calculated and synthesized in real time.
Smart Images

Figure CN119476239A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of document processing technology, and in particular to a document generation method, device, equipment, medium and product. Background Art
[0002] Business intelligence (BI) tools are software used to collect, analyze and present business data. They can help companies make data-based decisions. With the development of BI tools, the collection and analysis of business data has become more convenient. In order to make the data more observable, data reports generated based on BI tools have become an important channel for the head office and branch offices and managers to obtain data and understand information.
[0003] When traditional data reports are used in scenarios such as offline meetings where data analysis occupies a large part of the content, there will be many deficiencies and problems when using traditional BI tools. Since the content of these materials usually needs to provide some valuable conclusions based on the data for readers to quickly understand and use, however, the data reports generated by conventional BI tools cannot explore the value and conclusions behind the actual data. In addition, BI tools have a usage threshold and rely on PC or mobile portals to load reports. They cannot support offline meeting scenarios. Not only that, when the content is calculated and synthesized in real time, when the report content is very large and the data query is complex, the entire report content cannot be presented quickly and friendly.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a document generation method, device, equipment, medium and product, aiming to solve the technical problem that documents cannot be generated according to user needs during document generation, resulting in poor document presentation effect.
[0006] To achieve the above purpose, the present application proposes a document generation method, which is applied to an execution end and includes:
[0007] Receiving a document generation request sent by a requesting end, parsing the document generation request to obtain a document template;
[0008] A document generation task is issued based on the document template, and the document generation task is executed to obtain a final document.
[0009] In one embodiment, the step of parsing the document generation request to obtain a document template includes:
[0010] Parsing the document generation request to obtain document requirements, and filtering to obtain a document data source based on the document requirements;
[0011] Extracting data from the document data source to obtain document information to be generated;
[0012] Perform page layout based on the document information to be generated to obtain a document template.
[0013] In one embodiment, the step of issuing a document generation task based on the document template and executing the document generation task to obtain a final document includes:
[0014] The preset component library is queried through the document template to obtain the execution component;
[0015] Creating analysis and diagnosis logic according to the execution components and the document data source;
[0016] Generate a document generation task based on the execution component and the analysis and diagnosis logic;
[0017] The document generation task is published to a task scheduling platform, and the document generation task is executed through the task scheduling platform to obtain a final document.
[0018] In one embodiment, the step of executing the document generation task through the task scheduling platform to obtain the final document includes:
[0019] According to the task scheduling platform, the document generation task is smoothly distributed through a leaky bucket current limiting algorithm to obtain a distribution result;
[0020] Based on the publishing result, calling the document data source to obtain document data;
[0021] Performing document synthesis on the document template through the document data to obtain an initial document, and performing diagnostic analysis on the initial document through the analytical diagnosis logic to obtain a diagnostic result;
[0022] The diagnostic results are summarized and analyzed through the AI model to obtain a final document.
[0023] In one embodiment, after the steps of issuing a document generation task based on the document template and executing the document generation task to obtain a final document, the method includes:
[0024] Sending the final document to a management platform, recording the final document through the management platform, and obtaining the document number and document information of the final document;
[0025] Notification information is generated based on the document number and document information, and the notification information is sent to the requesting end, and the requesting end obtains the final document by downloading through the management platform based on the notification information.
[0026] In addition, to achieve the above purpose, the present application also proposes a document generation method, which is applied to the requesting end and includes:
[0027] Receiving a document requirement from a user through an editing platform, and generating a document generation request based on the document requirement;
[0028] The document generation request is sent to an execution end, and the execution end issues a document generation task based on the document generation request, and executes the document generation task to obtain a final document.
[0029] In addition, to achieve the above purpose, the present application also proposes a document generation device, the device comprising:
[0030] A receiving module, used for receiving a document generation request sent by a requesting end, parsing the document generation request to obtain a document template;
[0031] An execution module is used to issue a document generation task based on the document template and execute the document generation task to obtain a final document.
[0032] In addition, to achieve the above-mentioned purpose, the present application also proposes a document generation device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the document generation method described above.
[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the document generation method described above are implemented.
[0034] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the document generation method described above are implemented.
[0035] One or more technical solutions proposed in this application have at least the following technical effects:
[0036] The document generation method, device, equipment, medium and product proposed in the embodiment of the present application receive a document generation request sent by a request end, parse the document generation request to obtain a document template; issue a document generation task based on the document template, and execute the document generation task to obtain a final document. Thus, after receiving the document generation request sent by the request end, parse the document generation request to obtain the corresponding document template, then issue the document generation task based on the document template, and finally execute the document generation task to obtain the final document, which solves the problem that the document cannot be generated according to the needs of the user during document generation, resulting in poor document presentation, and improves the efficiency of document generation. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0039] Figure 1 A flowchart of the first embodiment of the method for generating a document of the present application is provided;
[0040] Figure 2 A schematic diagram of the overall architecture involved in the method for generating documents for this application;
[0041] Figure 3 A schematic diagram of an editor involved in the document generation method of this application;
[0042] Figure 4 A schematic diagram of a rule engine involved in the document generation method of this application;
[0043] Figure 5 A schematic diagram of the final document involved in the method for generating the document for this application;
[0044] Figure 6 A schematic diagram of task scheduling and publishing involved in the method for generating documents for this application;
[0045] Figure 7 A schematic diagram of the document generation process involved in the document generation method of this application;
[0046] Figure 8 A schematic diagram of an AI model involved in the method for generating documents for this application;
[0047] Fig. 9A schematic diagram of a process flow provided for Example 2 of the document generation method of this application;
[0048] Fig.10 This is a schematic diagram of the module structure of the document generation device according to an embodiment of the present application;
[0049] Fig.11 A schematic diagram of the device structure of the hardware operating environment involved in the document generation method in the embodiment of the present application.
[0050] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0051] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0052] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0053] The main solution of the embodiment of the present application is: parse the document generation request to obtain the document requirement, and filter the document data source based on the document requirement; extract data from the document data source to obtain the document information to be generated; perform page layout based on the document information to be generated to obtain a document template. Query the preset component library through the document template to obtain the execution component; create analysis and diagnosis logic based on the execution component and the document data source; generate a document generation task based on the execution component and the analysis and diagnosis logic; publish the document generation task to the task scheduling platform, and execute the document generation task through the task scheduling platform to obtain the final document. According to the task scheduling platform, the document generation task is smoothly distributed through the leaky bucket current limiting algorithm to obtain a distribution result; based on the published result, the document data source is called to obtain document data; the document template is synthesized through the document data to obtain an initial document, and the initial document is diagnosed and analyzed through the analysis and diagnosis logic to obtain a diagnosis result; the diagnosis result is summarized and analyzed through the AI model to obtain the final document. The final document is sent to the management platform, and the final document is recorded through the management platform to obtain the document number and document information of the final document; notification information is generated based on the document number and document information, and the notification information is sent to the requesting end, and the requesting end downloads the final document through the management platform based on the notification information. The user's document requirements are received through the editing platform, and a document generation request is generated based on the document requirements; the document generation request is sent to the execution end, and the execution end issues a document generation task based on the document generation request, and executes the document generation task to obtain the final document. This solves the problem that the document cannot be generated according to the user's requirements during document generation, resulting in poor document presentation, realizes the generation of documents, and improves the efficiency of document generation. Based on the solution of the present invention, from the reality that with the development of BI tools, data reports have become an important channel for the head office and branch offices and managers to obtain data and understand information. However, when facing scenarios such as offline meetings where data analysis occupies a major part of the content, traditional data reports will have many shortcomings and problems, resulting in low generation efficiency. A document generation method is designed, and the effectiveness of the document generation method of the present invention is verified when the document is generated. Finally, the efficiency of document generation by the method of the present invention is significantly improved.
[0054] In this embodiment, for the convenience of description, the document generation device is used as the execution subject for explanation below.
[0055] With the development of BI tools in the existing technology, data reports have become an important channel for the head office and managers to obtain data and understand information. However, traditional data reports have many shortcomings and problems when facing scenarios such as offline meetings where data analysis occupies a large part of the content. The content of these materials usually needs to provide some valuable conclusions based on the data for readers to quickly understand and use. Therefore, the data reports generated by conventional BI tools have the following pain points: (1) They are good at data statistics and presentation, but cannot explore the value and conclusions behind the actual data status; (2) There is a usage threshold, and the report can only be loaded by a PC or mobile portal, and it cannot support offline meeting scenarios; (3) The content is calculated and synthesized in real time. When the report content is very large and the data query is complex, it is impossible to present the entire report content quickly and friendly, and the efficiency will also decrease.
[0056] The present application provides a solution, which receives a document generation request in the execution end, and obtains a corresponding document template based on the document generation request. At the same time, a document generation task is issued based on the document template to obtain the final document, thereby providing users with better services.
[0057] From the above embodiments, it can be seen that the present application receives a document generation request sent by a requesting end, parses the document generation request to obtain a document template; issues a document generation task based on the document template, and executes the document generation task to obtain a final document. Thus, after receiving a document generation request sent by a requesting end, the document generation request is parsed to obtain a corresponding document template, then a document generation task is issued based on the document template, and finally the document generation task is executed to obtain a final document, which solves the problem that the document cannot be generated according to the needs of the user during document generation, resulting in poor document presentation, and improves the efficiency of document generation.
[0058] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a document generation device, etc. The following takes a document generation device as an example to illustrate this embodiment and the following embodiments.
[0059] Based on this, the present application embodiment provides a document generation method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the document generation method of this application.
[0060] In this embodiment, the document generation method is applied to the execution end. The method is applied to the execution end and includes steps S01 to S02:
[0061] Step S01, receiving a document generation request sent by a requesting end, parsing the document generation request to obtain a document template;
[0062] It should be clear that with the development of business intelligence (BI) tools, data reports have become an important channel for head office and branch offices and managers to obtain data and understand information.
[0063] However, traditional data reports have many shortcomings and problems when faced with scenarios such as offline meetings where data analysis occupies a large part of the content. The content of these materials usually needs to provide some valuable conclusions based on the data for readers to quickly understand and use. Therefore, the data reports generated by conventional BI tools are unable to explore the value and conclusions behind the actual data. In addition, BI tools have a usage threshold and rely on PC or mobile portals to load reports. They cannot support offline meeting scenarios. Not only that, when the content is calculated and synthesized in real time, when the report content is very large and the data query is complex, the entire report content cannot be presented quickly and friendly.
[0064] Therefore, in order to improve the efficiency of document generation, this embodiment receives the document generation request sent by the requesting end through the execution end, and then parses the document generation request to obtain the corresponding document template, wherein the document template includes the document type (word, ppt, excel, etc.), size, general content, etc., which is more conducive to document generation.
[0065] Step S02: issuing a document generation task based on the document template, and executing the document generation task to obtain a final document.
[0066] After obtaining the document template, the corresponding document generation task can be generated in combination with the document generation request, and sent to the scheduling platform for task release, and then the document generation task is executed to obtain the final document.
[0067] The overall solution of this embodiment is as follows Figure 2 As shown, the specific request end has an editing module (PPT editor, Word editor and page rendering), and the execution end includes an execution module (task management, task scheduling, data preparation tasks, content synthesis tasks, etc.) and a file module (file synthesis, file management and file security). The public services between the two include Jisuo (that is, data source, specifically MySQL, Gaussian, ES and BIX), analysis services (that is, expert rules and AI analysis at each stage), and point monitoring (that is, the functions of publishing, viewing and downloading).
[0068] Specifically, the above step S01, the step of parsing the document generation request to obtain a document template includes:
[0069] Step S011, parsing the document generation request to obtain document requirements, and filtering to obtain a document data source based on the document requirements;
[0070] Step S012, extracting data from the document data source to obtain document information to be generated;
[0071] Step S013: Perform page layout based on the document information to be generated to obtain a document template.
[0072] After receiving the document generation request, the execution end will parse it to obtain specific document requirements. Document requirements refer to the specific requirements and standards for documents during the project or product development process. These documents may include user requirement documents, design documents, test documents, etc. Then, the corresponding document data source is obtained based on the document requirements. It should be clear that the document requirements include the type of document. For example, for design documents, the corresponding data source should be the general design category, design pictures, and design instructions, etc.
[0073] After extracting data through the corresponding document data source data and obtaining the document information to be generated, the page layout of the document can be performed based on the document information to obtain the document template.
[0074] More specifically, the above step S02, issuing a document generation task based on the document template, and executing the document generation task to obtain a final document, includes:
[0075] Step S021, querying a preset component library through the document template to obtain an execution component;
[0076] Step S022, creating analysis and diagnosis logic according to the execution component and the document data source;
[0077] Step S023, generating a document generation task based on the execution component and the analysis and diagnosis logic;
[0078] Step S024, publishing the document generation task to a task scheduling platform, and executing the document generation task through the task scheduling platform to obtain a final document.
[0079] In the above embodiment, it has been explained that the editing module includes multiple components. Therefore, when a document needs to be generated, the component library is queried through the document template, such as Figure 3 As shown in the figure, the specific component library includes table components, text components, graphic components, card components, image components and button components, which specifically respond to user operations and inputs. Therefore, after obtaining the document template, the specific required execution components can be obtained through query, and then the following is created based on the execution components and document data sources: Figure 4The analysis and diagnosis logic shown is specifically responsible for performing logical judgment on the component data, supporting data analysts to implant their own analysis logic based on data facts, and integrating with the editor to generate complex style conclusions.
[0080] Then, the document generation task is generated based on the execution component and the analysis and diagnosis logic. However, the document generation task is not directly performed at this time. Instead, the document generation task is published to the task scheduling platform. The document generation task is executed through the task scheduling platform to obtain the following results: Figure 5 As shown, the document provided is titled “Monthly Average AUM (excluding third parties) Annual Incremental Assessment Indicator Business Analysis Framework”.
[0081] Furthermore, in the above step S024, the step of executing the document generation task through the task scheduling platform to obtain the final document includes:
[0082] Step S0241, according to the task scheduling platform, the document generation task is smoothly distributed by a leaky bucket current limiting algorithm to obtain a distribution result;
[0083] Step S0242: Based on the publishing result, the document data source is called to obtain document data;
[0084] Step S0243, synthesizing the document template by using the document data to obtain an initial document, and performing diagnostic analysis on the initial document by using the diagnostic analysis logic to obtain a diagnostic result;
[0085] Step S0244, summarize and analyze the diagnosis results through the AI model to obtain the final document.
[0086] The task scheduling platform mainly includes Figure 6 In the execution module shown, this module is responsible for the micro-batch generation of document tasks, which includes three stages: task scheduling, data preparation, and file synthesis. Among them, the task scheduling module is built based on the in-line Poseidon scheduling capability (i.e., the task scheduling platform), and combines the characteristics of document generation to introduce the leaky bucket current limiting algorithm to smoothly distribute the scheduling, that is, Figure 6 Create the pipeline task part, determine the task execution time synchronously, and prepare the corresponding data in the data layer;
[0087] The data preparation module adopts multiplexing and intelligent request merging strategies, reducing the calls to Jisu (data query module) by 90%, greatly reducing the time consumption of document generation. It mainly includes elastic flow control, resource sharing and task discretization.
[0088] The file synthesis module is responsible for generating actual documents according to the definition of the document template. This module is compatible with the self-developed editor. Its function is to Figure 7The POI technology shown is customized and packaged to ensure the complete restoration of the exported PPT / WORD file effects and page effects, so as to obtain the original document;
[0089] Subsequently, in this embodiment, the analysis and diagnosis logic obtained in the above embodiment is used to diagnose and analyze the initial document to determine whether there are any errors in its logic, and then Figure 8 The AI model shown outputs text for the content of the diagnosis result. For example, abnormal parameters in the document are marked in this embodiment so that the user can make corresponding corrections.
[0090] Furthermore, after the above step S02, issuing a document generation task based on the document template and executing the document generation task to obtain a final document, the method includes:
[0091] Step S03, sending the final document to a management platform, recording the final document through the management platform, and obtaining the document number and document information of the final document;
[0092] Step S04: Generate notification information based on the document number and document information, and send the notification information to the requesting end, and the requesting end downloads the final document through the management platform based on the notification information.
[0093] After obtaining the final document, in order to send the document to the requesting end, in this embodiment, the generated final document is sent to the management platform, and the final document is recorded by the management platform to obtain the document number, document information and requesting end number of the final document;
[0094] Subsequently, notification information is generated based on the document number and document information and sent to the requesting end so that the requesting end is aware of it. Subsequently, when the requesting end needs to use the document, the final document is downloaded from the management platform based on the notification information.
[0095] This embodiment adopts the above scheme, specifically by receiving the document generation request sent by the requesting end, parsing the document generation request to obtain the document template; issuing the document generation task based on the document template, and executing the document generation task to obtain the final document. Therefore, after receiving the document generation request sent by the requesting end, the document generation request is parsed to obtain the corresponding document template, then the document generation task is issued based on the document template, and finally the document generation task is executed to obtain the final document, which solves the problem that the document cannot be generated according to the user's needs during document generation, resulting in poor document presentation effect, and improves the efficiency of document generation.
[0096] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Fig. 9 The document generation method is also applied to the requesting end, and the method includes steps S05 to S06:
[0097] Step S05, receiving the user's document requirements through the editing platform, and generating a document generation request based on the document requirements;
[0098] Step S06: sending the document generation request to the execution end, the execution end issues a document generation task based on the document generation request, and executes the document generation task to obtain a final document.
[0099] On the request side, the user's document requirements are mainly obtained through the editing module, which is specifically presented in the form of a web page or other page that interacts with the user. The editing platform receives the user's document requirements for generating documents, and then converts the document requirements into document generation requests;
[0100] Finally, the document generation request is sent to the execution end, which issues a document generation task based on the document generation request and executes the document generation task to obtain the final document.
[0101] This embodiment uses the above scheme to specifically receive the user's document requirements through the editing platform, generate a document generation request based on the document requirements, send the document generation request to the execution end, and the execution end issues a document generation task based on the document generation request, and executes the document generation task to obtain the final document. Therefore, after receiving the document generation request sent by the request end, the document generation request is parsed to obtain the corresponding document template, and then the document generation task is issued based on the document template, and finally the document generation task is executed to obtain the final document, which solves the problem that the document cannot be generated according to the user's needs during document generation, resulting in poor document presentation, and improves the efficiency of document generation.
[0102] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the document generation method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0103] This application also provides a document generation device, please refer to Fig.10 , the document generation device is applied to the execution end, and the device includes:
[0104] The receiving module 10 is used to receive a document generation request sent by a requesting end, and parse the document generation request to obtain a document template;
[0105] The execution module 20 is used to issue a document generation task based on the document template and execute the document generation task to obtain a final document.
[0106] The document generation device provided by the present application adopts the document generation method in the above embodiment, which can solve the technical problem that the document cannot be generated according to the needs of the user during document generation, resulting in poor document presentation. Compared with the prior art, the beneficial effects of the document generation device provided by the present application are the same as the beneficial effects of the document generation method provided by the above embodiment, and other technical features in the document generation device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0107] The present application provides a document generation device, which includes: at least one processor; and a memory that is 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 so that the at least one processor can execute the document generation method in the above-mentioned embodiment one.
[0108] Reference below Fig.11 , which shows a schematic diagram of the structure of a document generation device suitable for implementing the embodiment of the present application. The document generation device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.11 The document generation device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0109] like Fig.11As shown, the document generation device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the document generation device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the document generation device to communicate with other devices wirelessly or by wire to exchange data. Although the document generation device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0110] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0111] The document generation device provided by the present application adopts the document generation method in the above embodiment, which can solve the technical problem that the document cannot be generated according to the needs of the user during document generation, resulting in poor document presentation. Compared with the prior art, the beneficial effects of the document generation device provided by the present application are the same as the beneficial effects of the document generation method provided by the above embodiment, and other technical features in the document generation device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0112] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0113] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0114] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the document generation method in the above-mentioned embodiment.
[0115] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0116] The computer-readable storage medium may be included in the document generating device; or may exist independently without being assembled into the document generating device.
[0117] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the document generation device, the document generation device: receives a document generation request sent by the requesting end, parses the document generation request to obtain a document template; publishes a document generation task based on the document template, and executes the document generation task to obtain the final document.
[0118] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0119] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0120] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0121] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned document generation method, and can solve the technical problem that the document cannot be generated according to the needs of the user during document generation, resulting in poor document presentation. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the document generation method provided by the above-mentioned embodiment, and will not be repeated here.
[0122] The present application also provides a computer program product, including a computer program, which implements the steps of the document generation method as described above when executed by a processor.
[0123] The computer program product provided by the present application can solve the technical problem that the document cannot be generated according to the needs of the user during document generation, resulting in poor document presentation. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the document generation method provided by the above embodiment, and will not be repeated here.
[0124] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A document generation method, characterized in that: The method is applied to the execution end, and the method includes: Receiving a document generation request sent by a requesting end, parsing the document generation request to obtain a document template; A document generation task is issued based on the document template, and the document generation task is executed to obtain a final document.
2. The method according to claim 1, characterized in that The step of parsing the document generation request to obtain a document template comprises: Parsing the document generation request to obtain document requirements, and filtering to obtain a document data source based on the document requirements; Extracting data from the document data source to obtain document information to be generated; Perform page layout based on the document information to be generated to obtain a document template.
3. The method according to claim 2, characterized in that The step of issuing a document generation task based on the document template and executing the document generation task to obtain a final document includes: The preset component library is queried through the document template to obtain the execution component; Creating analysis and diagnosis logic according to the execution components and the document data source; Generate a document generation task based on the execution component and the analysis and diagnosis logic; The document generation task is published to a task scheduling platform, and the document generation task is executed through the task scheduling platform to obtain a final document.
4. The method according to claim 3, characterized in that The step of executing the document generation task through the task scheduling platform to obtain the final document includes: According to the task scheduling platform, the document generation task is smoothly distributed through a leaky bucket current limiting algorithm to obtain a distribution result; Based on the publishing result, calling the document data source to obtain document data; Performing document synthesis on the document template through the document data to obtain an initial document, and performing diagnostic analysis on the initial document through the analytical diagnosis logic to obtain a diagnostic result; The diagnostic results are summarized and analyzed through the AI model to obtain a final document.
5. The method according to claim 1, characterized in that After the steps of issuing a document generation task based on the document template and executing the document generation task to obtain a final document, the method includes: Sending the final document to a management platform, recording the final document through the management platform, and obtaining the document number and document information of the final document; Notification information is generated based on the document number and document information, and the notification information is sent to the requesting end, and the requesting end obtains the final document by downloading through the management platform based on the notification information.
6. A document generation method, characterized in that: The method is applied to the requesting end, and the method comprises: Receiving a document requirement from a user through an editing platform, and generating a document generation request based on the document requirement; The document generation request is sent to an execution end, and the execution end issues a document generation task based on the document generation request, and executes the document generation task to obtain a final document.
7. A document generation device, characterized in that: The device is applied to an execution end, and the device includes: A receiving module, used for receiving a document generation request sent by a requesting end, parsing the document generation request to obtain a document template; An execution module is used to issue a document generation task based on the document template and execute the document generation task to obtain a final document.
8. A document generation device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the document generation method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the document generation method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the document generation method according to any one of claims 1 to 6 are implemented.