CN115510838A - Template generation method and device, electronic equipment and storage medium - Google Patents

Template generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115510838A
CN115510838A CN202211242305.4A CN202211242305A CN115510838A CN 115510838 A CN115510838 A CN 115510838A CN 202211242305 A CN202211242305 A CN 202211242305A CN 115510838 A CN115510838 A CN 115510838A
Authority
CN
China
Prior art keywords
template
expression
expression content
content
information
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
CN202211242305.4A
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.)
Yunnan Power Grid Co Ltd
Original Assignee
Yunnan Power Grid 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 Yunnan Power Grid Co Ltd filed Critical Yunnan Power Grid Co Ltd
Priority to CN202211242305.4A priority Critical patent/CN115510838A/en
Publication of CN115510838A publication Critical patent/CN115510838A/en
Pending legal-status Critical Current

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/20Administration of product repair or maintenance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Tourism & Hospitality (AREA)
  • Strategic Management (AREA)
  • Computational Linguistics (AREA)
  • General Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Marketing (AREA)
  • Artificial Intelligence (AREA)
  • Water Supply & Treatment (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a template generation method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a template generating instruction, wherein the template generating instruction comprises a set of template parameters and parameter calling information; determining specific expression contents according to a set of template parameters, wherein one template parameter corresponds to one specific expression content; and generating a target template according to the expression content and the parameter calling information. The embodiment of the invention determines the expression through the template parameters, and further generates the target template by using the expression and the parameter calling information, thereby realizing the dynamic generation of the template, improving the flexibility of the template generation and improving the use experience of users.

Description

Template generation method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of template generation technologies, and in particular, to a template generation method and apparatus, an electronic device, and a storage medium.
Background
The operation, maintenance and management of the power transformation equipment are important guarantee for safety production, power transformation defect closed-loop information management and control are required to be regularly carried out by power grid enterprises, and it is important for an operation unit to provide a more complete and detailed defect analysis report.
At present, the traditional defect analysis report generation method is based on a fixed program to generate a report, the method cannot flexibly modify a template, when the user demand changes, the adjustment needs to be directly carried out from the program, and the adjustment consumes a large amount of manpower and material resource costs. Although dynamic change of data is considered, the method is low in flexibility, cannot realize dynamic adjustment of multi-type data, can only realize simple statistical data, and cannot meet processing and report generation under complex data. In summary, the existing report generation method also has the defects that data filling needs to be performed manually, dynamic data calling cannot be realized, expansibility and flexibility are poor, and dynamic requirements of enterprises are difficult to meet.
Disclosure of Invention
The invention provides a template generation method, a template generation device, electronic equipment and a storage medium, solves the problem of flexibility of a traditional report generation tool, and improves the use experience of a user.
In a first aspect, an embodiment of the present invention provides a template generation method, where the method includes: acquiring a template generating instruction, wherein the template generating instruction comprises a set of template parameters and parameter calling information; determining specific expression contents according to a set of template parameters, wherein one template parameter corresponds to one specific expression content; and generating a target template according to the expression content and the parameter calling information.
In a second aspect, an embodiment of the present invention further provides an apparatus for generating a template, where the apparatus includes: the instruction acquisition module is used for acquiring a template generation instruction, and the template generation instruction comprises a template parameter set and parameter calling information; the expression determining module is used for determining specific expression contents according to the set of template parameters, and one template parameter corresponds to one specific expression content; and the template generating module is used for generating a target template according to the expression content and the parameter calling information.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the method of template generation of any of the embodiments of the invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where computer instructions are stored, and the computer instructions are configured to, when executed by a processor, implement the method for generating the template according to any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, a template generation instruction is obtained, wherein the template generation instruction comprises a set of template parameters and parameter calling information; determining specific expression contents according to a set of template parameters, wherein one template parameter corresponds to one specific expression content; and generating a target template according to the expression content and the parameter calling information. On the basis of the embodiment, the expression content is determined through the set of the template parameters, and the target template is generated by further utilizing the expression content and the parameter calling information, so that the dynamic generation of the template is realized, the flexibility of the generation of the template is improved, and the use experience of a user is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a method of template generation provided in embodiments of the present invention;
FIG. 2 is a flowchart of a method for template generation provided in embodiments of the present invention;
FIG. 3 is a schematic structural diagram of an apparatus for template generation provided in an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a flowchart of a template generation method provided in an embodiment of the present invention, where the embodiment is applicable to a template generation situation, the method may be performed by a template generation apparatus, the template generation apparatus may be implemented in a form of hardware and/or software, and in a specific embodiment, the template generation apparatus may be configured in an electronic device. As shown in fig. 1, the method of the embodiment of the present invention specifically includes the following steps:
s110, a template generating instruction is obtained, and the template generating instruction comprises a set of template parameters and parameter calling information.
The set of template parameters includes a data class name, a data type, a data attribute, and the like in the template, which is not limited in this embodiment. The parameter calling information refers to specific calling attributes and rules of the template parameters.
Specifically, the set of template parameters and the parameter calling information may be obtained from the template database and the parameter database, so as to obtain the template generation instruction.
S120, determining specific expression contents according to the set of template parameters, wherein one template parameter corresponds to one specific expression content.
Wherein, the expression content can be obtained from the expression library.
On the basis of the above embodiment, optionally, the type of the expression content is a plain text type, a picture type or a table type; if the type of the expression content is a plain text type, the expression content comprises a plain text identifier and text data; if the type of the expression content is a picture type, the expression content comprises a picture identifier and picture data; if the type of the expression content is a table type, the expression content comprises a table identifier and table data, and the table data comprises a table header and table content.
The type of the plain text is in the report, and the report only relates to the content of which the text data is plain text, for example, the content of the title of the report; the picture type is in a report, and the report relates to picture data; the table type is in a report, and the report relates to table data, such as a header and table contents, which is not limited in this embodiment.
Exemplarily, if the type of the expression content is a plain text type, it is determined that the expression content of the plain text type is < table input = "input _ mark" >, </table >, and the expression content includes a plain text identifier and text data, where table is a plain text identifier of the plain text type, and "input _ mark" in < table input = "input _ mark" > is text data that can be dynamically adjusted according to user requirements.
If the type of the expression content is a picture type, determining that the expression content of the picture type is < image input = "input _ mark" >, </image >, and the expression content includes a picture identifier and picture data, where image is the picture identifier of the picture type, and "input _ mark" in < image input = "input _ mark" > is the input picture data and needs to be associated with the program call dictionary.
If the type of the expression content is a table type, determining that the expression content of the table type is < table input = "input _ mark" >, < head >, < for head in head _ list >, </head >, < for col in content >, </table >, the expression content includes a table identifier and table data, and the table data includes a table header and table content, where table is the table identifier of the table type, and "input _ mark" in < table input = "input _ mark" > is the specific table content in the table, and may be dynamically adjusted according to a data source, and may be an output of an interface or a data source address, etc.
The method has the advantages that the type of the content of the needed expression is further determined through the template parameters, then the corresponding expression is obtained, the accuracy in the expression obtaining process is improved, meanwhile, obtaining time is saved, and the efficiency of obtaining the expression is improved.
On the basis of the foregoing embodiment, optionally, if the type of the expression content is an interface multi-level nested type, different levels of data may be nested according to an actual situation, where the expression content of the interface multi-level nested type includes an interface identifier and interface content.
Illustratively, if the type of the expression content is an interface multi-level nested type, and the type of the expression content is an interface multi-level nested type, where the expression content is < interface input = "url =" output _ mark ">, </interface >, where the interface content may nest any data type," interface "is an interface identifier of the interface multi-level nested type, and" output _ mark "in the < interface input =" url: address "output =" output _ mark "> is an actual calling data source function interface address, and dynamic adjustment may be performed according to actual requirements. The advantage of setting up like this is, can carry out nimble nestification according to arbitrary data type, promotes the flexibility of data call.
Specifically, after the set of template parameters is obtained, the type of the expression content to be obtained is determined according to the set of template parameters, and then the corresponding expression contents of different types are obtained from the expression library, wherein one template parameter corresponds to one specific expression content.
And S130, generating a target template according to the expression content and the parameter calling information.
The target template is a template which is determined according to user requirements and can be finally and dynamically adjusted.
Specifically, after different types of expression contents are determined, model nesting is performed according to the expression contents and specific calling attributes and rules of the expression contents, and finally a target template is generated.
Illustratively, if the acquired template generation instruction is to acquire a picture a from a picture library a in an XX website, a specific calling attribute and a specific rule are to enter the XX website first, then acquire the picture a from the picture library a in the XX website, and then determine that the expression content includes an interface multi-level nested type and a picture type, at this time, the interface multi-level nested type expression content is < interface input = "source: XX" output = "picture library a" >, </interface >, and the expression content of the picture type is < image input = "picture a" >, </image >, so that the final generated template is determined to be < interface input = "source: XX" output = "picture library a" >, < image input = "picture a" >, </image >, < interface >, according to the calling attribute and the specific rule.
On the basis of the above embodiment, optionally, the target template may also be stored in the template library.
Specifically, after the target template is generated according to the expression content and the parameter calling information, the generated target template may be stored and stored in the template library. The method has the advantages that the target template is stored in the template library, and can be called in the using process, so that the reusability of the template is improved.
On the basis of the above embodiment, optionally, the method further includes: calling a preset template from the template library, wherein the preset template is any template in the template library; analyzing the preset template to obtain an analysis result; acquiring data information according to the analysis result, writing the data information into a preset template, and generating an analysis report; and displaying and outputting the analysis report.
The preset template refers to a template to be called from a template library, namely the preset template is any template in the template library; the data information refers to specific data content which needs to be filled in a preset template.
Specifically, when a new analysis report needs to be generated, a required preset template can be directly called from the template library according to the data information, then the preset template is analyzed to obtain the data template, and the data information is filled into the data template analyzed by the preset template according to the data information and the data template, so that the analysis report is generated. After the analysis report is generated, the analysis report can be displayed and output, and the method has the advantages that the analysis report can be displayed and output, so that the intuitiveness of the analysis report is improved, and the use experience of a user is improved.
According to the technical scheme of the embodiment of the invention, a template generation instruction is obtained, wherein the template generation instruction comprises a set of template parameters and parameter calling information; determining specific expression contents according to a set of template parameters, wherein one template parameter corresponds to one specific expression content; and generating a target template according to the expression content and the parameter calling information. On the basis of the embodiment, the expression content is determined through the set of the template parameters, and the target template is generated by further utilizing the expression content and the parameter calling information, so that the dynamic generation of the template is realized, the flexibility of the generation of the template is improved, and the use experience of a user is improved.
Fig. 2 is another flowchart of a template generation method provided in an embodiment of the present invention, and on the basis of the above embodiment, a target template generated according to expression content and parameter invocation information is further optimized, as shown in fig. 2, the method specifically includes the following steps:
s210, a template generating instruction is obtained, and the template generating instruction comprises a set of template parameters and parameter calling information.
Specifically, the template database and the parameter database acquire a set of template parameters and parameter calling information, thereby acquiring a template generation instruction.
S220, determining specific expression contents according to the set of template parameters, wherein one template parameter corresponds to one specific expression content.
Specifically, after the set of template parameters is obtained, the type of the expression content to be obtained is determined according to the set of template parameters, and then the corresponding expression contents of different types are obtained from the expression library, wherein one template parameter corresponds to one specific expression content.
And S230, determining the hierarchical relation of the expression content according to the parameter calling information.
The hierarchical relationship refers to a multi-layer nesting priority order of the expression content, for example, the expression content 1 may be a first layer, the expression content 2 may be a second layer, and the expression content 3 and the expression content 4 may be a third layer, which is not limited in this embodiment.
Specifically, after the parameter calling information is acquired, the multi-layer nesting priority of the expression content is further determined according to the parameter calling information.
And S240, generating a target template according to the expression content and the hierarchical relation.
Specifically, the hierarchical relationship comprises primary hierarchical information and secondary hierarchical information, the primary hierarchical information comprises first expression content, and the first expression content corresponds to the first data interface; generating the target template according to the expression content and the hierarchical relationship comprises: embedding first expression content in a first data interface; and embedding the expression content corresponding to the secondary level information in the first expression content to obtain the target template.
The secondary hierarchical information comprises second expression content and/or third expression content, the second expression content corresponds to a second data interface, the third expression content corresponds to a first data interface, and the first data interface is different from the second data interface.
Further, embedding expression content corresponding to the secondary level information in the first expression content to obtain a target template, including: if the secondary hierarchical information comprises second expression content, embedding a second data interface in the first expression content, and embedding the second expression content in the second data interface; and if the secondary hierarchy information comprises the third expression content, embedding the third expression content in the first expression content.
Specifically, after the expression content and the hierarchical relationship are determined, if the primary hierarchical information includes a first expression content, the first expression content corresponds to a first data interface, the secondary hierarchical information includes a second expression content and/or a third expression content, the second expression content corresponds to a second data interface, the third expression content corresponds to a first data interface, the first data interface is different from the second data interface, the first expression content is embedded in the first data interface, the second data interface is embedded in the first expression content, and the second expression content is embedded in the second data interface; and if the secondary hierarchical information comprises the third expression content, embedding the third expression content into the first expression content to finally obtain the target template.
Illustratively, the expression content and the hierarchical relationship are that the main hierarchy includes a first expression content < table input = "output _ mark" >, </table >, and a corresponding first data interface is < interface input = "url: the address" output = "output _ mark" >, </interface >, the first hierarchy includes second expression content < table input = "data _ mark" >, < head >, < for head in head _ list >, </head >, < for col in content >, </table > embedded in the first expression content, and third expression content < image input = "output _ mark" >, </image >, the third data interface < interface input = "corresponding to the third expression content: the address" output = "output _ mark" >, </interface >, the second level comprises fourth expression content < table input = "output _ mark" >, the fourth expression content is embedded in the second expression content, the interface input = "head _ list [ i ]" output = "output _ mark" >, </layer > and the data interface corresponding to the fourth expression content are "</layer >, the finally obtained target template is" head _ list ">, and the finally obtained target template is
Figure BDA0003885175070000091
Figure BDA0003885175070000101
According to the technical scheme of the embodiment of the invention, a template generation instruction is obtained, wherein the template generation instruction comprises a set of template parameters and parameter calling information; determining specific expression contents according to a set of template parameters, wherein one template parameter corresponds to one specific expression content; determining the hierarchical relation of the expression content according to the parameter calling information; and generating a target template according to the expression content and the hierarchical relation. On the basis of the embodiment, the hierarchical relationship of the expression content is further determined through the parameter calling information, so that the target template is determined, the dynamic generation of the template is realized, the flexibility of the template generation is improved, and the use experience of a user is improved.
Fig. 3 is a schematic structural diagram of an apparatus for template generation provided in an embodiment of the present invention, where the apparatus includes: an instruction obtaining module 310, an expression determining module 320, a template generating module 330, and a lane line determining module 340. Wherein the content of the first and second substances,
the instruction obtaining module 310 is configured to obtain a template generating instruction, where the template generating instruction includes a set of template parameters and parameter calling information.
The expression determining module 320 is configured to determine specific expression contents according to the set of template parameters, where one template parameter corresponds to one specific expression content.
The template generating module 330 is configured to generate a target template according to the expression content and the parameter calling information.
Optionally, the type of the expression content is a plain text type, a picture type or a table type; if the type of the expression content is a plain text type, the expression content comprises a plain text identifier and text data; if the type of the expression content is a picture type, the expression content comprises a picture identifier and picture data; if the type of the expression content is a table type, the expression content comprises a table identifier and table data, and the table data comprises a table header and table content.
Optionally, the template generating module 330 is specifically configured to: determining the hierarchical relationship of the expression content according to the parameter calling information; and generating a target template according to the expression content and the hierarchical relation.
Optionally, the hierarchical relationship includes primary hierarchical information and secondary hierarchical information, the primary hierarchical information includes first expression content, and the first expression content corresponds to the first data interface; the template generating module 330 is specifically configured to: embedding first expression content in a first data interface; and embedding the expression content corresponding to the secondary level information in the first expression content to obtain the target template.
Optionally, the sub-level information includes second expression content and/or third expression content, where the second expression content corresponds to a second data interface, the third expression content corresponds to a first data interface, and the first data interface is different from the second data interface; the template generating module 330 is specifically configured to: if the secondary hierarchical information comprises second expression content, embedding a second data interface in the first expression content, and embedding the second expression content in the second data interface; and if the secondary hierarchical information comprises the third expression content, embedding the third expression content into the first expression content to obtain the target template.
Optionally, the apparatus further comprises: a template storage module to: and storing the target template into a template library.
Optionally, the apparatus further comprises: a report display output module to: calling a preset template from the template library, wherein the preset template is any template in the template library; analyzing the preset template to obtain an analysis result; acquiring data information according to the analysis result, writing the data information into a preset template, and generating an analysis report; and displaying and outputting an analysis report.
The template generation device provided by the embodiment of the invention can execute the template generation method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
FIG. 4 is a block diagram of an electronic device, which is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers, as provided in an embodiment of the invention. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 may also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as method template generation.
In some embodiments, the method template generation may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the method template generation described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform method template generation by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Computer programs for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of template generation, the method comprising:
acquiring a template generating instruction, wherein the template generating instruction comprises a set of template parameters and parameter calling information;
determining specific expression contents according to the set of template parameters, wherein one template parameter corresponds to one specific expression content;
and generating a target template according to the expression content and the parameter calling information.
2. The method of claim 1, wherein the type of the expression is a plain text type, a picture type, or a table type;
if the type of the expression is a plain text type, the expression comprises a plain text identifier and text data;
if the type of the expression is a picture type, the expression comprises a picture identifier and picture data;
if the type of the expression is a table type, the expression comprises a table identifier and table data, and the table data comprises a table header and table contents.
3. The method of claim 1, wherein generating a target template according to the expression content and the parameter invocation information comprises:
determining the hierarchical relationship of the expression content according to the parameter calling information;
and generating a target template according to the expression content and the hierarchical relationship.
4. The method of claim 3, wherein the hierarchical relationship comprises primary hierarchical information and secondary hierarchical information, the primary hierarchical information comprising first expression content, the first expression content corresponding to a first data interface;
generating a target template according to the expression content and the hierarchical relationship, wherein the generating of the target template comprises:
embedding the first expression content in the first data interface;
and embedding the expression content corresponding to the secondary level information in the first expression content to obtain the target template.
5. The method of claim 4, wherein the hierarchical information comprises second expression content and/or third expression content, the second expression content corresponding to a second data interface, the third expression content corresponding to the first data interface, the first data interface being different from the second data interface;
the embedding the expression corresponding to the secondary level information in the first expression content to obtain the target template includes:
if the secondary hierarchy information comprises the second expression content, embedding the second data interface in the first expression content, and embedding the second expression content in the second data interface;
and if the secondary hierarchical information comprises the third expression content, embedding the third expression content into the first expression content to obtain the target template.
6. The method of any of claims 1-5, further comprising:
and storing the target template into a template library.
7. The method of claim 6, further comprising:
calling a preset template from the template library, wherein the preset template is any template in the template library;
analyzing the preset template to obtain an analysis result;
acquiring data information according to the analysis result, writing the data information into the preset template, and generating an analysis report;
and displaying and outputting the analysis report.
8. An apparatus for template generation, the apparatus comprising:
the instruction acquisition module is used for acquiring a template generation instruction, wherein the template generation instruction comprises a set of template parameters and parameter calling information;
the expression determining module is used for determining specific expression contents according to the set of the template parameters, wherein one template parameter corresponds to one specific expression content;
and the template generating module is used for generating a target template according to the expression content and the parameter calling information.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of template generation of any one of claims 1-7.
10. A computer-readable storage medium storing computer instructions for causing a processor to perform the method of template generation of any one of claims 1-7 when executed.
CN202211242305.4A 2022-10-11 2022-10-11 Template generation method and device, electronic equipment and storage medium Pending CN115510838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211242305.4A CN115510838A (en) 2022-10-11 2022-10-11 Template generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211242305.4A CN115510838A (en) 2022-10-11 2022-10-11 Template generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115510838A true CN115510838A (en) 2022-12-23

Family

ID=84510512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211242305.4A Pending CN115510838A (en) 2022-10-11 2022-10-11 Template generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115510838A (en)

Similar Documents

Publication Publication Date Title
CN114116065B (en) Method and device for acquiring topological graph data object and electronic equipment
CN115034927A (en) Data processing method and device, electronic equipment and storage medium
CN116185389A (en) Code generation method and device, electronic equipment and medium
CN115905322A (en) Service processing method and device, electronic equipment and storage medium
CN115757304A (en) Log storage method, device and system, electronic equipment and storage medium
CN115510838A (en) Template generation method and device, electronic equipment and storage medium
CN115408546A (en) Time sequence data management method, device, equipment and storage medium
CN113438428B (en) Method, apparatus, device and computer-readable storage medium for automated video generation
CN114896322A (en) JSON (Java Server object notation) -based configuration data conversion method, device, equipment and medium
CN117668114A (en) Data synchronization method, device, equipment and medium
CN117271104A (en) Resource arrangement method, device, electronic equipment and storage medium
CN115529271A (en) Service request distribution method, device, equipment and medium
CN117493214A (en) Interface message generation method and device, electronic equipment and storage medium
CN115576977A (en) Data paging query method and device, electronic equipment and storage medium
CN116801001A (en) Video stream processing method and device, electronic equipment and storage medium
CN117081939A (en) Traffic data processing method, device, equipment and storage medium
CN114706578A (en) Data processing method, device, equipment and medium
CN114491192A (en) Data visualization method, device, equipment and storage medium
CN115098520A (en) Device data updating method and device, electronic device and storage medium
CN114996243A (en) Database operation method and device, electronic equipment and storage medium
CN114595231A (en) Database table generation method and device, electronic equipment and storage medium
CN116151607A (en) Data processing method, apparatus, device, storage medium and computer program product
CN115167855A (en) Front-end page generation method, device and equipment applied to matching transaction system
CN115202538A (en) Menu configuration method and device, electronic equipment and storage medium
CN114638206A (en) XML message generation method, device, equipment, medium and product

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