CN113792138B - 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
CN113792138B
CN113792138B CN202111074830.5A CN202111074830A CN113792138B CN 113792138 B CN113792138 B CN 113792138B CN 202111074830 A CN202111074830 A CN 202111074830A CN 113792138 B CN113792138 B CN 113792138B
Authority
CN
China
Prior art keywords
report
target
node
determining
generation instruction
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.)
Active
Application number
CN202111074830.5A
Other languages
Chinese (zh)
Other versions
CN113792138A (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
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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a report generation method, a report generation 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 lower production efficiency and poor expansibility in the prior art that a user manually produces the report, 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 inputting 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, a report generation device, electronic equipment and a storage medium.
Background
The report is a mode for displaying data in forms of tables, icons and the like, and is increasingly widely applied to the aspects of decision making, advertisement delivery, industry trend analysis and the like of a product scheme. How to provide a reasonable set of data report design schemes based on massive amounts of raw data is becoming more and more important.
The existing report generation technology mainly comprises manual customization, namely, a report is realized by writing a specific program according to the characteristics of each report, the production efficiency is low, the expansibility is poor, redesign writing is required when a new report is added, the workload is still large, the existing report generation technology is not suitable for the current massive data statistical analysis requirement of a power grid, and a method for conveniently generating the report according to a user command is needed.
Disclosure of Invention
The embodiment of the invention provides a report generation method, a report generation device, electronic equipment and a storage medium, which can obtain a target report without manually inputting report data, thereby not only achieving the technical effects of improving efficiency and improving user experience, but also avoiding the problem that the manually inputting report data is easy to make mistakes.
In a first aspect, an embodiment of the present invention provides a report generating method, an apparatus, an electronic device, and a storage medium, where the method includes:
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;
Determining target nodes corresponding to each target keyword in a pre-constructed knowledge graph according to each target keyword, 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 device, where the report generating device includes:
the initial report construction module is used for 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 node information determining module is used for determining target nodes corresponding to each target keyword in a pre-constructed knowledge graph according to each target keyword and determining 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, including:
one or more processors;
a storage means for storing one or more programs;
When the program is executed by the processor, the processor is caused to implement a report generating method as provided by any embodiment of the present invention.
In a fourth aspect, embodiments of the present invention further provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a report generating method as provided by any of the embodiments of the present invention.
According to the technical scheme, the report generation instruction used for generating the target report is received and input by the user, and after the report generation instruction is received, the report generation instruction can be analyzed, so that each target keyword contained in the report generation instruction can be determined, an initial report is built based on each target keyword, and preliminary customization of the report is rapidly and effectively realized. After the initial report is constructed, determining a target node corresponding to each target keyword in a pre-constructed knowledge graph according to each target keyword, and determining node information corresponding to each target node. 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 a target report can be obtained, the technical problems of low production efficiency and poor expansibility in the prior art that a user manually produces the report 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 inputting report data is easy to make mistakes is solved.
Drawings
In order to more clearly illustrate the technical solution of the exemplary embodiments of the present invention, a brief description is given below of the drawings required for describing the embodiments. It is obvious that the drawings presented are only drawings of some of the embodiments of the invention to be described, and not all the drawings, and that other drawings can be made according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a report generating method according to a first embodiment of the present invention;
FIG. 2 is a schematic flow chart of a report generating method according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of a report generating device 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 invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a schematic flow chart of a report generating method according to a first embodiment of the present invention, where the method may be applied to a case of generating a target report based on a pre-constructed knowledge graph, and the method may be performed by a report generating device, where the report generating device may be implemented in a software and/or hardware manner, and the report generating device may be integrated into 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 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 may be a report that needs to be generated at the current time. Report generation instructions may be understood as instructions for generating a target report. Alternatively, the user may input report generation instructions for generating the target report by voice or text. The report generating instructions may include one or more target keywords. The target keywords may be keywords included in the report generation instruction at the current time. The initial report may be a report constructed 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. Further, a target keyword included in the report generation instruction is determined. After determining the target keywords contained in the report generation instruction, an initial report may be constructed based on the target keywords.
Optionally, receiving a report generation instruction input by a user for generating a target report may be receiving a report generation instruction generated by a preset identifier for generating the target report triggered by the user; the report generation command and the like for generating the target report may be received, which are input by the user based on the input device.
The report generation command for generating the target report based on the input of the input device may be a report generation command that is preset by a user through a physical input device (such as a mouse, a handwriting device, and/or a keyboard) or a touch device (such as a virtual keyboard and/or a handwriting area), and the like, in a setting input box. It will be appreciated that the specific expression form of the report generation command may be set according to the actual requirement, and is not limited herein, and may be, for example, text and/or numerals.
It should be noted that, the report generation instruction may be generated in various manners, for example, when detecting that the user clicks or clicks the application program for generating the target report, the report generation instruction may be generated; alternatively, the report generation instruction may be generated when it is detected that the user inputs the user name and the password determination in the application summary.
S120, determining target nodes corresponding to each target keyword in a pre-constructed knowledge graph according to each target keyword, and determining node information corresponding to each target node.
One or more target nodes can be included in the pre-constructed knowledge graph. The target node may be a node corresponding to the target keyword in the knowledge graph. 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 a 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, the node information corresponding to each target node may be determined according to each target node.
Optionally, the knowledge graph is constructed by the steps of:
Step one, acquiring 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 electric energy data in each distribution transformer area. The first node may characterize the distribution transformer area. The number of first nodes may be one, two or more. The second node may characterize the 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 piece of electric energy data in each distribution transformer area is obtained from the target database, after each piece of electric energy data in each distribution transformer area is obtained, each distribution transformer area can be used as a first node, and each piece of 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 merely used to distinguish between different types of nodes, and are not limited to the order or content of the nodes.
Optionally, before acquiring the electric energy data in each distribution transformer area from the target database, the electric energy data in each distribution transformer area during the operation of the power grid may be acquired, and the electric energy data in each distribution transformer area may be stored in the target database.
And step two, determining a first node relation among the first nodes, a second node relation among the first nodes and the second nodes corresponding to the first nodes and a third node relation among the second nodes corresponding to the first nodes based on the relation among the distribution transformer areas and the relation 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 a 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 relation 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 relation between the second nodes corresponding to the first nodes according to the relation between each piece of electric energy data included in each distribution transformer area. So that a first node relationship, a second node relationship, and a third node relationship can be determined.
And thirdly, 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 with the first node relationship can be connected in pairs according to the first node relationship. And according to the second node relation, establishing connection between the first node with the second node relation and the second node corresponding to the first node. And according to the third node relation, establishing connection between every two second nodes corresponding to the first nodes with the third node relation. After the connection is established, a knowledge graph can be obtained.
S130, importing the node information corresponding to each target node into the initial report to obtain a target report.
Specifically, 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, and after the node information importing is completed, the target report can be obtained.
According to the technical scheme, the report generation instruction used for generating the target report is received and input by the user, and after the report generation instruction is received, the report generation instruction can be analyzed, so that each target keyword contained in the report generation instruction can be determined, an initial report is built based on each target keyword, and preliminary customization of the report is quickly and effectively achieved. After the initial report is constructed, determining a target node corresponding to each target keyword in a pre-constructed knowledge graph according to each target keyword, and determining node information corresponding to each target node. 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 a target report can be obtained, the technical problems of low production efficiency and poor expansibility in the prior art that a user manually produces the report 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 inputting report data is easy to make mistakes is solved.
Example two
Fig. 2 is a schematic flow chart of a report generating method according to a second embodiment of the present invention, and on the basis of the foregoing embodiment, optionally, the receiving a report generating instruction input by a user to generate 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 for generating a target report; inputting the report generating instruction to a word segmentation device which is pre-configured with a semantic search engine, and determining each target keyword included in the report generating 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 generating 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.
Wherein, the technical terms identical to or corresponding to the above embodiments are not repeated herein.
As shown in fig. 2, the method of this 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 into a word segmentation device which is pre-configured with a semantic search engine, determining each target keyword included in the report generation instruction, and constructing an initial report based on each target keyword.
Wherein a segmenter preconfigured with a semantic search engine may be used to determine each target keyword included in the report generation instructions. It should be noted that, the word segmentation device with the semantic search engine may be a word segmentation device in the prior art, such as ZPar word segmentation device, hanlp word segmentation device or word embedding +bi-LSTM +crf word segmentation device, which is not limited herein.
Specifically, after the report generating instruction is received, the word segmentation processing is performed on the report generating instruction through a word segmentation device which is pre-configured with a semantic search engine, so that each target keyword included in the report generating instruction can be determined. After each target keyword included in the report generation instruction is determined, an initial report may be constructed for each target keyword.
Optionally, the initial report is constructed by:
analyzing a report generation instruction through a semantic search engine configured in advance, determining a report type corresponding to the report generation instruction, and constructing a report frame based on the report type.
The report type can be determined by carrying out semantic analysis on a report generation instruction. The report framework may be a report framework constructed based on report types. Optionally, the structural style of the report frame may include, but is not limited to, the following: list, abstract, matrix, and drill.
Specifically, after the report generating instruction is received, semantic analysis can be performed on the received report generating instruction through a pre-configured semantic search engine, so that the report type corresponding to the report generating instruction can be determined. After determining the report type, a report framework may 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 may be understood as an area for storing the target keywords preset in the report frame.
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 preset keyword storage area in the report frame. After the writing process is completed, an initial report may be obtained.
S230, determining target nodes corresponding to each target keyword in a pre-constructed knowledge graph according to each target keyword, 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 for storing node information preset in the initial report.
Specifically, a node information area is preset in the initial report, after the target nodes corresponding to each target keyword are determined in the 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.
S250, storing the node information corresponding to each target node into a node information storage area corresponding to each target node, and obtaining 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 the target report.
Alternatively, when the report generating instruction includes at least two target keywords, the relationship between the target keywords may be determined, and the relationship between the target keywords may be regarded as the target relationship between the target keywords. The target relationships may include, but are not limited to, dependencies and duty cycle relationships. Thus, when at least two target keywords are included in the report generating instruction, the report generating instruction includes target relationships between the target keywords.
On the basis of the above, after the target report is obtained, in order to ensure the accuracy of the target report, the accuracy of report data corresponding to each target keyword in the target report can be detected according to the target relationship. Optionally, the correctness detection is performed on report data corresponding to each target keyword in the target report according to the target relationship, that is, for each target keyword, the correctness detection is performed on report data corresponding to the target keyword and all target keywords except the current target keyword according to the target relationship between the current target keyword and all target keywords except the current target keyword.
Optionally, after correctness detection is performed on report data corresponding to the target keywords with corresponding target relationships, a detection result can be obtained. And then, according to the detection result, the prompt information corresponding to the detection result is generated, and the generated prompt information is displayed, so that the operation corresponding to the prompt information is conveniently 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 of the error of the report data is generated. The processing has the advantages that report data can be fed back to the user in error, and the user can directly correct the report data according to the prompt information, so that a target report is obtained. If the detection result is that the report data has no error data, prompt information for prompting the user that the report data is correct can be generated.
According to the technical scheme, the report generation instruction is input to the word segmentation device which is pre-configured with the semantic search engine, each target keyword included in the report generation instruction is determined, and an initial report is built based on each target keyword. And determining target nodes corresponding to each target keyword in a pre-constructed knowledge graph according to each target keyword, 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 report data input manually is easy to make mistakes is avoided.
Example III
Fig. 3 is a schematic diagram of a report generating device according to a third embodiment of the present invention, where the present invention provides a report generating device, and the report generating device includes: an initial report construction module 310, a node information determination module 320, and a target report acquisition module 330.
The initial report construction module 310 is configured to receive a report generation instruction input by a user for generating a target report, parse the report generation instruction, determine each target keyword included in the report generation instruction, and construct an 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, through an initial report construction module, a report generation instruction which is input by a user and used for generating a target report is received, the report generation instruction is analyzed, each target keyword contained in the report generation instruction is determined, and an initial report is constructed based on each target keyword. And determining target nodes corresponding to each target keyword in a pre-constructed knowledge graph according to each target keyword through a node information determining module, and determining node information corresponding to each target node. The target report obtaining module is used for importing the node information corresponding to each target node into the initial report to obtain the target report, so that the technical problems of low production efficiency and poor expansibility in the prior art that a user manually produces the report 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 inputting report data is easy to make mistakes is solved.
Optionally, the apparatus further comprises: the knowledge graph construction module is used for acquiring 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 relation among the first nodes, a second node relation among the first nodes and second nodes corresponding to the first nodes, and a third node relation among the second nodes corresponding to the first nodes based on the relation among the distribution transformer areas and the relation among each piece of 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 construction module 310 is configured to receive a report generation instruction input by a user to generate a target report; inputting the report generating instruction to a word segmentation device which is pre-configured with a semantic search engine, and determining each target keyword included in the report generating instruction.
Optionally, the apparatus further comprises: the initial report obtaining module is used for analyzing the report generating instruction through the pre-configured 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 generating 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 report data corresponding to each target keyword in the target report according to the target relation.
Optionally, before the acquiring 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 the electric energy data in each distribution transformer area into the target database.
The device can execute the report generating method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the report generating method.
It should be noted that, each unit and module included in the report generating device are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be realized; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present invention.
Example IV
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 merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention. Device 12 is typically an electronic device that undertakes the processing of configuration information.
As shown in fig. 4, the electronic device 12 is in the form of a general purpose computing device. Components of the 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 connecting the different components, including the memory 28 and the processing unit 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry standard architecture (Industry Standard Architecture, ISA) bus, micro channel architecture (Micro Channel Architecture, MCA) bus, enhanced ISA bus, video electronics standards association (Video Electronics Standards Association, VESA) local bus, and peripheral component interconnect (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus.
Electronic device 12 typically includes a variety of computer-readable media. Such media can 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 (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 or write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard disk drive"). Although not shown in the drawings, a 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 and writing to a removable nonvolatile optical disk (e.g., a Compact Disc-Read Only Memory (CD-ROM), digital versatile Disc (Digital Video Disc-Read Only Memory, DVD-ROM), or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product 40, with program product 40 having a set of program modules 42 configured to perform the functions of embodiments of the present invention. Program product 40 may be stored, for example, in memory 28, such program modules 42 include, but are not limited to, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, mouse, camera, etc., and display), with one or more devices that enable a user to interact with the electronic device 12, and/or with any device (e.g., network card, modem, etc.) that enables the electronic device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, electronic device 12 may communicate with one or more networks such as a local area network (Local Area Network, LAN), a wide area network Wide Area Network, a WAN, and/or a public network such as the internet via network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 over the bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk array (Redundant Arrays of INDEPENDENT DISKS, RAID) devices, tape drives, data backup storage, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the memory 28, for example, implementing a report generation method provided by the above-described embodiment of the present invention, the method including:
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; determining target nodes corresponding to each target keyword in a pre-constructed knowledge graph according to each target keyword, 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 will understand that the processor may also implement the technical solution of the report generating method provided in any embodiment of the present invention.
Example five
A fifth embodiment of the present invention further provides a computer readable storage medium having a computer program stored thereon, where the program, when executed by a processor, is a report generating method provided by the foregoing embodiment of the present invention, for example, the method includes:
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;
Determining target nodes corresponding to each target keyword in a pre-constructed knowledge graph according to each target keyword, 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 computer storage media of embodiments of the invention may take the form of 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. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 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.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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 one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. 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, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (7)

1. A report generation method, comprising:
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;
Determining target nodes corresponding to each target keyword in a pre-constructed knowledge graph according to each target keyword, and determining node information corresponding to each target node;
Importing the node information corresponding to each target node into the initial report to obtain a target report;
The report generation instruction comprises target relations among the target keywords;
After obtaining the target report, the method further comprises:
According to the target relation, carrying out correctness detection on report data corresponding to each target keyword in the target report;
The method further comprises the steps of:
acquiring 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 relation among the first nodes, a second node relation among the first nodes and second nodes corresponding to the first nodes, and a third node relation among the second nodes corresponding to the first nodes based on the relation among the distribution transformer areas and the relation among each piece of electric energy data included in each distribution transformer area;
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;
Analyzing the report generation instruction through a pre-configured 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.
2. The method of claim 1, wherein receiving the report generation instruction input by the user for generating the target report, parsing 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 for generating a target report;
Inputting the report generating instruction to a word segmentation device which is pre-configured with a semantic search engine, and determining each target keyword included in the report generating instruction.
3. The method of claim 1, wherein importing the node information corresponding to each of the target nodes 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.
4. The method of claim 1, wherein prior to said retrieving each power data in each distribution transformer area from the target database, the method further comprises:
and storing the electric energy data in each distribution transformer area into the target database.
5. A report generating apparatus, comprising:
the initial report construction module is used for 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 node information determining module is used for determining target nodes corresponding to each target keyword in a pre-constructed knowledge graph according to each target keyword and determining node information corresponding to each target node;
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;
The report generation instruction comprises target relations between each target keyword and each target keyword; after obtaining the target report, the device further comprises:
the target report detection module is used for detecting the correctness of report data corresponding to each target keyword in the target report according to the target relation;
the knowledge graph construction module is used for:
acquiring 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 relation among the first nodes, a second node relation among the first nodes and second nodes corresponding to the first nodes, and a third node relation among the second nodes corresponding to the first nodes based on the relation among the distribution transformer areas and the relation among each piece of electric energy data included in each distribution transformer area;
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;
The initial report obtaining module is used for:
Analyzing the report generation instruction through a pre-configured 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.
6. An electronic device, the electronic device comprising:
one or more processors;
a storage means for storing one or more programs;
The program, when executed by the processor, causes the processor to implement a report generating method as claimed in any one of claims 1 to 4.
7. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a report generating method according to any of claims 1-4.
CN202111074830.5A 2021-09-14 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 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 2021-09-14 Report generation method and device, electronic equipment and storage medium

Publications (2)

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

Family

ID=78880307

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN113792138B (en)

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

Also Published As

Publication number Publication date
CN113792138A (en) 2021-12-14

Similar Documents

Publication Publication Date Title
CN108519967B (en) Chart visualization method and device, terminal and storage medium
CN109471863B (en) Information query method and device based on distributed database and electronic equipment
CN109002510B (en) Dialogue processing method, device, equipment and medium
CN111709527A (en) Operation and maintenance knowledge map library establishing method, device, equipment and storage medium
CN109524070B (en) Data processing method and device, electronic equipment and storage medium
CN110825767A (en) Data query method, platform, equipment and storage medium
CN111158795A (en) Report generation method, device, medium and electronic equipment
CN112711581B (en) Medical data checking method and device, electronic equipment and storage medium
CN111078729B (en) Medical data tracing method, device, system, storage medium and electronic equipment
CN111694561A (en) Interface management method, device, equipment and storage medium
CN110688111A (en) Configuration method, device, server and storage medium of business process
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
CN113760839A (en) Log data compression processing method and device, electronic equipment and storage medium
CN113609008A (en) Test result analysis method and device and electronic equipment
CN113836014A (en) Interface testing method and device, electronic equipment and storage medium
CN113094625A (en) Page element positioning method and device, electronic equipment and storage medium
CN113760894A (en) Data calling method and device, electronic equipment and storage medium
CN113792138B (en) Report generation method and device, electronic equipment and storage medium
CN111046085A (en) Data source tracing processing method and device, medium and equipment
CN113806556A (en) Method, device, equipment and medium for constructing knowledge graph based on power grid data
CN115600038A (en) Page rendering method, device, equipment and medium
CN111401009B (en) Digital expression character recognition conversion method, device, server and storage medium
CN110750569A (en) Data extraction method, device, equipment and storage medium
CN110309062A (en) Case generation method, device, electronic equipment and storage 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
GR01 Patent grant