CN113792138A - Report generation method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN113792138A
CN113792138A CN202111074830.5A CN202111074830A CN113792138A CN 113792138 A CN113792138 A CN 113792138A CN 202111074830 A CN202111074830 A CN 202111074830A CN 113792138 A CN113792138 A CN 113792138A
Authority
CN
China
Prior art keywords
report
target
node
generation instruction
determining
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.)
Granted
Application number
CN202111074830.5A
Other languages
Chinese (zh)
Other versions
CN113792138B (en
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.)
Guangdong Power Grid Co Ltd
Huizhou Power Supply Bureau of Guangdong Power Grid Co Ltd
Original Assignee
Guangdong Power Grid Co Ltd
Huizhou Power Supply Bureau of Guangdong 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 Guangdong Power Grid Co Ltd, Huizhou Power Supply Bureau of Guangdong Power Grid Co Ltd filed Critical Guangdong Power Grid Co Ltd
Priority to CN202111074830.5A priority Critical patent/CN113792138B/en
Priority claimed from CN202111074830.5A external-priority patent/CN113792138B/en
Publication of CN113792138A publication Critical patent/CN113792138A/en
Application granted granted Critical
Publication of CN113792138B publication Critical patent/CN113792138B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/338Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/367Ontology
    • 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/183Tabulation, i.e. one-dimensional positioning

Abstract

The embodiment of the invention discloses a report generation method and device, electronic equipment and a storage medium. The method comprises the following steps: receiving a report generation instruction input by a user for generating a target report, analyzing the report generation instruction, determining each target keyword contained in the report generation instruction, and constructing an initial report based on each target keyword; according to each target keyword, determining a target node corresponding to each target keyword in a pre-constructed knowledge graph, and determining node information corresponding to each target node; and importing the node information corresponding to each target node into the initial report to obtain a target report. The technical scheme of the embodiment of the invention solves the technical problems of low making efficiency and poor expansibility existing in manual making of the report by a user in the prior art, realizes that the target report can be obtained without manually inputting report data, improves the efficiency and the user experience, and avoids the problem that the manually input report data is easy to make mistakes.

Description

Report generation method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a report generation method and device, electronic equipment and a storage medium.
Background
The report is a way of displaying data in forms of tables, icons and the like, and is increasingly widely applied to the aspects of decision making of product schemes, advertisement putting, industry trend analysis and the like. How to provide a reasonable data report design scheme based on massive raw data is more and more important.
The existing report generation technology mainly adopts manual customization, namely, a specific program is compiled according to the characteristics of each report to realize the report, the production efficiency is low, the expansibility is poor, new reports need to be redesigned and compiled when being added, the workload is still large, the method is not suitable for the current requirement of mass data statistical analysis of a power grid, and a method convenient for generating the report according to a user command is urgently needed.
Disclosure of Invention
The embodiment of the invention provides a report generation method and device, electronic equipment and a storage medium, so that a target report can be obtained without manually inputting report data, the technical effects of improving the efficiency and user experience are achieved, and the problem that the manually input report data is easy to make mistakes is also avoided.
In a first aspect, an embodiment of the present invention provides a report generation method, an apparatus, an electronic device, and a storage medium, where the method includes:
receiving a report generation instruction input by a user and used for generating a target report, analyzing the report generation instruction, determining each target keyword contained in the report generation instruction, and constructing an initial report based on each target keyword;
according to each target keyword, determining a target node corresponding to each target keyword in a pre-constructed knowledge graph, and determining node information corresponding to each target node;
and importing the node information corresponding to each target node into the initial report to obtain a target report.
In a second aspect, an embodiment of the present invention further provides a report generating apparatus, where the apparatus includes:
the system comprises an initial report form building module, a report form generating module and a report form analyzing module, wherein the initial report form building module is used for receiving a report form generating instruction which is input by a user and used for generating a target report form, analyzing the report form generating instruction, determining each target keyword contained in the report form generating instruction, and building an initial report form based on each target keyword;
a node information determining module, configured to determine, according to each target keyword, a target node corresponding to each target keyword in a pre-constructed knowledge graph, and determine node information corresponding to each target node;
and the target report obtaining module is used for importing the node information corresponding to each target node into the initial report to obtain a target report.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
storage means for storing one or more programs;
when the program is executed by the processor, the processor is enabled to implement the report generation method provided by any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the report generating method provided in any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the report generation instruction for generating the target report is received by the user, and the report generation instruction can be analyzed after the report generation instruction is received, so that each target keyword contained in the report generation instruction can be determined, the initial report is constructed based on each target keyword, and the initial customization of the report is quickly and effectively realized. After the initial report is constructed, according to each target keyword, a target node corresponding to each target keyword can be determined in a pre-constructed knowledge graph, and node information corresponding to each target node is determined. After the node information corresponding to each target node is determined, the node information corresponding to each target node can be imported into the initial report, so that the target report can be obtained, the technical problems of low making efficiency and poor expansibility in manual report making of a user in the prior art are solved, the target report can be obtained without manually inputting report data, the efficiency is improved, the user experience is improved, and the problem that the manually input report data is prone to errors is solved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flow chart of a report generation method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a report generating method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a report generation apparatus module according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flow chart of a report generation method according to an embodiment of the present invention, where the present embodiment is applicable to a situation where a target report is generated based on a pre-constructed knowledge graph, the method may be executed by a report generation apparatus, the report generation apparatus may be implemented in a software and/or hardware manner, and the report generation apparatus may be integrated in an electronic device such as a computer or a server.
As shown in fig. 1, the method of the present embodiment includes:
s110, receiving a report generation instruction input by a user and used for generating a target report, analyzing the report generation instruction, determining each target keyword contained in the report generation instruction, and constructing an initial report based on each target keyword.
The target report can be a report which needs to be generated at the current moment. Report generation instructions may be understood as instructions for generating a target report. Optionally, the user may input a report generation instruction for generating the target report by voice or text. The report generating instructions may include one or more target keywords. The target keyword may be a keyword included in the report generation instruction at the current time. The initial report may be a report built based on each target keyword in the report generation instruction.
Specifically, a report generation instruction input by a user for generating a target report is received. After receiving the report generation instruction, the report generation instruction can be analyzed. And further determining a target keyword contained in the report generation instruction. After the target keywords included in the report generation instruction are determined, an initial report can be constructed based on the target keywords.
Optionally, a report generation instruction input by a user for generating a target report is received, where the report generation instruction is generated by triggering a preset identifier for generating the target report by the user; and receiving a report generation instruction and the like generated by the user based on a report generation command for generating the target report and input by the input device.
The report generation command for generating the target report, which is input by the input device, may be a report generation command preset by a user, which is input in a setting input box through a physical input device (e.g., a mouse, a handwriting device, and/or a keyboard) or a touch device (e.g., a virtual keyboard, and/or a handwriting area), and the like. It is understood that the specific expression form of the report generation command may be set according to actual requirements, and is not limited specifically herein, and may be, for example, words and/or numbers.
It should be noted that, the report generation instruction may be generated in various ways, for example, the report generation instruction may be generated when a single click or a double click of the application program for generating the target report is detected by the user; or, when it is detected that the user inputs the user name and password determination in the summary manner in the application program, a report generation instruction may be generated.
S120, according to each target keyword, determining a target node corresponding to each target keyword in a pre-constructed knowledge graph, and determining node information corresponding to each target node.
Wherein, one or more target nodes can be included in the pre-constructed knowledge graph. The target node may be a node in the knowledge-graph corresponding to the target keyword. A target node may include one or more node information.
Specifically, after each target keyword included in the report generation instruction is determined, each node in the pre-constructed knowledge graph may be traversed according to each target keyword. Further, a node corresponding to each target keyword in the knowledge graph may be determined, and the node corresponding to each target keyword may be regarded as a target node corresponding to each target keyword, that is, a target node corresponding to each target keyword may be determined. Further, node information corresponding to each target node may be determined according to each target node.
Optionally, the knowledge graph is constructed by the following steps:
step one, acquiring each electric energy data in each distribution transformer area from a target database, taking each distribution transformer area as a first node, and taking each electric energy data in each distribution transformer area as a second node.
The target database may be a database for storing each electric energy data in each distribution transformer area. The first node may characterize a distribution transformer area. The number of first nodes may be one, two or more. The second node may characterize power data in the distribution transformer area. The number of second nodes may be one, two or more. The correspondence between the first node and the second node may be one-to-one or one-to-many.
Specifically, each electric energy data in each distribution transformer area is acquired from the target database, and after each electric energy data in each distribution transformer area is acquired, each distribution transformer area can be used as a first node, and each electric energy data in each distribution transformer area can be used as a second node.
It should be noted that "first" and "second" in the first node and the second node are only used to distinguish different types of nodes, and are not limited to the order or content of the nodes.
Optionally, before the electric energy data in each distribution transformer area is acquired from the target database, the electric energy data in each distribution transformer area during the operation of the power grid can be acquired, and the electric energy data in each distribution transformer area is stored in the target database.
And secondly, determining a first node relationship among the first nodes, a second node relationship among the first nodes and a second node corresponding to the first nodes, and a third node relationship among the second nodes corresponding to the first nodes based on the relationship among the distribution transformer areas and the relationship among the electric energy data included in each distribution transformer area.
Wherein the first node relationship may be a relationship between one first node and another first node. The second node relationship may be a relationship between the first node and a second node corresponding to the first node. The third node relationship may be a relationship between one second node corresponding to one first node and another second node corresponding to the first node.
Specifically, after the first node and the second node are obtained, the first node relationship between the first nodes may be determined according to the relationship between the distribution transformer areas. And determining a second node relationship between each first node and a second node corresponding to the first node according to each electric energy data included in each distribution transformer area. And determining a third node relationship between the second nodes corresponding to the first nodes according to the relationship between each electric energy data included in each distribution transformer area. Thereby, the first node relationship, the second node relationship, and the third node relationship can be determined.
And step three, constructing a knowledge graph according to the first node, the second node, the first node relation, the second node relation and the third node relation.
Specifically, after the first node and the second node are obtained and the first node relationship, the second node relationship and the third node relationship are determined, the first nodes having the first node relationship may be connected pairwise according to the first node relationship. And establishing connection between the first node with the second node relation and a second node corresponding to the first node according to the second node relation. And according to the third node relationship, establishing connection between every two second nodes corresponding to the first nodes with the third node relationship. After the connection is established, a knowledge graph may be obtained.
And S130, importing the node information corresponding to each target node into the initial report to obtain a target report.
Specifically, after determining the node information corresponding to each target node, the node information corresponding to each target node may be imported into the initial report, and after the import of the node information is completed, the target report may be obtained.
According to the technical scheme of the embodiment of the invention, the report generation instruction for generating the target report is received by the user, and the report generation instruction can be analyzed after the report generation instruction is received, so that each target keyword contained in the report generation instruction can be determined, the initial report is constructed based on each target keyword, and the initial customization of the report is quickly and effectively realized. After the initial report is constructed, according to each target keyword, a target node corresponding to each target keyword can be determined in a pre-constructed knowledge graph, and node information corresponding to each target node is determined. After the node information corresponding to each target node is determined, the node information corresponding to each target node can be imported into the initial report, so that the target report can be obtained, the technical problems of low making efficiency and poor expansibility in manual report making of a user in the prior art are solved, the target report can be obtained without manually inputting report data, the efficiency is improved, the user experience is improved, and the problem that the manually input report data is prone to errors is solved.
Example two
Fig. 2 is a flowchart of a report generating method according to a second embodiment of the present invention, where on the basis of the foregoing embodiment, optionally, the receiving a report generating instruction input by a user for generating a target report, analyzing the report generating instruction, and determining each target keyword included in the report generating instruction includes: receiving a report generation instruction input by a user and used for generating a target report; and inputting the report generation instruction to a word segmentation device which is configured with a semantic search engine in advance, and determining each target keyword included in the report generation instruction.
Optionally, the importing the node information corresponding to each target node into the initial report includes: determining a node information storage area corresponding to each target node in the initial report according to each target node; and storing the node information corresponding to each target node into the node information storage area corresponding to each target node.
Optionally, the report generation instruction includes a target relationship between each target keyword and the target keyword; after obtaining the target report, the method further comprises: and according to the target relation, carrying out correctness detection on report data corresponding to each target keyword in the target report.
The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.
As shown in fig. 2, the method of the embodiment may specifically include:
s210, receiving a report generation instruction input by a user for generating a target report.
S220, inputting the report generation instruction to a word segmentation device which is configured with a semantic search engine in advance, determining each target keyword included in the report generation instruction, and constructing an initial report based on each target keyword.
The word segmentation device which is configured with a semantic search engine in advance can be used for determining each target keyword included in the report generation instruction. It should be noted that the word segmenter of the semantic search engine may be a word segmenter in the prior art, such as a ZPar word segmenter, a Hanlp word segmentation or a word embedding + Bi-LSTM + CRF word segmenter, and is not limited herein.
Specifically, after the report generation instruction is received, the word segmentation is performed on the report generation instruction through a word segmentation device which is configured with a semantic search engine in advance, so that each target keyword included in the report generation instruction can be determined. After each target keyword included in the report generation instruction is determined, an initial report can be constructed with each target keyword.
Optionally, the initial report is constructed by the following steps:
the method comprises the steps of firstly, analyzing a report generation instruction through a preset semantic search engine, determining a report type corresponding to the report generation instruction, and constructing a report frame based on the report type.
The report type may be a type determined by performing semantic analysis on the report generation instruction. The report framework may be a report framework built based on report types. Optionally, the structural style of the report frame may include, but is not limited to, the following styles: list, abstract, matrix, and drill.
Specifically, after the report generation instruction is received, semantic analysis can be performed on the received report generation instruction through a preconfigured semantic search engine, so that the report type corresponding to the report generation instruction can be determined. After the report type is determined, a report framework can be constructed based on the report type.
And step two, after the report frame is constructed, writing the target keywords into a preset keyword storage area in the report frame to obtain an initial report.
The preset keyword storage area can be understood as an area preset in the report frame for storing the target keyword.
Specifically, a keyword storage area may be preset in the report frame. After the report frame is constructed, each target keyword can be written in a keyword storage area preset in the report frame. After the write process is completed, an initial report may be obtained.
And S230, according to each target keyword, determining a target node corresponding to each target keyword in a pre-constructed knowledge graph, and determining node information corresponding to each target node.
S240, according to each target node, determining a node information storage area corresponding to each target node in the initial report.
The node information storage area may be understood as an area preset in the initial report for storing the node information.
Specifically, a node information area is preset in the initial report, and after a target node corresponding to each target keyword is determined in a pre-constructed knowledge graph, a node information storage area corresponding to each target node in the initial report can be determined according to each target node.
And S250, storing the node information corresponding to each target node into a node information storage area corresponding to each target node to obtain a target report.
Specifically, after determining the node information corresponding to each target node and determining the node information storage area corresponding to each target node, the node information corresponding to each target node may be stored in the node information storage area corresponding to each target node, so as to obtain a target report.
Optionally, when the report generation instruction includes at least two target keywords, the relationship between the target keywords may be determined, and the relationship between the target keywords is used as the target relationship between the target keywords. The target relationship may include, but is not limited to, an affiliation and a proportion. Therefore, when the report generation instruction includes at least two target keywords, the report generation instruction includes the target relationship between the target keywords.
On the basis, after the target report is obtained, in order to guarantee the accuracy of the target report, the correctness of the report data corresponding to each target keyword in the target report can be detected according to the target relation. Optionally, the correctness of the report data corresponding to each target keyword in the target report is detected according to the target relationship, where for each target keyword, the correctness of the report data corresponding to the target keyword and all target keywords except the current target keyword is detected according to the target relationship between the current target keyword and all target keywords except the current target keyword.
Optionally, after the correctness of the report data corresponding to the target keyword having the corresponding target relationship is detected, a detection result may be obtained. And then, according to the detection result, prompt information corresponding to the detection result can be generated, and the generated prompt information is displayed, so that the operation corresponding to the prompt information can be executed according to the prompt information.
Further, if the detection result is that the report data has error data, prompt information for prompting the user that the report data has errors is generated. The processing method has the advantages that the report data error can be fed back to the user, and the user can directly correct the report data according to the prompt information, so that the target report can be obtained. If the detection result is that the report data does not have error data, prompt information for prompting the user that the report data is correct can be generated.
According to the technical scheme of the embodiment, the report generation instruction is input to the word segmentation device which is configured with the semantic search engine in advance, each target keyword included in the report generation instruction is determined, and the initial report is constructed based on each target keyword. And according to each target keyword, determining a target node corresponding to each target keyword in a pre-constructed knowledge graph, and determining node information corresponding to each target node. And determining a node information storage area corresponding to each target node in the initial report according to each target node. The node information corresponding to each target node is stored in the node information storage area corresponding to each target node to obtain the target report, so that the target report can be obtained without manually inputting report data, the efficiency is improved, the user experience is improved, and the problem that the manually input report data is easy to make mistakes is solved.
EXAMPLE III
Fig. 3 is a schematic diagram of a module of a report generating apparatus according to a third embodiment of the present invention, where the present invention provides a report generating apparatus, including: an initial report building module 310, a node information determining module 320 and a target report obtaining module 330.
The initial report building module 310 is configured to receive a report generating instruction input by a user for generating a target report, analyze the report generating instruction, determine each target keyword included in the report generating instruction, and build the initial report based on each target keyword;
a node information determining module 320, configured to determine, according to each target keyword, a target node corresponding to each target keyword in a pre-constructed knowledge graph, and determine node information corresponding to each target node;
and a target report obtaining module 330, configured to import the node information corresponding to each target node into the initial report to obtain a target report.
According to the technical scheme of the embodiment of the invention, the report generation instruction which is input by a user and used for generating the target report is received through the initial report construction module, the report generation instruction is analyzed, each target keyword contained in the report generation instruction is determined, and the initial report is constructed based on each target keyword. And determining a target node corresponding to each target keyword in a pre-constructed knowledge graph according to each target keyword through a node information determination module, and determining node information corresponding to each target node. The target report obtaining module is used for leading the node information corresponding to each target node into the initial report to obtain the target report, so that the technical problems of low making efficiency and poor expansibility existing in manual report making of users in the prior art are solved, the target report can be obtained without manually inputting report data, the efficiency is improved, the user experience is improved, and the problem that the manual input report data is prone to errors is solved.
Optionally, the apparatus further comprises: the knowledge map construction module is used for acquiring each electric energy data in each distribution transformer area from the target database, taking each distribution transformer area as a first node, and taking each electric energy data in each distribution transformer area as a second node; determining a first node relationship between the first nodes, a second node relationship between each first node and a second node corresponding to the first node, and a third node relationship between each second node corresponding to the first node, based on a relationship between the distribution transformer areas and a relationship between each electric energy data included in each distribution transformer area; and constructing a knowledge graph according to the first node, the second node, the first node relation, the second node relation and the third node relation.
Optionally, the initial report building module 310 is configured to receive a report generating instruction input by a user for generating a target report; and inputting the report generation instruction to a word segmentation device which is configured with a semantic search engine in advance, and determining each target keyword included in the report generation instruction.
Optionally, the apparatus further comprises: the initial report obtaining module is used for analyzing the report generating instruction through the preconfigured semantic search engine, determining a report type corresponding to the report generating instruction, and constructing a report frame based on the report type; and after the report frame is constructed, writing the target keywords into a preset keyword storage area in the report frame to obtain the initial report.
Optionally, the target report obtaining module 330 is configured to determine, according to each target node, a node information storage area corresponding to each target node in the initial report; and storing the node information corresponding to each target node into the node information storage area corresponding to each target node.
Optionally, the report generation instruction includes a target relationship between each target keyword and the target keyword; after obtaining the target report, the device further comprises: and the target report detection module is used for detecting the correctness of the report data corresponding to each target keyword in the target report according to the target relation.
Optionally, before the obtaining of the electric energy data in each distribution transformer area from the target database, the apparatus further includes: and the electric energy data storage module is used for storing each electric energy data in each distribution transformer area into the target database.
The device can execute the report generation method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the report generation method.
It should be noted that, the units and modules included in the report generation apparatus are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing any of the embodiments of the present invention. The electronic device 12 shown in fig. 4 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention. The device 12 is typically an electronic device that undertakes the processing of configuration information.
As shown in FIG. 4, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 that couples the various components (including the memory 28 and the processing unit 16).
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer-readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer device readable media in the form of volatile Memory, such as Random Access Memory (RAM) 30 and/or cache Memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk-Read Only Memory (CD-ROM), Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product 40, with program product 40 having a set of program modules 42 configured to carry out the functions of embodiments of the invention. Program product 40 may be stored, for example, in memory 28, and such program modules 42 include, but are not limited to, one or more application programs, other program modules, and program data, each of which examples or some combination may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, mouse, camera, etc., and display), one or more devices that enable a user to interact with electronic device 12, and/or any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network such as the internet) via the Network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) devices, tape drives, and data backup storage devices, to name a few.
The processing unit 16 executes various functional applications and data processing by running the program stored in the memory 28, for example, implementing the report generating method provided by the above-described embodiment of the present invention, the method including:
receiving a report generation instruction input by a user and used for generating a target report, analyzing the report generation instruction, determining each target keyword contained in the report generation instruction, and constructing an initial report based on each target keyword; according to each target keyword, determining a target node corresponding to each target keyword in a pre-constructed knowledge graph, and determining node information corresponding to each target node; and importing the node information corresponding to each target node into the initial report to obtain a target report.
Of course, those skilled in the art can understand that the processor can also implement the technical solution of the report generation method provided in any embodiment of the present invention.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor, for example, a report generating method provided in the foregoing embodiment of the present invention, where the method includes:
receiving a report generation instruction input by a user and used for generating a target report, analyzing the report generation instruction, determining each target keyword contained in the report generation instruction, and constructing an initial report based on each target keyword;
according to each target keyword, determining a target node corresponding to each target keyword in a pre-constructed knowledge graph, and determining node information corresponding to each target node;
and importing the node information corresponding to each target node into the initial report to obtain a target report.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having 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 portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A report generation method is characterized by comprising the following steps:
receiving a report generation instruction input by a user and used for generating a target report, analyzing the report generation instruction, determining each target keyword contained in the report generation instruction, and constructing an initial report based on each target keyword;
according to each target keyword, determining a target node corresponding to each target keyword in a pre-constructed knowledge graph, and determining node information corresponding to each target node;
and importing the node information corresponding to each target node into the initial report to obtain a target report.
2. The method of claim 1, further comprising:
acquiring each electric energy data in each distribution transformer area from a target database, taking each distribution transformer area as a first node, and taking each electric energy data in each distribution transformer area as a second node;
determining a first node relationship between the first nodes, a second node relationship between each first node and a second node corresponding to the first node, and a third node relationship between each second node corresponding to the first node, based on a relationship between the distribution transformer areas and a relationship between each electric energy data included in each distribution transformer area;
and constructing a knowledge graph according to the first node, the second node, the first node relation, the second node relation and the third node relation.
3. The method according to claim 1, wherein the receiving a report generation instruction input by a user for generating a target report, analyzing the report generation instruction, and determining each target keyword included in the report generation instruction comprises:
receiving a report generation instruction input by a user and used for generating a target report;
and inputting the report generation instruction to a word segmentation device which is configured with a semantic search engine in advance, and determining each target keyword included in the report generation instruction.
4. The method of claim 3, further comprising:
analyzing the report generation instruction through the preconfigured semantic search engine, determining a report type corresponding to the report generation instruction, and constructing a report frame based on the report type;
and after the report frame is constructed, writing the target keywords into a preset keyword storage area in the report frame to obtain the initial report.
5. The method according to claim 1, wherein the importing the node information corresponding to each target node into the initial report comprises:
determining a node information storage area corresponding to each target node in the initial report according to each target node;
and storing the node information corresponding to each target node into the node information storage area corresponding to each target node.
6. The method according to claim 1, wherein the report generation instruction includes a target relationship between the target keywords;
after obtaining the target report, the method further comprises:
and according to the target relation, carrying out correctness detection on report data corresponding to each target keyword in the target report.
7. The method of claim 2, wherein prior to said obtaining each power data in each distribution area from the target database, the method further comprises:
and storing each electric energy data in each distribution transformer area into the target database.
8. A report generation apparatus, comprising:
the system comprises an initial report form building module, a report form generating module and a report form analyzing module, wherein the initial report form building module is used for receiving a report form generating instruction which is input by a user and used for generating a target report form, analyzing the report form generating instruction, determining each target keyword contained in the report form generating instruction, and building an initial report form based on each target keyword;
a node information determining module, configured to determine, according to each target keyword, a target node corresponding to each target keyword in a pre-constructed knowledge graph, and determine node information corresponding to each target node;
and the target report obtaining module is used for importing the node information corresponding to each target node into the initial report to obtain a target report.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the processor, cause the processor to implement the report generating method according to any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the report generating method according to any one of claims 1-7.
CN202111074830.5A 2021-09-14 Report generation method and device, electronic equipment and storage medium Active CN113792138B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111074830.5A CN113792138B (en) 2021-09-14 Report generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111074830.5A CN113792138B (en) 2021-09-14 Report generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113792138A true CN113792138A (en) 2021-12-14
CN113792138B CN113792138B (en) 2024-04-30

Family

ID=

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109657214A (en) * 2018-09-27 2019-04-19 深圳壹账通智能科技有限公司 Report form generation method, device, terminal and storage medium
CN109688046A (en) * 2018-08-21 2019-04-26 平安科技(深圳)有限公司 Issue management method, apparatus, equipment and storage medium
CN110188186A (en) * 2019-04-24 2019-08-30 平安科技(深圳)有限公司 Content recommendation method, electronic device, equipment and the storage medium of medical field
CN110262273A (en) * 2019-07-12 2019-09-20 珠海格力电器股份有限公司 A kind of home equipment control method, device, storage medium and smart home system
CN110728128A (en) * 2019-08-30 2020-01-24 平安证券股份有限公司 Data report generation method, device, medium and electronic equipment
CN111027296A (en) * 2019-11-21 2020-04-17 深圳壹账通智能科技有限公司 Report generation method and system based on knowledge base
WO2020080375A1 (en) * 2018-10-16 2020-04-23 株式会社 東芝 Report creating device, method, and recording medium
CN111158795A (en) * 2019-12-24 2020-05-15 深圳壹账通智能科技有限公司 Report generation method, device, medium and electronic equipment
CN112287647A (en) * 2020-10-28 2021-01-29 中国农业银行股份有限公司 Report processing method and system
CN112612904A (en) * 2020-12-28 2021-04-06 交控科技股份有限公司 Rail transit emergency method and device based on knowledge graph
CN112783582A (en) * 2021-02-10 2021-05-11 深圳乐信软件技术有限公司 Report generation method and device, electronic equipment and storage medium
CN112861501A (en) * 2021-01-21 2021-05-28 中国建设银行股份有限公司 Report generation method and device, electronic equipment and computer readable storage medium
CN112882702A (en) * 2021-02-03 2021-06-01 叮当快药科技集团有限公司 Information processing method and device for report configuration

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109688046A (en) * 2018-08-21 2019-04-26 平安科技(深圳)有限公司 Issue management method, apparatus, equipment and storage medium
CN109657214A (en) * 2018-09-27 2019-04-19 深圳壹账通智能科技有限公司 Report form generation method, device, terminal and storage medium
WO2020080375A1 (en) * 2018-10-16 2020-04-23 株式会社 東芝 Report creating device, method, and recording medium
CN110188186A (en) * 2019-04-24 2019-08-30 平安科技(深圳)有限公司 Content recommendation method, electronic device, equipment and the storage medium of medical field
CN110262273A (en) * 2019-07-12 2019-09-20 珠海格力电器股份有限公司 A kind of home equipment control method, device, storage medium and smart home system
CN110728128A (en) * 2019-08-30 2020-01-24 平安证券股份有限公司 Data report generation method, device, medium and electronic equipment
CN111027296A (en) * 2019-11-21 2020-04-17 深圳壹账通智能科技有限公司 Report generation method and system based on knowledge base
CN111158795A (en) * 2019-12-24 2020-05-15 深圳壹账通智能科技有限公司 Report generation method, device, medium and electronic equipment
CN112287647A (en) * 2020-10-28 2021-01-29 中国农业银行股份有限公司 Report processing method and system
CN112612904A (en) * 2020-12-28 2021-04-06 交控科技股份有限公司 Rail transit emergency method and device based on knowledge graph
CN112861501A (en) * 2021-01-21 2021-05-28 中国建设银行股份有限公司 Report generation method and device, electronic equipment and computer readable storage medium
CN112882702A (en) * 2021-02-03 2021-06-01 叮当快药科技集团有限公司 Information processing method and device for report configuration
CN112783582A (en) * 2021-02-10 2021-05-11 深圳乐信软件技术有限公司 Report generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109002510B (en) Dialogue processing method, device, equipment and medium
CN110750654A (en) Knowledge graph acquisition method, device, equipment and medium
CN111709527A (en) Operation and maintenance knowledge map library establishing method, device, equipment and storage medium
CN109637000B (en) Invoice detection method and device, storage medium and electronic terminal
CN108932218B (en) Instance extension method, device, equipment and medium
CN110096444A (en) A kind of management system, application method and equipment generating test case based on excel
CN110688111A (en) Configuration method, device, server and storage medium of business process
CN111694561A (en) Interface management method, device, equipment and storage medium
US11423219B2 (en) Generation and population of new application document utilizing historical application documents
CN111143556A (en) Software function point automatic counting method, device, medium and electronic equipment
CN113836014A (en) Interface testing method and device, electronic equipment and storage medium
CN111240971B (en) Method and device for generating wind control rule test case, server and storage medium
CN110362688B (en) Test question labeling method, device and equipment and computer readable storage medium
CN112799760A (en) Form rendering method and device
CN111046085A (en) Data source tracing processing method and device, medium and equipment
CN113792138B (en) Report generation method and device, electronic equipment and storage medium
CN115759040A (en) Electronic medical record analysis method, device, equipment and storage medium
CN113792138A (en) Report generation method and device, electronic equipment and storage medium
CN111401009B (en) Digital expression character recognition conversion method, device, server and storage medium
CN113553309A (en) Log template determination method and device, electronic equipment and storage medium
CN109948251B (en) CAD-based data processing method, device, equipment and storage medium
CN110750569A (en) Data extraction method, device, equipment and storage medium
CN113806556A (en) Method, device, equipment and medium for constructing knowledge graph based on power grid data
CN108932326B (en) Instance extension method, device, equipment and medium
CN113190643B (en) Information generation method, terminal device, and computer-readable medium

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
GR01 Patent grant