A system and method for generating engineering documents

By designing the engineering document generation system, using flexible templates and semantic analysis rules, the existing technical report generation system cannot adapt to different scenarios and high technical thresholds, and achieve efficient and flexible technical report generation.

CN119312787BActive Publication Date: 2025-04-29POWERCHINA ZHONGNAN ENG
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411865624.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-04-29
Estimated Expiration
2044-12-18

AI Technical Summary

Technical Problem

The intelligent generation system of existing engineering technical reports has a single description of the generated document and a rigid generation method, which cannot adapt to the differentiated needs of different scenarios. The template compilation requires database knowledge, high technical threshold, and frequent database queries lead to low generation efficiency.

Method used

Design an engineering document generation system, including front-end web pages, browsers, servers and system databases. Through flexible template placeholders and semantic parsing rules, the threshold for template compilation is reduced, database queries are reduced, and intelligent generation efficiency is improved.

Benefits of technology

It has realized the intelligent generation of technical reports based on the calculation service and project type, which has lowered the technical threshold for the preparation of technical reports, improved the generation efficiency and quality, and adapted to the differentiated needs of engineering and technical reports.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119312787B_ABST
    Figure CN119312787B_ABST
Patent Text Reader

Abstract

The present invention provides a system and method for generating engineering documents. The system includes a front-end web page, a browser, a server and a system database. The system uses a flexible technical report template to replace an existing fixed template. Different templates can be selected according to computing services and engineering types to intelligently generate technical reports, so as to better adapt to the unique characteristics of the engineering. Semantic recognition technology is used to propose semantic parsing rules for flexible template placeholders, and a placeholder generation plug-in is constructed accordingly. Placeholders can be flexibly generated without code and computer knowledge, and report templates can be created and modified. All data tables associated with the computing scheme are uniformly stored in the browser cache, and the access path of the data in the browser cache is obtained by semantically parsing the placeholders, so that the time consumption of database queries can be reduced and the efficiency of intelligent generation can be improved. The system for generating engineering documents provided by the present invention has better adaptability, flexibility and scalability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a system and method for generating engineering documents, and belongs to the field of engineering planning and design. Background Art

[0002] For a long time, the planning and design results represented by pumped storage, conventional hydropower and other businesses have mainly been in the form of technical reports in the form of documents. Under the current production mode, designers need to use a stand-alone version of the calculation program to complete the calculation, and then manually transcribe the calculation data and results into an electronic document, and supplement the corresponding text description. The calculation tools of the current production mode are not unified and standardized, the core calculation data flow is difficult, the data resources are not efficiently used, the preparation of technical reports is time-consuming and laborious, and the quality is uneven. It is difficult to adapt to the new characteristics of "high requirements, high efficiency, and high quality" presented by energy and power planning and design work under the new situation. It is urgent to change the production mode and study the key technologies to improve the efficiency and quality of technical report preparation.

[0003] At present, the intelligent generation of engineering technical reports in actual production practice usually involves inputting data into a preset report template. The data input source and data output form in the entire generation process are solidified in the program by the preset template, resulting in a single description of the generated document and a rigid generation method, which cannot adapt to the differentiated needs of technical report compilation in different scenarios. In addition, the control of data variables in the preset template mainly relies on the structured data query statement SQL to call the database, which results in the need for database knowledge background and high technical threshold for template compilers on the one hand, and the frequent query of the database on the other hand results in low program execution efficiency and slow technical report generation. Therefore, it is urgent to propose a new intelligent generation system and method for engineering technical reports to effectively solve the above problems. Summary of the invention

[0004] The present invention aims to provide a system for generating engineering documents, which can adapt to the differentiated needs of technical report preparation in different scenarios, lower the technical threshold of template preparation, reduce the time consumption of database query, and improve the efficiency of intelligent generation.

[0005] In order to achieve the above-mentioned purpose, the technical scheme adopted by the present invention is: a system for generating engineering documents, the system includes a front-end web page, a browser, a server, and a system database; the front-end web page is used for data interaction in the intelligent generation process of engineering documents; the data interaction includes parameter input of the calculation scheme, generation configuration of the template, display of the calculation results and generation and storage of the engineering documents; the browser is used to cache data tables related to the calculation scheme; the data tables include parameter tables and result tables, the parameter tables are used to store the input parameters of the calculation scheme, and the result tables are used to store the calculation results; the server is used for storage and call of calculation services; the calculation service is generated by conversion of a stand-alone calculation program, and is used to convert the input and output data of the stand-alone calculation program into data of the parameter table and data of the result table that can be classified and identified; the system database is constructed according to the input parameters of the calculation scheme, the calculation results and the content required for the engineering document, and is used for storage and call of the data table, the template and the intelligently generated engineering document;

[0006] The computing scheme is created by the user according to the project requirements and the required computing service; the computing result is generated by the server calling the computing service according to the parameter input of the computing scheme; the generation configuration of the template includes the generation of placeholders and the storage configuration of the template; the placeholders are generated by the plug-in converting the input of parameter options according to the semantic parsing rules; the plug-in is constructed by the browser according to the semantic parsing rules and embedded in the front-end web page for the generation of the placeholders; the parameter options include the computing service, data type, data table type, data table name, condition field name, query field name and position; the data type is the type of data stored in the data table; the data The table types are parameter table and result table; the condition field is the column in the data table where the content that needs to be intelligently generated in the engineering document is located; the query field is the row in the data table where the content that needs to be intelligently generated in the engineering document is located; the position is used to locate the specific column or row in the data table where the content that needs to be intelligently generated in the engineering document is located; the semantic parsing rule: use character expression to convert the content that needs to be intelligently generated in the engineering document into corresponding query conditions, and use delimiters to separate each query condition according to the expression style in the engineering document; the query condition includes the computing service, data type, data table type, data table name, condition field name, query field name and position.

[0007] The engineering document generation system provided by the present invention utilizes flexible technical report templates to replace existing fixed templates, and can select different templates to intelligently generate technical reports according to computing services and engineering types, so as to better adapt to the unique characteristics of engineering. By utilizing semantic recognition technology, semantic parsing rules for flexible template placeholders are proposed, and a placeholder generation plug-in is constructed accordingly, so that placeholders can be flexibly generated, and report templates can be created and modified without the need for code and computer knowledge. By uniformly storing all data tables associated with computing solutions in the browser cache, the access path of the required data in the data table in the browser cache is obtained through semantic parsing of placeholders, which can reduce the time consumption of database queries and improve the efficiency of intelligent generation.

[0008] According to the embodiments of the present invention, the present invention can be further optimized. The following is the technical solution formed after optimization:

[0009] In one of the preferred embodiments, the computing service is generated by encapsulating the stand-alone computing program.

[0010] The computing service can also be realized by file conversion, and is generated by encapsulating the stand-alone computing program, which can simplify the program execution steps, is more conducive to the unification of data formats, fast computing speed, and reduced reading and writing files. Microservice technology is usually used to encapsulate the stand-alone computing program into the computing service. The stand-alone computing program is an existing program.

[0011] Based on the same concept, the present invention also provides a method for generating an engineering document, which is based on the above-mentioned system for generating an engineering document and specifically includes:

[0012] Step 1: Create the calculation plan on the front-end webpage and complete the parameter input of the calculation plan;

[0013] Step 2: according to the input parameters of the calculation scheme, calling the calculation service, generating the calculation result, displaying it on the front-end webpage, and storing it in the data table;

[0014] Step 3: Complete the input of the parameter options corresponding to the content that needs to be intelligently generated in the engineering document on the front-end webpage, generate the corresponding placeholders, replace the content that needs to be intelligently generated in the engineering document, and generate the template;

[0015] Step 4: Classify the templates according to the computing services and project names corresponding to the templates, and store them in the system database; the project name is the project name associated with the computing solution;

[0016] Step 5: input the name of the calculation scheme and the name of the template in the front-end webpage, query the system database, and store all the data tables involved in the calculation scheme into the browser cache;

[0017] Step 6: Search the template character by character from the front to the back, and intercept the string between the start string and the end string as the string to be parsed; parse the string to be parsed according to the semantic parsing rule, and if the string to be parsed meets the semantic parsing rule, determine it as the placeholder; decompose the placeholder into the query condition through semantic parsing, find the corresponding data in the data table cached by the browser, and replace the placeholder;

[0018] Step 7: Complete the intelligent generation of the engineering document, output it to the front-end web page in a file format, and store it in the system database.

[0019] The method for generating engineering documents provided by the present invention utilizes big data technology to centrally store various types of computing data in the form of standardized database tables to obtain data that can be classified and identified; it realizes data calls across computing services, across computing solutions, and across computing users, based on which users can flexibly combine various computing solutions and data to intelligently generate engineering technical reports, and the generated reports are richer, more flexible, and more complete.

[0020] In one preferred embodiment, step 6 specifically includes:

[0021] S6.1. When the starting string and the ending string are found, the string between the starting string and the ending string is intercepted as the string to be parsed, and the process proceeds to S6.2.

[0022] S6.2, according to the semantic parsing rule, parse the string to be parsed: if the parsing fails, the string to be parsed is not a placeholder, and the search continues from the end string, and the process goes to S6.3; if the parsing succeeds, the string to be parsed is the placeholder, and the placeholder is disassembled into the query condition through semantic parsing, and the data corresponding to the data table cached by the browser in step 5 is found, and the placeholder is replaced, and the process goes to S6.3;

[0023] S6.3, determine whether the template search is complete, if so, go to step 7, if not, continue to search for the template character by character from the front to the back, and go to S6.1.

[0024] The template contains multiple placeholders, all of which need to be accurately found, parsed and replaced.

[0025] Compared with the prior art, the beneficial effects of the present invention are as follows: the generation system of the engineering documents provided by the present invention, on the one hand, utilizes flexibly set template placeholders, placeholder semantic parsing rules and placeholder generation plug-ins to lower the threshold for document template compilation, and ordinary users can flexibly expand the types of intelligently generated technical reports; on the other hand, the calculation data, document templates and the results of intelligently generated technical reports are decoupled, and users can flexibly select the calculation data and document templates that participate in the intelligent generation of engineering technical reports, and generate corresponding technical reports accordingly. Especially in the field of energy and power planning and design, technical reports need to be flexibly adjusted according to application scenarios due to the uniqueness and uncertainty of the project. The generation system and method of engineering documents provided by the present invention have better adaptability, flexibility and scalability, and effectively solve the problems of difficult data flow, low standardization and intelligence, and low production efficiency in the process of compiling engineering technical reports. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 is a data analysis flow chart of a method for generating engineering documents according to an embodiment of the present invention;

[0027] Figure 2 is an example diagram of semantic parsing rules according to an embodiment of the present invention;

[0028] Figure 3 is a placeholder example diagram of an embodiment of the present invention;

[0029] Figure 4 The figure is a flowchart of a method for generating engineering documents according to an embodiment of the present invention. DETAILED DESCRIPTION

[0030] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present invention can be combined with each other without conflict.

[0031] Example 1

[0032] The present embodiment provides a system for generating engineering documents, the system comprising a front-end web page, a browser, a server, and a system database; the front-end web page is used for data interaction in the intelligent generation process of engineering documents; the data interaction includes parameter input of a calculation scheme, generation configuration of a template, display of calculation results, and generation and storage of the engineering documents; the browser is used to cache data tables related to the calculation scheme; the data tables include a parameter table and a result table, the parameter table is used to store the input parameters of the calculation scheme, and the result table is used to store the calculation results; the server is used for storage and call of calculation services; the calculation service is generated by conversion of a stand-alone calculation program, and is used to convert the input and output data of the stand-alone calculation program into data of the parameter table and data of the result table that can be classified and identified; the system database is constructed according to the input parameters of the calculation scheme, the calculation results, and the content required for the engineering document, and is used for storage and call of the data table, the template, and the intelligently generated engineering document;

[0033] The calculation scheme is created by the user according to the project requirements and the required calculation service; the calculation result is generated by the server calling the calculation service according to the parameter input of the calculation scheme; the generation configuration of the template includes the generation of placeholders and the storage configuration of the template; the placeholder is generated by the plug-in converting the input of parameter options according to the semantic parsing rules; the plug-in is constructed by the browser according to the semantic parsing rules and embedded in the front-end web page for the generation of the placeholder; the parameter options include the calculation service, data type, data table type, data table name, condition field name, query field name and position, which are used to describe the expression style of the content that needs to be intelligently generated in the engineering document and the access path in the data table; the data type is the type of data stored in the data table; the data table type is a parameter table and a result table; the condition field is the column in the data table where the content that needs to be intelligently generated in the engineering document is located; the query field is the row in the data table where the content that needs to be intelligently generated in the engineering document is located; the position is used to locate the specific column or row in the data table where the content that needs to be intelligently generated in the engineering document is located; the semantic parsing rule: use character expressions to convert the content that needs to be intelligently generated in the engineering document into corresponding query conditions, and use separators to separate the query conditions according to the expression style in the engineering document; the query conditions include the computing service, data type, data table type, data table name, condition field name, query field name and position; such as Figure 2 and Figure 3 shown.

[0034] Based on the engineering document generation system provided in this embodiment 1, this embodiment 1 also provides an engineering document generation method, which is highly flexible and suitable for intelligent generation of engineering technical reports, and includes the following steps:

[0035] A1: Build a front-end web page for data interaction such as parameter input, calculation service call, template configuration, calculation result display, and intelligent generation of engineering technical reports;

[0036] A2: Construct a multi-computing cloud service center. In this embodiment 1, the energy power planning and design related water power planning and calculation program represented by the pumped storage business is encapsulated as a computing service through microservice technology [Literature: Chen Zhilan. Cross-platform software integration analysis under cloud computing environment [J]. Electronic Technology, 2024, 53(06): 184-185.], deployed on the cloud server, and constructs a multi-computing cloud service center; the calculation program is an existing stand-alone calculation program, and in this embodiment 1, its input and output are converted into the data of the parameter table and the data of the result table that can be classified and identified, so that it can adapt to the B / S (browser / server) platform;

[0037] A3: According to the input parameters in A1, the calculation service released in A2 is called to generate corresponding calculation results. A system database is designed according to the input parameters, the calculation results and the contents of the engineering and technical report. The system database is a business database built using SQL server. The system database stores the calculation results for calling relevant data tables when the engineering and technical report is intelligently generated, such as a statistical table of flood regulation calculation results, a table of backwater surface line results, a pumped storage water level parameter table, a silt deposition calculation parameter table, etc.

[0038] The system database constructed in this embodiment 1 is a business database; the data calculation and analysis in the traditional energy and power planning and design industry focuses on functions, and no data management is performed, nor is a business database established.

[0039] A4: Specify the semantic parsing rules for flexible template placeholders, and use different characters to express the data table where the replacement content is located, the condition field name, the query field name, the data type, and the expression style of the data in the report. For details, see Figure 2 , use "_", "$" delimiters for spacing, see Figure 3 ; The condition field name is used to locate the column where the content is located in the data table, and the query field name is used to locate the row where the content is located in the data table;

[0040] The flexible template placeholder of this embodiment 1 is a string of characters located at a specific position of the template, which is used to describe the data access path and style called here. The flexible template placeholder of this embodiment 1 is exemplified as follows: Figure 3The data access path described by the placeholder does not point to a specific data table of the system database, but stores the data table associated with the calculation solution in the front-end web page cache at one time, and then is accessed and called by the flexible template placeholder;

[0041] A5: Build a plug-in for generating flexible template placeholders, converting the data type, calculation type (i.e., calculation service), condition field name, query field name, location, data format and other concrete parameters (i.e., the data access path mentioned in A4) input by the user into flexible template placeholders. Users can independently create templates without having to understand the placeholder semantic parsing rules and SQL statements. The location is used to specify the specific number of rows or columns.

[0042] The step of generating a flexible template placeholder by the plug-in specifically includes:

[0043] B1. The plug-in provides multiple parameters for the user to select (the user selects the parameter according to the location of the data), and the parameter options are set by the data table structure of the system database;

[0044] B2. Generate placeholders for the parameters selected by the user using pot-tl technology;

[0045] A6: Use the plug-in in A5 to generate placeholders. Take the completed technical report as a sample and replace the content description that needs to be intelligently generated with the placeholders to create a flexible template.

[0046] A7: Classify and manage the flexible templates created in A6 according to computing services and project names, and store them in the system database;

[0047] A8: Enter the calculation scheme and flexible templates for intelligent generation of engineering technical reports in the front-end webpage;

[0048] A9: Query the system database according to the calculation plan and project name, and store all data tables involved in the calculation plan into the browser cache at one time;

[0049] A10: Search the content of the flexible template document character by character from the front to the back. If the string "{{" is found, continue to read the subsequent characters until the string "}}", intercept the string, and perform semantic analysis according to the semantic analysis rules in A4.

[0050] If the parsing is successful, the intercepted string is determined to be a placeholder, the placeholder is semantically parsed, and the placeholder is decomposed into query conditions such as computing service, data type, data table type, data table name, condition field name, query field name, etc., and corresponding data is found in the data table cached by the browser to replace the placeholder in the flexible template; and it is determined whether the placeholder is the last placeholder in the flexible template. If not, the search continues from the "}}" string. If "yes", the process goes to A11;

[0051] If the parsing fails, the intercepted string is determined to be a non-placeholder, and the search starts again from the "}}" string until the flexible template document content search ends;

[0052] If the next "{{" string is found directly after the "{{" string, the search will restart from the next "{{" string;

[0053] A11: Complete the intelligent generation of engineering technical reports, output them to the web front end in Word format, and store them in the system database.

[0054] The method for generating engineering documents provided in this embodiment 1 integrates computing cloud services, big data, semantic recognition and other technologies. The method realizes computing standardization, data management standardization and intelligent technical report preparation in the field of engineering planning and design.

[0055] The method for generating engineering documents provided in this embodiment 1 can read and analyze the calculation process data to assist professional designers in generating technical reports. The method provides a template placeholder that can associate the system database, browser cache data and report template, formulates the semantic parsing rules of the placeholder, expresses the data table, row, column, data type where the content is replaced and the expression style of the data in the engineering technical report through different characters in the placeholder, and encapsulates the semantic parsing rules in the form of a web page plug-in.

[0056] Existing document intelligent generation methods are mainly implemented by replacing the placeholders in the document template with specified data, relying on a fixed "placeholder-data" association relationship, which is set at the beginning of development, and users cannot expand and adjust the generated document content according to the application scenario. This embodiment 1 provides flexible template placeholders and semantic parsing rules. Users do not need to master computer development knowledge. Through the plug-in, they only need to describe the data source to generate placeholders, establish an association relationship between the report template and the data, and realize code-free maintenance and addition of templates.

[0057] The intelligent generation of engineering technical reports in this embodiment 1 is no longer limited to fixed calculation programs, document templates and current users. Through big data technology, data from different calculation schemes, different calculation services and different calculation users can be called, and flexibly configured for different application scenarios to generate differentiated, more complete technical reports that reflect engineering characteristics.

[0058] Example 2

[0059] According to the method for generating engineering documents provided in Example 1, this Example 2 provides an example of intelligent generation steps for a preliminary feasibility study report of a pumped storage power station in a certain region, and the specific steps include:

[0060] C1: Encapsulate seven computing programs, including pumped storage flood control, return water calculation, economic comparison, initial water storage, capacity loss, power loss, and power and electricity balance, into computing services through microservice technology, deploy them on cloud servers, and publish corresponding cloud computing services;

[0061] C2: Input the input parameters of a series of calculation schemes such as reservoir capacity curve, discharge curve, design flood, construction schedule, etc. in the front-end webpage. Some of the input parameters are shown in Table 1;

[0062] C3: Based on the input parameters of the calculation scheme in C2, the cloud computing service released by C1 is called to generate the corresponding calculation results, which are stored in the system database according to the calculation service classification, including the statistical table of flood regulation calculation results, the table of backwater surface line results, the table of pumped storage water level parameters, the table of initial water storage capacity results, etc.

[0063] C4: Design semantic parsing rules for flexible template placeholders, and use different characters to express data access paths and content styles. The access path consists of elements such as "computing service, data type, data table type, data table name, condition field, and query field";

[0064] C5: Based on the placeholder semantic parsing rules, a placeholder generation plug-in is constructed. The user enters "calculation type, data type, data table type, data table name, condition field and query field" to describe the access path of the data in the browser cache; the flexible template placeholders generated and adopted are shown in Table 2-1 and Table 2-2, and the results of the intelligent generation of engineering technical reports are shown in Table 3;

[0065]

[0066] C6: Use the placeholders generated by the plug-in in C5 to replace the content that needs to be intelligently generated in the compiled technical report, complete the compilation of the current type of flexible template, and store it under the name "Feasibility Study (Project Scale Report)";

[0067] C7: The flexible templates created in C6 are classified and managed according to calculation type and project name, and stored in the system database. The calculation type set is the seven calculation services in C1, namely "pumped storage flood control, return water calculation, economic comparison, initial water storage, capacity loss, power loss, and power and electricity balance". The project name is the project name associated with the calculation scheme added in Table 1.

[0068] C8: Enter the calculation scheme and flexible template involved in the intelligent generation of engineering technical reports in the front-end webpage, where the calculation scheme type is "pumped storage flood control, return water calculation, economic comparison, initial water storage, capacity loss, power loss, power and electricity balance", a total of 7 calculation services, and the flexible template is "feasibility study (project scale report)". The intelligent generation system of engineering technical reports provided in this embodiment 2 can realize data calls across calculation services (i.e., "calculation type" in the figure), across calculation schemes, and across calculation users; different users can create different calculation schemes (for example, three calculation schemes for large, medium, and small floods for flood calculation);

[0069]

[0070] C9: Query the system database according to the calculation scheme and project name, and store all the data tables involved in the calculation scheme to the browser cache at one time, including the statistical table of flood regulation calculation results, the table of backwater surface line results, the table of pumped storage water level parameters, the table of initial water storage capacity results, etc.

[0071] C10: Search the "Feasibility Study (Project Scale Report)" flexible template character by character from the front to the back, intercept the character string between the "{{" string and the "}}" string, and parse it according to the semantic parsing rules in C4, determine the character string that meets the semantic parsing rules as a flexible template placeholder, semantically parse the placeholder, and disassemble it into query conditions such as calculation type, data type, data table type, data table name, condition field name, query field name, etc., find the corresponding data in the browser cache to replace the placeholder in the flexible template.

[0072] C11: Intelligently generate the technical report "Preliminary Feasibility Study Report of Pumped Storage Power Station in xx County (Project Scale Chapter)", display it in the front end of the web page in online Word format, and store it in the system database.

[0073] The contents explained in the above embodiments should be understood as these embodiments are only used to more clearly illustrate the present invention, and are not used to limit the scope of the present invention. After reading the present invention, various equivalent forms of modifications to the embodiments made by those skilled in the art fall within the scope defined by the claims attached to the present invention.

Claims

1. A system for generating engineering documents, characterized in that: The system includes a front-end web page, a browser, a server, and a system database; the front-end web page is used for data interaction in the intelligent generation process of engineering documents; the data interaction includes parameter input of the calculation scheme, generation configuration of the template, display of the calculation results, and generation and storage of the engineering documents; The browser is used to cache data tables related to the computing solution; The data table includes a parameter table and a result table, wherein the parameter table is used to store input parameters of the calculation scheme, and the result table is used to store the calculation results; The server is used for storage and calling of computing services; The computing service is generated by converting a stand-alone computing program, and is used to convert the input and output data of the stand-alone computing program into the data of the parameter table and the data of the result table that can be classified and identified; The system database is constructed according to the input parameters of the calculation scheme, the calculation results and the content required by the engineering document, and is used for storing and calling the data table, the template and the intelligently generated engineering document; The calculation scheme is created by the user according to the project requirements and the required calculation service; the calculation result is generated by the server calling the calculation service according to the parameter input of the calculation scheme; the generation configuration of the template includes the generation of placeholders and the storage configuration of the template; the placeholder is generated by the plug-in converting the input of parameter options according to the semantic parsing rules; the plug-in is constructed by the browser according to the semantic parsing rules and embedded in the front-end web page for the generation of the placeholder; the parameter options include the calculation service, data type, data table type, data table name, condition field name, query field name and position, which are used to describe the expression style of the content that needs to be intelligently generated in the engineering document and the access path in the data table; the data type is the type of data stored in the data table; the data table types are parameter table and result table; the condition field is the column in the data table where the content that needs to be intelligently generated in the engineering document is located; the query field is the row in the data table where the content that needs to be intelligently generated in the engineering document is located; the position is used to locate the specific column or row in the data table where the content that needs to be intelligently generated in the engineering document is located; the semantic parsing rule: use character expression to convert the content that needs to be intelligently generated in the engineering document into corresponding query conditions, and use separators to separate each query condition according to the expression style in the engineering document; the query condition includes the computing service, data type, data table type, data table name, condition field name, query field name and position.

2. The system for generating engineering documents according to claim 1, characterized in that: The computing service is generated by encapsulating the stand-alone computing program.

3. A method for generating engineering documents, characterized in that: The method is based on the engineering document generation system according to claim 1, and specifically comprises: Step 1: Create the calculation plan on the front-end webpage and complete the parameter input of the calculation plan; Step 2: according to the input parameters of the calculation scheme, calling the calculation service, generating the calculation result, displaying it on the front-end webpage, and storing it in the data table; Step 3: Complete the input of the parameter options corresponding to the content that needs to be intelligently generated in the engineering document on the front-end webpage, generate the corresponding placeholders, replace the content that needs to be intelligently generated in the engineering document, and generate the template; Step 4: Classify the templates according to the computing services and project names corresponding to the templates, and store them in the system database; the project name is the project name associated with the computing solution; Step 5: input the name of the calculation scheme and the name of the template in the front-end webpage, query the system database, and store all the data tables involved in the calculation scheme into the browser cache; Step 6: Search the template character by character from the front to the back, and intercept the string between the start string and the end string as the string to be parsed; parse the string to be parsed according to the semantic parsing rule, and if the string to be parsed meets the semantic parsing rule, determine it as the placeholder; decompose the placeholder into the query condition through semantic parsing, find the corresponding data in the data table cached by the browser, and replace the placeholder; Step 7: Complete the intelligent generation of the engineering document, output it to the front-end web page in a file format, and store it in the system database.

4. The method for generating engineering documents according to claim 3, characterized in that: The step 6 specifically includes: S6.

1. When the starting string and the ending string are found, the string between the starting string and the ending string is intercepted as the string to be parsed, and the process proceeds to S6.

2. S6.2, according to the semantic parsing rule, parse the string to be parsed: if the parsing fails, the string to be parsed is not a placeholder, and the search continues from the end string, and the process goes to S6.3; if the parsing succeeds, the string to be parsed is the placeholder, and the placeholder is disassembled into the query condition through semantic parsing, and the data corresponding to the data table cached by the browser in step 5 is found, and the placeholder is replaced, and the process goes to S6.3; S6.3, determine whether the template search is complete, if so, go to step 7, if not, continue to search for the template character by character from the front to the back, and go to S6.1.

Citation Information

Patent Citations

  • Cloud service system for multi-model coupling calculation in water industry

    CN109784708A

  • Method and device for inserting placeholder and generating data mapping table, equipment and medium

    CN113822037A

  • Template systems for template-based document and report generation

    WO2023000012A1