A document generation method, device and computer readable storage medium

By displaying templates generated based on historical data in online documents, users can accurately fill in information, which solves the problem of low intelligence in document generation and improves the level of intelligence in document generation.

CN113919305BActive Publication Date: 2026-03-17TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-10
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

In online documents, the information entered by users often does not meet the format requirements, resulting in a low level of intelligence in document generation.

Method used

By receiving a document display request from the terminal, the system extracts the document to be filled and its corresponding document template. The document template is generated based on historical document data and provides a reference for filling in the document. The system then displays the document to be filled and the template on the terminal and collects the current document data of the user to generate the target document.

Benefits of technology

It improves the intelligence of document generation, enabling users to fill in information more accurately based on the filling references analyzed from historical document data, and generate documents that meet the requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113919305B_ABST
    Figure CN113919305B_ABST
Patent Text Reader

Abstract

This application provides a document generation method, device, and computer-readable storage medium. The method includes: receiving a document display request sent by a terminal; the document display request carrying identification information of a document to be filled; extracting the document to be filled and a corresponding document template based on the identification information; the document template is generated by the server based on historical document data of the document to be filled, and the document template provides a filling reference for the document to be filled; and sending the document to be filled and the document template to the terminal. This application improves the intelligence of document generation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to cloud computing technology, and more particularly to a document generation method, device, and computer-readable storage medium. Background Technology

[0002] Online documents refer to documents that can be opened and edited using a webpage. During the editing process, the document content can be saved in the cloud in real time. This allows users to complete document editing anytime, anywhere, using any front-end device, bringing great convenience to document processing.

[0003] In real life, users are very likely to need to fill in various kinds of information on online documents. However, the information to be filled in on online documents generally has certain format requirements. However, the document data received by the terminal without reference may not meet the requirements, resulting in a low level of intelligence in document generation. Summary of the Invention

[0004] This application provides a document generation method, device, and computer-readable storage medium, which can improve the intelligence of document generation.

[0005] The technical solution of this application embodiment is implemented as follows:

[0006] This application provides a document generation method, including:

[0007] The receiving terminal sends a document display request; the document display request carries identification information of the document to be filled in;

[0008] The document to be filled and the corresponding document template are extracted based on the identification information; the document template is generated based on the historical document data of the document to be filled, and the document template provides a filling reference for the document to be filled.

[0009] The document to be filled and the document template are sent to the terminal.

[0010] This application provides a document generation method, including:

[0011] A document generation method, characterized by comprising:

[0012] When a document display instruction is received, in response to the document display instruction, the document to be filled is displayed on the current display interface; the document to be filled is obtained based on the identification information of the document to be filled carried in the document display instruction;

[0013] When a template display instruction is received, in response to the template display instruction, a template display window pops up on the current display interface and displays the document template in the template display window;

[0014] In the document data input area of ​​the current display interface, the current document data input by the user for the document template is collected, and the target document is obtained based on the current document data;

[0015] The document template is generated based on the historical document data of the document to be filled, and the document template provides a filling reference for the document to be filled.

[0016] This application provides a document generation apparatus, including:

[0017] The first receiving module is used to receive template display instructions when a document display instruction is received.

[0018] The display module is used to, upon receiving a document display instruction, display the document to be filled on the current display interface in response to the document display instruction; the document to be filled is obtained based on the identification information of the document to be filled carried in the document display instruction; upon receiving a template display instruction, the module pops up a template display window on the current display interface in response to the template display instruction, and displays the document template in the template display window;

[0019] The data acquisition module is used to acquire the current document data entered by the user in the document data input area of ​​the current display interface in response to the document template, and to obtain the target document based on the current document data; wherein, the document template is generated based on the historical document data of the document to be filled, and the document template provides a filling reference for the document to be filled.

[0020] This application provides a template generation apparatus, including:

[0021] The second receiving module is used to receive a document display request sent by the terminal; the document display request carries identification information of the document to be filled.

[0022] The extraction module is used to extract the document to be filled and the document template corresponding to the document to be filled based on the identification information; the document template is generated based on the historical document data of the document to be filled, and the document template provides a filling reference for the document to be filled;

[0023] The second sending module is used to send the document to be filled and the document template to the terminal.

[0024] This application provides a terminal, including:

[0025] The first memory is used to store executable template generation instructions;

[0026] The first processor is configured to execute executable document generation instructions stored in the first memory to implement the document generation method provided on the terminal side in this application embodiment.

[0027] This application provides a server, including:

[0028] The second memory is used to store executable document generation instructions;

[0029] The second processor is used to implement the document generation method provided on the server side in this application embodiment when executing executable document generation instructions stored in the second memory.

[0030] This application provides a computer-readable storage medium storing executable instructions, which are used to implement the document generation method provided on the terminal side of this application when executed by a first processor; or to implement the document generation method provided on the server side of this application when executed by a second processor.

[0031] The embodiments of this application have the following beneficial effects:

[0032] In this embodiment, upon receiving a document display request, the server can obtain the document to be filled and a document template generated based on historical document data of the document to be filled. The server then sends the document to be filled and the document template to the terminal, enabling the user to obtain a filling reference for the document to be filled based on historical document data from the terminal when generating the document. Thus, by providing a filling reference through the document template analyzed from historical document data by the server, the user is provided with a filling reference, improving the intelligence of document generation. Attached Figure Description

[0033] Figure 1 This is an optional architecture diagram of the document generation system 100 provided in this application embodiment;

[0034] Figure 2 This is provided by the embodiments of this application. Figure 1 A schematic diagram of the terminal structure in the diagram;

[0035] Figure 3 This is provided by the embodiments of this application. Figure 1 A schematic diagram of the server structure in the diagram;

[0036] Figure 4 This is a schematic diagram illustrating the process of obtaining the document to be filled, as provided in an embodiment of this application.

[0037] Figure 5This is a schematic diagram of the template loading control provided in an embodiment of this application;

[0038] Figure 6 This is an optional flowchart illustrating the document generation method provided in the embodiments of this application. Figure 1 ;

[0039] Figure 7 This is an optional flowchart illustrating the document generation method provided in the embodiments of this application. Figure 2 ;

[0040] Figure 8 This application provides an example of a schematic diagram showing a document template;

[0041] Figure 9 This application provides a schematic diagram illustrating the receipt of feedback information in an embodiment.

[0042] Figure 10 This is a schematic diagram of an online document for registering user health information provided in an embodiment of this application;

[0043] Figure 11 This is an illustration of the template information provided in the embodiments of this application. Figure 1 ;

[0044] Figure 12 This is an illustration of the template information provided in the embodiments of this application. Figure 2 . Detailed Implementation

[0045] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0046] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0047] In the following description, the terms "first, second, third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0049] In the implementation of this application, the collection and processing of relevant data should be strictly in accordance with the requirements of relevant laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.

[0050] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.

[0051] 1) Online documents refer to documents that can be opened and edited using a web browser. When editing an online document, each user sends the document data to the cloud through their respective web browser. The cloud then processes and saves the document data sent by the web browser. Online documents support simultaneous editing by multiple users, making it easier and faster for users to collect document data, such as student attendance data.

[0052] 2) Document elements are categories of data that need to be filled in in online documents. For example, categories such as name, age, and gender in a document require users to fill in data based on their actual situation. For example, when filling in name, fill in Zhang San; when filling in age, fill in 27 years old; when filling in gender, fill in male, etc.

[0053] 3) Template elements are document elements that generate template content. This allows users to refer to the template content when filling in document data, ensuring that the data they enter meets the document's requirements. For example, in an online document, a health declaration category requires users to fill in their recent health status. In this case, a template can be generated for the user's reference. Thus, the health declaration category is a template element.

[0054] 4) Template content provides a reference style for filling in the content corresponding to the template element. For example, in the health declaration template element, a reference style for filling in "normal body temperature, no recent travel to high-risk areas" can be generated, making it easier for users to refer to this template to fill in their own health information.

[0055] 5) De-identification refers to hiding the personal privacy information in the document data filled in by the user, so that the user's personal privacy information is not involved in the template generation process. In this way, the generated document template will not involve the user's personal privacy information.

[0056] 6) Template loading control: This control manages the display of templates. Users can choose whether to trigger the template loading control based on their needs. The corresponding template will only be displayed when the user triggers the template loading control.

[0057] This application provides a document generation method, device, and computer-readable storage medium, which can improve the intelligence of document generation. The following describes exemplary applications of the document generation device provided in this application. This document generation device can be implemented as various types of user terminals such as laptops, tablets, desktop computers, set-top boxes, and mobile devices (e.g., mobile phones, portable music players, personal digital assistants, dedicated messaging devices, portable gaming devices), or as a server. The following will describe exemplary applications when the document generation device is implemented as a terminal and a server, respectively.

[0058] See Figure 1 , Figure 1 This is an optional architecture diagram of the document generation system 100 provided in this application embodiment. To support a document generation application, the terminal 400 connects to the server 200 via the network 300. The server 200 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The terminal 400 can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. The terminal 400 and the server 200 can be directly or indirectly connected via wired or wireless communication. The network 300 can be a wide area network (WAN), a local area network (LAN), or a combination of both.

[0059] When terminal 400 receives a document display instruction triggered by a user, it responds by sending the identification information of the document to be filled in a document display request via network 300, along with the identification information. This identification information is parsed from the document display instruction by terminal 400. Upon receiving the document display request from terminal 400, server 200 extracts the document to be filled and its corresponding document template based on the identification information, and then sends both to terminal 400 via network 300. Terminal 400 receives the document to be filled and the document template returned by server 200 in response to the document display request and displays the document to be filled. The document template, generated by server 200 based on historical document data of the document to be filled, provides a reference for filling in the document. When terminal 400 receives a template display instruction for the document to be filled, it will respond to the template display instruction and display the document template. After that, terminal 400 will receive the current document data filled by the user based on the document template, and use the current document data and the document to be filled to integrate the target document.

[0060] See Figure 2 , Figure 2 This is provided by the embodiments of this application. Figure 1 A schematic diagram of the terminal structure in the diagram. Figure 2 The server 400 shown includes at least one first processor 410, a first memory 450, at least one first network interface 420, and a first user interface 430. The various components in the terminal 400 are coupled together via a first bus system 440. It is understood that the first bus system 440 is used to implement communication between these components. In addition to a data bus, the first bus system 440 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in… Figure 2 The general designated all buses as the first bus system 440.

[0061] The first processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., wherein the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0062] The first user interface 430 includes one or more first output devices 431 that enable the presentation of media content, including one or more speakers and / or one or more visual displays. The first user interface 430 also includes one or more first input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0063] The first memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state storage, hard disk drives, optical disk drives, etc. The first memory 450 may optionally include one or more storage devices physically located remote from the first processor 410.

[0064] The first memory 450 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). The first memory 450 described in this application embodiment is intended to include any suitable type of memory.

[0065] In some embodiments, the first memory 450 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as illustrated below.

[0066] The first operating system 451 includes system programs for handling various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, and driver layer, for implementing various basic business functions and handling hardware-based tasks.

[0067] The first network communication module 452 is used to reach other computing devices via one or more (wired or wireless) first network interfaces 420, exemplary first network interfaces 420 including: Bluetooth, Wi-Fi, and Universal Serial Bus (USB), etc.

[0068] The first presentation module 453 is configured to enable the presentation of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more first output devices 431 (e.g., a display screen, a speaker, etc.) associated with the user interface 430.

[0069] The first input processing module 454 is configured to detect and translate one or more user inputs or interactions from one or more first input devices 432.

[0070] In some embodiments, the document generation apparatus provided in this application can be implemented in software. Figure 2 A document generation device 455 stored in a first memory 450 is shown. This device can be software in the form of programs and plug-ins, and includes the following software modules: a first receiving module 4551, a display module 4552, a acquisition module 4553, a first sending module 4554, and a parsing module 4555. These modules are logically connected and can therefore be arbitrarily combined or further separated according to their implemented functions. The functions of each module will be described below.

[0071] In other embodiments, the document generation apparatus provided in this application can be implemented in hardware. As an example, the document generation apparatus provided in this application can be a processor in the form of a hardware decoding processor, which is programmed to execute the document generation method provided in this application. For example, the processor in the form of a hardware decoding processor can be one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.

[0072] For example, an embodiment of this application provides a terminal, including:

[0073] The first memory is used to store executable document generation instructions;

[0074] The first processor is configured to execute executable document generation instructions stored in the memory to implement the document generation method provided on the terminal side in this application embodiment.

[0075] See Figure 3 , Figure 3 This is provided by the embodiments of this application. Figure 1 A schematic diagram of the server structure in the diagram. Figure 3 The server 200 shown includes at least one second processor 210, a second memory 250, at least one second network interface 220, and a second user interface 230. The various components of the server 200 are coupled together via a second bus system 240. It is understood that the second bus system 240 is used to implement communication between these components. In addition to a data bus, the second bus system 240 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in… Figure 3 The general labeled all buses as Bus System 240.

[0076] The second processor 210 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., wherein the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0077] The second user interface 230 includes one or more second output devices 231 that enable the presentation of media content, including one or more speakers and / or one or more visual displays. The second user interface 230 also includes one or more second input devices 232, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0078] The second memory 250 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state storage, hard disk drives, optical disk drives, etc. The second memory 250 may optionally include one or more storage devices physically located remote from the second processor 210.

[0079] The second memory 250 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). The second memory 250 described in this application embodiment is intended to include any suitable type of memory.

[0080] In some embodiments, the second memory 250 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as illustrated below.

[0081] The second operating system 251 includes system programs for handling various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, and driver layer, for implementing various basic business functions and handling hardware-based tasks.

[0082] The second network communication module 252 is used to reach other computing devices via one or more (wired or wireless) second network interfaces 420. Exemplary second network interfaces 220 include Bluetooth, Wi-Fi, and Universal Serial Bus (USB), etc.

[0083] The second presentation module 253 is configured to enable the presentation of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more second output devices 231 (e.g., a display screen, a speaker, etc.) associated with the second user interface 430.

[0084] The second input processing module 254 is used to detect and translate one or more user inputs or interactions from one or more second input devices 232.

[0085] In some embodiments, the template generation apparatus provided in this application can be implemented in software. Figure 3 A template generation apparatus 255 stored in a second memory 250 is shown. This apparatus can be software in the form of programs and plug-ins, and includes the following software modules: a second receiving module 2551, an extraction module 2552, a second sending module 2553, an acquisition module 2554, a filtering module 2555, an integration module 2556, and an optimization module 2557. These modules are logically connected and can therefore be arbitrarily combined or further divided according to their implemented functions. The functions of each module will be described below.

[0086] In other embodiments, the template generation apparatus provided in this application can be implemented in hardware. As an example, the template generation apparatus provided in this application can be a processor in the form of a hardware decoding processor, which is programmed to execute the document generation method provided in this application. For example, the processor in the form of a hardware decoding processor can be one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.

[0087] This application provides a server, including:

[0088] The second memory is used to store executable document generation instructions;

[0089] The second processor is used to execute executable document generation instructions stored in the second memory to implement the document generation method provided by the server side in this application.

[0090] The document generation method provided in this application will be described below with reference to exemplary applications and implementations of the server and terminal provided in the embodiments of this application, and the steps shown will be explained.

[0091] S101. When the terminal receives a document display instruction, it responds to the document display instruction by displaying the document to be filled on the current display interface.

[0092] This embodiment is implemented in a scenario where a user fills in an online document. The terminal monitors the document trigger area of ​​the currently displayed interface. When the terminal detects an operation by the user in the document trigger area, it triggers a document display instruction. Upon receiving the document display instruction, the terminal recognizes that the user needs to view the document to be filled. The terminal then generates a document display request and includes the identification information of the document to be filled, parsed from the document display instruction, in the request, sending it to the server. After receiving the document to be filled and the document template returned by the server in response to the document display request, the terminal immediately overwrites the current display interface with the document to be filled, thus completing the display of the document to be filled. The document to be filled is obtained based on the identification information of the document to be filled carried in the document display instruction.

[0093] It should be noted that users can trigger the document display command by entering the access address corresponding to the online document in the document trigger area, or by entering the name, number, etc. of the online document in the document trigger area, or by clicking the link displayed in the document trigger area. The specific method of triggering the document display command can be set according to actual needs, and this application embodiment does not limit it.

[0094] In this embodiment, the document triggering area is located in the first preset area of ​​the currently displayed interface. The size and position of the first preset area can be set according to actual needs, and this embodiment does not impose any limitations on them.

[0095] For example, this application provides a schematic diagram of the process of obtaining the document to be populated. Figure 4 As shown, in the current display interface 4-1, a document triggering area 4-11 is set. When the user enters the access address of the online document, i.e., http: / / docs.XX.com / form / edit / XX 4-12, the document display instruction will be triggered. At this time, the terminal will send the address information to the server in the document display request and receive the document to be filled 4-2 returned by the server. Finally, the terminal displays the document to be filled 4-2 in the current display interface to realize the acquisition of the document to be filled.

[0096] S102. When the terminal receives the template display instruction, it responds to the template display instruction by popping up a template display window on the current display interface and displaying the document template in the template display window.

[0097] The document template is generated by the server based on the historical document data of the document to be populated, and the document template provides a reference for filling in the document.

[0098] After the terminal displays the document to be filled, it will display the template content according to the user's needs. At this time, the terminal monitors the user's operations on the current display interface. As soon as the terminal detects that the user has interacted with the template loading control on the current display interface, it will generate a template display command. Then, the terminal will respond to the template display command and create a template display window. After successfully creating the template display window, the terminal will pop up the template display window on the document to be filled and then display the template content of the obtained document template in the pop-up template display window. In this way, the terminal completes the display of the document template, thereby meeting the user's need to view the template.

[0099] In some embodiments of this application, the terminal can also set a corresponding template loading control for each document element to be filled, i.e., set multiple template loading controls, or set only a template loading control in a specific area of ​​the document to be filled, and load the document template with one click through this single template loading control. Of course, after obtaining the document template, the terminal can also read the document template to determine which document elements to be filled have corresponding templates, and set the template loading control only for these document elements.

[0100] Understandably, the template loading control is located in the first control area of ​​the currently displayed interface. The template loading control can also incorporate prompting text, such as "template illustration," so that users can clearly understand the function of the template loading control.

[0101] For example, this application provides a schematic diagram of a template loading control, see [link / reference]. Figure 5 In document 5-1, there are two elements to be filled: Name (5-11) and Health Declaration (5-12). Name (5-11) does not have a corresponding template, while Health Declaration (5-12) does. Therefore, the terminal generates a corresponding template loading control (5-13) for Health Declaration (5-12) and sets the prompt text "Example 5-14" on the template loading control (5-13) to clarify its function for the user. Users can trigger the template display command on the template loading control (5-13) through clicks, double-clicks, long presses, etc.

[0102] It is understood that, in this embodiment, the template display window can be set within a second preset area of ​​the current display interface. The position, size, and even the transparency of the second preset area can be set according to actual conditions. For example, the second preset area can be set below the template loading control, or the second preset area can be set to be fully transparent. This embodiment does not limit the scope of the application.

[0103] S103. The terminal collects the current document data entered by the user for the document template in the document data input area of ​​the current display interface, and obtains the target document based on the current document data.

[0104] After the user obtains the template content of the document template from the template display window, it will enter its own document data in the document data input area according to the example provided in the template content. The terminal will collect the data entered by the user to obtain the current document data, thereby obtaining the target document.

[0105] In this embodiment, the document data input area is located in the third preset area of ​​the current display interface. The size and position of the third preset area can be set according to actual needs, and this embodiment does not limit this setting. To clearly display the template content of the document template and the current document data entered by the user, the second and third preset areas do not overlap.

[0106] In this embodiment, the terminal can use the document to be filled accessed according to the document display instruction to cover the current display interface. Then, when the template display instruction is received on the template loading control, a template display window pops up on the document to be filled so that the user can obtain the document template and collect the current document data in the document data input area, thereby generating the target document and improving the intelligence of document generation.

[0107] See Figure 6 , Figure 6 This is an optional flowchart illustrating the document generation method provided in the embodiments of this application. Figure 1 In some embodiments of this application, the specific implementation process of displaying the document to be filled on the current display interface in response to the document display instruction, i.e., S101, may include:

[0108] S1011. In response to the document display instruction, the terminal sends the identification information of the document to be filled in the document display request to the server; the identification information is parsed from the document display instruction.

[0109] The terminal parses the identification information from the document display instruction, packages it into a document display request, and sends it to the server. The server receives the document display request from the terminal, which contains the identification information of the document to be filled. The document to be filled is obtained based on the identification information of the document to be filled carried in the document display instruction.

[0110] It should be noted that the identification information is parsed by the terminal from the document display instructions. The identification information may be the address information corresponding to the document to be filled, that is, the access address of the document to be filled, or it may be the number, name, or other information of the document to be filled. This embodiment of the application does not limit this.

[0111] It is understandable that the identification information is specified when the document to be filled is created. For example, assuming the document to be filled is a student health information registration form, when a teacher creates the student health information registration form through interaction with the server via their terminal, the server will generate an access address for the student health information registration form. This access address is the identification information of the document to be filled.

[0112] In some embodiments of this application, there can be multiple ways to trigger a document display command. For example, the user can trigger the document display command in the document trigger area, or trigger the document display command through voice or other means.

[0113] It is understood that the document to be filled refers to a document that only needs document elements but does not have document data. That is, the document to be filled is the document data that needs to be filled in by the user and the user to form the final target document. This target document is the document that needs to be generated in this application embodiment.

[0114] S1012. The server extracts the document to be filled and the document template corresponding to the document to be filled based on the identification information.

[0115] After receiving a document display request from the terminal, the server can parse out the identification information carried in the document display request. Then, based on the identification information, the server will look up the document to be filled in from the document database. At the same time, the server will also look up the document template corresponding to the document to be filled, and extract both the document to be filled and the document template so that they can be sent to the terminal later.

[0116] It should be noted that the document template is generated by the server based on the historical document data of the document to be populated, and the document template provides a reference for filling in the document. Here, historical document data refers to the data filled in by previous users on the document to be populated. In other words, in this embodiment, the document template is generated by analyzing the data filled in by previous users.

[0117] Understandably, "historical users" refers to those who opened the document to be populated and filled in data at a historical time. For example, if Zhang San and Li Si both filled in document data before the current time, then the historical users are Zhang San and Li Si, and the historical document data is the document data filled in by Zhang San and Li Si respectively.

[0118] It should be noted that, in this embodiment, the document to be filled includes at least one document element, such as "name" or "age". The document template includes at least one template element and at least one template content corresponding to the at least one template element. The at least one template element may include all the elements to be filled in the document, or it may only include some of the elements to be filled in the document. This embodiment does not limit this.

[0119] S1013. The server sends the document to be filled and the document template to the terminal.

[0120] After retrieving the document to be filled and the document template, the server sends them to the terminal via the network. The terminal receives the document to be filled and the document template only after sending a document display request, and then displays the document to be filled upon receiving the document template.

[0121] S1014. The terminal receives the document to be filled and the document template returned by the server in response to the document display request, and displays the document to be filled.

[0122] Since the document template is generated by the server based on the historical document data of the document to be filled, and the document template provides a filling reference for the document to be filled, after receiving the document template, the terminal can display the document template according to the needs of the user, so that the user can fill in their own document data based on the filling reference extracted and analyzed by the server from the historical document data, thereby bringing convenience to the user in filling in online documents.

[0123] In this embodiment, upon receiving a document display instruction, the terminal can retrieve the document to be filled and a document template generated based on historical document data of the document to be filled from the server. Then, upon receiving a template display instruction, the terminal displays the document template, providing the user with a reference for filling in the document based on historical document data. Finally, the terminal collects the current document data filled in by the user using the reference document template and integrates the current document data with the document to be filled to generate the target document. In this way, the terminal can provide the user with a document template analyzed from historical document data, providing a filling reference and improving the intelligence of document generation.

[0124] See Figure 7 , Figure 7 This is an optional flowchart illustrating the document generation method provided in the embodiments of this application. Figure 2 In some embodiments of this application, the document to be filled contains at least one document element to be filled; the terminal responds to the template display instruction and displays the document template, i.e., the specific implementation process of S102 may include: S1021-S1023, as follows:

[0125] S1021. The terminal determines the document element to be displayed from at least one document element to be filled, and parses at least one template element and at least one template content from the document template.

[0126] In this context, at least one template element and at least one template content correspond one-to-one, and the document element to be displayed represents the document element to be filled in, which is waiting to display the template content.

[0127] In practical applications, document templates offer a rich variety of options, but users may only need to reference a few. Therefore, it's necessary to determine which template elements need to be displayed based on the user's requirements. The terminal parses the template display instructions to identify the document elements to be populated. Simultaneously, the terminal also parses the document template to obtain at least one template element and at least one corresponding template content element.

[0128] It is understandable that when the template display instruction is a display instruction for all document elements to be filled, the terminal, after parsing the template display instruction, determines that all document elements to be displayed are document elements to be filled; when the template display instruction is a display instruction for a specific document element to be filled, the document element to be displayed determined by the terminal is that specific document element to be filled.

[0129] For example, a control can be set on the document to be populated to display all template content with one click, such as a "One-click Template Query" button. When this control is triggered by an object, the resulting template display instruction is for all elements in the document to be populated. Alternatively, a control can be set on the document to be populated for displaying template content for a specific element. When this control is triggered by an object, the resulting template display instruction is for that specific element.

[0130] S1022. The terminal determines the target template element from at least one template element based on the elements of the document to be displayed.

[0131] The terminal matches the obtained document elements to be displayed with at least one template element one by one, and selects the template element that matches the element to be displayed as the target template element. At this point, the target template element determined by the terminal is the template element that needs to display the corresponding template content based on the needs of the user.

[0132] It is understandable that the document element to be filled, the document element to be displayed, and the template element all have corresponding element identifiers. When the element identifier of the document element to be displayed is the same as the element identifier of a certain template element, it can be considered that the document element to be displayed and the template element are matched.

[0133] For example, the element identifier can be a number, such as 1 for the element "name" and 2 for the element "age"; the element identifier can also be a character, such as name for the element "name". The element identifier can be set according to actual needs, and this embodiment of the application does not limit it.

[0134] S1023. The terminal extracts the target template content from at least one template content based on the target template element, and displays the target template content in the template display window.

[0135] By establishing the correspondence between terminal template elements and template content, the corresponding template content can be found for a target template element. The template content found by the terminal is the target template content. After obtaining the target template content, the terminal will display it in the terminal's template display window for users to refer to.

[0136] In this embodiment, the terminal can also determine the document element to be displayed based on the needs of the user, and then find the target template element corresponding to the document element to be displayed from at least one template element, and then find the target template content, and finally display the target template content. In this way, the terminal can display the corresponding target template content according to the needs of the user, thereby improving the intelligence of document generation.

[0137] In some embodiments of this application, the specific implementation process of the terminal collecting and using the current document data filled by the document template, i.e., S103, may include: S1031-S1032, as follows:

[0138] S1031. The terminal collects the current target document data filled by the target template content based on the target document data, as well as other document data other than the current target document data.

[0139] S1032. The terminal integrates the current target document data and other document data to generate the current document data.

[0140] Since the target template content is displayed based on the needs of the users, the document data collected by the terminal based on the target template content may not necessarily be for all document elements to be filled. That is, the current target document data may only be for a few document elements to be filled. Therefore, in addition to collecting the current target document data, the terminal also needs to collect other document data. Then, the terminal uses the current document data and other document data to form the final current document data, thus completing the current document data collection process.

[0141] Understandably, other document data refers to the document data filled in by the user for document elements that do not display a template. For example, after the terminal displays the template content for the document element "Health Information," it will collect the health information entered by the user, as well as data such as the user's name and age. Only after all the collected data is aggregated will the current document data be obtained.

[0142] In this embodiment, the terminal collects the current target document data filled in by the user based on the target template content, and simultaneously collects other document data. Then, it integrates the current target document data with the other document data to obtain the current document data. In this way, the terminal can complete the collection of the current document data.

[0143] In some embodiments of this application, the target template content is template content extracted and displayed by the terminal from at least one template content according to the template display instruction; the target template content includes one or more sub-template contents; after the terminal displays the target template content, i.e. after S1023, the method may further include: S1024-S1026, as follows:

[0144] S1024. The terminal receives feedback information regarding the content of one or more sub-templates.

[0145] In this embodiment, while displaying the target template content, the terminal also receives feedback from the user regarding the target template content. Since the target template content contains one or more sub-template contents, the terminal actually receives feedback information regarding one or more template contents. These one or more sub-template contents are the target template content extracted and displayed by the terminal from at least one template content according to template display instructions.

[0146] It should be noted that, in some embodiments of this application, the terminal can receive feedback information for each sub-template content. Furthermore, the terminal can also receive positive and negative feedback information for each sub-template content separately. In some embodiments of this application, the terminal can utilize an information feedback control to receive feedback information.

[0147] Understandingly, feedback information represents the user's level of satisfaction with one or more sub-template contents. When the terminal receives positive feedback triggered by the user, it indicates that the sub-template content is useful to the user; conversely, when the terminal receives negative feedback triggered by the user, it indicates that the sub-template content is not very useful to the user. Therefore, the user's evaluation of each sub-template content can be clearly defined.

[0148] S1025, The terminal sends the feedback information to the server.

[0149] The terminal sends feedback information to the server via the network, and the server receives the feedback information sent by the terminal regarding one or more sub-template contents. It is understandable that, since the feedback information represents the user's level of satisfaction with one or more sub-template contents, after receiving the feedback information, the server will determine which sub-template contents the user finds useful and which are considered less useful.

[0150] S1026. Based on the feedback information, the server optimizes the document template to obtain the optimized document template.

[0151] Based on feedback, the server selects useful sub-template content from one or more sub-templates. Then, it optimizes the document template based on this sub-template content, resulting in an optimized document template. In this way, the server can optimize the document template based on user feedback regarding one or more sub-templates, ultimately producing a more suitable and effective optimized template. This allows users to refer to a more suitable and effective template when filling out online documents in the future, further improving the intelligence of document generation.

[0152] It should be noted that, in this embodiment, when the server optimizes the document template based on feedback from users regarding one or more sub-template contents, it may retain the sub-template contents deemed useful by the users and remove those deemed less useful, thus obtaining an optimized document template; alternatively, it may integrate the sub-template contents deemed useful by the users to obtain a final optimized template content, thereby obtaining an optimized document template; or it may remove the template element when the users deem one or more sub-template contents contained in the template content corresponding to a certain template element to optimize the template element and obtain an optimized document template. The specific method of optimizing the document template can be set according to the actual situation, and this embodiment does not limit it here.

[0153] In this embodiment, the terminal can receive feedback information from the user regarding the content of one or more sub-templates. The server can use the feedback information to optimize the document template, thereby obtaining an optimized document template. This further improves the intelligence of document generation.

[0154] In some embodiments of this application, when the terminal receives a document display instruction, in response to the document display instruction, before displaying the document to be filled on the current display interface, i.e. before S101, the method may further include: S201-S204, as follows:

[0155] S201. When the server receives the template generation instruction, it obtains the document to be filled and the corresponding historical document data based on the template generation instruction; the template generation instruction specifies the document to be filled that is waiting to generate the template.

[0156] Before the document generation process begins, the server needs to generate a document template. In this embodiment, when the server receives a template generation instruction, it will know that a document template needs to be generated for the document to be filled specified by the template generation instruction. At this time, the server will obtain the historical document data corresponding to the document to be filled according to the template generation instruction, so as to facilitate subsequent analysis of the historical document data and generate the document template corresponding to the document to be filled.

[0157] It is understood that the template generation instruction is used to instruct the generation of a document template. In some embodiments of this application, the template instruction contains identification information of the document to be filled in for template generation. In this case, after receiving the template generation instruction, the server can parse the template generation instruction to obtain the identification information of the document to be filled in, thereby clarifying the document to be filled in for template generation.

[0158] It should be noted that in some embodiments of this application, the template generation instruction can be generated automatically by the server at regular intervals. That is, the server generates the template generation instruction every preset time interval, thereby instructing the server to generate document templates using historical document data. For example, the server generates the template generation instruction automatically at midnight every day, thereby updating the document templates every day.

[0159] In some other embodiments of this application, the template generation instruction can also be triggered by the historical user. That is, whenever the terminal collects the data filled in by the historical user on the document to be filled and sends the data to the server, it will send the template generation instruction synchronously, so that the server generates a document template once for each historical document data, thereby enabling the document template to be updated in real time.

[0160] It is understood that in this embodiment of the application, multiple different terminals may collect data filled in by different historical users on the document to be filled, and send this data to the server. After the server integrates and processes this data, it will obtain the historical document data.

[0161] S202. The server filters the elements in the document to be filled and obtains at least one template element; the template element represents the document element in the document to be filled that is waiting to generate template content.

[0162] After obtaining the historical document data, the server first parses the document to be filled, obtaining all the document elements to be filled. Then, the server filters all the document elements to be filled, selecting the document elements that need to generate the corresponding text template, and uses these document elements as template elements. In this way, the server can obtain at least one template element.

[0163] It's important to note that online documents often require a wide variety of fields to be filled in. Some fields are quite complex, such as "health declaration" or "travel itinerary." Users typically need templates for these fields, and these are the document elements that await template content generation. Conversely, online documents may contain simpler fields, such as "name" or "age," which do not require templates and therefore do not need to generate template content. Therefore, after receiving all the document elements to be filled, the server needs to filter them to obtain at least one template element.

[0164] In some embodiments of this application, the server can use all document elements to be populated as template elements to obtain at least one template element. In other embodiments of this application, the server can use a preset element matching field to select only the document elements that need to generate templates from all document elements to be populated, and use them as template elements to obtain at least one template element.

[0165] S203. For at least one template element, the server extracts at least one corresponding template content from historical document data.

[0166] After obtaining at least one template element, the server needs to generate corresponding template content for these elements. At this point, the server extracts and integrates document content from historical document data to obtain the template content corresponding to each template element. In this way, the server obtains at least one template content.

[0167] It should be noted that, in some embodiments of this application, the server can directly aggregate all document content corresponding to a template element as the template content corresponding to that template element. In this case, each document content can be regarded as a sub-template content of the template content, that is, the template content can have multiple sub-template contents. The server can also filter all document content corresponding to a template element according to certain rules, or merge and organize the meanings of all document content to obtain a final template content. Of course, this template content can also be regarded as sub-template content. Therefore, each template content obtained by the server can include one or more sub-template contents.

[0168] S204. The server integrates at least one template element and at least one template content to obtain a document template for the document to be populated.

[0169] After obtaining the template content corresponding to each template element, the server can package and organize at least one template element and at least one template content. The resulting file is the document template for the document to be populated. In this way, the server completes the template generation process for the document to be populated.

[0170] In this embodiment, the server can analyze the document to be filled, extract at least one template element, then extract the corresponding template content for each template element from historical document data, and finally integrate the at least one template element and at least one template content to obtain a document template. In this way, the server can automatically generate a document template based on the historical document data of the document to be filled, so that the terminal can display the document template, thus improving the intelligence of document generation.

[0171] In some embodiments of this application, the server filters elements in the document to be filled to obtain at least one template element. The specific implementation process of S202 may include: S2021-S2022, as follows:

[0172] S2021. The server extracts document elements from the document to be filled, obtaining the full set of document elements.

[0173] The server first parses the document to be filled, finds all the document elements to be filled, then extracts the found document elements and gathers all the extracted document elements together to obtain the full document elements. In other words, the full document elements represent all the document elements to be filled in the document.

[0174] S2022. The server uses a pre-defined element matching field to match at least one template element from all document elements.

[0175] The server retrieves the preset element matching fields, then determines whether each document element to be filled in the full document matches the preset element matching fields. Based on the matching status of each document element to be filled with the preset element matching fields, at least one template element is selected from the full document elements.

[0176] It is understood that the preset element matching field can be any field used to filter document elements, and this embodiment of the application does not limit it. For example, the preset element matching field can be the format of a phone number, an email address, etc. In this case, the server can remove document element fields such as phone numbers and email addresses that do not require a template, thereby only using document elements other than phone numbers and email addresses as template elements.

[0177] In this embodiment, the server can use a pre-defined element matching field to filter out at least one template element from all document elements extracted from the document to be populated. In this way, the server can determine the template element that needs to be used for template content generation, thereby achieving the effect of automatically determining the template element and improving the intelligence of document generation.

[0178] In some embodiments of this application, the server extracts at least one corresponding template content from historical document data for at least one template element, i.e., the specific implementation process of S203 may include: S2031-S2032, as follows:

[0179] S2031. For each template element in at least one template element, the server extracts one or more document contents from historical document data.

[0180] When the server extracts at least one template content corresponding to at least one template element, it first extracts all document content corresponding to each template element from historical document data, thereby obtaining one or more document contents corresponding to each template, so as to determine the template content in the future.

[0181] S2032. The server selects the document content with the most characters from one or more document contents, and uses it as the corresponding template content for each template element. When the corresponding template content is selected for at least one template element, at least one template content is obtained.

[0182] The server counts the number of characters in each element of one or more documents, then identifies the element with the highest character count and extracts it as the template content for each template element. When the server has determined the corresponding template content for all template elements within at least one template element, it obtains at least one template content.

[0183] In this embodiment, the server can first extract one or more document contents for each template element, and then use the number of characters to match the template content corresponding to each template element from the one or more document contents, thereby achieving the effect of automatically determining the corresponding template content for each template element and improving the intelligence of document generation.

[0184] In some embodiments of this application, before the server obtains the document to be filled and the corresponding historical document data based on the template generation instruction when it receives the template generation instruction, i.e., before S201, the method may further include: S301-S306, as follows:

[0185] S301. When the terminal receives a historical document display instruction, it responds to the historical document display instruction by parsing out the identification information of the document to be filled from the historical document display instruction.

[0186] S302. The terminal generates a historical document display request and sends the identification information in the historical document display request to the server.

[0187] S303. The server extracts the document to be filled based on the identification information and sends the document to be filled to at least one terminal.

[0188] Before generating a document template, historical document data for the document to be populated needs to be collected via the terminal. Specifically, the terminal can access the document to be populated within a historical time period. The terminal first parses the identification information of the document to be populated from the received historical document display instructions, and then packages this identification information into a historical document display request, sending it to the server. Since multiple different terminals may access the document to be populated in practice, the server receives historical document display requests from at least one terminal, which carry the identification information of the document to be populated. Then, based on the identification information, the server locates the document to be populated and sends it to at least one terminal.

[0189] For each terminal, the terminal receives the document to be populated returned by the server in response to the request to display historical documents, and then displays the document to be populated on the display interface. This completes the process of the terminal accessing the document to be populated.

[0190] S304. The terminal collects the real-time document data corresponding to the document to be filled and sends the real-time document data to the server so that the server can integrate the historical document data based on the real-time document data.

[0191] After displaying the document to be populated, the terminal collects the document data entered by previous users for each element of the document to be populated. Then, it aggregates all the document data corresponding to all elements to be populated to obtain the real-time document data. It should be noted that the terminal can collect real-time document data through browser kernel technology. This real-time document data consists of the data entered by previous users on the document to be populated.

[0192] After collecting real-time document data, the terminal sends the data to the server. Since at least one terminal can access the document to be populated, the server needs to receive real-time document data sent by each of the at least one terminal to obtain at least one piece of real-time document data. That is, the server receives at least one piece of real-time document data sent by at least one terminal, and there is a one-to-one correspondence between at least one piece of real-time document data and at least one terminal.

[0193] S305. The server performs desensitization processing on each real-time document data in at least one real-time document data to obtain desensitized data. When the desensitization processing on at least one real-time document data is completed, at least one desensitized data is obtained.

[0194] After obtaining at least one real-time document, the server performs anonymization processing on each document to hide the personal privacy and sensitive information of historical users, thus obtaining the anonymized data for each document. Once anonymization processing is completed on all real-time document data within the at least one document, the server obtains at least one anonymized data entry.

[0195] S306. The server uses at least one de-identified data to integrate historical document data.

[0196] After obtaining at least one anonymized data point, the server can combine these anonymized data points and use the combined data as historical document data. This way, the server obtains historical document data, which can then be used to generate the corresponding document template for the document to be populated.

[0197] In this embodiment, the terminal can receive data filled in real-time by historical users on the document to be filled, obtain real-time document data, and send the real-time document data to the server. The server de-identifies and integrates all received real-time document data to obtain historical document data. In this way, the server can organize historical document data so that it can be used to generate document templates later.

[0198] In some embodiments of this application, the server performs de-identification processing on each real-time document data in at least one real-time document data set to obtain de-identified data. The specific implementation process of S306 may include: S3061-S3063, as follows:

[0199] S3061. The server extracts the segment to be processed from each real-time document data; the segment to be processed represents the private content in each real-time document data.

[0200] S3062. The server encodes the fragment to be processed to obtain the encoded fragment.

[0201] The server first breaks down the content of each real-time document to identify the private information entered by historical users. This private information is then extracted as a fragment to be processed. Next, the server uses a pre-designed encoding algorithm to encode the private information, thereby hiding it and obtaining the encoded fragment.

[0202] In some embodiments of this application, the private content can be the time, name, address, or other privacy information filled in by the historical user, or it can be a pre-maintained list of sensitive words, such as the names of certain diseases or the names of certain regions. When the server determines that a segment in the real-time document data contains any one of the time, name, address, or other privacy information, it will treat that segment as a segment to be processed.

[0203] It should be noted that, in some embodiments of this application, the server's encryption of private content refers to blurring the private content, for example, hiding the time, name, address and other private information in a certain segment, while retaining the non-private content.

[0204] For example, when the real-time document data is "I hereby declare that I have not had contact with high-risk areas and have no symptoms of illness from March to May 2020," the private content is the specific time period, i.e., March to May 2020. This time period is the segment to be processed. The server adds encoding to the period from March to May 2020, hiding the specific year and month, resulting in a segment in the form of "xxxx year xx month to xx month," which is the encoded segment.

[0205] S3063. The server replaces the segment to be processed with the encoded segment to obtain the desensitized data.

[0206] The server uses the encrypted fragment to replace the corresponding fragment in the real-time document data. The real-time document data after the replacement operation is completed is the de-identified data. In this way, the server obtains the de-identified data, so that the privacy of the users in the past can be protected when generating templates in the future.

[0207] In this embodiment, the server can treat the private content in each real-time document data as a segment to be processed, then encode the segment to be processed to obtain an encoded segment, and replace the segment to be processed with the encoded segment. In this way, the server can hide the privacy information of historical users when generating historical document data, thereby protecting the privacy of historical users.

[0208] In some embodiments of this application, the terminal responds to the template display instruction by popping up a template display window on the current display interface and displaying the document template in the template display window. That is, the specific implementation process of S102 may include: S1024-S1026, as follows:

[0209] S1024. The terminal responds to the template display instruction by determining the document element to be displayed from at least one document element to be filled, and parsing at least one template element and at least one template content from the document template.

[0210] S1025. The terminal determines the target template element from at least one template element based on the elements of the document to be displayed.

[0211] S1026. The terminal pops up a template display window on the document to be filled, and displays the target template content in the template display window.

[0212] In some embodiments of this application, the user can trigger a template display instruction on the template loading control according to their needs. The terminal determines the document element to be displayed based on the template display instruction, and then determines the target template element from at least one template element. The target template content is then displayed in the pop-up template display window to realize the display of document templates according to the user's needs.

[0213] For example, this application provides a schematic diagram illustrating a document template. See also... Figure 8 The document to be filled, 8-1, contains a health declaration element, 8-11. When an user needs a reference template for health declaration 8-11, they can click the template loading control 8-12 corresponding to health declaration 8-11. At this point, a template display window 8-13 will pop up on the document to be filled, 8-11. The template display window 8-13 displays the target template content: "Example: I declare that I have not been in contact with people from high-risk areas from [Month] to [Month] 2020, and I have no symptoms of illness 8-14." In this way, the user can display the template content according to their needs and fill in their own health declaration.

[0214] In this embodiment, the terminal can display only the target template content in the template display window according to the needs of the user, thereby improving the intelligence of document generation.

[0215] In some embodiments of this application, the target template content includes one or more sub-template contents, and the terminal can set a corresponding information feedback control for each sub-template content. When the template display window displays the target template content, it actually displays one or more sub-template contents in the template display window. At this time, the terminal can receive feedback information for one or more sub-template contents through the information feedback control in the template display window.

[0216] As an example, this application provides a schematic diagram of receiving feedback information. See also... Figure 9In the template display window 9-12 that pops up when the template loading control 9-11 of the document to be filled 9-1 is clicked, the target template content 9-13, namely sub-template content 9-131 and sub-template content 9-132, is displayed. The terminal has set corresponding information feedback controls for these two sub-template contents, namely controls 9-133 and 9-134. When the user clicks, double-clicks, or long-presses control 9-133, the terminal receives feedback information for sub-template content 9-131; when the user clicks, double-clicks, or long-presses control 9-134, the terminal receives feedback information for sub-template content 9-132. Thus, the terminal receives feedback information for one or more sub-template contents.

[0217] In this embodiment, the terminal can receive feedback information through the information feedback control, which facilitates subsequent optimization of the document template and further improves the intelligence of document generation.

[0218] The following will describe an exemplary application of the embodiments of this application in a real-world application scenario.

[0219] This application embodiment is implemented in the scenario of an online document for registering a user's health status. First, a template needs to be generated for the online document; this requires collecting template data. When user A (a historical user) enters a URL (historical document display command) in a browser (terminal), for example, http: / / doc.com / form / edit / DTW9ac3 (identification information), it will open... Figure 10 The online document shown is the document to be filled. Among them, Figure 10 This is a schematic diagram of an online document for registering user health information provided in this application embodiment. Document 10-1 contains two elements: Name 10-11 and Health Declaration 10-12. Users can fill in content in the text input area (document data input area) below Name 10-11 and Health Declaration 10-12. The browser collects the content entered by the user (real-time document data) and uploads it to the cloud (server). The data collected by the browser can be as follows:

[0220]

[0221] Because user data may involve privacy issues, de-identification and other operations are required after collecting template data. During data de-identification, the cloud will encode all privacy data (private content). For example, the original data is "I hereby declare that I have not had contact with high-risk areas from March to May 2020, and have not experienced any discomfort such as cough or fever." The de-identified data is "I hereby declare that I have not had contact with high-risk areas from [month] to [month] of [year], and have not experienced any discomfort such as xx or xx" (de-identified data). Of course, the cloud can also maintain a list of sensitive words, which stores region names, disease names, etc. The cloud can also replace or encode the data in the sensitive word list (the words in the sensitive word list are also private content, i.e., fragments to be processed).

[0222] After data anonymization is completed, templates can be automatically generated. There are two main methods for automatic template generation: a selected method and a non-selected method.

[0223] In the non-selective method, the cloud pushes all collected data directly to users for reference without filtering. For example, when multiple users access http: / / doc.com / form / edit / DTW9ac3, the browser collects and anonymizes the data from multiple users, resulting in multiple sets of data, such as anonymized data for user A and user B. User A's anonymized data is as follows:

[0224] [id:text1,content:Zhang San](text1 is the template element, and content:Zhang San is the content of the child template);

[0225] [id:text2,content: I hereby declare that I have not had any contact with high-risk areas from [month] to [month] of [year], and have not experienced any discomfort such as [condition]] (text2 is a template element, and the text of text2's content is the content of the child template).

[0226] User B's anonymized data is as follows:

[0227] [id:text1,content:Li Si](text1 is the template element, and content:Li Si is the content of the child template);

[0228] [id:text2,content: I hereby declare that I have no physical abnormalities from month x to month xxxx](text2 is a template element, and the content of text2 is the content of a sub-template. As can be seen from the above data, there are two template elements text1 and text2 in the document template, and the template content corresponding to each template element has multiple sub-template contents).

[0229] When a new user (the user) visits http: / / doc.com / form / edit / DTW9ac3, they can see the template information. Figure 11 This is an illustration of the template information provided in the embodiments of this application. Figure 1 ,like Figure 11 As shown, when a new user visits http: / / doc.com / form / edit / DTW9ac3, they can click the example11-12 button (template loading control) corresponding to the name 11-11 (document element to be filled) on document 11-1 (document to be filled). In the pop-up window 11-13 (template display window), the text template content (target template content) corresponding to the name 11-11 is displayed, that is, Zhang San 11-131 and Li Si 11-132 are displayed. New users can also click the example11-15 button (template loading control) corresponding to Health Declaration 11-14 (document element to be filled) on document 11-1 (after clicking, Health Declaration 11-14 becomes the document element to be displayed). The pop-up window 11-16 (template display window) will display the text template content (target template content) corresponding to Health Declaration 11-14, i.e., display the example: I hereby declare that I have not had any contact history with high-risk areas from x month x year to x month x month, and have not experienced any discomfort such as xx or xx 11-161 and the example: I hereby declare that I have no physical abnormalities from x month x year to x month x month 11-162.

[0230] In the curated selection method, the cloud filters out a portion of all collected data for user reference. This curated selection includes both template element selection and template content selection.

[0231] Template element selection refers to choosing elements that require text template generation. For example, the name element usually doesn't need a template, while the health declaration does. Through template element selection, the name element can be removed, and templates can be generated only for the health declaration (at least one template element). During the removal process, character rules (predefined element matching fields) can be configured for filtering, such as filtering based on phone number format or email address format.

[0232] Template content selection refers to filtering out the most suitable text template (the template content corresponding to the template element) from multiple text templates. This can be done using simple algorithms, such as selecting the text template with the longest characters, or by using user feedback (feedback information from one or more sub-templates) to obtain the most suitable template (the optimized document template). Once the template is created, when a new user visits http: / / doc.com / form / edit / DTW9ac3, the template content can be retrieved directly by its ID (element identifier) ​​and displayed in a specific format. The browser then collects the document data entered by the new user and uses this data, along with the original document, to derive the completed document (the target document).

[0233] Figure 12 This is an illustration of the template information provided in the embodiments of this application. Figure 2 Document 12-1 (the document to be filled) is titled "Spring Festival Holiday Student Health Information Reporting Form 12-11". Document 12-1 contains two elements: Name (12-12) and Health Declaration (12-13). When a browser accesses document 12-1, the cloud returns document 12-1 and its corresponding template information to the browser. After receiving the template, the browser detects that a new user has clicked the "example12-14" button (the template loading control; after clicking, this document element to be filled becomes the document element to be displayed). The browser then searches for the text template corresponding to "example12-14" in the template information and pops up the text template display window (12-15), displaying the text template itself, which declares that the user's health has been normal from [month / year] to [month / year] (12-16) (the target template content). This allows the user to view the template content.

[0234] In this way, the cloud can automatically generate templates using historical user data collected by the browser. When a new user needs to access the online document, the browser retrieves the template content. When the new user clicks the template display button corresponding to a certain element, a pop-up window appears on the online document displaying the template content and collecting the data filled in by the user based on the template content, resulting in a completed template. This provides new users with automatically generated templates for reference, improving the intelligence of document generation. Furthermore, after the template is generated, the browser can retrieve it, display it according to the new user's needs, and further optimize the template based on user feedback, further enhancing the intelligence of document generation.

[0235] The following description continues to illustrate the exemplary structure of the document generation apparatus 455 provided in the embodiments of this application as a software module. In some embodiments, such as Figure 2As shown, the software module stored in the document generation device 455 in the first memory 450 may include:

[0236] The first receiving module 4551 is used to receive a template display instruction when a document display instruction is received.

[0237] The display module 4552 is used to, upon receiving a document display instruction, display a document to be filled on the current display interface in response to the document display instruction; the document to be filled is obtained based on the identification information of the document to be filled carried in the document display instruction; and upon receiving a template display instruction, pop up a template display window on the current display interface in response to the template display instruction, and display the document template in the template display window.

[0238] The acquisition module 4553 is used to acquire the current document data input by the user in the document data input area of ​​the current display interface in relation to the document template, and obtain the target document based on the current document data; wherein, the document template is generated based on the historical document data of the document to be filled, and the document template provides a filling reference for the document to be filled.

[0239] In some embodiments of this application, the document generation device 455 further includes a first sending module 4554;

[0240] The first sending module 4554 is used to respond to the document display instruction by sending the identification information of the document to be filled in the document display request to the server; the identification information is parsed from the document display instruction.

[0241] The first receiving module 4551 is further configured to receive the document to be filled and the document template returned by the server in response to the document display request;

[0242] The display module 4552 is specifically used to display the document to be filled.

[0243] In some embodiments of this application, the display module 4552 determines a document element to be displayed from the at least one document element to be filled, and parses at least one template element and at least one template content from the document template; wherein the at least one template element and the at least one template content correspond one-to-one, and the document element to be displayed represents a document element to be filled that awaits the display of template content; based on the document element to be displayed, a target template element is determined from the at least one template element; based on the target template element, target template content is extracted from the at least one template content, and the target template content is displayed in the template display window.

[0244] In some embodiments of this application, the acquisition module 4553 is specifically used to acquire the current target document data filled by the user based on the target template content, as well as other document data other than the current target document data; and to integrate the current document data using the current target document data and the other document data.

[0245] In some embodiments of this application, the first receiving module 4554 is further configured to receive feedback information for the one or more sub-template contents; the feedback information characterizes the user's satisfaction with the one or more sub-template contents;

[0246] The first sending module 4554 is also used to send the feedback information to the server.

[0247] In some embodiments of this application, the document generation device 455 further includes: a parsing module 4555;

[0248] The first receiving module 4551 is further configured to receive a historical document display instruction; and receive the document to be filled returned by the server in response to the historical document display request;

[0249] The parsing module 4555 is used to, when receiving a historical document display instruction, parse the identification information of the document to be filled from the historical document display instruction in response to the historical document display instruction; and generate a historical document display request.

[0250] The first sending module 4554 is further configured to carry the identification information in the historical document display request and send it to the server; and to send the real-time document data to the server so that the server can integrate the historical document data based on the real-time document data;

[0251] The acquisition module 4553 is also used to acquire real-time document data corresponding to the document to be filled; the real-time document data is the data filled in by historical users on the document to be filled.

[0252] The following description continues to illustrate the exemplary structure of the template generation device 255 provided in the embodiments of this application as a software module. In some embodiments, such as... Figure 3 As shown, the software module stored in the template generation device 255 of the second memory 250 may include:

[0253] The second receiving module 2551 is used to receive a document display request sent by the terminal; the document display request carries identification information of the document to be filled.

[0254] Extraction module 2552 is used to extract the document to be filled and the document template corresponding to the document to be filled based on the identification information; the document template is generated based on the historical document data of the document to be filled, and the document template provides a filling reference for the document to be filled;

[0255] The second sending module 2553 is used to send the document to be filled and the document template to the terminal.

[0256] In some embodiments of this application, the template generation device 255 further includes: an acquisition module 2554, a filtering module 2555, and an integration module 2556;

[0257] The second receiving module 2551 is also used to receive template generation instructions;

[0258] The acquisition module 2554 is used to acquire the document to be filled and the historical document data corresponding to the document to be filled according to the template generation instruction when a template generation instruction is received; the template generation instruction specifies the document to be filled that is waiting to generate a template.

[0259] The filtering module 2555 is used to filter elements in the document to be filled to obtain at least one template element; the template element represents a document element in the document to be filled that is waiting to generate template content.

[0260] The extraction module 2552 is also used to extract at least one template content corresponding to the at least one template element from the historical document data;

[0261] The integration module 2556 is used to integrate the at least one template element and the at least one template content to obtain a document template for the document to be filled.

[0262] In some embodiments of this application, the filtering module 2555 is specifically used to extract document elements from the document to be filled to obtain a full set of document elements; the full set of document elements represents all document elements to be filled in the document to be filled; and using a preset element matching field, the at least one template element is matched from the full set of document elements.

[0263] In some embodiments of this application, the extraction module 2552 is specifically used to extract one or more document contents from the historical document data for each template element in the at least one template element; select the document content with the most characters from the one or more document contents as the template content corresponding to each template element; and obtain the at least one template content when the corresponding template content is selected for all at least one template element.

[0264] In some embodiments of this application, the template generation device 255 further includes an optimization module 2557;

[0265] The second receiving module 2551 is further configured to receive feedback information sent by the terminal for the one or more sub-template contents; the one or more sub-template contents are target template contents extracted and displayed by the terminal from at least one template content according to the template display instruction;

[0266] The optimization module 2557 is used to optimize the document template based on the feedback information to obtain an optimized document template.

[0267] In some embodiments of this application, the second receiving module 2551 is further configured to receive a historical document display request sent by at least one terminal; the historical document display request carries the identification information of the document to be filled; and receive at least one real-time document data sent by the at least one terminal;

[0268] The extraction module 2552 is also used to extract the document to be filled based on the identification information;

[0269] The second sending module 2553 is further configured to send the document to be filled to the at least one terminal;

[0270] The integration module 2556 is further configured to perform desensitization processing on each real-time document data in the at least one real-time document data to obtain desensitized data. When the desensitization processing on all at least one real-time document data is completed, at least one desensitized data is obtained. The historical document data is then integrated using the at least one desensitized data.

[0271] In some embodiments of this application, the integration module 2556 is specifically used to extract a segment to be processed from each real-time document data; the segment to be processed represents private content in each real-time document data; the segment to be processed is encoded to obtain an encoded segment; the encoded segment is used to replace the segment to be processed to obtain the desensitized data.

[0272] This application provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the document generation method described above in this application.

[0273] This application provides a computer-readable storage medium storing executable instructions, including executable document generation instructions. When these executable instructions are executed by a processor, they will cause the processor to execute the document generation method provided in this application. For example, ... Figure 6 and Figure 7 The method shown.

[0274] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EP ROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or it may be a variety of devices including one or any combination of the above-mentioned memories.

[0275] In some embodiments, executable document generation instructions may take the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a standalone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.

[0276] As an example, executable document generation instructions may, but do not necessarily, correspond to files in the file system. They may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple collaborative files (e.g., a file that stores one or more modules, subroutines, or code sections).

[0277] As an example, executable document generation instructions can be deployed to execute on a single computing device, or on multiple computing devices located in one location, or on multiple computing devices distributed across multiple locations and interconnected via a communication network.

[0278] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.

Claims

1. A method of generating a document, characterized by, The method comprises the following steps: When receiving a template generation instruction, obtaining a to-be-filled document and historical document data corresponding to the to-be-filled document according to the template generation instruction; The template generation instruction specifies the to-be-filled document for which a template is to be generated; Element screening is performed on the to-be-filled document to obtain at least one template element; the template element represents a document element in the to-be-filled document for which template content is to be generated; For the at least one template element, at least one template content corresponding to the at least one template element is extracted from the historical document data; The at least one template element and the at least one template content are integrated to obtain a document template for the to-be-filled document; Receiving a document display request sent by a terminal; the document display request carries identification information of the to-be-filled document; According to the identification information, the to-be-filled document and the document template are extracted; the document template provides a filling reference for the to-be-filled document; The to-be-filled document and the document template are sent to the terminal; wherein the to-be-filled document contains at least one to-be-filled document element, which is used to determine a to-be-displayed document element by the terminal, and the document template is used to parse at least one template element and at least one template content by the terminal.

2. The method of claim 1, wherein, The element screening on the to-be-filled document to obtain at least one template element comprises: Document element extraction is performed on the to-be-filled document to obtain full-amount document elements; the full-amount document elements represent all to-be-filled document elements in the to-be-filled document; Using a pre-set element matching field, the at least one template element is matched from the full-amount document elements.

3. The method of claim 1, wherein, The extraction of the at least one template content corresponding to the at least one template element from the historical document data comprises: For each template element in the at least one template element, one or more document contents are extracted from the historical document data; From the one or more document contents, the document content with the largest number of characters is selected as the template content corresponding to the each template element; when the corresponding template content is selected for the at least one template element, the at least one template content is obtained.

4. The method of claim 1, wherein, After the to-be-filled document and the document template are sent to the terminal, the method further comprises: Receiving feedback information sent by the terminal for the one or more sub-template contents; the one or more sub-template contents are target template contents extracted and displayed by the terminal from the at least one template content according to a template display instruction; According to the feedback information, the document template is optimized to obtain an optimized document template.

5. The method of claim 1, wherein, Before the step of, when receiving a template generation instruction, obtaining a to-be-filled document and historical document data corresponding to the to-be-filled document according to the template generation instruction, the method further comprises: Receiving a historical document display request sent by at least one terminal; the historical document display request carries identification information of the to-be-filled document; According to the identification information, the to-be-filled document is extracted and sent to the at least one terminal. receive at least one real-time document data sent by the at least one terminal; perform desensitization processing on each of the at least one real-time document data to obtain desensitized data, and obtain at least one desensitized data when the desensitization processing on the at least one real-time document data is completed; integrate the at least one desensitized data to obtain the historical document data.

6. A document generation method characterized by, Comprise: when receiving a document display instruction, in response to the document display instruction, display a to-be-filled document on the current display interface; The to-be-filled document is obtained according to the identification information of the to-be-filled document carried in the document display instruction; The to-be-filled document contains at least one to-be-filled document element; When receiving a template display instruction, in response to the template display instruction, a template display window is popped up on the current display interface, and a to-be-displayed document element is determined from the at least one to-be-filled document element, and at least one template element and at least one template content are parsed from the document template; In the document data input area of the current display interface, collect the current document data input by the user object for the document template, and obtain a target document based on the current document data; Wherein, the document template is generated by the following way: Obtain a to-be-filled document and historical document data corresponding to the to-be-filled document; Element filtering is performed on the to-be-filled document to obtain at least one template element; The template element represents a document element in the to-be-filled document that is waiting to generate template content; For the at least one template element, at least one corresponding template content is extracted from the historical document data; Integrate the at least one template element and the at least one template content to obtain a document template for the to-be-filled document, which provides a filling reference for the to-be-filled document.

7. The method of claim 6, wherein, The response to the document display instruction includes: In response to the document display instruction, the identification information of the to-be-filled document is carried in the document display request and sent to the server; The identification information is parsed from the document display instruction; Receive the to-be-filled document and the document template returned by the server for the document display request, and display the to-be-filled document.

8. The method of claim 6, wherein, The at least one template element and the at least one template content correspond one by one, and the to-be-displayed document element represents a to-be-filled document element waiting to display template content; After the at least one template element and the at least one template content are parsed from the document template, the method further comprises: According to the to-be-displayed document element, determine a target template element from the at least one template element; According to the target template element, extract a target template content from the at least one template content, and display the target template content in the template display window.

9. The method of claim 6, wherein, The collection of the current document data input by the user object for the document template comprises: Collect current target document data input by the user for the target template content, and other document data other than the current target document data; Integrate the current target document data and the other document data.

10. The method according to claim 8 or 9, characterized in that, The target template content includes one or more sub-template contents; After displaying the target template content in the template display window, the method further includes: Receiving feedback information for the one or more sub-template contents; the feedback information represents the satisfaction degree of the user for the one or more sub-template contents; Sending the feedback information to the server.

11. The method according to any one of claims 6 to 9, characterized in that, When receiving the document display instruction, in response to the document display instruction, before displaying the to-be-filled document on the current display interface, the method further includes: When receiving the historical document display instruction, in response to the historical document display instruction, parsing the identification information of the to-be-filled document from the historical document display instruction; Generating a historical document display request and carrying the identification information in the historical document display request, and sending the historical document display request to the server; Receiving the to-be-filled document returned by the server for the historical document display request; Collecting real-time document data corresponding to the to-be-filled document, and sending the real-time document data to the server, so that the server integrates the historical document data according to the real-time document data; the real-time document data is the data filled by a historical user on the to-be-filled document.

12. A document generating apparatus characterized by comprising: Comprise: An acquisition module is used for acquiring a to-be-filled document and historical document data corresponding to the to-be-filled document according to a template generation instruction when the template generation instruction is received; The template generation instruction specifies the to-be-filled document for which a template is to be generated; A screening module is used for performing element screening on the to-be-filled document to obtain at least one template element; The template element represents a document element in the to-be-filled document for which template content is to be generated; An extraction module is used for extracting at least one corresponding template content from the historical document data for the at least one template element; An integration module is used for integrating the at least one template element and the at least one template content to obtain a document template for the to-be-filled document; A second receiving module is used for receiving a document display request sent by a terminal; the document display request carries identification information of the to-be-filled document; The extraction module is further used for extracting the to-be-filled document and the document template according to the identification information; the document template provides a filling reference for the to-be-filled document; A second sending module is used for sending the to-be-filled document and the document template to the terminal; the to-be-filled document contains at least one to-be-filled document element, which is used for determining a to-be-displayed document element by the terminal, and the document template is used for parsing at least one template element and at least one template content by the terminal.

13. A document generating apparatus characterized by comprising: Comprise: The display module is configured to, when receiving a document display instruction, display a to-be-filled document on a current display interface in response to the document display instruction; The to-be-filled document is obtained according to identification information of the to-be-filled document carried in the document display instruction; and the to-be-filled document includes at least one to-be-filled document element; When receiving a template display instruction, the display module is configured to, in response to the template display instruction, pop up a template display window on the current display interface, determine a to-be-displayed document element from the at least one to-be-filled document element, and parse at least one template element and at least one template content from a document template; The collection module is configured to collect current document data input by a user for the document template in a document data input area of the current display interface, and obtain a target document based on the current document data; the document template is generated by the following method: obtaining a to-be-filled document and historical document data corresponding to the to-be-filled document; performing element screening on the to-be-filled document to obtain at least one template element; the template element represents a document element in the to-be-filled document that is waiting for generation of template content; extracting at least one template content corresponding to the at least one template element from the historical document data; and integrating the at least one template element and the at least one template content to obtain a document template for the to-be-filled document, which provides a filling reference for the to-be-filled document.

14. A terminal, characterized by Comprising: A first memory for storing executable template generation instructions; A first processor for executing the executable template generation instructions stored in the first memory to implement the document generation method of any one of claims 6 to 11.

15. A server, characterized by Comprising: A second memory for storing executable template generation instructions; A second processor for executing the executable template generation instructions stored in the second memory to implement the document generation method of any one of claims 1 to 5.

16. A computer-readable storage medium, characterized in that, Executable template generation instructions are stored, which are used to implement the document generation method of any one of claims 6 to 11 when executed by a first processor, or to implement the document generation method of any one of claims 1 to 5 when executed by a second processor.

17. A computer program product comprising computer-executable instructions or a computer program, characterized in that, The computer executable instructions or computer programs are executed by a first processor to implement the document generation method of any one of claims 6 to 11; or the computer executable instructions or computer programs are executed by a second processor to implement the document generation method of any one of claims 1 to 5.

Citation Information

Patent Citations

  • Electronic document generating method and device

    CN105824786A

  • Interaction management device and non-transitory computer readable recording medium

    CN109903759A