CN114707474A - Report generation method and device, electronic equipment and computer readable storage medium - Google Patents
Report generation method and device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN114707474A CN114707474A CN202210439902.XA CN202210439902A CN114707474A CN 114707474 A CN114707474 A CN 114707474A CN 202210439902 A CN202210439902 A CN 202210439902A CN 114707474 A CN114707474 A CN 114707474A
- Authority
- CN
- China
- Prior art keywords
- configuration
- target
- requirement
- data list
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/177—Editing, e.g. inserting or deleting of tables; using ruled lines
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/205—Parsing
- G06F40/216—Parsing using statistical methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/279—Recognition of textual entities
- G06F40/289—Phrasal analysis, e.g. finite state techniques or chunking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/30—Semantic analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Probability & Statistics with Applications (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to an artificial intelligence technology, and discloses a report generation method, which comprises the following steps: acquiring configuration requirements of a user, and extracting requirement semantics of the configuration requirements; calculating a matching value between the requirement semantics and a configuration label of each preset configuration in a plurality of preset configurations, and selecting the preset configuration corresponding to the configuration label with the maximum matching value as a target configuration; acquiring a data list initial frame, and configuring the data list initial frame according to the target configuration to obtain a target frame; and performing database connection configuration on the target frame to obtain a data list. In addition, the invention also relates to a block chain technology, and the data list can be stored in the node of the block chain. The invention also provides a report generating device, electronic equipment and a storage medium. The invention can improve the efficiency of generating the report.
Description
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to a report generation method and device, electronic equipment and a computer readable storage medium.
Background
With the diversification of the demands of people, the existing data list only has an initial frame and does not have multiple configurations to meet the diversified demands of customers, and in order to provide better consumer experience for users and improve the efficiency of generating the data list, a configured classical template needs to be provided for the users.
The existing data report needs a lot of complicated steps such as step-by-step configuration of a data source, setting of a template, configuration of a header, binding of the data source and a field, adjustment of a pattern and the like, and a large amount of workload and time waste exist. In the fast-paced working mode, the time-consuming and labor-consuming data report is destined to be abandoned, and more time-saving and labor-saving functions are required for replacement, so how to improve the generation efficiency of the data report becomes a problem to be solved urgently.
Disclosure of Invention
The invention provides a report generation method and device and a computer readable storage medium, and mainly aims to solve the problem of low efficiency in report generation.
In order to achieve the above object, the present invention provides a report generating method, including:
acquiring configuration requirements of a user, and extracting requirement semantics of the configuration requirements;
calculating a matching value between the requirement semantics and a configuration label of each preset configuration in a plurality of preset configurations, and selecting the preset configuration corresponding to the configuration label with the maximum matching value as a target configuration;
acquiring a data list initial frame, and configuring the data list initial frame according to the target configuration to obtain a target frame;
and performing database connection configuration on the target frame to obtain a data list.
Optionally, the extracting requirement semantics of the configuration requirement includes:
performing word segmentation processing on the configuration requirement to obtain a requirement word segmentation;
counting the word segmentation frequency of each word in the required word segmentation, selecting the required word with the word segmentation frequency larger than a preset frequency threshold as a keyword, and converting each word in the keyword into a word vector;
and splicing the word vectors into a vector matrix, and determining the vector matrix as the requirement semantics of the configuration requirement.
Optionally, the concatenating the word vectors into a vector matrix includes:
counting the vector length of each word vector in the word vectors, and determining the maximum value in the vector lengths as a target length;
extending the vector length of each of the word vectors to the target length using preset parameters;
and splicing each prolonged word vector as a row vector to obtain a vector matrix.
Optionally, the calculating a matching value between the requirement semantics and the configuration tag of each preset configuration in the plurality of preset configurations includes:
wherein P is the match value, a is the requirement semantics, biA configuration tag for an ith configuration of the plurality of preset configurations.
Optionally, the configuring the data list initial frame according to the target configuration includes at least one of the following configurations:
carrying out field shape configuration on the initial frame of the data list according to the field shape in the target configuration;
performing trigger event configuration on the data list initial frame according to a trigger event in the target configuration;
performing skip page configuration on the initial frame of the data list according to a skip page in the target configuration;
and performing query configuration on the data list initial frame according to a query function in the target configuration.
Optionally, the performing query configuration on the data list initial frame according to a query function in the target configuration includes:
acquiring a query function corresponding to the query function, and determining a query parameter corresponding to the query function;
and generating a query entry corresponding to the query function in the initial frame of the data list according to the query parameter.
Optionally, the performing a database connection configuration on the target framework includes:
acquiring a unique identifier of a preset database, and inquiring data interface parameters of the preset database according to the unique identifier;
compiling the data interface parameters into interface connection statements;
and connecting the target frame with the preset database by using the interface connection statement.
In detail, the unique identifier includes, but is not limited to, a database number, a database address, and the like, which can be used to mark only the preset database.
In order to solve the above problem, the present invention further provides a report generating apparatus, including:
the requirement acquisition module is used for acquiring the configuration requirement of a user and extracting the requirement semantics of the configuration requirement;
the matching value calculation module is used for calculating a matching value between the requirement semantics and the configuration tag of each preset configuration in multiple preset configurations, and selecting the preset configuration corresponding to the configuration tag with the maximum matching value as a target configuration;
the frame configuration module is used for acquiring a data list initial frame and configuring the data list initial frame according to the target configuration to obtain a target frame;
and the database connection module is used for carrying out database connection configuration on the target frame to obtain a data list.
In order to solve the above problem, the present invention also provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the report generating method described above.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is executed by a processor in an electronic device to implement the report generation method described above.
In the embodiment of the invention, the configuration requirements of the user are analyzed, and a data report which is more in line with the requirements of the user can be generated. The initial frame of the data list is configured in advance, so that the field form, the trigger event, the skip page, the query function and the like are added, further, when the data list is required to be used for data storage and display, development reports do not need to be configured step by step, the workload is reduced, the development time is shortened, and the data storage, processing and analysis efficiency is improved. Therefore, the invention provides a report generation device, an electronic device and a computer readable storage medium, which can improve the efficiency of storing data into a data list, and further solve the problem of low efficiency in report generation.
Drawings
Fig. 1 is a schematic flow chart illustrating a report generating method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a process for extracting requirement semantics according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating database connections according to an embodiment of the present invention;
fig. 4 is a functional block diagram of a report generation apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device for implementing the report generating method according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the application provides a report generation method. The execution subject of the report generation method includes, but is not limited to, at least one of electronic devices that can be configured to execute the method provided by the embodiment of the present application, such as a server, a terminal, and the like. In other words, the report generation method may be executed by software or hardware installed in the terminal device or the server device, and the software may be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
Fig. 1 is a schematic flow chart of a report generation method according to an embodiment of the present invention.
In this embodiment, the report generating method includes the following steps S1-S4:
s1, acquiring the configuration requirement of a user, and extracting the requirement semantic meaning of the configuration requirement;
in the embodiment of the invention, when the user selects the form template, the configuration of the form head, the font, the style, the line spacing, the attractiveness, the database configuration, the database type and the like of the form can be required, and the configuration requirements of the user can be acquired.
In the embodiment of the present invention, since a configuration requirement of a user may include a large amount of data, and if the configuration requirement is directly processed, a large amount of computing resources may be occupied, the embodiment of the present invention may analyze the configuration requirement to extract a requirement semantic from the configuration requirement, and in detail, the requirement semantic is a statement meaning that the configuration requirement is intended to express.
In an embodiment of the present invention, referring to fig. 2, the extracting requirement semantics of the configuration requirement includes the following steps S21-S23:
s21, performing word segmentation processing on the configuration requirement to obtain a requirement word segmentation;
in detail, the configuration requirement may be segmented by using a pre-trained artificial intelligence Model with a segmentation function, so as to obtain the requirement segmentation, where the artificial intelligence Model includes, but is not limited to, an NLP (Natural Language Processing) Model, and an HMM (Hidden Markov Model). S22, counting the word segmentation frequency of each word in the demand word segmentation, selecting the demand word with the word segmentation frequency larger than a preset frequency threshold as a keyword, and converting each word in the keyword into a word vector;
specifically, the word segmentation frequency refers to the number of times that a word segmentation occurs in the required word segmentation of the configuration requirement, and when the word segmentation frequency of the word segmentation is higher, the importance of the word segmentation is higher, so that the required word segmentation with the word segmentation frequency greater than a preset frequency threshold value can be selected as the keyword.
Further, in order to improve the processing efficiency of the keywords, the keywords may be converted into word vectors in numerical form using a pre-trained word vector model, wherein the word vector model includes, but is not limited to, word2vec model, bert model. S23, splicing the word vectors into a vector matrix, and determining the vector matrix as the requirement semantics of the configuration requirement.
In the embodiment of the present invention, the splicing the word vectors into a vector matrix includes: counting the vector length of each word vector in the word vectors, and determining the maximum value in the vector lengths as a target length; extending the vector length of each of the word vectors to the target length using preset parameters; and splicing each prolonged word vector as a row vector to obtain a vector matrix.
In detail, since the word vectors are obtained by converting different keywords, there may be differences in vector lengths of different vectors in the word vectors, and for convenience of subsequent concatenation, lengths of all word vectors may be extended to a uniform length by using preset parameters.
For example, the word vector includes vector a: (1,4,6), vector B: (2,3), vector C: (3,7,8,9), it can be known through statistics that the vector length of the vector a is 3, the vector length of the vector B is 2, and the vector length of the vector C is 4, then it is determined that 4 is the target length, and the vector length of the vector a is extended to 4 by using a preset parameter (e.g. x), so as to obtain an extended vector a: (1,4,6, x), extending the vector length of vector B to 4, resulting in an extended vector B: (2,3, x, x).
Further, each word vector after extension can be used as a row vector and is spliced into a vector matrix as follows:
in the embodiment of the invention, the vector matrix is formed by splicing the vectors corresponding to the keywords of the configuration requirement, so that the vector matrix can be used as the requirement semantics of the configuration requirement.
S2, calculating a matching value between the requirement semantics and a configuration label of each preset configuration in a plurality of preset configurations, and selecting the preset configuration corresponding to the configuration label with the maximum matching value as a target configuration;
in embodiments of the present invention, the preset configuration comprises any configuration that is accessible to the user. For example, a working table established according to the preset configured text format, query, filtering function, etc.
In detail, when the matching value between the requirement semantics and the preset configuration tag is larger, it indicates that the configuration requirement corresponding to the requirement semantics is more likely to hope to acquire the preset configuration corresponding to the preset tag.
In this embodiment of the present invention, the calculating a matching value between the requirement semantic and the configuration tag of each of the plurality of preset configurations includes:
wherein P is the match value, a is the requirement semantics, biA configuration tag for an ith configuration of the plurality of preset configurations.
In the embodiment of the present invention, according to the matching value between the requirement semantics and each configuration tag, the preset configuration corresponding to the configuration tag with the largest matching value may be selected as the target configuration.
In the embodiment of the invention, a target configuration is screened from a plurality of preset configurations through the configuration semantics of the configuration requirement, wherein the target configuration comprises but is not limited to field form, a trigger event, a jump page and a query function.
S3, acquiring a data list initial frame, and configuring the data list initial frame according to the target configuration to obtain a target frame;
in the embodiment of the present invention, the configuring the data list initial frame according to the target configuration includes at least one of the following configurations: carrying out field shape configuration on the initial frame of the data list according to the field shape in the target configuration; performing trigger event configuration on the data list initial frame according to a trigger event in the target configuration; performing skip page configuration on the initial frame of the data list according to a skip page in the target configuration; and performing query configuration on the data list initial frame according to a query function in the target configuration.
In detail, the field shape configuration includes, but is not limited to, a font size, a font color, and a display manner of the configuration field, wherein the display manner includes, but is not limited to, a text box display, a pop-up window display, and the like.
In practical application, because there is an association between data, the data list initial frame may be configured with a trigger event, so that when a user triggers a specific event (e.g. clicks some specific fields), the user may jump to another field or page according to a preset association relationship. The embodiment of the invention can carry out trigger event configuration on the second frame through functions with judgment functions such as IF functions or computer programs with event monitoring functions, so as to capture each trigger event in the list.
For example, the initial frame of the data list includes a field a, and there is a call association relationship between the field a and the field B, and when a preset function or program captures a click event of a user on the field a in the initial frame of the data list, the call on the field B can be implemented.
Or, the first data list of the data list initial frame includes a field C, the field C has an association relation with a second data list in the data list initial frame, and when a preset function or program captures an event that a user clicks the field C, the second data list can be called.
In the embodiment of the invention, the jump page configuration can be realized by performing hyperlink on the fields with the association relationship or calling the generation of the link. For example, if the field a and the field B have a call association relationship, the field a is generated with a hyperlink for calling the field B, so that the field B is called when the field a is clicked; or, generating a hyperlink of the field A for the field B to realize that the field A is called when the field B is clicked.
In this embodiment of the present invention, the performing query configuration on the data list initial frame according to a query function in the target configuration includes: acquiring a query function corresponding to the query function, and determining a query parameter corresponding to the query function; and generating a query entry corresponding to the query function in the initial frame of the data list according to the query parameter.
In detail, the query function may be a plurality of query functions, and the query function includes, but is not limited to, a conditional query function, a left fuzzy query function, a right fuzzy query function, and an exact query function.
Because the query modes of different query functions are different, the query parameters required by the different query functions are also different, and the query parameters are fields, such as keywords, similar words and the like, required by the query functions when data query is performed.
The embodiment of the invention determines the query parameter of each query function through the preset query parameter table. The query parameter table comprises a plurality of query functions and query parameters corresponding to the query functions, and the query parameters corresponding to each query function can be found by searching in the query parameter table.
Further, the embodiment of the present invention generates corresponding query entries for different query functions according to different query parameters, respectively, where the query entries are visual interfaces for implementing query modes corresponding to the query functions. For example, when the query function is a conditional query, a condition filtering interface is generated in the initial frame of the data list, and the condition filtering interface comprises elements such as a filterable condition and a condition selection button.
And S4, performing database connection configuration on the target frame to obtain a data list.
In the example of the present invention, the configuring the database connection to the target frame includes the following steps S31-S33:
s31, acquiring a unique identifier of a preset database, and inquiring data interface parameters of the preset database according to the unique identifier;
in detail, the unique identifier includes, but is not limited to, a database number, a database address, and the like, which can be used to mark only the preset database.
Specifically, the unique identifier may be utilized to query data interface parameters corresponding to a preset database from a preset database interface parameter table, where the database interface parameter table includes a plurality of databases and data interface parameters corresponding to data interfaces in each database. S32, compiling the data interface parameters into interface connection statements;
and S33, connecting the target frame with the preset database by using the interface connection statement.
In the embodiment of the invention, the data interface parameters can be compiled into interface connection statements, and then the target frame is connected with the preset database by using the interface connection statements, so that database connection configuration is carried out on the target frame to obtain the data list.
In the embodiment of the invention, the configuration requirements of the user are analyzed, and a data report which is more in line with the requirements of the user can be generated. The initial frame of the data list is configured in advance, so that the field form, the trigger event, the skip page, the query function and the like are added, further, when the data list is required to be used for data storage and display, development reports do not need to be configured step by step, the workload is reduced, the development time is shortened, and the data storage, processing and analysis efficiency is improved. Therefore, the invention provides a report generation device, an electronic device and a computer readable storage medium, which can improve the efficiency of storing data into a data list, and further solve the problem of low efficiency in report generation.
Fig. 4 is a functional block diagram of a report generation apparatus according to an embodiment of the present invention.
The report generating apparatus 100 according to the present invention may be installed in an electronic device. According to the implemented functions, the report generating apparatus 100 may include a requirement obtaining module 101, a matching value calculating module 102, a framework configuring module 103, and a database connecting module 104. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and can perform a fixed function, and are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the requirement acquisition module acquires the configuration requirement of a user and extracts the requirement semantics of the configuration requirement;
the matching value calculation module is used for calculating a matching value between the requirement semantics and a configuration tag of each preset configuration in a plurality of preset configurations, and selecting the preset configuration corresponding to the configuration tag with the maximum matching value as a target configuration;
the frame configuration module is used for acquiring a data list initial frame and configuring the data list initial frame according to the target configuration to obtain a target frame;
and the database connection module is used for carrying out database connection configuration on the target frame to obtain a data list.
Fig. 5 is a schematic structural diagram of an electronic device implementing a report generating method according to an embodiment of the present invention.
The electronic device 1 may include a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may further include a computer program, such as a report generator, stored in the memory 11 and executable on the processor 10.
In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions, and includes one or more Central Processing Units (CPUs), a microprocessor, a digital Processing chip, a graphics processor, a combination of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the whole electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules (e.g., executing a report generation program, etc.) stored in the memory 11 and calling data stored in the memory 11.
The memory 11 includes at least one type of readable storage medium including flash memory, removable hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, and the like. The memory 11 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only to store application software installed in the electronic device and various types of data, such as a code of a report generator, etc., but also to temporarily store data that has been output or is to be output.
The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
The communication interface 13 is used for communication between the electronic device and other devices, and includes a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are typically used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a Display (Display), an input unit such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
Only electronic devices having components are shown, it will be understood by those skilled in the art that the structures shown in the figures do not constitute limitations on the electronic devices, and may include fewer or more components than shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management and the like are realized through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The report generator stored in the memory 11 of the electronic device 1 is a combination of a plurality of instructions, and when running in the processor 10, can implement:
acquiring configuration requirements of a user, and extracting requirement semantics of the configuration requirements;
calculating a matching value between the requirement semantics and a configuration label of each preset configuration in a plurality of preset configurations, and selecting the preset configuration corresponding to the configuration label with the maximum matching value as a target configuration;
acquiring a data list initial frame, and configuring the data list initial frame according to the target configuration to obtain a target frame;
and performing database connection configuration on the target frame to obtain a data list.
Specifically, the specific implementation method of the processor 10 for the instruction may refer to the description of the relevant steps in the embodiment corresponding to the drawing, and is not repeated here.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, a recording medium, a usb-disk, a removable hard disk, a magnetic diskette, an optical disk, a computer Memory, a Read-Only Memory (ROM).
The present invention also provides a computer-readable storage medium storing a computer program which, when executed by a processor of an electronic device, implements:
acquiring configuration requirements of a user, and extracting requirement semantics of the configuration requirements;
calculating a matching value between the requirement semantics and a configuration label of each preset configuration in a plurality of preset configurations, and selecting the preset configuration corresponding to the configuration label with the maximum matching value as a target configuration;
acquiring a data list initial frame, and configuring the data list initial frame according to the target configuration to obtain a target frame;
and performing database connection configuration on the target frame to obtain a data list.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims (10)
1. A report generation method is characterized by comprising the following steps:
acquiring configuration requirements of a user, and extracting requirement semantics of the configuration requirements;
calculating a matching value between the requirement semantics and a configuration label of each preset configuration in a plurality of preset configurations, and selecting the preset configuration corresponding to the configuration label with the maximum matching value as a target configuration;
acquiring a data list initial frame, and configuring the data list initial frame according to the target configuration to obtain a target frame;
and performing database connection configuration on the target frame to obtain a data list.
2. The report generation method of claim 1, wherein the extracting requirement semantics of the configuration requirement comprises:
performing word segmentation processing on the configuration requirement to obtain a requirement word segmentation;
counting the word segmentation frequency of each word in the required word segmentation, selecting the required word with the word segmentation frequency larger than a preset frequency threshold as a keyword, and converting each word in the keyword into a word vector;
and splicing the word vectors into a vector matrix, and determining the vector matrix as the requirement semantics of the configuration requirement.
3. The report generation method of claim 2, wherein the concatenating the word vectors into a vector matrix comprises:
counting the vector length of each word vector in the word vectors, and determining the maximum value in the vector lengths as a target length;
extending the vector length of each of the word vectors to the target length using preset parameters;
and splicing each prolonged word vector as a row vector to obtain a vector matrix.
4. The report generation method according to claim 1, wherein the calculating a matching value between the requirement semantics and the configuration tag of each of the plurality of preset configurations comprises:
wherein P is the match value, a is the requirement semantics, biA configuration tag for an ith configuration of the plurality of preset configurations.
5. The report generation method according to claim 1, wherein said configuring the data list initial framework according to the target configuration comprises at least one of:
carrying out field shape configuration on the initial frame of the data list according to the field shape in the target configuration;
performing trigger event configuration on the data list initial frame according to a trigger event in the target configuration;
performing skip page configuration on the initial frame of the data list according to a skip page in the target configuration;
and performing query configuration on the data list initial frame according to a query function in the target configuration.
6. The report generation method according to claim 5, wherein the query configuration of the initial frame of the data list according to the query function in the target configuration comprises:
acquiring a query function corresponding to the query function, and determining a query parameter corresponding to the query function;
and generating a query entry corresponding to the query function in the initial frame of the data list according to the query parameter.
7. The report generation method according to any of claims 1 to 6, wherein the performing a database connection configuration on the target framework comprises:
acquiring a unique identifier of a preset database, and inquiring data interface parameters of the preset database according to the unique identifier;
compiling the data interface parameters into interface connection statements;
and connecting the target frame with the preset database by using the interface connection statement.
8. A report generation apparatus, characterized in that the apparatus comprises:
the requirement acquisition module is used for acquiring the configuration requirement of a user and extracting the requirement semantics of the configuration requirement;
the matching value calculation module is used for calculating a matching value between the requirement semantics and the configuration tag of each preset configuration in multiple preset configurations, and selecting the preset configuration corresponding to the configuration tag with the maximum matching value as a target configuration;
the frame configuration module is used for acquiring a data list initial frame and configuring the data list initial frame according to the target configuration to obtain a target frame;
and the database connection module is used for carrying out database connection configuration on the target frame to obtain a data list.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the report generating method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the report generating method according to any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210439902.XA CN114707474A (en) | 2022-04-25 | 2022-04-25 | Report generation method and device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210439902.XA CN114707474A (en) | 2022-04-25 | 2022-04-25 | Report generation method and device, electronic equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114707474A true CN114707474A (en) | 2022-07-05 |
Family
ID=82173961
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210439902.XA Pending CN114707474A (en) | 2022-04-25 | 2022-04-25 | Report generation method and device, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114707474A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115134170A (en) * | 2022-08-30 | 2022-09-30 | 珠海星云智联科技有限公司 | Pair-knock verification method, electronic equipment and storage medium |
CN115859911A (en) * | 2023-01-13 | 2023-03-28 | 佰聆数据股份有限公司 | Label automatic generation evolution method and device adaptive to dynamic data change |
CN116756296A (en) * | 2023-08-18 | 2023-09-15 | 中联神帆(北京)科技有限公司 | Consultation information management method and system based on privacy protection |
-
2022
- 2022-04-25 CN CN202210439902.XA patent/CN114707474A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115134170A (en) * | 2022-08-30 | 2022-09-30 | 珠海星云智联科技有限公司 | Pair-knock verification method, electronic equipment and storage medium |
CN115134170B (en) * | 2022-08-30 | 2022-12-02 | 珠海星云智联科技有限公司 | Pair-knock verification method, electronic equipment and storage medium |
CN115859911A (en) * | 2023-01-13 | 2023-03-28 | 佰聆数据股份有限公司 | Label automatic generation evolution method and device adaptive to dynamic data change |
CN115859911B (en) * | 2023-01-13 | 2023-05-16 | 佰聆数据股份有限公司 | Automatic label generation evolution method and device adapting to dynamic change of data |
CN116756296A (en) * | 2023-08-18 | 2023-09-15 | 中联神帆(北京)科技有限公司 | Consultation information management method and system based on privacy protection |
CN116756296B (en) * | 2023-08-18 | 2023-11-17 | 中联神帆(北京)科技有限公司 | Consultation information management method and system based on privacy protection |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111813963B (en) | Knowledge graph construction method and device, electronic equipment and storage medium | |
CN114707474A (en) | Report generation method and device, electronic equipment and computer readable storage medium | |
CN111428458A (en) | Universal report generation method and device and computer readable storage medium | |
CN113961584A (en) | Method and device for analyzing field blood relationship, electronic equipment and storage medium | |
CN115408399A (en) | Blood relationship analysis method, device, equipment and storage medium based on SQL script | |
CN201435074Y (en) | Device for generating test case based on member | |
CN112528013A (en) | Text abstract extraction method and device, electronic equipment and storage medium | |
CN115202639A (en) | Code generation method, device, equipment and storage medium based on custom module | |
CN115129753A (en) | Data blood relationship analysis method and device, electronic equipment and storage medium | |
CN113434542B (en) | Data relationship identification method and device, electronic equipment and storage medium | |
CN113886204A (en) | User behavior data collection method and device, electronic equipment and readable storage medium | |
CN113687825A (en) | Software module construction method, device, equipment and storage medium | |
CN116450723A (en) | Data extraction method, device, computer equipment and storage medium | |
CN114385155A (en) | vue project visualization tool generation method, device, equipment and storage medium | |
CN115048920A (en) | Front-end data exporting method, device, equipment and storage medium | |
CN111553133B (en) | Report generation method and device, electronic equipment and storage medium | |
CN114721952A (en) | Method, device, equipment and storage medium for synchronously deploying multiple sets of test environments | |
CN114357337A (en) | Cache management method, device, equipment and storage medium | |
CN113822215A (en) | Equipment operation guide file generation method and device, electronic equipment and storage medium | |
CN111680204A (en) | Data acquisition method, data acquisition device and computer readable storage medium | |
CN113420045B (en) | Method and system for constructing technical and tactical model based on interactive analysis | |
CN115237941A (en) | Data reporting method and device, electronic equipment and computer readable storage medium | |
CN115169355A (en) | Product configuration method, device, equipment and medium based on attribute level | |
CN113886446A (en) | Job automatic scheduling method and device, electronic equipment and readable storage medium | |
CN114610807A (en) | Data import template configuration method, device, 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 |