Method, device and equipment for generating product report template and storage medium

文档序号:86646 发布日期:2021-10-08 浏览:10次 中文

阅读说明:本技术 产品报告模板生成方法、装置、设备及存储介质 (Method, device and equipment for generating product report template and storage medium ) 是由 林达坤 原琳 于 2021-06-29 设计创作,主要内容包括:本发明涉及研发管理技术,揭露了一种产品报告模板生成方法,包括:获取产品报告集,抽取所述产品报告集中每个产品报告的报告要素,设置所述报告要素的配置功能,得到可配置要素,对所述可配置要素进行层级组合,并根据组合后的可配置要素构建可配置要素模块,基于所述可配置要素模块及历史报告模板生成待调整报告模板,根据用户指令调整所述待调整报告模板中的要素,得到产品报告模板。此外,本发明还涉及区块链技术,所述产品报告模板可存储在区块链的节点中。本发明还提出一种产品报告模板生成装置、电子设备以及计算机可读存储介质。本发明可以解决产品报告模板生成效率较低且不准确的问题。(The invention relates to research and development management technology, and discloses a product report template generation method, which comprises the following steps: the method comprises the steps of obtaining a product report set, extracting report elements of each product report in the product report set, setting configuration functions of the report elements to obtain configurable elements, carrying out hierarchical combination on the configurable elements, constructing a configurable element module according to the combined configurable elements, generating a report template to be adjusted based on the configurable element module and a historical report template, adjusting the elements in the report template to be adjusted according to user instructions, and obtaining the product report template. In addition, the invention also relates to a blockchain technology, and the product report template can be stored in a node of the blockchain. The invention also provides a product report template generation device, electronic equipment and a computer readable storage medium. The invention can solve the problems of low efficiency and inaccuracy in the generation of the product report template.)

1. A method of generating a product report template, the method comprising:

acquiring a product report set, extracting report elements of each product report in the product report set, and setting configuration functions of the report elements to obtain configurable elements;

carrying out hierarchical combination on the configurable elements, and constructing a configurable element module according to the combined configurable elements;

generating a report template to be adjusted based on the configurable element module and the historical report template;

and adjusting elements in the report template to be adjusted according to the user instruction to obtain a product report template.

2. The method of generating a product report template according to claim 1, wherein said extracting report elements for each product report in said set of product reports comprises:

performing module division on the product report by using a preset extraction plug-in to obtain a product module;

according to the type of the product module, label definition is carried out on elements in the product module by using preset element labels;

and extracting the elements marked with the element labels in the product modules by using the extraction plug-in to obtain the report elements.

3. The product report template generation method of claim 2, wherein said setting a configuration function of said report element, resulting in a configurable element, comprises:

establishing an element mapping relation between the element label and the report element by using a preset key value pair;

and acquiring a configuration file corresponding to the report element, and packaging the element mapping relation and the configuration file by using a preset template engine technology to obtain the configurable element.

4. The method of generating a product report template according to claim 3, wherein said hierarchically assembling the configurable elements and constructing a configurable element module from the assembled configurable elements comprises:

setting element tags in the configuration elements as parent tags or subclass tags;

carrying out hierarchical arrangement on the parent tags and the child tags under the parent tags to obtain hierarchical element tags;

and summarizing the configurable elements of all the hierarchical element labels in the same product module to obtain the configurable element module.

5. The method of any of claims 1 to 4, wherein generating the report template to be adjusted based on the configurable element module and a historical report template comprises:

performing word segmentation processing on the text information in the historical report template to obtain historical template elements;

calculating the similarity between the historical template elements and the element labels in the configurable element module;

and extracting the hierarchical element labels with the similarity greater than or equal to a preset similarity threshold, and summarizing the hierarchical element labels in all the element modules to obtain the report template to be adjusted.

6. The method of generating a product report template according to claim 5, wherein said calculating a similarity of said historical template elements to element tags in said configurable element module comprises:

and sequentially calculating the similarity between the elements of the historical template and the element labels in the configurable element module by using the following similarity calculation formula:

wherein j (A, B) is the similarity, A is the history template element, and B is the element label.

7. The method for generating a product report template according to any one of claims 1 or 4, wherein the adjusting elements in the report template to be adjusted according to the user instruction to obtain the product report template comprises:

uploading the report template to be adjusted to a template adjustment page;

and in the template adjusting page, receiving a modification instruction of a user to each template element in the report template to be adjusted, and summarizing all the modified template elements to obtain the product report template.

8. A product report template generation apparatus, the apparatus comprising:

the element configuration module is used for acquiring a product report set, extracting report elements of each product report in the product report set, and setting the configuration function of the report elements to obtain configurable elements;

the element combination module is used for carrying out hierarchical combination on the configurable elements and constructing the configurable element module according to the combined configurable elements;

the template generating module is used for generating a report template to be adjusted based on the configurable element module and the historical report template;

and the template adjusting module is used for adjusting elements in the report template to be adjusted according to a user instruction to obtain a product report template.

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 content of the first and second substances,

the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the product report template generation method of any 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 product report template generation method according to any one of claims 1 to 7.

Technical Field

The present invention relates to the field of research and development management technologies, and in particular, to a method and an apparatus for generating a product report template, an electronic device, and a computer-readable storage medium.

Background

Product reports are important documents for learning products inside and outside a company, and at present, templates are widely used to generate product reports. In the prior art, the traditional webpage technology is adopted to realize the development of templates of various product reports, and the method has a pain point: when the template is required to be changed or added, the code is required to be reused to realize the webpage development of adding or modifying the template. The development amount is invested again, and no matter the code reuse degree or the development amount, huge manpower loss and capital investment exist, the consumed time is long, and certain hysteresis exists. For complex business scenarios, such as financial scenarios, due to market or regulatory changes, development of templates often fails to quickly respond to actual report usage scenarios, development difficulty is further increased, and template generation efficiency is low and inaccurate.

Disclosure of Invention

The invention provides a method, a device, equipment and a storage medium for generating a product report template, and mainly aims to solve the problems of low efficiency and inaccuracy in generating the product report template.

In order to achieve the above object, the present invention provides a method for generating a product report template, comprising:

acquiring a product report set, extracting report elements of each product report in the product report set, and setting configuration functions of the report elements to obtain configurable elements;

carrying out hierarchical combination on the configurable elements, and constructing a configurable element module according to the combined configurable elements;

generating a report template to be adjusted based on the configurable element module and the historical report template;

and adjusting elements in the report template to be adjusted according to the user instruction to obtain a product report template.

Optionally, the extracting the report elements of each product report in the product report set includes:

performing module division on the product report by using a preset extraction plug-in to obtain a product module;

according to the type of the product module, label definition is carried out on elements in the product module by using preset element labels;

and extracting the elements marked with the element labels in the product modules by using the extraction plug-in to obtain the report elements.

Optionally, the setting a configuration function of the report element to obtain a configurable element includes:

establishing an element mapping relation between the element label and the report element by using a preset key value pair;

and acquiring a configuration file corresponding to the report element, and packaging the element mapping relation and the configuration file by using a preset template engine technology to obtain the configurable element.

Optionally, the hierarchically combining the configurable elements and constructing a configurable element module according to the combined configurable elements includes:

setting element tags in the configuration elements as parent tags or subclass tags;

carrying out hierarchical arrangement on the parent tags and the child tags under the parent tags to obtain hierarchical element tags;

and summarizing the configurable elements of all the hierarchical element labels in the same product module to obtain the configurable element module.

Optionally, the generating a report template to be adjusted based on the configurable element module and the historical report template includes:

performing word segmentation processing on the text information in the historical report template to obtain historical template elements;

calculating the similarity between the historical template elements and the element labels in the configurable element module;

and extracting the hierarchical element labels with the similarity greater than or equal to a preset similarity threshold, and summarizing the hierarchical element labels in all the element modules to obtain the report template to be adjusted.

Optionally, the calculating the similarity between the historical template element and the element tag in the configurable element module includes:

and sequentially calculating the similarity between the elements of the historical template and the element labels in the configurable element module by using the following similarity calculation formula:

wherein j (A, B) is the similarity, A is the history template element, and B is the element label.

Optionally, the adjusting, according to a user instruction, elements in the report template to be adjusted to obtain a product report template includes:

uploading the report template to be adjusted to a template adjustment page;

and in the template adjusting page, receiving a modification instruction of a user to each template element in the report template to be adjusted, and summarizing all the modified template elements to obtain the product report template.

In order to solve the above problems, the present invention also provides a product report template generating apparatus, comprising:

the element configuration module is used for acquiring a product report set, extracting report elements of each product report in the product report set, and setting the configuration function of the report elements to obtain configurable elements;

the element combination module is used for carrying out hierarchical combination on the configurable elements and constructing the configurable element module according to the combined configurable elements;

the template generating module is used for generating a report template to be adjusted based on the configurable element module and the historical report template;

and the template adjusting module is used for adjusting elements in the report template to be adjusted according to a user instruction to obtain a product report template.

In order to solve the above problem, the present invention also provides an electronic device, including:

a memory storing at least one instruction; and

and the processor executes the instructions stored in the memory to realize the product report template generation method.

In order to solve the above problem, the present invention further provides a computer-readable storage medium, having at least one instruction stored therein, where the at least one instruction is executed by a processor in an electronic device to implement the product report template generating method described above.

The invention extracts the elements of the product reports in the product report set and develops the corresponding configuration functions to obtain the configurable elements, and constructs the configurable element module by using the configurable elements after hierarchical combination without carrying out page development again, and can quickly form the product template by extracting the configurable elements in different element modules; and the report template to be adjusted is generated based on the configurable element module and the historical report template, so that the automatic generation of the product report template can be realized, the template generation efficiency is improved, meanwhile, the element adjustment is manually carried out on the report template to be adjusted according to the user instruction, the product report template can be generated in a user-defined mode according to the actual service scene, and the template generation accuracy is improved. Therefore, the product report template generation method, the product report template generation device, the electronic equipment and the computer readable storage medium can solve the problems of low product report template generation efficiency and inaccuracy.

Drawings

FIG. 1 is a flowchart illustrating a method for generating a product report template according to an embodiment of the present invention;

FIG. 2 is a schematic flow chart showing a detailed implementation of one of the steps in FIG. 1;

FIG. 3 is a schematic flow chart showing another step of FIG. 1;

FIG. 4 is a functional block diagram of a product report template generation apparatus according to an embodiment of the present invention;

fig. 5 is a schematic structural diagram of an electronic device implementing the product report template 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 method for generating a product report template. The execution subject of the product report template generation method includes, but is not limited to, at least one of electronic devices such as a server and a terminal, which can be configured to execute the method provided by the embodiments of the present application. In other words, the product report template generating method may be performed by software or hardware installed in a terminal device or a 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.

Referring to fig. 1, a flowchart of a method for generating a product report template according to an embodiment of the present invention is shown. In this embodiment, the method for generating a product report template includes:

and S1, acquiring the product report set, extracting the report elements of each product report in the product report set, and setting the configuration functions of the report elements to obtain configurable elements.

In the embodiment of the present invention, the product report set may be a Word document set of product reports of different products in each field, for example, in the financial field, the product report set includes documents of product reports such as capital accounts, private funds, public fund, and trust plans.

Further, the configurable elements refer to elements that can be directly configured and combined, for example, when a product report is constructed, a new product report can be generated directly by arranging and combining different elements without editing a large amount of codes.

Specifically, referring to fig. 2, the extracting of the report elements of each product report in the product report set includes:

s10, performing module division on the product report by using a preset extraction plug-in to obtain a product module;

s11, according to the type of the product module, using a preset element label to define the label of the element in the product module;

and S12, extracting the elements marked with the element labels in the product modules by using the extraction plug-in to obtain the report elements.

In the embodiment of the invention, the preset element labels are used for defining the elements needing to be extracted in the product module, and then the labels and the corresponding report elements are extracted.

In the embodiment of the present invention, the product module is a general module for dividing each element in the product report, and the type of the product module may include a product type, a product state, a report period, and the like according to the content of each product report. The element label is a variable, and each element in the product module can be defined by using the element label to clarify the function of the element and the relationship between the elements. For example, for a capital account reporting document, the element label of the product type module may be "capital account", and the "capital account" includes sub-labels of "subscription amount", "product income", and the like.

The preset extraction plug-in can be a page-office plug-in, and batch element extraction can be performed on each specified element in the Word document by using the page-office plug-in, so that rapid element formation of the Word document can be realized.

In detail, the setting of the configuration function of the report element to obtain a configurable element includes:

establishing an element mapping relation between the element label and the report element by using a preset key value pair;

and acquiring a configuration file corresponding to the report element, and packaging the element mapping relation and the configuration file by using a preset template engine technology to obtain the configurable element.

In an embodiment of the present invention, the preset key-value pair may be a key-value pair, where the element tag is used as a key value, the report element is used as a value, and an element mapping relationship between the element tag and the report element is established, so as to implement one-to-one correspondence between the element tag and the report element. The configuration file comprises configuration data such as database information called by the report elements, element extraction objects and the like. For example, taking the report element "subscription amount" as an example, the "subscription amount" of the "capital account" or "family trust" needs to call data in different databases to ensure the accuracy of the product report due to different types and periods of the product report. The preset template engine technology can be a free-mark template engine technology, and the free-mark template engine technology can automatically generate codes which can be identified by a webpage by packaging element mapping relations and configuration functions, so that the configurability of product elements is realized.

In the embodiment of the invention, by performing element extraction and configuration processing on the product reports, the universal elements in each product report can be extracted, and the generation efficiency of the report template is improved.

And S2, carrying out hierarchical combination on the configurable elements, and constructing a configurable element module according to the combined configurable elements.

In the embodiment of the invention, because the number of the elements in the product report is large and the relationship among a plurality of elements is close, the speed of element configuration can be improved by combining and associating the related configurable elements through the tags.

Specifically, the hierarchically combining the configurable elements and constructing a configurable element module according to the combined configurable elements includes:

setting element tags in the configuration elements as parent tags or subclass tags;

carrying out hierarchical arrangement on the parent tags and the child tags under the parent tags to obtain hierarchical element tags;

and summarizing the configurable elements of all the hierarchical element labels in the same product module to obtain the configurable element module.

In an optional embodiment of the present invention, the hierarchical combination refers to a hierarchical arrangement of each element tag and a sub-tag under each element tag, for example, in the financial field, taking a capital account product as an example, the hierarchical element tag may be "capital account" - "subscription amount" - "product income", where "capital account" is a father-class tag and "subscription amount" and "product income" are sub-class tags. Meanwhile, the element modules are consistent with the product modules, for example, for the report of the financial product, element extraction is performed in advance according to the product modules (product type, product state, report period, etc.), and elements of all product reports are classified according to the product modules to obtain element modules (product type module, product state module, report period module, etc.), taking the cleared semiannual report of the capital account as an example, after element extraction and label combination, the corresponding element modules respectively include: a product type module: "capital account" - "subscription amount" - "product revenue", product status module: "cleared," report period module: "half a year".

In an optional embodiment of the present invention, the composition of the product report template is different due to the variation of the report elements, different report elements are placed in different element modules, and the product report template can be rapidly formed by extracting the elements in different element modules.

And S3, generating a report template to be adjusted based on the configurable element module and the historical report template.

In the embodiment of the invention, the historical report template comprises product templates of different report periods, different product states and different product types.

Specifically, referring to fig. 3, the generating a report template to be adjusted based on the configurable element module and the historical report template includes:

s30, performing word segmentation processing on the text information in the historical report template to obtain historical template elements;

s31, calculating the similarity between the historical template elements and the element labels in the configurable element module;

and S32, extracting the hierarchical element labels with the similarity greater than or equal to a preset similarity threshold, and summarizing the hierarchical element labels in all the element modules to obtain the report template to be adjusted.

In the embodiment of the invention, the similarity between the historical template elements and the element labels in the configurable element module is sequentially calculated by using the following similarity calculation formula:

wherein j (A, B) is the similarity, A is the history template element, and B is the element label.

In the embodiment of the present invention, a preset language processing algorithm may be used to perform word segmentation on the history report template, and the preset language processing algorithm may be any existing word segmentation method, such as LTP in hayland, NLPIR in chinese institute of technology, tsuilac university, stanford segmenter, and word segmentation at the end of the country, and the like, which is not described in detail herein.

In an optional embodiment of the present invention, for example, the history report template is a cleared capital account annual report, the configurable element module comprises a configurable element extracted from the cleared capital account semiannual report, and by extracting the history template elements "cleared", "annual report", and "capital account", etc., the hierarchical element labels "capital account" - "subscription amount" - "product income", "annual report", "cleared", in the configurable element can be automatically matched and extracted, and the latest cleared capital account annual report can be automatically generated.

In the embodiment of the invention, the elements in the configurable element module are identified and extracted through the historical template elements in the historical report template, so that the accuracy of the generated product template can be improved.

And S4, adjusting the elements in the report template to be adjusted according to the user instruction to obtain the product report template.

In the embodiment of the invention, as the elements in the report template to be adjusted are all configurable, business personnel can directly drag the labels of various elements in the report template to be adjusted to adjust the elements.

Specifically, the adjusting elements in the report template to be adjusted according to the user instruction to obtain the product report template includes:

uploading the report template to be adjusted to a template adjustment page;

and in the template adjusting page, receiving a modification instruction of a user to each template element in the report template to be adjusted, and summarizing all the modified template elements to obtain the product report template.

In an alternative embodiment of the present invention, the modification instruction includes element addition, element deletion, element arrangement, and the like in the financial field. Meanwhile, as the business scene or the supervision requirement is changed frequently, the user instruction is utilized to manually adjust the elements to generate the final product report template, so that the accuracy of generating the product report template can be improved, the subsequent and quick template change is facilitated, and the constantly changing financial market and business scene can be met.

In another embodiment of the present invention, after the S4, the method further includes: and taking the product report template as a historical report template, returning to the step S3, and regenerating the report template to be adjusted.

In the embodiment of the invention, the newly generated product report template is used as the historical report template, and the pool data of the historical report template is continuously expanded, so that the finally generated product report template is more and more accurate. Meanwhile, the invention truly realizes the automatic generation and the user-defined generation of the template, realizes the unification of the algorithm model and the manual adjustment, and the algorithm model and the manual adjustment are complementary and mutually assisted, so that the report template generated automatically is more and more intelligent. Therefore, the embodiment of the invention can solve the problems of low efficiency and inaccuracy in the generation of the product report template.

The embodiment of the invention extracts elements from the product reports in the product report set and develops corresponding configuration functions to obtain configurable elements, and constructs configurable element modules by using the hierarchically combined configurable elements without redeveloping pages, and can quickly form product templates by extracting the configurable elements in different element modules; and the report template to be adjusted is generated based on the configurable element module and the historical report template, so that the automatic generation of the product report template can be realized, the template generation efficiency is improved, meanwhile, the element adjustment is manually carried out on the report template to be adjusted according to the user instruction, the product report template can be generated in a user-defined mode according to the actual service scene, and the template generation accuracy is improved. Therefore, the embodiment of the invention can solve the problems of low efficiency and inaccuracy in the generation of the product report template.

Fig. 4 is a functional block diagram of a product report template generating apparatus according to an embodiment of the present invention.

The product report template generating apparatus 100 according to the present invention may be installed in an electronic device. According to the realized functions, the product report template generating apparatus 100 may include an element configuration module 101, an element combination module 102, a template generating module 103, and a template adjusting 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 that can perform a fixed function, and that are stored in a memory of the electronic device.

In the present embodiment, the functions regarding the respective modules/units are as follows:

the element configuration module 101 is configured to obtain a product report set, extract a report element of each product report in the product report set, and set a configuration function of the report element to obtain a configurable element.

In the embodiment of the present invention, the product report set may be a Word document set of product reports of different products in each field, for example, in the financial field, the product report set includes documents of product reports such as capital accounts, private funds, public fund, and trust plans.

Further, the configurable elements refer to elements that can be directly configured and combined, for example, when a product report is constructed, a new product report can be generated directly by arranging and combining different elements without editing a large amount of codes.

Specifically, the element configuration module 101 extracts the report elements of each product report in the product report set by:

performing module division on the product report by using a preset extraction plug-in to obtain a product module;

according to the type of the product module, label definition is carried out on elements in the product module by using preset element labels;

and extracting the elements marked with the element labels in the product modules by using the extraction plug-in to obtain the report elements.

In the embodiment of the invention, the preset element labels are used for defining the elements needing to be extracted in the product module, and then the labels and the corresponding report elements are extracted.

In the embodiment of the present invention, the product module is a general module for dividing each element in the product report, and the type of the product module may include a product type, a product state, a report period, and the like according to the content of each product report. The element label is a variable, and each element in the product module can be defined by using the element label to clarify the function of the element and the relationship between the elements. For example, for a capital account reporting document, the element label of the product type module may be "capital account", and the "capital account" includes sub-labels of "subscription amount", "product income", and the like.

The preset extraction plug-in can be a page-office plug-in, and batch element extraction can be performed on each specified element in the Word document by using the page-office plug-in, so that rapid element formation of the Word document can be realized.

Specifically, the element configuration module 101 obtains configurable elements by:

establishing an element mapping relation between the element label and the report element by using a preset key value pair;

and acquiring a configuration file corresponding to the report element, and packaging the element mapping relation and the configuration file by using a preset template engine technology to obtain the configurable element.

In an embodiment of the present invention, the preset key-value pair may be a key-value pair, where the element tag is used as a key value, the report element is used as a value, and an element mapping relationship between the element tag and the report element is established, so as to implement one-to-one correspondence between the element tag and the report element. The configuration file comprises configuration data such as database information called by the report elements, element extraction objects and the like. For example, taking the report element "subscription amount" as an example, the "subscription amount" of the "capital account" or "family trust" needs to call data in different databases to ensure the accuracy of the product report due to different types and periods of the product report. The preset template engine technology can be a free-mark template engine technology, and the free-mark template engine technology can automatically generate codes which can be identified by a webpage by packaging element mapping relations and configuration functions, so that the configurability of product elements is realized.

In the embodiment of the invention, by performing element extraction and configuration processing on the product reports, the universal elements in each product report can be extracted, and the generation efficiency of the report template is improved.

The element combination module 102 is configured to perform hierarchical combination on the configurable elements, and construct a configurable element module according to the combined configurable elements.

In the embodiment of the invention, because the number of the elements in the product report is large and the relationship among a plurality of elements is close, the speed of element configuration can be improved by combining and associating the related configurable elements through the tags.

Specifically, the element combination module 102 constructs a configurable element module by:

setting element tags in the configuration elements as parent tags or subclass tags;

carrying out hierarchical arrangement on the parent tags and the child tags under the parent tags to obtain hierarchical element tags;

and summarizing the configurable elements of all the hierarchical element labels in the same product module to obtain the configurable element module.

In an optional embodiment of the present invention, the hierarchical combination refers to a hierarchical arrangement of each element tag and a sub-tag under each element tag, for example, in the financial field, taking a capital account product as an example, the hierarchical element tag may be "capital account" - "subscription amount" - "product income", where "capital account" is a father-class tag and "subscription amount" and "product income" are sub-class tags. Meanwhile, the element modules are consistent with the product modules, for example, for the report of the financial product, element extraction is performed in advance according to the product modules (product type, product state, report period, etc.), and elements of all product reports are classified according to the product modules to obtain element modules (product type module, product state module, report period module, etc.), taking the cleared semiannual report of the capital account as an example, after element extraction and label combination, the corresponding element modules respectively include: a product type module: "capital account" - "subscription amount" - "product revenue", product status module: "cleared," report period module: "half a year".

In an optional embodiment of the present invention, the composition of the product report template is different due to the variation of the report elements, different report elements are placed in different element modules, and the product report template can be rapidly formed by extracting the elements in different element modules.

The template generating module 103 is configured to generate a report template to be adjusted based on the configurable element module and the historical report template.

In the embodiment of the invention, the historical report template comprises product templates of different report periods, different product states and different product types.

Specifically, the template generating module 103 generates a report template to be adjusted by:

performing word segmentation processing on the text information in the historical report template to obtain historical template elements;

calculating the similarity between the historical template elements and the element labels in the configurable element module;

and extracting the hierarchical element labels with the similarity greater than or equal to a preset similarity threshold, and summarizing the hierarchical element labels in all the element modules to obtain the report template to be adjusted.

In the embodiment of the invention, the similarity between the historical template elements and the element labels in the configurable element module is sequentially calculated by using the following similarity calculation formula:

wherein j (A, B) is the similarity, A is the history template element, and B is the element label.

In the embodiment of the present invention, a preset language processing algorithm may be used to perform word segmentation on the history report template, and the preset language processing algorithm may be any existing word segmentation method, such as LTP in hayland, NLPIR in chinese institute of technology, tsuilac university, stanford segmenter, and word segmentation at the end of the country, and the like, which is not described in detail herein.

In an optional embodiment of the present invention, for example, the history report template is a cleared capital account annual report, the configurable element module comprises a configurable element extracted from the cleared capital account semiannual report, and by extracting the history template elements "cleared", "annual report", and "capital account", etc., the hierarchical element labels "capital account" - "subscription amount" - "product income", "annual report", "cleared", in the configurable element can be automatically matched and extracted, and the latest cleared capital account annual report can be automatically generated.

In the embodiment of the invention, the elements in the configurable element module are identified and extracted through the historical template elements in the historical report template, so that the accuracy of the generated product template can be improved.

The template adjusting module 104 is configured to adjust elements in the report template to be adjusted according to a user instruction, so as to obtain a product report template.

In the embodiment of the invention, as the elements in the report template to be adjusted are all configurable, business personnel can directly drag the labels of various elements in the report template to be adjusted to adjust the elements.

Specifically, the template adjustment module 104 obtains the product report template by:

uploading the report template to be adjusted to a template adjustment page;

and in the template adjusting page, receiving a modification instruction of a user to each template element in the report template to be adjusted, and summarizing all the modified template elements to obtain the product report template.

In an alternative embodiment of the present invention, the modification instruction includes element addition, element deletion, element arrangement, and the like in the financial field. Meanwhile, as the business scene or the supervision requirement is changed frequently, the user instruction is utilized to manually adjust the elements to generate the final product report template, so that the accuracy of generating the product report template can be improved, the subsequent and quick template change is facilitated, and the constantly changing financial market and business scene can be met.

In another embodiment of the present invention, the template adjusting module 104 further includes: and taking the product report template as a historical report template, returning the historical report template to the template generation module 103, and regenerating the report template to be adjusted.

In the embodiment of the invention, the newly generated product report template is used as the historical report template, and the pool data of the historical report template is continuously expanded, so that the finally generated product report template is more and more accurate. Meanwhile, the invention truly realizes the automatic generation and the user-defined generation of the template, realizes the unification of the algorithm model and the manual adjustment, and the algorithm model and the manual adjustment are complementary and mutually assisted, so that the report template generated automatically is more and more intelligent. Therefore, the embodiment of the invention can solve the problems of low efficiency and inaccuracy in the generation of the product report template.

As shown in fig. 5, which is a schematic structural diagram of an electronic device of a product report template generating method according to an embodiment of the present invention, the electronic device includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114, where the processor 111, the communication interface 112, and the memory 113 complete mutual communication through the communication bus 114,

a memory 113 for storing a computer program, such as a product report template generation program;

in an embodiment of the present application, the processor 111, when executing the program stored in the memory 113, is configured to implement the method for generating a product report template provided in any one of the foregoing method embodiments, including:

acquiring a product report set, extracting report elements of each product report in the product report set, and setting configuration functions of the report elements to obtain configurable elements;

carrying out hierarchical combination on the configurable elements, and constructing a configurable element module according to the combined configurable elements;

generating a report template to be adjusted based on the configurable element module and the historical report template;

and adjusting elements in the report template to be adjusted according to the user instruction to obtain a product report template.

The communication bus 114 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 114 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.

The communication interface 112 is used for communication between the above-described electronic apparatus and other apparatuses.

The memory 113 may include a Random Access Memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory 113 may also be at least one storage device located remotely from the processor 111.

The processor 111 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the integrated circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components.

The present invention also provides a computer-readable storage medium, storing a computer program which, when executed by a processor of an electronic device, may implement:

acquiring a product report set, extracting report elements of each product report in the product report set, and setting configuration functions of the report elements to obtain configurable elements;

carrying out hierarchical combination on the configurable elements, and constructing a configurable element module according to the combined configurable elements;

generating a report template to be adjusted based on the configurable element module and the historical report template;

and adjusting elements in the report template to be adjusted according to the user instruction to obtain a product report template.

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.

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 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.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:招投标公告生成方法和装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!