CN117592452A - Document template generation method and device, storage medium and electronic equipment - Google Patents

Document template generation method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN117592452A
CN117592452A CN202311685698.0A CN202311685698A CN117592452A CN 117592452 A CN117592452 A CN 117592452A CN 202311685698 A CN202311685698 A CN 202311685698A CN 117592452 A CN117592452 A CN 117592452A
Authority
CN
China
Prior art keywords
document
control
template
data
document template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311685698.0A
Other languages
Chinese (zh)
Inventor
靳晓敏
马川
褚志华
位明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Great Wall Motor Co Ltd
Original Assignee
Great Wall Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Great Wall Motor Co Ltd filed Critical Great Wall Motor Co Ltd
Priority to CN202311685698.0A priority Critical patent/CN117592452A/en
Publication of CN117592452A publication Critical patent/CN117592452A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the application discloses a document template generation method, a device, a storage medium and electronic equipment, which are applied to the field of data processing, wherein the method comprises the following steps: generating a document template comprising at least one control based on a template setting instruction sent by a user, acquiring a document generating instruction sent by the user aiming at the document template, responding to the document generating instruction, and carrying out selection processing on target structured data corresponding to the control to obtain a target document comprising at least one target structured data. By adopting the embodiment of the application, the threshold of personalized document generation by the user can be reduced and the generation efficiency of personalized document of the user can be improved while multiplexing of the control and repeated work of staff are reduced.

Description

Document template generation method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of data processing, and in particular, to a method and apparatus for generating a document template, a storage medium, and an electronic device.
Background
Data is a representation of facts, concepts, or instructions that may be processed by manual or automated means. After the data is interpreted and given a certain meaning, the data becomes information. Data processing (data processing) is the collection, storage, retrieval, processing, transformation, and transmission of data. The basic purpose of data processing is to extract and derive data that is valuable and meaningful to some particular person from a large, unorganized, unintelligible amount of data. While documents are the most common form of data visualization.
At present, a user is required to manually edit the content of the document to finally generate a document, wherein the document format, filling specification, input data and the like are all required to be queried, collected and checked by the user one by one to finally obtain the compliant document, which leads to a great deal of repeated work of the user and unsatisfactory document generation efficiency.
Disclosure of Invention
The embodiment of the application provides a document template generation method, a device, a storage medium and electronic equipment, which can generate a document template comprising a plurality of structured data associated with a control, and improve the efficiency of generating a target document according to the document template. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a document template generating method, where the method includes:
generating a document template comprising at least one control based on a template setting instruction sent by a user;
acquiring a document generation instruction sent by the user aiming at the document template;
and responding to the document generation instruction, and selecting the target structured data corresponding to the control to obtain the target document comprising at least one target structured data.
According to the technical scheme, the control is called to generate the document template according to the template setting instruction of the user, the document meeting the user expectations is automatically generated by adopting the document template according to the document generating instruction of the user, multiplexing of the control is achieved, repeated work of staff is reduced, meanwhile, the threshold of personalized document generation by the user is reduced, and the generation efficiency of personalized document of the user is improved.
With reference to the first aspect, in some possible implementations, the generating, based on the template setting instruction sent by the user, a document template including at least one control includes:
acquiring a template setting instruction carrying at least one control attribute information sent by a user;
responding to the template setting instruction, setting an initial document template comprising at least one control, wherein the control corresponds to the control attribute information one by one;
and carrying out association processing on the control and target structured data in a plurality of preset structured data according to control attribute information corresponding to the control on the initial document template to obtain a document template corresponding to the initial document template.
According to the technical scheme, the control capable of meeting the user requirements is determined according to the control attribute information, and the document template is generated by associating the structured data corresponding to the control, so that the user can customize the document template embedded with a large amount of structured data, the document template can meet the personalized settings of the user, the user can conveniently generate a personalized document on the basis of the customized document template, and the generation efficiency of the personalized document of the user is further improved.
With reference to the first aspect, in some possible implementations, before the obtaining the template setting instruction carrying at least one control attribute information sent by the user, the method further includes:
acquiring initial data corresponding to each data system in a plurality of data systems;
and carrying out structuring processing on the initial data to obtain a plurality of structured data corresponding to the initial data, wherein the plurality of structured data have association relations or hierarchical relations.
According to the technical scheme, the initial data corresponding to the data systems are obtained, the problem of data island among the data systems can be solved, the content of the source data embedded in the document template is enriched, the target structured data corresponding to the controls also have a hierarchical relationship, and a user can better select the target structured data according to the controls, so that the hierarchical sense of the target document is enriched.
With reference to the first aspect, in some possible implementations, the structuring the initial data to obtain a plurality of structured data corresponding to the initial data includes:
if the initial data is in a text form, performing text segmentation processing on the initial data to obtain a plurality of text paragraphs;
And taking the text paragraph as the structured data corresponding to the initial data.
Through the technical characteristics, the original data in the text form serving as the source data can be divided in a finer manner, for example, each line or each section of text data in the original data is used as the structured data corresponding to the original data, so that a user can refer to each line or each section of text data included in the original data when editing the target document, and the content of a plurality of structured data forming the target document is greatly enriched.
With reference to the first aspect, in some possible implementations, the performing, according to control attribute information corresponding to the control on the initial document template, association processing on the control and target structured data in a preset plurality of structured data to obtain a document template corresponding to the initial document template includes:
determining target structured data corresponding to the control in a plurality of preset structured data according to control attribute information corresponding to the control on the initial document template;
and carrying out association processing on the control and the target structured data corresponding to the control to obtain a document template corresponding to the initial document template.
With reference to the first aspect, in some possible implementations, the performing association processing on the control and the target structured data corresponding to the control to obtain a document template corresponding to the initial document template includes:
packaging the target structured data corresponding to the control to obtain packaged data;
acquiring a packaging address corresponding to the packaging data;
and carrying out association processing on the encapsulation address and the control to obtain a document template corresponding to the initial document.
Through the technical means, the association processing can be the association processing of the control and the encapsulated address of the encapsulated structured data, so that the control can conveniently search and call the structured data through the encapsulated address.
With reference to the first aspect, in some possible implementations, the template setting instruction further carries document attribute information;
the setting of the initial document template comprising at least one control in response to the template setting instruction comprises the following steps:
and setting an initial document template which comprises at least one control and corresponds to the document attribute information in response to the template setting instruction.
Through the technical means, the corresponding document attribute information can be set for the document template corresponding to the template setting instruction, so that the user-defined requirement of the document template is met.
With reference to the first aspect, in some possible implementations, the selecting, by using the response and the document generation instruction, the target structured data corresponding to the control to obtain a target document including at least one target structured data includes:
acquiring a selection instruction in the document generation instruction;
determining at least one target structured data corresponding to the selection instruction in the target structured data corresponding to the control;
and generating a target document based on at least one target structured data corresponding to the selection instruction.
Through the technical means, the target document is generated based on the structured data selected by the user, the user can customize the control and the structured data, personalized customization of the document by the user is further realized, and the automatically generated document is suitable for complex user requirements and rich use scenes.
In a second aspect, an embodiment of the present application provides a document template generating apparatus, including:
the document template generation module is used for generating a document template comprising at least one control based on a template setting instruction sent by a user;
the generation instruction acquisition module is used for acquiring a document generation instruction sent by the user aiming at the document template;
And the target document generation module is used for responding to the document generation instruction and carrying out selection processing on the target structured data corresponding to the control to obtain a target document comprising at least one target structured data.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-described method steps.
In a fourth aspect, embodiments of the present application provide a computer program product storing a plurality of instructions adapted to be loaded by a processor and to perform the above-described method steps.
In a fifth aspect, embodiments of the present application provide an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a document template generating method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a document template generation method provided in an embodiment of the present application;
FIG. 3 is a schematic flow chart of a document template generating method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a document template according to an embodiment of the present application;
FIG. 5 is a flowchart of a document template generating method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a document template generating apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
In the description of the present application, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it is to be understood that the terms "comprise" and "have," and any variations thereof, are intended to cover non-exclusive inclusions, unless otherwise specifically defined and defined. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art in a specific context. Furthermore, in the description of the present application, unless otherwise indicated, "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
The present application is described in detail with reference to specific examples.
It should be noted that, information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, presented data, etc.), and signals according to the embodiments of the present disclosure are all authorized by the user or are fully authorized by the parties, and the collection, use, and processing of relevant data is required to comply with relevant laws and regulations and standards of relevant countries and regions. For example, information, instructions, and the like referred to in this specification are all acquired with sufficient authorization.
Data is a representation of facts, concepts, or instructions that may be processed by manual or automated means. After the data is interpreted and given a certain meaning, the data becomes information. Data processing (data processing) is the collection, storage, retrieval, processing, transformation, and transmission of data. The basic purpose of data processing is to extract and derive data that is valuable and meaningful to some particular person from a large, unorganized, unintelligible amount of data. While documents are the most common form of data visualization.
As shown in fig. 1, fig. 1 is a schematic architecture diagram of a document template generating method according to an embodiment of the present application. In the present embodiment, the document template generating server 101, a plurality of data systems for storing initial data, a plurality of electronic devices for transmitting a template setting instruction to the document template generating service 101 are included. Wherein the plurality of electronic devices includes at least electronic device 1021, electronic device 1022, and electronic device 1023, and the plurality of data systems includes at least data system 1031, data system 1032, and data system 1033. It will be appreciated that the number of data processing servers 101, the plurality of electronic devices, and the plurality of data systems shown in fig. 1 is merely illustrative, and the embodiments of the present application are not limited in this regard.
The document template generating server 101 may be understood as a server or a cluster of a plurality of servers, and the document template generating server 101 receives requests or information through a plurality of interfaces provided and provides corresponding data or services based on the requested content of the requests. In this embodiment of the present application, the document template generating server 101 is configured to obtain initial data stored in a plurality of data systems, respectively, where the initial data stored in each data system is not identical. The document template generation server 101 is also configured to receive template setting instructions transmitted from a plurality of electronic devices, and execute a document template generation method in response to the template setting instructions.
In this embodiment, the document template generating server includes a data service capable of supporting OLTP (On-Line Transaction Processing, online transaction) application and OLAP (On-Line Analytical Processing, online analysis processing) application in different traffic scenarios and supporting calculation of ultra-large scale data volume to meet different demands in different scenarios.
It will be appreciated that the document template creation server 101 also has other service capabilities and functions to accomplish the tasks of the embodiments described below. For example, the document template generation server 101 also provides portal services, resource management services, CI/CD services, and the like.
The document template generation server 101 may be a plurality of physical servers, and the plurality of physical servers are independent in hardware; or multiple servers are in multiple virtual servers, the multiple virtual servers are deployed in the same hardware resource pool, and the deployment modes of the virtual servers include but are not limited to: VMware, virtual Box, and Virtual PC.
The document template generation server 101 and the plurality of electronic devices, the plurality of data systems may communicate via communication links established based on a communication protocol, for example: gRPC Protocol, gRPC is a high-performance, general open-source remote server call (Remote Procedure Call, RPC) framework, which is mainly developed for mobile applications and designed based on HTTP/2 Protocol standards, is developed based on Protocol Buffers (PB) serialization protocols, and supports numerous development languages. In addition, the communication link may also be a wireless communication link or a wired communication link, such as: the wired communication link may include an optical fiber, twisted pair or coaxial cable, and the WIreless communication link may include a Bluetooth communication link, a WIreless-FIdelity (Wi-Fi) communication link, a microwave communication link, or the like.
The user communicates with the document template generating server 101 through the electronic device, that is, sends a template setting instruction to the document template generating server 101 through the electronic device. For example, the user transmits a template setting instruction to the document template generating server 101 through the electronic device 1021, transmits a template setting instruction to the document template generating server 101 through the electronic device 1022, or transmits a template setting instruction to the document template generating server 101 through the electronic device 1023. The content of the analysis instructions or calculation instructions may be any content in any format that is set by the user via the electronic device. Electronic devices including, but not limited to, physical or virtual servers, mobile Stations (MSs), mobile Terminal devices (Mobile terminals), mobile phones (Mobile telephones), handsets (handsets), and portable devices (portable equipment), bluetooth headsets, smart watches, etc. may communicate with one or more core networks via a radio access network (Radio Access Network, RAN). It is understood that the embodiments of the present application are not limited to the types of electronic devices described above.
In this application, the electronic device may further be provided with a display device, and the display device may be various devices capable of realizing a display function, for example: the display device may be a cathode ray tube display (Cathode raytubedisplay, CR), a Light-emitting diode display (Light-emitting diodedisplay, LED), an electronic ink screen, a liquid crystal display (Liquid crystal display, LCD), a plasma display panel (Plasma displaypanel, PDP), or the like. The user can view the document template or the target document transmitted from the document template generating server 101 using a display device on the electronic apparatus. And the user may send instructions to the electronic device through the display device, for example, by performing long press or click, double click operations on the display device of the electronic device, including sending a template setting instruction or the like to the document template generation server 101 through the electronic device.
In one embodiment, as shown in fig. 2, a flow diagram of a document template generation method proposed in the present application, which may be implemented in dependence on a computer program, may be run on a von neumann system-based document template generation device. The computer program may be integrated in the application or may run as a stand-alone tool class application.
Specifically, the document template generation method includes:
s101, generating a document template comprising at least one control based on a template setting instruction sent by a user.
The user may send a template setting instruction to the document template generating server through the electronic device, where the template setting instruction is used to instruct the document template generating server to generate a document template required by the user, and the document template may include at least one control, for example, the template setting instruction may include at least one control attribute information, where the control attribute information is a technical means for describing an object by using conciseness and brief information. Essentially, a method for analyzing, counting and abstracting data is added on the basis of extracting long text into refined and effective information, and the method has the characteristics of short text, semanteme, repeatable marking and the like. The number of the control attribute information is one or more, and the control attribute information is used for correspondingly generating one or more controls.
Specifically, the control attribute information is used for characterizing attribute information of the control, and the control corresponds to at least one piece of structural data which should be associated with the control. For example, the attribute information of the control includes position information of the control set on the initial document template, shape information and triggering method of the control, and at least one structured data associated with the control, where the shape information of the control is used to characterize that the shape of the control is circular or square or other shapes, and the triggering method of the control may be long press, touch, sliding, voice triggering, and the like.
The method for obtaining the template setting instruction carrying the at least one control attribute information may be through receiving an electronic device having a communication link with the document template generating server, or receiving a template setting instruction input by a user through an input device of the document template generating server. The application also includes other template setting instruction methods for acquiring attribute information carrying at least one control, which is not limited in any way.
S102, acquiring a document generation instruction sent by a user aiming at a document template.
After the document template is generated, the user can send a document generation instruction for the document template to the document template generation server through the electronic device, the document generation instruction instructs the document template generation server to generate a target document expected by the user on the basis of the document template, and the document template generation server receives the document generation instruction sent from the electronic device through a communication link with the electronic device. The document generation instructions may be instructions in any form or format. The electronic device may be any of the electronic devices shown in fig. 1.
S103, responding to the document generation instruction, and carrying out selection processing on target structured data corresponding to the control to obtain a target document comprising at least one target structured data.
And responding to a selection instruction of at least one target structured data associated with the control, which is included in the document generation instruction, and selecting the target structured data corresponding to the selection instruction from the at least one target structured data associated with the control. For example, the target structured data corresponding to the control named "name" is determined to be "Zhang San", and the target structured data corresponding to the control named "sex" is determined to be "Man". Further, a target document comprising at least one target structured data is obtained, and the target document can be sent to an electronic device corresponding to the document generation instruction, so that a user can view the target document through the electronic device.
Based on a template setting instruction sent by a user, a document template comprising at least one control is generated, a document generating instruction sent by the user aiming at the document template is obtained, target structured data corresponding to the control is selected and processed in response to the document generating instruction, and a target document comprising at least one target structured data is obtained. The control is called to generate a document template through the template setting instruction of the user, and the document meeting the user expectations is automatically generated by adopting the document template according to the document generating instruction of the user, so that the threshold of personalized document generation by the user is reduced while multiplexing of the control and repeated work of staff are realized, and the generation efficiency of personalized document of the user is improved.
In one embodiment, as shown in fig. 3, a flow diagram of a document template generation method proposed in the present application, which may be implemented in dependence on a computer program, may be run on a von neumann system-based document template generation device. The computer program may be integrated in the application or may run as a stand-alone tool class application.
Specifically, the document template generation method includes:
s201, initial data corresponding to each data system in the plurality of data systems is obtained.
The data form of the initial data may be any form of image, text, video, audio, etc. Initial data may be understood as data that is not structured. For example, the initial data is vehicle item data, configuration table data, test order data, test requirement data, test case data, and the like generated during a vehicle test.
In one embodiment, initial data corresponding to each of a plurality of data systems is obtained. Initial data is stored on each data system, and the initial data stored on different data systems may be the same or different or not the same. The plurality of data systems may include some or all of the following data systems: applications and product systems (Systemsapplications and products in data processing, SAP), attendance systems, enterprise management systems (Enterprise Application Suites, ESA), manufacturing enterprise process execution systems (ManufacturingExecutionSystem, MES), manufacturing view systems (General Bill of Material, G-BOM), comprehensive maintenance systems (Tivoli Storage Manager, TSM), test data analysis systems, and the like.
In one embodiment, the document template generation server includes a data lake and a data center tool having a data acquisition, i.e., data acquisition function, capable of acquiring initial data of each data system. The document template generating server acquires initial data corresponding to a plurality of asynchronous data systems in a T+1 data acquisition mode through a data center tool. Wherein 'T' represents the data acquisition day, 'T+1' represents the data acquisition day plus one day, and the acquisition of asynchronous data can be realized by a 'T+1' data acquisition mode. In addition, one of the Sqoop, kettle and flume can be used for replacing a data center tool, namely, service data corresponding to a plurality of target service systems can be acquired in a T+1 data acquisition mode through one of the Sqoop, kettle and flume. The asynchronously collected data systems may be G-BOM systems, TSM systems, and test data analysis systems.
In another embodiment, the initial data in each data system may also be acquired by means of real-time acquisition. Data systems suitable for real-time acquisition may be Technical Review (TR) and SystemWeave systems. In the application, different data acquisition modes are adopted aiming at different data systems, so that the acquisition efficiency of initial data can be improved.
After initial data corresponding to each data system are acquired, initial data corresponding to each data system are obtained, the initial data corresponding to each data system are sent to a data lake, and lake entering operation is carried out on the received initial data corresponding to each data system through the data lake, so that distributed storage of the initial data is realized.
By the technical characteristics, the initial data respectively corresponding to the data systems are acquired, so that the problem of data island among the data systems can be solved, and the content of the source data embedded in the document template is enriched.
S202, carrying out structuring processing on the initial data to obtain a plurality of structured data corresponding to the initial data.
The data labels are usually a set of highly-condensed characteristic items artificially defined by structuring each initial data through a preset label system, and the information hidden behind the data is visualized through one or more label applications, unlike attributes, the data labels are business conclusions based on a plurality of attributes of an entity, and are based on business rules artificially given or trained through machine learning technology. Data tagging is a simple and effective method of improving the efficiency of incremental data clustering by assigning each newly added data point to the cluster most similar thereto.
In one embodiment, the initial data is preprocessed after each initial data is obtained, so as to obtain preprocessed initial data. The preprocessing process can comprise methods of data normalization, data outlier rejection, data completion, heterogeneous data fusion and the like. The initial data can also be preprocessed by various methods such as natural language processing, multi-source data fusion, spatial data processing and the like. By preprocessing the initial data, the data redundancy of a plurality of initial data can be reduced, and the efficiency of the subsequent structuring processing of the plurality of initial data can be improved.
The plurality of structured data may have an association relationship or a hierarchical relationship, where the association relationship characterizes an association between the plurality of structured data, and the hierarchical relationship is used to represent a hierarchical structure between the plurality of structured data. For example, the plurality of structured data corresponding to the test data specifically includes test basic data, test result data, test plan data and test target data, and the control group disposed on the document template includes a plurality of controls, as shown in fig. 3, a control group named "test plan configuration" includes a plurality of controls, specifically includes a control named "test plan a" and a control named "test target a", and the like, and the above controls are associated with the structured data such as the test basic data, the test result data, the test plan data, the test target data, and the like having an association relationship.
For another example, some initial data includes a plurality of structured data having a hierarchical relationship, specifically including a vehicle attribute and a user attribute that are one-level structured data, and a diode tag having a hierarchical relationship with the structured data of the vehicle attribute: brand, train, model, color, style, and diode labels having a hierarchical relationship with structured data of user attributes: the gender and age of the user, the type of customer, the region in which the user is located. The plurality of structured data with the hierarchical relationship are associated through a control group corresponding to a control named as a test vehicle and a control group corresponding to a control named as a test person on the document template.
Through the technical scheme, the plurality of target structured data corresponding to each control also have a hierarchical relationship, and a user can better select the plurality of target structured data according to the control, so that the hierarchical sense of the target document is enriched.
In one embodiment, the preset processing rules may include segmentation rules that segment the initial data in text form. In this embodiment, the initial data in the text form as the source data may be divided more carefully, if the initial data is in the text form, text segmentation processing may be performed on the initial data to obtain a plurality of text paragraphs, where the text segmentation processing may be performed on the initial data according to each line or each paragraph of text, so as to obtain a plurality of text paragraphs, and then the text exercise is used as the structured data corresponding to the initial data, so that the user may refer to each line or each paragraph of text data included in the initial data when editing the target document, and the content of the plurality of structured data forming the target document may be greatly enriched.
S203, acquiring a template setting instruction carrying at least one control attribute information sent by a user.
The user may send a template setting instruction to the document template generating server through the electronic device, where the template setting instruction is used to instruct the document template generating server to generate a document template required by the user, and the document template may include at least one control, for example, the template setting instruction may include at least one control attribute information, where the control attribute information is a technical means for describing an object by using conciseness and brief information. Essentially, a method for analyzing, counting and abstracting data is added on the basis of extracting long text into refined and effective information, and the method has the characteristics of short text, semanteme, repeatable marking and the like. The number of the control attribute information is one or more, and the control attribute information is used for correspondingly generating one or more controls.
Specifically, the control attribute information is used for characterizing attribute information of the control, and the control corresponds to at least one piece of structural data which should be associated with the control. For example, the attribute information of the control includes position information of the control set on the initial document template, shape information and triggering method of the control, and at least one structured data associated with the control, where the shape information of the control is used to characterize that the shape of the control is circular or square or other shapes, and the triggering method of the control may be long press, touch, sliding, voice triggering, and the like.
The method for obtaining the template setting instruction carrying the at least one control attribute information may be through receiving an electronic device having a communication link with the document template generating server, or receiving a template setting instruction input by a user through an input device of the document template generating server. The application also includes other template setting instruction methods for acquiring attribute information carrying at least one control, which is not limited in any way.
S204, setting an initial document template comprising at least one control in response to the template setting instruction.
Setting an initial document template in response to the template setting instruction, and setting the initial document template of at least one control at a corresponding position on the initial document template according to at least one control attribute information carried by the template setting instruction, in other words, at least one control on the initial document template corresponds to at least one control attribute information carried by the template setting instruction one by one.
As shown in fig. 4, fig. 4 is a schematic structural diagram of a document template provided in an embodiment of the present application, including a document template 201, where the document template 201 is obtained by performing association processing on an initial document template corresponding to the document template 201, in other words, the initial template 201 is the same as a control corresponding to an initial document template corresponding to the document template 201, so that a control set on the initial document template corresponding to the document template 201 is described with a control set on the document template 201.
The document module 201 is provided with a plurality of controls, which specifically include a control named "basic test data", a control named "test vehicle", a control named "test person", a control named "vehicle model", a control named "color", a control named "series", a control named "name", a control named "gender", a control named "job number", a control named "test plan configuration", a control named "test plan a", a control named "test target a", a control named "test plan B", a control named "test target B", a control named "test plan C", a control named "test target C", a control named "test result", a control named "test target value contrast data", and a control named "test report". The plurality of controls on the document template 201 respectively comprise control attribute information, wherein the control attribute information is used for representing attribute information of the controls, and the controls correspond to at least one piece of structuring data which should be associated.
In one embodiment, the template setting instruction further carries document attribute information, and then an initial document template including at least one control and corresponding to the document attribute information may be set in response to the template setting instruction. The control attribute information characterizes attribute information of the control, and the document attribute information characterizes attribute information of the document template. In response to the template setting instruction, an initial document template including at least one control and corresponding to the document attribute information is set. The document templates obtained from the initial document template have the same document attribute information.
For example, the document attribute information includes authority information, where the authority information includes a plurality of user identifiers and operation information corresponding to each user identifier, and the operation information corresponding to the user identifier is used to characterize an operation that a user corresponding to the user identifier is allowed to perform on a document template corresponding to the template setting instruction.
The User Identity can be understood as the Identity data characterizing the Identity of the User. For example, the user identifier may be an identification number of the user, a user ID, a mobile phone number, an email, etc., or may be device data of an electronic device used by the user, or may be an identifier generated according to a physiological feature, and the user identifier may be a combination of a plurality of data in the foregoing data, which is not listed here. The user identification corresponds to the operation information, and the user corresponding to the user identification is characterized to allow the operation on the document template corresponding to the template setting instruction. For example, the user corresponding to user identification A allows modification and downloading of the document template, and the user corresponding to user identification B only allows downloading of the document template.
For another example, the document attribute information includes flow information including at least one flow related to the document template corresponding to the template setting instruction, and at least one flow node corresponding to each flow. In other words, the flow information characterizes at least one flow that the document template needs to enter and at least one flow node set on the flow. For example, the document template enters an auditing process after being set, a plurality of auditing nodes are arranged on the auditing process, and corresponding auditing personnel are arranged on each auditing node.
In the embodiment, the authority information or the flow information of the document template can be set to protect the information security of the document template, prevent the document template from being revealed or maliciously tampered with by people and the like, meet the self-defining requirement of the document template, and enable the document template to have more functions.
S205, according to control attribute information corresponding to the control on the initial document template, performing association processing on the control and target structured data in a plurality of preset structured data to obtain a document template corresponding to the initial document template.
The plurality of structured data are obtained by performing a structuring process on the initial data, in other words, the plurality of structured data constitute the initial data. For example, according to the attribute information of each label in the preset label system, different initial data are structured through a certain algorithm design or algorithm model, at least one piece of characteristic data in the initial data can be extracted as structured data, and the structured data has characteristic information for quantifying object characteristics of the structured data, namely, the basic description of the object characteristics.
For example, the initial data as the experiment order data is structured to obtain structured data including at least structured data representing vehicle attribute characteristics and user attribute characteristics of a user to whom the vehicle belongs, optionally, the plurality of structured data of the vehicle attribute characteristics may include a sales area of the vehicle, a usage type, a brand, a train, a model, a color, a style, a configuration, an intelligent network type, an engine type, a option id, an option name, a seat number, a platform to which the vehicle belongs, and a purchase-vehicle dealer name, and the plurality of structured data of the user attribute characteristics may include a sex and an age of the user, a type of a client to which the user corresponds, a region to which the user belongs, and a brand, a train, and a model of a vehicle to which the user drives the vehicle.
Specifically, according to control attribute information corresponding to each control on an initial document template, determining at least one target structured data corresponding to the control in a plurality of preset structured data; and carrying out association processing on each control and at least one target structured data corresponding to the control to obtain a document template corresponding to the initial document template.
For example, as shown in fig. 3, according to control attribute information of a control named "test vehicle", at least one piece of target structural information corresponding to the control attribute information is matched in a plurality of pieces of structural data, and the at least one piece of target structural information has common characteristic information, that is, data representing the test vehicle, including, for example, a sales area, a use type, a brand, a train, a vehicle type, a color, a style, and the like of the vehicle. According to the control attribute information of the control named as 'tester', at least one piece of target structural information corresponding to the attribute information is matched in a plurality of pieces of structural data, wherein the target structural information has common characteristic information, namely the data representing the tester, such as the name, sex, work number and the like of the tester.
In one embodiment, the association processing of the control and the at least one target structured data may be that the target structured data is encapsulated, an encapsulation address corresponding to the encapsulation data is obtained, and then the association processing is performed on the encapsulation address and the control, so as to obtain a document template corresponding to the initial document template, and thus the document template shown in fig. 3 is obtained.
In one embodiment, a control may also be provided that may invoke an interface of the encapsulated data to obtain at least one target structured data. And further carrying out association processing on each control and at least one target structured data to obtain the document template shown in fig. 3.
As shown in fig. 5, a flow chart of generating a document template according to an embodiment of the present application is provided, and a plurality of initial data 301, including vehicle project data, configuration table data, test order data, test requirement data, test case data, and the like, are obtained. Generating a document template 302 and document attribute information 303 corresponding to the document template 302 according to a plurality of initial data 301, wherein the method specifically comprises setting a control in the document template 302 through control definition and/or control group definition, configuring an interface for the control through interface address configuration and interface foundation management, thereby associating structured data through the interface, specifically associating data items and managing the data items, and the number of the control and the structured data is one or more.
The document attribute information 303 includes authority information, flow information, and message information. The authority information comprises a plurality of user identifications and operation information corresponding to the user identifications, wherein the operation information corresponding to the user identifications is used for representing the operation of the document template corresponding to the template setting instruction allowed by the user corresponding to the user identifications. The flow information comprises at least one flow related to the document template corresponding to the template setting instruction and at least one flow node corresponding to each flow. The message information includes a preset message sent to the specified electronic device when the document template is in the process of generating, using, modifying or downloading, etc., for example, a notification message is sent to the specified electronic device when the document template is downloaded.
Based on the generated document template 302, further functional implementation of the document template 302 is performed. Specifically, the system includes a user side function cabinet 3041 and a management side function 3042. The user-side function 3041 may be understood as a function for a user using the document template, for example, including functions of document one-key sharing, document collaborative editing, document problem recording, and the like. The management end function 3042 may be understood as a function of a user editing the document template, and specifically includes functions of setting the document template, initial data management, setting document output, and the like. It is to be understood that the functions shown in fig. 5 are examples only, and that the present application also includes other types or numbers of functions.
S206, acquiring a document generation instruction sent by a user aiming at the document template.
After the document template is generated, the user can send a document generation instruction for the document template to the document template generation server through the electronic device, the document generation instruction instructs the document template generation server to generate a target document expected by the user on the basis of the document template, and the document template generation server receives the document generation instruction sent from the electronic device through a communication link with the electronic device. The document generation instructions may be instructions in any form or format. The electronic device may be any of the electronic devices shown in fig. 1.
S207, acquiring a selection instruction in the document generation instruction, determining at least one target structured data corresponding to the selection instruction in the target structured data corresponding to the control, and generating a target document based on the at least one target structured data corresponding to the selection instruction.
The document generation instruction may include a selection instruction, where the selection instruction is used to indicate target structured data selected by a user, and at least one target structured data corresponding to the selection instruction may be determined from the target structured data corresponding to the control, for example, target structured data corresponding to a control named "name" is determined to be "Zhang San", and target structured data corresponding to a control named "sex" is determined to be "Man". Further, a target document may be generated based on at least one target structured data corresponding to the selection instruction, i.e., the target document includes at least one target structured data corresponding to the selection instruction, and the target document may be sent to an electronic device corresponding to the document generation instruction, so that a user views the target document through the electronic device.
According to the method and the device, the initial data corresponding to each data system in the plurality of data systems are acquired, the initial data are subjected to structuring processing to obtain the plurality of structured data corresponding to the initial data, association relations or hierarchical relations exist among the plurality of structured data, the initial data corresponding to the plurality of data systems respectively are acquired, the problem of data island among the plurality of data systems can be solved, the content of source data embedded in a document template is enriched, the plurality of target structured data corresponding to each control also have hierarchical relations, and a user can better select the plurality of target structured data according to the control, so that the layering sense of a target document is enriched. If the initial data is in a text form, performing text segmentation processing on the initial data to obtain a plurality of text paragraphs, and taking the text paragraphs as structured data corresponding to the initial data. The original data in the form of text as the source data may be divided in a finer manner, for example, each line or each piece of text data in the original data is used as the structured data corresponding to the original data, so that the user may refer to each line or each piece of text data included in the original data when editing the target document, and the content of a plurality of structured data constituting the target document is greatly enriched. The method comprises the steps of obtaining a template setting instruction which is sent by a user and carries at least one control attribute information, setting an initial document template comprising at least one control in response to the template setting instruction, wherein the control corresponds to the control attribute information one by one, carrying out association processing on the control and target structured data in a plurality of preset structured data according to the control attribute information corresponding to the control on the initial document template to obtain a document template corresponding to the initial document template, determining the control which can meet the user requirement according to the control attribute information, associating the structured data corresponding to the control to generate the document template, and enabling the user to customize the document template embedded with a large amount of structured data, so that the document template can meet the personalized setting of the user, the user can conveniently generate personalized documents on the basis of the customized document template, and the generation efficiency of the personalized documents of the user is further improved. And acquiring a document generation instruction sent by a user aiming at the document template, responding to the document generation instruction, and selecting and processing target structured data corresponding to the control to obtain a target document comprising at least one target structured data. The control is called to generate a document template through the template setting instruction of the user, and the document meeting the user expectations is automatically generated by adopting the document template according to the document generating instruction of the user, so that the threshold of personalized document generation by the user is reduced while multiplexing of the control and repeated work of staff are realized, and the generation efficiency of personalized document of the user is improved.
The following are device embodiments of the present application, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
Referring to fig. 6, a schematic diagram of a document template generating apparatus according to an exemplary embodiment of the present application is shown. The document template generating apparatus may be implemented as all or part of the apparatus by software, hardware, or a combination of both. The document template generating apparatus includes a document template generating module 401, a generating instruction acquiring module 402, and a target document generating module 403.
A document template generating module 401, configured to generate a document template including at least one control based on a template setting instruction sent by a user;
a generation instruction acquisition module 402, configured to acquire a document generation instruction sent by the user for the document template;
and the target document generating module 403 is configured to respond to the document generating instruction, and perform selection processing on target structured data corresponding to the control, so as to obtain a target document including at least one target structured data.
In one or more embodiments, a document template generation module includes:
The setting instruction acquisition unit is used for acquiring a template setting instruction which is sent by a user and carries at least one control attribute information;
the setting instruction response unit is used for responding to the template setting instruction and setting an initial document template comprising at least one control, wherein the control corresponds to the control attribute information one by one;
and the document template generating unit is used for carrying out association processing on the control and target structured data in a plurality of preset structured data according to the control attribute information corresponding to the control on the initial document template to obtain a document template corresponding to the initial document template.
In one or more embodiments, the document template generating apparatus further includes:
the initial data acquisition module is used for acquiring initial data corresponding to each data system in the plurality of data systems;
the structuring processing module is used for carrying out structuring processing on the initial data to obtain a plurality of structured data corresponding to the initial data, and the plurality of structured data have an association relationship or a hierarchical relationship.
In one or more embodiments, a structured processing module includes:
the text segmentation unit is used for carrying out text segmentation processing on the initial data to obtain a plurality of text paragraphs if the initial data is in a text form;
And the structured data acquisition unit is used for taking the text paragraph as structured data corresponding to the initial data.
In one or more embodiments, the document template generation unit is specifically configured to:
determining target structured data corresponding to the control in a plurality of preset structured data according to control attribute information corresponding to the control on the initial document template;
and carrying out association processing on the control and the target structured data corresponding to the control to obtain a document template corresponding to the initial document template.
In one or more embodiments, the document template generation unit is specifically configured to:
packaging the target structured data corresponding to the control to obtain packaged data;
acquiring a packaging address corresponding to the packaging data;
and carrying out association processing on the encapsulation address and the control to obtain a document template corresponding to the initial document.
In one or more embodiments, the template setting instructions also carry document attribute information;
the setting instruction acquisition unit is specifically configured to: and setting an initial document template which comprises at least one control and corresponds to the document attribute information in response to the template setting instruction.
In one or more embodiments, the target document generation module includes:
a selection instruction acquisition unit configured to acquire a selection instruction from the document generation instructions;
the structured data selection unit is used for determining at least one piece of target structured data corresponding to the selection instruction in the target structured data corresponding to the control;
and the target document generation unit is used for generating a target document based on at least one target structured data corresponding to the selection instruction.
It should be noted that, when the document template generating apparatus provided in the above embodiment executes the document template generating method, only the division of the above functional modules is used for illustration, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the document template generating device and the document template generating method provided in the above embodiments belong to the same concept, which embody the detailed implementation process in the method embodiment, and are not repeated here.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
According to the method and the device, the initial data corresponding to each data system in the plurality of data systems are acquired, the initial data are subjected to structuring processing to obtain the plurality of structured data corresponding to the initial data, association relations or hierarchical relations exist among the plurality of structured data, the initial data corresponding to the plurality of data systems respectively are acquired, the problem of data island among the plurality of data systems can be solved, the content of source data embedded in a document template is enriched, the plurality of target structured data corresponding to each control also have hierarchical relations, and a user can better select the plurality of target structured data according to the control, so that the layering sense of a target document is enriched. If the initial data is in a text form, performing text segmentation processing on the initial data to obtain a plurality of text paragraphs, and taking the text paragraphs as structured data corresponding to the initial data. The original data in the form of text as the source data may be divided in a finer manner, for example, each line or each piece of text data in the original data is used as the structured data corresponding to the original data, so that the user may refer to each line or each piece of text data included in the original data when editing the target document, and the content of a plurality of structured data constituting the target document is greatly enriched. The method comprises the steps of obtaining a template setting instruction which is sent by a user and carries at least one control attribute information, setting an initial document template comprising at least one control in response to the template setting instruction, wherein the control corresponds to the control attribute information one by one, carrying out association processing on the control and target structured data in a plurality of preset structured data according to the control attribute information corresponding to the control on the initial document template to obtain a document template corresponding to the initial document template, determining the control which can meet the user requirement according to the control attribute information, associating the structured data corresponding to the control to generate the document template, and enabling the user to customize the document template embedded with a large amount of structured data, so that the document template can meet the personalized setting of the user, the user can conveniently generate personalized documents on the basis of the customized document template, and the generation efficiency of the personalized documents of the user is further improved. And acquiring a document generation instruction sent by a user aiming at the document template, responding to the document generation instruction, and selecting and processing target structured data corresponding to the control to obtain a target document comprising at least one target structured data. The control is called to generate a document template through the template setting instruction of the user, and the document meeting the user expectations is automatically generated by adopting the document template according to the document generating instruction of the user, so that the threshold of personalized document generation by the user is reduced while multiplexing of the control and repeated work of staff are realized, and the generation efficiency of personalized document of the user is improved.
The embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are adapted to be loaded by a processor and executed by the processor to perform the document template generating method according to the embodiment shown in fig. 1 to fig. 5, and the specific execution process may refer to the specific description of the embodiment shown in fig. 1 to fig. 5, which is not repeated herein.
The application further provides a computer program product, where at least one instruction is stored, where the at least one instruction is loaded by the processor and executed by the processor to perform the document template generating method according to the embodiment shown in fig. 1 to fig. 5, and the specific execution process may refer to the specific description of the embodiment shown in fig. 1 to fig. 5, which is not repeated herein.
Referring to fig. 7, a schematic structural diagram of an electronic device is provided in an embodiment of the present application. As shown in fig. 7, the electronic device 500 may include: at least one processor 501, at least one network interface 504, a user interface 503, a memory 505, at least one communication bus 502.
Wherein a communication bus 502 is used to enable connected communications between these components.
The user interface 503 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 503 may further include a standard wired interface and a standard wireless interface.
The network interface 504 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the processor 501 may include one or more processing cores. The processor 501 connects various portions of the overall server 500 using various interfaces and lines to perform various functions of the server 500 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 505, and invoking data stored in the memory 505. Alternatively, the processor 501 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 501 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 501 and may be implemented by a single chip.
The Memory 505 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 505 comprises a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 505 may be used to store instructions, programs, code sets, or instruction sets. The memory 505 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described various method embodiments, etc.; the storage data area may store data or the like involved in the above respective method embodiments. The memory 505 may also optionally be at least one storage device located remotely from the processor 501. As shown in FIG. 7, an operating system, a network communication module, a user interface module, and a document template generation application may be included in memory 505, which is one type of computer storage medium.
In the electronic device 500 shown in fig. 7, the user interface 503 is mainly used for providing an input interface for a user, and acquiring data input by the user; and the processor 501 may be configured to invoke the document template generation application program stored in the memory 505 and specifically perform the following operations:
Generating a document template comprising at least one control based on a template setting instruction sent by a user;
acquiring a document generation instruction sent by the user aiming at the document template;
and responding to the document generation instruction, and selecting the target structured data corresponding to the control to obtain the target document comprising at least one target structured data.
In one embodiment, the processor 501, when executing a template setting instruction sent by a user to generate a document template including at least one control, specifically performs the following operations:
acquiring a template setting instruction carrying at least one control attribute information sent by a user;
responding to the template setting instruction, setting an initial document template comprising at least one control, wherein the control corresponds to the control attribute information one by one;
and carrying out association processing on the control and target structured data in a plurality of preset structured data according to control attribute information corresponding to the control on the initial document template to obtain a document template corresponding to the initial document template.
In one embodiment, before executing the template setting instruction that is sent by the obtaining user and carries at least one control attribute information, the processor 501 further performs the following operations:
Acquiring initial data corresponding to each data system in a plurality of data systems;
and carrying out structuring processing on the initial data to obtain a plurality of structured data corresponding to the initial data, wherein the plurality of structured data have association relations or hierarchical relations.
In one embodiment, when the processor 501 performs the structuring process on the initial data to obtain a plurality of structured data corresponding to the initial data, the following operations are specifically performed:
if the initial data is in a text form, performing text segmentation processing on the initial data to obtain a plurality of text paragraphs;
and taking the text paragraph as the structured data corresponding to the initial data.
In one embodiment, when executing the association processing of the control and the target structured data in the preset plurality of structured data according to the control attribute information corresponding to the control on the initial document template, the processor 501 specifically executes the following operations to obtain a document template corresponding to the initial document template:
determining target structured data corresponding to the control in a plurality of preset structured data according to control attribute information corresponding to the control on the initial document template;
And carrying out association processing on the control and the target structured data corresponding to the control to obtain a document template corresponding to the initial document template.
In one embodiment, when performing association processing on the control and the target structured data corresponding to the control to obtain the document template corresponding to the initial document template, the processor 501 specifically performs the following operations:
packaging the target structured data corresponding to the control to obtain packaged data;
acquiring a packaging address corresponding to the packaging data;
and carrying out association processing on the encapsulation address and the control to obtain a document template corresponding to the initial document.
In one embodiment, the template setting instruction further carries document attribute information;
the processor 501, when executing the setting of the initial document template including at least one control in response to the template setting instruction, specifically performs the following operations:
and setting an initial document template which comprises at least one control and corresponds to the document attribute information in response to the template setting instruction.
In one embodiment, when executing the response and the document generation instruction, the processor 501 performs selection processing on the target structured data corresponding to the control to obtain a target document including at least one target structured data, specifically performs the following operations:
Acquiring a selection instruction in the document generation instruction;
determining at least one target structured data corresponding to the selection instruction in the target structured data corresponding to the control;
and generating a target document based on at least one target structured data corresponding to the selection instruction.
According to the method and the device, the initial data corresponding to each data system in the plurality of data systems are acquired, the initial data are subjected to structuring processing to obtain the plurality of structured data corresponding to the initial data, association relations or hierarchical relations exist among the plurality of structured data, the initial data corresponding to the plurality of data systems respectively are acquired, the problem of data island among the plurality of data systems can be solved, the content of source data embedded in a document template is enriched, the plurality of target structured data corresponding to each control also have hierarchical relations, and a user can better select the plurality of target structured data according to the control, so that the layering sense of a target document is enriched. If the initial data is in a text form, performing text segmentation processing on the initial data to obtain a plurality of text paragraphs, and taking the text paragraphs as structured data corresponding to the initial data. The original data in the form of text as the source data may be divided in a finer manner, for example, each line or each piece of text data in the original data is used as the structured data corresponding to the original data, so that the user may refer to each line or each piece of text data included in the original data when editing the target document, and the content of a plurality of structured data constituting the target document is greatly enriched. The method comprises the steps of obtaining a template setting instruction which is sent by a user and carries at least one control attribute information, setting an initial document template comprising at least one control in response to the template setting instruction, wherein the control corresponds to the control attribute information one by one, carrying out association processing on the control and target structured data in a plurality of preset structured data according to the control attribute information corresponding to the control on the initial document template to obtain a document template corresponding to the initial document template, determining the control which can meet the user requirement according to the control attribute information, associating the structured data corresponding to the control to generate the document template, and enabling the user to customize the document template embedded with a large amount of structured data, so that the document template can meet the personalized setting of the user, the user can conveniently generate personalized documents on the basis of the customized document template, and the generation efficiency of the personalized documents of the user is further improved. And acquiring a document generation instruction sent by a user aiming at the document template, responding to the document generation instruction, and selecting and processing target structured data corresponding to the control to obtain a target document comprising at least one target structured data. The control is called to generate a document template through the template setting instruction of the user, and the document meeting the user expectations is automatically generated by adopting the document template according to the document generating instruction of the user, so that the threshold of personalized document generation by the user is reduced while multiplexing of the control and repeated work of staff are realized, and the generation efficiency of personalized document of the user is improved. Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, or the like.
The foregoing disclosure is only illustrative of the preferred embodiments of the present application and is not intended to limit the scope of the claims herein, as the equivalent of the claims herein shall be construed to fall within the scope of the claims herein.

Claims (10)

1. A document template generation method, the method comprising:
generating a document template comprising at least one control based on a template setting instruction sent by a user;
acquiring a document generation instruction sent by the user aiming at the document template;
and responding to the document generation instruction, and selecting the target structured data corresponding to the control to obtain the target document comprising at least one target structured data.
2. The method of claim 1, wherein generating a document template including at least one control based on the template setting instruction sent by the user comprises:
acquiring a template setting instruction carrying at least one control attribute information sent by a user;
responding to the template setting instruction, setting an initial document template comprising at least one control, wherein the control corresponds to the control attribute information one by one;
and carrying out association processing on the control and target structured data in a plurality of preset structured data according to control attribute information corresponding to the control on the initial document template to obtain a document template corresponding to the initial document template.
3. The method for generating a document template according to claim 2, wherein before the step of obtaining the template setting instruction carrying at least one control attribute information sent by the user, the method further comprises:
acquiring initial data corresponding to each data system in a plurality of data systems;
and carrying out structuring processing on the initial data to obtain a plurality of structured data corresponding to the initial data, wherein the plurality of structured data have association relations or hierarchical relations.
4. The method of claim 3, wherein the structuring the initial data to obtain a plurality of structured data corresponding to the initial data comprises:
if the initial data is in a text form, performing text segmentation processing on the initial data to obtain a plurality of text paragraphs;
and taking the text paragraph as the structured data corresponding to the initial data.
5. The method for generating a document template according to claim 2, wherein the associating the control with target structured data in a plurality of preset structured data according to control attribute information corresponding to the control on the initial document template to obtain the document template corresponding to the initial document template includes:
Determining target structured data corresponding to the control in a plurality of preset structured data according to control attribute information corresponding to the control on the initial document template;
and carrying out association processing on the control and the target structured data corresponding to the control to obtain a document template corresponding to the initial document template.
6. The method of claim 5, wherein the associating the control with the target structured data corresponding to the control to obtain the document template corresponding to the initial document template comprises:
packaging the target structured data corresponding to the control to obtain packaged data;
acquiring a packaging address corresponding to the packaging data;
and carrying out association processing on the encapsulation address and the control to obtain a document template corresponding to the initial document.
7. The document template generating method according to claim 2, wherein the template setting instruction further carries document attribute information;
the setting of the initial document template comprising at least one control in response to the template setting instruction comprises the following steps:
and setting an initial document template which comprises at least one control and corresponds to the document attribute information in response to the template setting instruction.
8. The method according to claim 1, wherein the responding to the document generation instruction and selecting the target structured data corresponding to the control to obtain the target document including at least one target structured data include:
acquiring a selection instruction in the document generation instruction;
determining at least one target structured data corresponding to the selection instruction in the target structured data corresponding to the control;
and generating a target document based on at least one target structured data corresponding to the selection instruction.
9. A document template generating apparatus, the apparatus comprising:
the document template generation module is used for generating a document template comprising at least one control based on a template setting instruction sent by a user;
the generation instruction acquisition module is used for acquiring a document generation instruction sent by the user aiming at the document template;
and the target document generation module is used for responding to the document generation instruction and carrying out selection processing on the target structured data corresponding to the control to obtain a target document comprising at least one target structured data.
10. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1-8.
CN202311685698.0A 2023-12-08 2023-12-08 Document template generation method and device, storage medium and electronic equipment Pending CN117592452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311685698.0A CN117592452A (en) 2023-12-08 2023-12-08 Document template generation method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311685698.0A CN117592452A (en) 2023-12-08 2023-12-08 Document template generation method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117592452A true CN117592452A (en) 2024-02-23

Family

ID=89911472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311685698.0A Pending CN117592452A (en) 2023-12-08 2023-12-08 Document template generation method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117592452A (en)

Similar Documents

Publication Publication Date Title
US20210333984A1 (en) Method and apparatus for generating customized visualization component
CN109684047A (en) Event-handling method, device, equipment and computer storage medium
CN110930186B (en) System, method, device, equipment and storage medium for task display
CN109377321B (en) Multi-channel customized credit card intelligent application system
US11829667B2 (en) Creation of component templates and removal of dead content therefrom
CN113157947A (en) Knowledge graph construction method, tool, device and server
CN112925520A (en) Method and device for building visual page and computer equipment
CN108304368A (en) The kind identification method and device and storage medium and processor of text message
CN110798567A (en) Short message classification display method and device, storage medium and electronic equipment
CN112199373A (en) Form development method and system
WO2024099457A1 (en) Information recommendation method and apparatus, and storage medium and electronic device
CN113741860A (en) Data processing method and device based on RPA robot
CN110232726A (en) The generation method and device of intention material
CN111914072A (en) Information interaction method, equipment and device
CN117785918A (en) Data processing method, device, storage medium, program product and electronic equipment
CN113626624A (en) Resource identification method and related device
CN114661811A (en) Data display method and device, electronic equipment and storage medium
CN110765610B (en) PDM integration method, PDM integration device, computer equipment and storage medium
KR20180042726A (en) A method for analyzing big data based on cloud service and an apparatus therefore
CN116823537A (en) Insurance report processing method and device, storage medium and electronic equipment
CN110297976A (en) Recommended method, device, equipment and readable storage medium storing program for executing based on cloud retrieval
CN117592452A (en) Document template generation method and device, storage medium and electronic equipment
CN109614603A (en) Method and apparatus for generating information
CN115422202A (en) Service model generation method, service data query method, device and equipment
KR100603580B1 (en) Method for realizing user interface of mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination