Dynamic double-header semantic splitting and configuration rendering method of insurance benefit demonstration table
By constructing a multi-dimensional configuration key sequence and a semantic recognition recursive splitting algorithm, the insurance benefit demonstration table header is dynamically split, solving the problems of high development cost and difficulty in identifying header differences in existing technologies, and realizing rapid configurable generation and flexible rendering.
Patent Information
- Application Number
- CN202611285861.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-24
- Publication Date
- 2026-11-20
AI Technical Summary
The development cost of existing insurance benefit illustration tables is high, the development cycle is long, and they cannot flexibly identify the business semantics of guaranteed benefits and non-guaranteed benefits, and it is difficult to distinguish the differences in the table headers under different numbers of insured persons and payment methods.
By constructing a multi-dimensional configuration key sequence, querying the configuration database to obtain the table header configuration, and combining a semantic recognition recursive splitting algorithm to dynamically split the benefit demonstration table header tree structure, the demonstration data is processed according to the configuration rounding strategy and premium multiple labeling rules.
It enables rapid configurable generation and flexible rendering of insurance product benefit demonstration tables, improving development efficiency and adaptability to business scenarios, and reducing maintenance costs and error probability.
Smart Images

Figure CN123139975A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer data processing technology, and in particular to a dynamic dual-header semantic splitting and configurable rendering method for an insurance benefit demonstration table. Background Technology
[0002] The insurance benefit illustration table is a core document for insurance companies to present product returns to customers. For complex products such as universal life insurance and participating insurance, the benefit illustration table usually includes both guaranteed and non-guaranteed benefits data columns, and needs to be split into two or more sub-tables for separate display.
[0003] Currently, the industry mainly uses two implementation methods. One is to design an independent PDF template for each product, directly writing the header structure and splitting logic into the template file. When adding a new product, a new template must be developed and the code modified. The other is to perform conditional judgments in the code through product coding, with hard-coded logic determining the header splitting method, data rounding rules, and premium multiplier labeling strategy.
[0004] Both of these approaches have significant drawbacks in practical applications. New product development costs are high; each new insurance product requires a new template or the addition of conditional logic to the code, resulting in long development cycles and a high risk of errors. Existing solutions often use fixed column configurations for header splitting, failing to recognize business semantics such as guaranteed benefits and bonus benefits, and the resulting sub-tables are often incomplete in terms of business logic. Furthermore, existing solutions typically configure headers only by product code, failing to differentiate headers for the same product across different numbers of insured persons and different payment methods. Data rounding methods and premium multiplier labeling logic are hard-coded into the code; adding new products or adjusting strategies requires code modification and redeployment, limiting the system's flexibility and maintainability. Summary of the Invention
[0005] To address the aforementioned technical problems, this invention provides a dynamic dual-header semantic splitting and configurable rendering method for an insurance benefit demonstration table.
[0006] In a first aspect, the present invention provides a dynamic dual-header semantic decomposition and configurable rendering method for an insurance benefit demonstration table. The technical solution of this method is as follows: Obtain the product benefit demonstration table header tree structure and benefit demonstration data; A configuration key sequence is generated based on multiple configuration dimensions. The configuration database is queried in order of priority from high to low. The configuration that is first hit is used as the table header configuration. The table header configuration includes column number allocation information and rounding strategy configuration. The number of columns in each sub-table is calculated based on the column allocation information, and semantic recognition recursively splits the header tree structure of the benefit demonstration table. When the number of child nodes of the header node is two and the text of the two child nodes starts with the semantics of guaranteed benefit and non-guaranteed benefit respectively, the two child nodes are assigned to two sub-tables and inherit the text of the parent node. When the node has no subordinate nodes, the node is shared to two sub-tables. After splitting, a table number is added to each sub-table. Iterate through each row and column of the benefit demonstration data, round the data in the current column according to the rounding strategy configuration, and determine whether the current column needs to be marked with a premium multiple. If so, calculate the ratio of the cash value of the current row to the accumulated premium. Mark the premium as exceeded when the ratio first reaches a preset threshold, and mark the multiple when the ratio exceeds the preset threshold. The headers of each sub-table after splitting are combined with the benefit demonstration data after rounding and annotation, and then rendered into an HTML table.
[0007] The beneficial effects of the dynamic dual-header semantic decomposition and configurable rendering method for an insurance benefit demonstration table of the present invention are as follows: The method of this invention constructs a multi-dimensional configuration key sequence and queries the configuration database according to priority to obtain the table header configuration. It combines a semantic recognition recursive splitting algorithm to dynamically split the header tree structure of the benefit demonstration table. The method also processes the demonstration data according to the configuration rounding strategy and the premium multiple labeling rules. This solves the problems of long development cycles and high maintenance costs caused by relying on hard-coded templates and conditional judgments in new product development, as well as the problems of fixed column number splitting failing to identify the business semantics of guaranteed benefits and non-guaranteed benefits, and difficulty in distinguishing the differences in table headers under different numbers of insured persons and payment methods. This method enables rapid configuration generation and flexible rendering of insurance product benefit demonstration tables, improves development efficiency and business scenario adaptability, and reduces maintenance costs and error probability.
[0008] Based on the above solution, the dynamic dual-header semantic splitting and configurable rendering method for an insurance benefit demonstration table of the present invention can be further improved as follows.
[0009] In one alternative approach, the step of generating a sequence of configuration keys based on multiple configuration dimensions includes: A three-level configuration key is generated based on five dimensions: product code, version, displayed insurance type, number of insured persons, and payment method. The first-level configuration key consists of all five dimensions, the second-level configuration key consists of the other four dimensions except for the payment method, and the third-level configuration key consists of the three dimensions: product code, version, and displayed insurance type.
[0010] The advantages of adopting the above optional approach are: to further construct a three-level configuration key from five dimensions, namely product code, version, displayed insurance type, number of insured persons and payment method, so that the same product can match differentiated header configuration under different combinations of the number of insured persons and payment methods, thereby improving the configuration granularity and scenario coverage.
[0011] In one alternative approach, the steps of querying the configuration database in descending order of priority include: First, use the first-level configuration key to query the configuration database. If no match is found, use the second-level configuration key to query. If no match is found again, use the third-level configuration key to query. The configuration that is matched for the first time is used as the table header configuration.
[0012] The advantages of using the above optional method are as follows: further query the configuration database in the order of priority of first level, second level, and third level, and automatically downgrade to match a broader configuration key when an exact match fails. This ensures the accuracy of the configuration and avoids rendering failure due to a complete mismatch of the configuration.
[0013] In one alternative approach, the step of calculating the number of columns in each sub-table based on the column allocation information includes: Obtain the column count values of each sub-table in the column count allocation information. When there is a sub-table with a column count value of zero, calculate the sum of the column count values of the remaining sub-tables, and set the column count of the sub-table with a value of zero as the difference between the total number of columns in the benefit demonstration table header tree structure and the sum.
[0014] The advantages of adopting the above optional method are: it further supports setting the number of columns of a sub-table to zero in the column allocation information, and automatically calculates the number of columns of the zero-value sub-table by the difference between the total number of columns and the sum of the number of columns of the other sub-tables, which simplifies the configuration operation and enables the column allocation to be automatically adjusted as the total number of columns in the table header structure changes.
[0015] In one alternative approach, the step of performing semantic recognition recursive decomposition on the benefit demonstration table header tree structure includes: Starting from the root node of the benefit demonstration table header tree structure, traverse each header node and determine whether the current header node needs to be split. When the current header node has two child nodes and the text of the first child node is prefixed with guaranteed benefit or minimum guaranteed benefit and the text of the second child node is prefixed with universal interest benefit or bonus benefit, it is determined that the current header node needs to be split. The two child nodes of the current header node are respectively assigned to two new sub-tables and inherit the description text of the current header node as the parent node text of the two new sub-tables. When the current header node does not need to be split but has subordinate nodes, the subordinate nodes are recursively split and the split subtrees are respectively attached to the two new sub-tables; when the current header node has no subordinate nodes, the current header node is shared to the two new sub-tables.
[0016] The beneficial effects of adopting the above optional method are as follows: further traverse the header tree structure starting from the root node. When a node contains two child nodes and the child node texts begin with semantics of guaranteed benefits and non-guaranteed benefits respectively, the two child nodes are assigned to two sub-tables and inherit the parent node text. When there are no lower-level nodes, the node is shared to the two sub-tables, so that the splitting result conforms to the business semantic logic.
[0017] In one alternative approach, the rounding strategy configuration includes a blacklist mode and a whitelist mode; In the blacklist mode, columns that are configured not to be rounded and columns that are not configured are rounded by default. In the whitelist mode, columns that are configured to be rounded and columns that are not configured are not rounded by default. The rounding process includes three strategy types: rounding to the nearest integer, rounding down, and keeping one decimal place.
[0018] The advantages of adopting the above optional method are: further setting blacklist mode and whitelist mode in the rounding strategy configuration. The blacklist performs rounding on unconfigured columns by default, and the whitelist does not perform rounding on unconfigured columns by default. It also supports three strategies: rounding to the nearest whole number, rounding down, and keeping one decimal place, which meets the differentiated rounding needs of different columns.
[0019] In one alternative approach, when the table header configuration includes a secondary splitting flag, the semantic recognition recursive splitting is performed again on each sub-table generated after the semantic recognition recursive splitting.
[0020] The advantages of adopting the above optional method are: by further setting a secondary splitting flag in the table header configuration, the same splitting process is executed again on the sub-tables that have already undergone semantic recognition recursive splitting, which supports multiple splitting of more complex multi-level interest structures and expands the applicable scenarios of the method for complex product structures.
[0021] Secondly, this invention provides a dynamic dual-header semantic splitting and configurable rendering system for an insurance benefit demonstration table. The technical solution of this system is as follows: The acquisition module is used to acquire the header tree structure of the product's benefit demonstration table and the benefit demonstration data. The query module is used to generate a configuration key sequence based on multiple configuration dimensions, query the configuration database in order of priority from high to low, and use the first hit configuration as the table header configuration. The table header configuration includes column number allocation information and rounding strategy configuration. The splitting module is used to calculate the number of columns in each sub-table based on the column allocation information, and to perform semantic recognition recursive splitting on the benefit demonstration table header tree structure. When the number of child nodes of the table header node is two and the text of the two child nodes starts with the semantics of guaranteed benefit and non-guaranteed benefit respectively, the two child nodes are assigned to two sub-tables and inherit the text of the parent node. When the node has no subordinate nodes, the node is shared to two sub-tables. After splitting, a table number is added to each sub-table. The annotation module is used to traverse each row and column of the benefit demonstration data, perform rounding processing on the data in the current column according to the rounding strategy configuration, and determine whether the current column needs to be annotated with the premium multiple. If so, it calculates the ratio of the cash value of the current row to the accumulated premium. When the ratio first reaches a preset threshold, it is annotated with "exceeds premium". When the ratio exceeds the preset threshold, it is annotated with "multiple". The rendering module is used to combine the headers of the split sub-tables with the benefit demonstration data after rounding and annotation, and render them into an HTML table.
[0022] The beneficial effects of the dynamic dual-header semantic decomposition and configurable rendering system for an insurance benefit demonstration table of the present invention are as follows: The system of this invention constructs a multi-dimensional configuration key sequence and queries the configuration database according to priority to obtain the table header configuration. It combines a semantic recognition recursive splitting algorithm to dynamically split the header tree structure of the benefit demonstration table. It processes the demonstration data according to the configuration rounding strategy and the premium multiple labeling rules. This solves the problems of long development cycles and high maintenance costs caused by relying on hard-coded templates and conditional judgments in new product development, as well as the problems of fixed column number splitting failing to identify the business semantics of guaranteed benefits and non-guaranteed benefits, and difficulty in distinguishing the differences in table headers under different numbers of insured persons and payment methods. It realizes the rapid configuration generation and flexible rendering of insurance product benefit demonstration tables, improves development efficiency and business scenario adaptability, and reduces maintenance costs and error probability.
[0023] Thirdly, the technical solution of an electronic device according to the present invention is as follows: It includes a memory, a processor, and a program stored in the memory and running on the processor, wherein the processor executes the program to implement the steps of the dynamic dual-header semantic splitting and configurable rendering method for the insurance benefit demonstration table of the present invention.
[0024] Fourthly, the technical solution of a computer-readable storage medium provided by the present invention is as follows: The computer-readable storage medium stores instructions that, when read, cause the computer-readable storage medium to perform the steps of the dynamic dual-header semantic splitting and configurable rendering method for the insurance benefit demonstration table of the present invention.
[0025] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0026] The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 This is a flowchart illustrating an embodiment of a dynamic dual-header semantic splitting and configurable rendering method for an insurance benefit demonstration table according to the present invention. Figure 2 This is a schematic diagram of the overall architecture; Figure 3 A schematic diagram illustrating the process of splitting the dual headers of the insurance benefit illustration table; Figure 4 A schematic diagram illustrating the data rounding and labeling process for insurance benefit demonstrations; Figure 5 This is a schematic diagram of an embodiment of a dynamic dual-header semantic splitting and configurable rendering system for an insurance benefit demonstration table according to the present invention. Figure 6 This is a schematic diagram of an embodiment of an electronic device according to the present invention. Detailed Implementation
[0027] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0028] Figure 1 This diagram illustrates a flowchart of an embodiment of a dynamic dual-header semantic segmentation and configurable rendering method for an insurance benefit presentation table provided by the present invention. This method can be executed by electronic devices such as terminal devices or servers. The terminal device can be any fixed or mobile terminal, such as a user equipment (UE), mobile device, user terminal, terminal, cellular phone, cordless phone, personal digital assistant (PDA), handheld device, computing device, in-vehicle device, or wearable device. The server can be a single server or a server cluster consisting of multiple servers. Any electronic device can implement the dynamic dual-header semantic segmentation and configurable rendering method for the insurance benefit presentation table by having its processor call computer-readable instructions stored in its memory. Figure 1 As shown, it includes the following steps: S1. Obtain the product benefit demonstration header tree structure and benefit demonstration data.
[0029] Here, "product" refers to the insurance product to which the insurance benefit illustration is presented. Each product has a unique product code that identifies its type and version. For example, an insurance company launches an insurance product with product code "PRD-A", version "V1", and displayed insurance type "TYPE-A". When illustrating the benefits of this product to customers, a corresponding benefit illustration table needs to be generated.
[0030] The benefit illustration header tree structure refers to the hierarchical relationship of the insurance benefit illustration table header, organized in a tree-like data structure. Each node contains descriptive text and a list of child nodes. The root node represents the beginning of the entire header, and the leaf nodes represent the final data column names. For example, the root node of the benefit illustration header tree structure for product "PRD-A" is "Product Benefit Illustration," which contains two child nodes: "Guaranteed Benefit" and "Dividend Benefit." The "Guaranteed Benefit" node contains four leaf nodes: "Year," "Age," "Cumulative Premium," and "Guaranteed Cash Value." The "Dividend Benefit" node contains four leaf nodes: "Year," "Age," "Cumulative Premium," and "Dividend Cash Value." Benefit illustration data refers to the policy year numerical information calculated based on the actuarial assumptions and benefit illustration rules of the insurance product, used to display to customers. The data is organized by rows, with each row corresponding to a policy year, and each column corresponding to a data item described by a header leaf node. For example, the benefit illustration data of product "PRD-A" includes data records from the 1st policy year to the 30th policy year. The data for the 1st policy year includes "Year" as 1, "Age" as 30, "Cumulative Premium" as 10000, "Guaranteed Cash Value" as 8000, and "Dividend Cash Value" as 8500. Each subsequent policy year corresponds to a numerical record with a similar structure.
[0031] S2. Generate a configuration key sequence based on multiple configuration dimensions, query the configuration database in descending order of priority, and use the first matched configuration as the table header configuration. The table header configuration includes column number allocation information and rounding strategy configuration.
[0032] Here, configuration dimensions refer to independent parameters used to generate configuration query keys. Each dimension represents an aspect of the product benefit demonstration table configuration. Combinations of different dimensions are used to precisely locate configuration items applicable to specific scenarios. For example, for product "PRD-A", the configuration dimensions include product code "PRD-A", version "V1", displayed insurance type "TYPE-A", number of insured persons "2", and payment method "10" years, totaling five dimensions. Configuration key sequence refers to a set of multiple configuration query keys arranged in a preset priority order. Each configuration query key is composed of some or all of the configuration dimensions. During querying, matching is attempted sequentially according to the sequence order, with configuration keys with higher priority being used for querying first. For example, for the five configuration dimensions of product "PRD-A", the generated configuration key sequence contains three configuration keys, namely the first-level configuration key "PRD-A.V1.TYPE-A.2.10", the second-level configuration key "PRD-A.V1.TYPE-A.2", and the third-level configuration key "PRD-A.V1.TYPE-A". When querying, the first-level configuration key is used for matching first.
[0033] The configuration database refers to a storage system that stores configuration records related to the benefit illustration table of insurance products. Each configuration record is associated with a configuration key and contains the table header structure and data processing rules, which are retrieved and obtained through the configuration key. For example, the configuration database stores the configuration record for product "PRD-A," which is associated with the configuration key "PRD-A.V1.TYPE-A.2.10." The record contains the product's table header definition, column allocation information for each sub-table, and data rounding strategy. The table header configuration refers to the complete configuration information retrieved from the configuration database that guides the splitting of the benefit illustration table header and data rendering. It includes column allocation information, rounding strategy configuration, and other rendering control parameters. For example, for product "PRD-A," the table header configuration retrieved from the configuration database includes column allocation information "[4, 4]" and a rounding strategy configuration. The column allocation information specifies that the first sub-table occupies 4 columns, the second sub-table occupies 4 columns, and the rounding strategy configuration specifies that the "Guaranteed Cash Value" column is rounded to the nearest integer, while the "Bonus Cash Value" column is not rounded.
[0034] The column allocation information refers to the data in the table header configuration used to specify the number of columns in each sub-table after splitting. This is represented as a list of values, where each value corresponds to a column number in a sub-table. For example, the column allocation information for product "PRD-A" is "[4, 4]", indicating that the first sub-table after splitting contains 4 columns, and the second sub-table also contains 4 columns. If the column allocation information is "[0, 4]", it means the second sub-table has 4 columns, and the number of columns in the first sub-table needs to be automatically calculated based on the total number of columns. The rounding strategy configuration refers to the set of rules in the table header configuration used to specify the rounding method for each column value in the benefit illustration data. This includes a rounding mode identifier and the specific rounding type for each column under each mode. For example, the rounding strategy configuration for product "PRD-A" uses a blacklist mode. The configuration specifies that the "Year", "Age", and "Cumulative Premium" columns do not need to be rounded, while other unconfigured columns are rounded by default. The "Guaranteed Cash Value" and "Dividend Cash Value" columns are rounded.
[0035] S3. Calculate the number of columns in each sub-table based on the column allocation information, and perform semantic recognition recursive splitting on the benefit demonstration table header tree structure. When the number of child nodes of the table header node is two and the text of the two child nodes starts with the semantics of guaranteed benefit and non-guaranteed benefit respectively, the two child nodes are assigned to two sub-tables respectively and inherit the text of the parent node. When the node has no subordinate nodes, the node is shared to two sub-tables. After splitting, add table number to each sub-table.
[0036] Semantic recognition recursive splitting refers to a process of traversing and splitting the header tree structure of the benefit demonstration table. It determines whether splitting is necessary by identifying the semantic features of the header nodes. For nodes requiring splitting, their child nodes are assigned to different new sub-tables. For nodes that do not require splitting but have lower-level nodes, their lower-level nodes are processed recursively. Nodes without lower-level nodes are directly shared among the sub-tables. For example, starting from the root node "Product Benefit Demonstration" in the header tree structure of the benefit demonstration table for product "PRD-A", the traversal identifies two child nodes for this root node: the first child node's text is "Guaranteed Benefits", and the second child node's text is "Bonus Benefits". It is determined that this root node needs to be split. "Guaranteed Benefits" and all its leaf nodes are assigned to the first new sub-table, and "Bonus Benefits" and all its leaf nodes are assigned to the second new sub-table. The parent node text "Product Benefit Demonstration" is used as the parent node description for both new sub-tables.
[0037] In this context, "guaranteed benefit" semantics refer to the text content of header nodes belonging to the minimum guaranteed return category of the insurance product. This identifies the node and its subordinate data columns as representing the minimum guaranteed return promised by the insurance company. For example, in the benefit illustration header tree structure of product "PRD-A," child nodes with the text "guaranteed benefit" and "minimum guaranteed benefit" both belong to the guaranteed benefit semantics category. After identifying this semantic category during the splitting process, the corresponding nodes are categorized into the guaranteed benefit sub-table. "Non-guaranteed benefit" semantics refer to the text content of header nodes belonging to the non-guaranteed return category of the insurance product. This identifies the node and its subordinate data columns as representing the expected return based on a hypothetical investment return rate; the actual return may be higher or lower than the illustrated value. For example, in the benefit illustration header tree structure of product "PRD-A," child nodes with the text "dividend benefit" and "universal interest benefit" both belong to the non-guaranteed benefit semantics category. After identifying this semantic category during the splitting process, the corresponding nodes are categorized into the non-guaranteed benefit sub-table.
[0038] Here, the table number refers to the sequence number of each sub-table after splitting. A unique number is assigned to each sub-table according to the order in which they were generated, used to distinguish different sub-tables during display. For example, after semantic recognition and recursive splitting of the benefit presentation table header tree structure of product "PRD-A," two sub-tables are generated. The first sub-table is assigned the table number "Table 1," and the second sub-table is assigned the table number "Table 2." During subsequent HTML rendering, the corresponding table number is displayed above each sub-table.
[0039] S4. Traverse each row and column of the benefit demonstration data, perform rounding processing on the current column data according to the rounding strategy configuration, and determine whether the current column needs to be marked with a premium multiple. If so, calculate the ratio of the current row's cash value to the accumulated premium. Mark the premium as exceeded when the ratio first reaches a preset threshold, and mark the multiple when the ratio exceeds the preset threshold.
[0040] The premium multiple labeling refers to a dynamic marking method used during the rendering of benefit illustration data to visually represent the ratio of the policy's cash value to the accumulated premiums. For example, when iterating through the benefit illustration data for product "PRD-A", the ratio of cash value to accumulated premiums for the 5th policy year is calculated to be 1, and the cell is labeled "Exceeds Premiums"; the ratio for the 10th policy year is calculated to be 2.3, and the multiple is labeled "×2"; the ratio for the 15th policy year is calculated to be 3.1, and the multiple is labeled "×3".
[0041] The current row cash value refers to the policy cash value corresponding to the current policy year row in the benefit illustration data, representing the amount the policyholder can receive at the end of that policy year. For example, when iterating through the benefit illustration data for product "PRD-A," if the current row is the 10th policy year and the "Guaranteed Cash Value" is 22,000 and the "Dividend Cash Value" is 25,000, then the current row cash value will be either 22,000 or 25,000, depending on whether the current column is a guaranteed benefit column or a dividend benefit column. The accumulated premium refers to the total premiums paid by the policyholder up to the end of that policy year, corresponding to the current policy year row in the benefit illustration data. For example, when iterating through the benefit illustration data for product "PRD-A," if the current row is the 10th policy year and the annual premium is 10,000, then the current row accumulated premium will be 100,000.
[0042] The preset threshold refers to a pre-set numerical limit used to determine the ratio of cash value to accumulated premiums. When the ratio first equals this threshold, a "Premium Exceeded" label is triggered; when the ratio exceeds this threshold, a multiplier label is triggered. For example, the preset threshold for product "PRD-A" is set to 1. The ratio of cash value to accumulated premiums for each policy year is calculated. When the ratio first reaches 1 in the 5th policy year, it is labeled "Premium Exceeded". When the ratio is greater than 1 in the 6th policy year and thereafter, a multiplier "×N" is displayed.
[0043] S5. Combine the headers of each sub-table after splitting with the benefit demonstration data after rounding and annotation, and render it as an HTML table.
[0044] Here, an HTML table refers to table-structured data defined using Hypertext Markup Language, containing header rows and data rows, which can be displayed in a browser or embedded in a PDF document for ultimately presenting the benefit demonstration results to the customer. For example, the headers of the two sub-tables of the split product "PRD-A" are combined with the benefit demonstration data after rounding and multiplier annotation to generate two HTML tables. The first table displays the "Guaranteed Benefits" header and corresponding data, where the "Guaranteed Cash Value" column is rounded to the nearest integer; the second table displays the "Dividend Benefits" header and corresponding data, where the "Dividend Cash Value" column is rounded to the nearest integer and annotated with "Exceeds Premium" or "×N" multiples.
[0045] The technical solution of this embodiment constructs a multi-dimensional configuration key sequence and queries the configuration database according to priority to obtain the table header configuration. It combines a semantic recognition recursive splitting algorithm to dynamically split the header tree structure of the benefit demonstration table, and processes the demonstration data according to the configuration rounding strategy and premium multiple labeling rules. This solves the problems of long development cycles and high maintenance costs caused by relying on hard-coded templates and conditional judgments in new product development, as well as the problems of fixed column number splitting failing to identify the business semantics of guaranteed benefits and non-guaranteed benefits, and difficulty in distinguishing the differences in table headers under different numbers of insured persons and payment methods. It realizes the rapid configuration generation and flexible rendering of insurance product benefit demonstration tables, improves development efficiency and business scenario adaptability, and reduces maintenance costs and error probability.
[0046] In one alternative approach, the step of generating a sequence of configuration keys based on multiple configuration dimensions includes: A three-level configuration key is generated based on five dimensions: product code, version, displayed insurance type, number of insured persons, and payment method. The first-level configuration key consists of all five dimensions, the second-level configuration key consists of the other four dimensions except for the payment method, and the third-level configuration key consists of the three dimensions: product code, version, and displayed insurance type.
[0047] The first-level configuration key refers to the configuration query key composed of all five configuration dimensions. It has the highest query priority and is used to accurately locate configuration records applicable to a specific product under a specific number of insured persons and a specific payment method. For example, for product "PRD-A", the five configuration dimensions are product code "PRD-A", version "V1", displayed insurance type "TYPE-A", number of insured persons "2", and payment method "10". These dimensions are combined to generate the first-level configuration key "PRD-A.V1.TYPE-A.2.10", which is used preferentially to query the configuration database.
[0048] The second-level configuration key refers to a configuration query key composed of the four configuration dimensions other than the payment method. It has the second-highest query priority and is used to locate configuration records applicable to a specific product with a specific number of insured persons, regardless of payment method, when the first-level configuration key is not matched. For example, for product "PRD-A", the four configuration dimensions are product code "PRD-A", version "V1", displayed insurance type "TYPE-A", and number of insured persons "2". These are combined to generate the second-level configuration key "PRD-A.V1.TYPE-A.2". This second-level configuration key is used to query the configuration database when the first-level configuration key "PRD-A.V1.TYPE-A.2.10" is not matched.
[0049] The third-level configuration key refers to a configuration query key composed of three configuration dimensions: product code, version, and displayed insurance type. It has the lowest query priority and is used to locate a universal configuration record applicable to all insured persons and all payment methods for the same product when the second-level configuration key is not matched. For example, for product "PRD-A", the three configuration dimensions are product code "PRD-A", version "V1", and displayed insurance type "TYPE-A", which are combined to generate the third-level configuration key "PRD-A.V1.TYPE-A". This third-level configuration key is used to query the configuration database when neither the first-level nor the second-level configuration key is matched.
[0050] Among the above optional methods, a three-level configuration key is further constructed from five dimensions: product code, version, displayed insurance type, number of insured persons, and payment method. This allows the same product to match differentiated header configurations under different combinations of the number of insured persons and payment methods, thereby improving the configuration granularity and scenario coverage.
[0051] In one alternative approach, the steps of querying the configuration database in descending order of priority include: First, use the first-level configuration key to query the configuration database. If no match is found, use the second-level configuration key to query. If no match is found again, use the third-level configuration key to query. The configuration that is matched for the first time is used as the table header configuration.
[0052] In the above optional methods, the configuration database is queried in the order of priority of first level, second level, and third level. When an exact match fails, the matching is automatically downgraded to a broader configuration key. This ensures the accuracy of the configuration and avoids rendering failure due to a complete mismatch of the configuration.
[0053] In one alternative approach, the step of calculating the number of columns in each sub-table based on the column allocation information includes: Obtain the column count values of each sub-table in the column count allocation information. When there is a sub-table with a column count value of zero, calculate the sum of the column count values of the remaining sub-tables, and set the column count of the sub-table with a value of zero as the difference between the total number of columns in the benefit demonstration table header tree structure and the sum.
[0054] In the above optional methods, it is further supported to set the number of columns of the sub-table to zero in the column number allocation information. The number of columns of the zero-value sub-table is automatically calculated by the difference between the total number of columns and the sum of the number of columns of the other sub-tables, which simplifies the configuration operation and enables the column number allocation to be automatically adjusted as the total number of columns of the table header structure changes.
[0055] In one alternative approach, the step of performing semantic recognition recursive decomposition on the benefit demonstration table header tree structure includes: Starting from the root node of the benefit demonstration table header tree structure, traverse each header node and determine whether the current header node needs to be split. When the current header node has two child nodes, and the text of the first child node is prefixed with guaranteed benefit or minimum guaranteed benefit, and the text of the second child node is prefixed with universal interest benefit or bonus benefit, it is determined that the current header node needs to be split. The two child nodes of the current header node are respectively assigned to two new sub-tables and inherit the description text of the current header node as the parent node text of the two new sub-tables.
[0056] In this context, "universal life interest-bearing benefit" refers to the cash value of the non-guaranteed return portion calculated based on the assumed settlement interest rate in the benefit illustration of a universal life insurance product. The actual value of this benefit depends on the insurance company's actual investment return rate and is not within the scope of guaranteed payment. For example, product "PRD-A" is a universal life insurance product, and its benefit illustration header tree structure contains a sub-node with the text "universal life interest-bearing benefit." This node contains leaf nodes such as "Year," "Age," "Cumulative Premium," and "Universal life interest-bearing cash value." During the decomposition, this sub-node is identified as belonging to the non-guaranteed benefit semantic category.
[0057] In this context, "dividend benefits" refers to the cash value of the non-guaranteed return portion calculated based on the assumed dividend level in the benefit illustration of a participating insurance product. The actual value of this benefit depends on the insurance company's actual operating results and dividend policy, and is not within the scope of guaranteed payment. For example, product "PRD-A" is a participating insurance product. Its benefit illustration header tree structure contains a sub-node with the text "dividend benefits." This node includes leaf nodes such as "annual," "age," "cumulative premium," and "dividend cash value." During the decomposition, this sub-node is identified as belonging to the non-guaranteed benefit semantic category.
[0058] When the current header node does not need to be split but has subordinate nodes, the subordinate nodes are recursively split and the split subtrees are respectively attached to the two new sub-tables; when the current header node has no subordinate nodes, the current header node is shared to the two new sub-tables.
[0059] In the above optional approach, the header tree structure is further traversed starting from the root node. When a node contains two child nodes and the child node texts begin with semantics related to guaranteed benefits and non-guaranteed benefits respectively, the two child nodes are assigned to two sub-tables and inherit the parent node text. When there are no lower-level nodes, the node is shared between the two sub-tables, so that the splitting result conforms to the business semantic logic.
[0060] In one alternative approach, the rounding strategy configuration includes a blacklist mode and a whitelist mode; In the blacklist mode, columns that are configured not to be rounded and columns that are not configured are rounded by default. In the whitelist mode, columns that are configured to be rounded and columns that are not configured are not rounded by default. The rounding process includes three strategy types: rounding to the nearest integer, rounding down, and keeping one decimal place.
[0061] The blacklist mode refers to the working mode in the rounding strategy configuration. In this mode, the configuration lists the data columns that do not require rounding, while other data columns not listed in the configuration are rounded by default. For example, if the rounding strategy configuration for product "PRD-A" uses the blacklist mode and lists "Year," "Age," and "Cumulative Premium" as columns that do not require rounding, then the "Guaranteed Cash Value" and "Dividend Cash Value" columns, being not on the blacklist, are rounded by default. The whitelist mode refers to the working mode in the rounding strategy configuration. In this mode, the configuration lists the data columns that require rounding, while other data columns not listed in the configuration are not rounded by default. For example, if the rounding strategy configuration for product "PRD-A" uses the whitelist mode and lists "Guaranteed Cash Value" and "Dividend Cash Value" as columns that require rounding, then the "Year," "Age," and "Cumulative Premium" columns, being not on the whitelist, are not rounded by default.
[0062] Among the above optional methods, a blacklist mode and a whitelist mode can be further set in the rounding strategy configuration. The blacklist performs rounding on unconfigured columns by default, while the whitelist does not perform rounding on unconfigured columns by default. It also supports three strategies: rounding to the nearest whole number, rounding down, and keeping one decimal place, to meet the differentiated rounding needs of different columns.
[0063] In one alternative approach, when the table header configuration includes a secondary splitting flag, the semantic recognition recursive splitting is performed again on each sub-table generated after the semantic recognition recursive splitting.
[0064] The secondary splitting flag refers to a switch parameter in the table header configuration used to control whether to perform semantic recognition recursive splitting on each of the already split sub-tables. When this flag is set, the splitting results are subjected to secondary splitting. For example, if the table header configuration of product "PRD-A" includes a secondary splitting flag and this flag is set to "Yes", semantic recognition recursive splitting is performed again on the two sub-tables generated after semantic recognition recursive splitting. It checks whether the header node of each sub-table still contains two sub-nodes that start with both guaranteed benefit semantics and non-guaranteed benefit semantics. If so, the splitting continues until all sub-tables no longer meet the splitting conditions.
[0065] In the above optional methods, a secondary splitting flag can be set in the table header configuration to perform the same splitting process again on the sub-tables that have already undergone semantic recognition recursive splitting. This supports multiple splitting of more complex multi-level interest structures and expands the applicable scenarios of the method for complex product structures.
[0066] like Figure 2 As shown, the overall technical solution of this embodiment is completed collaboratively by six core components. The multi-dimensional configuration key generator 101 generates a hierarchical configuration key sequence based on five dimensions: product code, version, displayed insurance type, number of insured persons, and payment method. The configuration key decay matching engine 102 receives the configuration key sequence and queries the configuration database one by one in descending order of priority. Adopting a strategy of returning the first successful match, it outputs the first successfully matched configuration as the table header configuration, which includes both header configuration information and rounding configuration information. The semantic recognition splitter 103, after obtaining the table header configuration, calculates the number of columns in each sub-table based on the column allocation information and performs semantic recognition recursive splitting on the benefit demonstration table header tree structure. The splitting is based on semantic judgment of guaranteed benefits and bonus benefits, and the split sub-table headers are output. After obtaining the benefit illustration data, the rounding strategy engine 104 performs rounding processing on each column of data according to the rounding configuration information. The rounding strategy supports two working modes: blacklist mode and whitelist mode. The rounding processing includes three types: rounding to the nearest whole number, rounding down, and retaining one decimal place. The rounded data is then output. The premium multiple labeler 105 receives the rounded data, iterates through each row and column, calculates the ratio of the current row's cash value to the accumulated premium, dynamically labels it as "exceeds premium" or "×N" multiples, and outputs the labeling results. The HTML table renderer 106 receives the headers of each sub-table after splitting and the benefit illustration data after rounding and labeling processing, combines the corresponding headers and data, renders it into an HTML table, and embeds it into a PDF document.
[0067] like Figure 3 As shown, the dual-header splitting process is executed in the following order, including: S201. Obtain a list of headers demonstrating the benefits of the product, organized in an InterestHead tree structure.
[0068] S202. Determine whether the isHaveBoubleHead flag enables double header configuration. If enabled, continue with the splitting process.
[0069] S203. Generate configuration keys based on five dimensions: product code, version, displayed insurance type, number of insured persons, and payment method. Match the configuration database in a descending order of preset priority, and use the first matching configuration as the doubleHeadAttribute configuration.
[0070] S204. Parse the HeadIndexList configuration item in the configuration, obtain the column allocation information of each sub-table, and calculate the number of columns of each sub-table.
[0071] S205. Perform semantic recognition recursive splitting on the benefit demonstration table header tree structure, based on the semantic features of guaranteed benefits and bonus benefits, and output the multiple sub-header lists after splitting.
[0072] S206. Determine whether the configuration contains the needReSplit flag. If it does, perform semantic recognition recursive splitting again on each of the split sub-tables.
[0073] S207. Perform HTML rendering on each sub-table and add a table number to each sub-table. The table numbers are labeled as "Table 1" and "Table 2" in the order they were generated from the splitting process.
[0074] like Figure 4 As shown, the rounding and annotation process for benefit demonstration data is executed in the following order: S301. Traverse each row and column of the benefit demonstration JSON data.
[0075] S302. Query the ProductRiskConf configuration information to determine the rounding strategy type corresponding to the current column.
[0076] S303. Perform rounding processing on the current column data according to the rounding strategy found in the query. The rounding processing includes three types: rounding to the nearest whole number, rounding down, and keeping one decimal place.
[0077] S304. Determine whether the current column needs to be labeled with the premium multiple.
[0078] S305. Calculate the ratio of the current cash value to the accumulated premiums.
[0079] S306. When the ratio is equal to 1, mark "exceeds premium"; when the ratio is greater than 1, mark "×N".
[0080] S307. Embed the annotation results into the corresponding cells with HTML inline styles to complete the rounding and annotation rendering of all cells.
[0081] In another embodiment of the dynamic dual-header semantic decomposition and configurable rendering method for the insurance benefit demonstration table of the present invention, it includes: S10. Obtain the header tree structure and benefit demonstration data corresponding to the insurance product. The header tree structure contains multiple header nodes. Each header node contains node text and a list of child nodes. The benefit demonstration data contains numerical records of multiple policy year rows. Each row corresponds to a policy year, and each column corresponds to a data item of a header leaf node.
[0082] S20. Obtain the header configuration and rounding strategy configuration that match the insurance product from the configuration database. The header configuration contains column number allocation information, and the rounding strategy configuration contains the rounding type corresponding to each column.
[0083] S30. Perform semantic recognition recursive splitting on the benefit demonstration table header tree structure. Starting from the root node, traverse each header node. When the current header node has two child nodes, and the text of the first child node begins with a guaranteed benefit semantic, while the text of the second child node begins with a non-guaranteed benefit semantic, assign the two child nodes of the current header node to two sub-tables and inherit the node text of the current header node as the parent node text. When the number of child nodes is not two or the text prefix does not meet the conditions, if the current header node has a lower-level node, recursively traverse the lower-level node; if the current header node does not have a lower-level node, share the current header node to two sub-tables. After each split, calculate the secondary splitting weight based on the leaf node distribution of each sub-table generated by the split. The secondary splitting weight is calculated using the following formula: in, This indicates the weight of the secondary split of the current sub-table. This indicates the number of header nodes in the current subtable that simultaneously contain leaf nodes with guaranteed benefits and leaf nodes with non-guaranteed benefits. Indicates the first The number of leaf nodes belonging to the non-guaranteed benefit semantics among the leaf nodes under each header node. This indicates the total number of leaf nodes in the current sub-table. Indicates the first The depth of each header node in the header tree structure. The value is the number of edges traversed from the root node to the head node of the table. When the weight of the secondary split is greater than the preset weight threshold, the current sub-table is split, and the two child nodes of the current sub-table are respectively assigned to two new sub-tables; when the weight of the secondary split is not greater than the preset weight threshold, the secondary split is not performed.
[0084] It should be noted that the weighting formula for the second split is based on the following: the more leaf nodes under the root node of each split sub-table that simultaneously contain leaf nodes with guaranteed interest semantics and leaf nodes with non-guaranteed interest semantics, the greater the proportion of non-guaranteed interest semantics leaf nodes to the total number of leaf nodes in the current sub-table, and the deeper the level of the table head node in the table head tree structure, the higher the granularity of semantic mixing still exists within the sub-table, and the greater the semantic purity gain that can be obtained by further splitting.
[0085] The above formula quantifies the degree of semantic imbalance in the sub-table header structure into a comparable value by weighted summing of the values of the three dimensions. This value serves as the basis for triggering secondary splitting, enabling the system to automatically determine whether each sub-table still needs to be split after the first split. This avoids performing invalid splits on sub-tables that already have semantic purity, while ensuring that necessary secondary splits are performed on sub-tables with high semantic mixing.
[0086] S40. Calculate the number of columns in each sub-table based on the column number values in the column number allocation information. When there is a sub-table with a column number value of zero in the column number allocation information, calculate the sum of the column number values of the remaining sub-tables. Set the column number of the sub-table with a value of zero as the difference between the total number of columns in the benefit demonstration table header tree structure and the sum. Add table numbers to each sub-table generated after splitting. The table numbers are arranged sequentially according to the order of splitting and generation.
[0087] S50. Traverse each row and column of the benefit demonstration data, and perform rounding processing on the data of the current column according to the rounding type corresponding to the current column in the rounding strategy configuration. The rounding types include rounding to the nearest integer, rounding down, and keeping one decimal place.
[0088] S60. Traverse each row and column of the benefit illustration data, determine whether the current column needs to be labeled with the premium multiple, and when the premium multiple needs to be labeled, obtain the cash value and accumulated premium of the current row, calculate the ratio of cash value to accumulated premium, and when the ratio is equal to the preset threshold, label the current cell with the premium multiple label, and when the ratio is greater than the preset threshold, label the current cell with the multiple label, and the value of the multiple is the value after the ratio is rounded down.
[0089] S70. Combine the headers of each sub-table after splitting with the benefit demonstration data after rounding and premium multiple labeling to generate a hypertext markup language table corresponding to each sub-table.
[0090] The technical solution of this embodiment constructs a multi-dimensional configuration key sequence and queries the configuration database according to priority to obtain the header configuration. This enables the same insurance product to match differentiated header configurations under different combinations of the number of insured persons and payment methods. At the same time, a semantic recognition recursive splitting algorithm is used to dynamically split the header tree structure of the benefit demonstration table, and a secondary splitting weight calculation based on the semantic distribution of leaf nodes is introduced. After the first splitting is completed, the degree of imbalance in the semantic distribution within each sub-table after splitting is automatically determined to determine whether a secondary splitting is needed. This ensures that the header splitting result maintains logical integrity at the semantic level. This solves the problems of long development cycles and high maintenance costs caused by relying on hard-coded templates and conditional judgments in new product development, as well as the problems of fixed column number splitting failing to identify the business semantics of guaranteed benefits and non-guaranteed benefits, and difficulty in distinguishing the differences in headers under different numbers of insured persons and payment methods. In addition, the demonstration data is processed according to the configuration rounding strategy and premium multiple labeling rules, which reduces the development and maintenance costs of insurance product benefit demonstration tables and improves the adaptability to business scenarios.
[0091] Figure 5 This diagram illustrates the structure of an embodiment of a dynamic dual-header semantic splitting and configurable rendering system 400 for an insurance benefit demonstration table provided by the present invention. Figure 5 As shown, the dynamic dual-header semantic splitting and configurable rendering system 400 for the insurance benefit demonstration table includes: Module 401 is used to obtain the header tree structure of the product's benefit demonstration table and the benefit demonstration data. The query module 402 is used to generate a configuration key sequence based on multiple configuration dimensions, query the configuration database in order of priority from high to low, and take the first hit configuration as the table header configuration. The table header configuration includes column number allocation information and rounding strategy configuration. The splitting module 403 is used to calculate the number of columns in each sub-table based on the column allocation information, and to perform semantic recognition recursive splitting on the benefit demonstration table header tree structure. When the number of child nodes of the table header node is two and the text of the two child nodes starts with the semantics of guaranteed benefit and non-guaranteed benefit respectively, the two child nodes are assigned to two sub-tables and inherit the text of the parent node. When the node has no subordinate nodes, the node is shared to two sub-tables. After splitting, a table number is added to each sub-table. The annotation module 404 is used to traverse each row and column of the benefit demonstration data, perform rounding processing on the data of the current column according to the rounding strategy configuration, and determine whether the current column needs to be annotated with the premium multiple. If so, it calculates the ratio of the cash value of the current row to the accumulated premium. When the ratio first reaches a preset threshold, it is annotated with "exceeds premium". When the ratio exceeds the preset threshold, it is annotated with "multiple". The rendering module 405 is used to combine the headers of the split sub-tables with the benefit demonstration data after rounding and annotation, and render them into an HTML table.
[0092] In an alternative embodiment, the query module 402 is specifically used for: A three-level configuration key is generated based on five dimensions: product code, version, displayed insurance type, number of insured persons, and payment method. The first-level configuration key consists of all five dimensions, the second-level configuration key consists of the other four dimensions except for the payment method, and the third-level configuration key consists of the three dimensions: product code, version, and displayed insurance type.
[0093] In an alternative embodiment, the query module 402 is specifically used for: First, use the first-level configuration key to query the configuration database. If no match is found, use the second-level configuration key to query. If no match is found again, use the third-level configuration key to query. The configuration that is matched for the first time is used as the table header configuration.
[0094] In an alternative embodiment, the splitting module 403 is specifically used for: Obtain the column count values of each sub-table in the column count allocation information. When there is a sub-table with a column count value of zero, calculate the sum of the column count values of the remaining sub-tables, and set the column count of the sub-table with a value of zero as the difference between the total number of columns in the benefit demonstration table header tree structure and the sum.
[0095] In an alternative embodiment, the splitting module 403 is specifically used for: Starting from the root node of the benefit demonstration table header tree structure, traverse each header node and determine whether the current header node needs to be split. When the current header node has two child nodes and the text of the first child node is prefixed with guaranteed benefit or minimum guaranteed benefit and the text of the second child node is prefixed with universal interest benefit or bonus benefit, it is determined that the current header node needs to be split. The two child nodes of the current header node are respectively assigned to two new sub-tables and inherit the description text of the current header node as the parent node text of the two new sub-tables. When the current header node does not need to be split but has subordinate nodes, the subordinate nodes are recursively split and the split subtrees are respectively attached to the two new sub-tables; when the current header node has no subordinate nodes, the current header node is shared to the two new sub-tables.
[0096] In one alternative approach, the rounding strategy configuration includes a blacklist mode and a whitelist mode; In the blacklist mode, columns that are configured not to be rounded and columns that are not configured are rounded by default. In the whitelist mode, columns that are configured to be rounded and columns that are not configured are not rounded by default. The rounding process includes three strategy types: rounding to the nearest integer, rounding down, and keeping one decimal place.
[0097] In one alternative approach, when the table header configuration includes a secondary splitting flag, the semantic recognition recursive splitting is performed again on each sub-table generated after the semantic recognition recursive splitting.
[0098] It should be noted that the beneficial effects of the dynamic dual-header semantic segmentation and configurable rendering system 400 for the insurance benefit demonstration table provided in the above embodiments are the same as those of the dynamic dual-header semantic segmentation and configurable rendering method for the insurance benefit demonstration table, and will not be repeated here. Furthermore, the system provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the system can be divided into different functional modules according to the actual situation to complete all or part of the functions described above. In addition, the system and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiments, and will not be repeated here.
[0099] The dynamic dual-header semantic splitting and configurable rendering system 400 for the insurance benefit demonstration table of the present invention can be a computer program (including program code) running on a computer device. For example, the dynamic dual-header semantic splitting and configurable rendering system 400 for the insurance benefit demonstration table of the present invention is an application software that can be used to execute the corresponding steps in the dynamic dual-header semantic splitting and configurable rendering method for the insurance benefit demonstration table of the present invention.
[0100] In some embodiments, the dynamic dual-header semantic splitting and configurable rendering system 400 for the insurance benefit presentation table of the present invention can be implemented using a combination of hardware and software. As an example, the dynamic dual-header semantic splitting and configurable rendering system 400 for the insurance benefit presentation table of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the dynamic dual-header semantic splitting and configurable rendering method for the insurance benefit presentation table of the present invention. For example, the processor in the form of a hardware decoding processor can be one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.
[0101] The modules described in the embodiments of this invention can be implemented in software or hardware. The names of the modules are not, in some cases, limiting the scope of the module itself.
[0102] An electronic device according to an embodiment of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the dynamic dual-header semantic splitting and configurable rendering method for any of the above-mentioned insurance benefit presentation tables. That is, an electronic device according to an embodiment of the present invention may include, but is not limited to: a processor and a memory; the memory is used to store the computer program; the processor is used to execute the dynamic dual-header semantic splitting and configurable rendering method for the insurance benefit presentation table shown in any embodiment of the present invention by calling the computer program.
[0103] In one alternative embodiment, an electronic device is provided, such as Figure 6 As shown, Figure 6 The illustrated electronic device 5000 includes a processor 5001 and a memory 5003. The processor 5001 and the memory 5003 are connected, for example, via a bus 5002. Optionally, the electronic device 5000 may further include a transceiver 5004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 5004 is not limited to one type, and the structure of the electronic device 5000 does not constitute a limitation on the embodiments of the present invention.
[0104] Processor 5001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this invention. Processor 5001 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0105] Bus 5002 may include a path for transmitting information between the aforementioned components. Bus 5002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 5002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 6 The bus 5002 is represented by only one thick line, but this does not mean that there is only one bus or one type of bus.
[0106] The memory 5003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto.
[0107] The memory 5003 stores application code (computer program) for executing the present invention, and its execution is controlled by the processor 5001. The processor 5001 executes the application code stored in the memory 5003 to implement the content shown in the foregoing method embodiments.
[0108] Among them, electronic devices can also be terminal devices. A terminal device can be any terminal device that can install applications and access web pages through applications, including at least one of smartphones, tablets, laptops, desktop computers, smart speakers, smartwatches, smart TVs, and smart in-vehicle devices.
[0109] It should be noted that, Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of the present invention.
[0110] An embodiment of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements a dynamic dual-header semantic splitting and configurable rendering method for any of the above-mentioned insurance benefit demonstration tables.
[0111] Alternatively, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, a floppy disk, and an optical data storage device, etc.
[0112] In an exemplary embodiment, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the aforementioned dynamic dual-header semantic splitting and configurable rendering method for the insurance benefit presentation table.
[0113] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0114] It should be understood that the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0115] The computer-readable storage medium provided in this invention can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0116] The aforementioned computer-readable storage medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the method shown in the above embodiments.
[0117] The above description is merely a preferred embodiment of the present invention and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this invention is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-disclosed concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this invention.
[0118] It should be noted that the terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and represent a limitation on a specific order or sequence. Where appropriate, the order of use for similar objects can be interchanged so that the embodiments of this application described herein can be implemented in an order other than that shown or described.
[0119] Those skilled in the art will recognize that this invention can be implemented as a system, method, or computer program product. Therefore, this invention can be specifically implemented in the following forms: it can be entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as a "circuit," "module," or "system." Furthermore, in some embodiments, this invention can also be implemented as a computer program product contained in one or more computer-readable media, which includes computer-readable program code.
[0120] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A method for dynamic dual-header semantic decomposition and configurable rendering of an insurance benefit demonstration table, characterized in that, include: Obtain the product benefit demonstration table header tree structure and benefit demonstration data; A configuration key sequence is generated based on multiple configuration dimensions. The configuration database is queried in order of priority from high to low. The configuration that is first hit is used as the table header configuration. The table header configuration includes column number allocation information and rounding strategy configuration. The number of columns in each sub-table is calculated based on the column allocation information, and semantic recognition recursively splits the header tree structure of the benefit demonstration table. When the number of child nodes of the header node is two and the text of the two child nodes starts with the semantics of guaranteed benefit and non-guaranteed benefit respectively, the two child nodes are assigned to two sub-tables and inherit the text of the parent node. When the node has no subordinate nodes, the node is shared to two sub-tables. After splitting, a table number is added to each sub-table. Iterate through each row and column of the benefit demonstration data, round the data in the current column according to the rounding strategy configuration, and determine whether the current column needs to be marked with a premium multiple. If so, calculate the ratio of the cash value of the current row to the accumulated premium. Mark the premium as exceeded when the ratio first reaches a preset threshold, and mark the multiple when the ratio exceeds the preset threshold. The headers of each sub-table after splitting are combined with the benefit demonstration data after rounding and annotation, and then rendered into an HTML table.
2. The dynamic dual-header semantic decomposition and configurable rendering method for the insurance benefit demonstration table according to claim 1, characterized in that, The steps for generating a configuration key sequence based on multiple configuration dimensions include: A three-level configuration key is generated based on five dimensions: product code, version, displayed insurance type, number of insured persons, and payment method. The first-level configuration key consists of all five dimensions, the second-level configuration key consists of the other four dimensions except for the payment method, and the third-level configuration key consists of the three dimensions: product code, version, and displayed insurance type.
3. The dynamic dual-header semantic decomposition and configurable rendering method for the insurance benefit demonstration table according to claim 2, characterized in that, The steps for querying the configuration database in descending order of priority include: First, use the first-level configuration key to query the configuration database. If no match is found, use the second-level configuration key to query. If no match is found again, use the third-level configuration key to query. The configuration that is matched for the first time is used as the table header configuration.
4. The dynamic dual-header semantic decomposition and configurable rendering method for the insurance benefit demonstration table according to claim 1, characterized in that, The steps for calculating the number of columns in each sub-table based on the column allocation information include: Obtain the column count values of each sub-table in the column count allocation information. When there is a sub-table with a column count value of zero, calculate the sum of the column count values of the remaining sub-tables, and set the column count of the sub-table with a value of zero as the difference between the total number of columns in the benefit demonstration table header tree structure and the sum.
5. The dynamic dual-header semantic decomposition and configurable rendering method for the insurance benefit demonstration table according to claim 1, characterized in that, The steps of performing semantic recognition recursive splitting on the header tree structure of the benefit demonstration table include: Starting from the root node of the benefit demonstration table header tree structure, traverse each header node and determine whether the current header node needs to be split. When the current header node has two child nodes and the text of the first child node is prefixed with guaranteed benefit or minimum guaranteed benefit and the text of the second child node is prefixed with universal interest benefit or bonus benefit, it is determined that the current header node needs to be split. The two child nodes of the current header node are respectively assigned to two new sub-tables and inherit the description text of the current header node as the parent node text of the two new sub-tables. When the current header node does not need to be split but has subordinate nodes, the subordinate nodes are recursively split and the split subtrees are respectively attached to the two new sub-tables; when the current header node has no subordinate nodes, the current header node is shared to the two new sub-tables.
6. The dynamic dual-header semantic decomposition and configurable rendering method for the insurance benefit demonstration table according to claim 1, characterized in that, The rounding strategy configuration includes a blacklist mode and a whitelist mode; In the blacklist mode, columns that are configured not to be rounded and columns that are not configured are rounded by default. In the whitelist mode, columns that are configured to be rounded and columns that are not configured are not rounded by default. The rounding process includes three strategy types: rounding to the nearest integer, rounding down, and keeping one decimal place.
7. The dynamic dual-header semantic decomposition and configurable rendering method for the insurance benefit demonstration table according to claim 1, characterized in that, When the table header configuration contains a secondary splitting flag, the semantic recognition recursive splitting is performed again on each sub-table generated after the semantic recognition recursive splitting.
8. A dynamic dual-header semantic decomposition and configurable rendering system for an insurance benefit demonstration table, characterized in that, include: The acquisition module is used to acquire the header tree structure of the product's benefit demonstration table and the benefit demonstration data. The query module is used to generate a configuration key sequence based on multiple configuration dimensions, query the configuration database in order of priority from high to low, and use the first hit configuration as the table header configuration. The table header configuration includes column number allocation information and rounding strategy configuration. The splitting module is used to calculate the number of columns in each sub-table based on the column allocation information, and to perform semantic recognition recursive splitting on the benefit demonstration table header tree structure. When the number of child nodes of the table header node is two and the text of the two child nodes starts with the semantics of guaranteed benefit and non-guaranteed benefit respectively, the two child nodes are assigned to two sub-tables and inherit the text of the parent node. When the node has no subordinate nodes, the node is shared to two sub-tables. After splitting, a table number is added to each sub-table. The annotation module is used to traverse each row and column of the benefit demonstration data, perform rounding processing on the data in the current column according to the rounding strategy configuration, and determine whether the current column needs to be annotated with the premium multiple. If so, it calculates the ratio of the cash value of the current row to the accumulated premium. When the ratio first reaches a preset threshold, it is annotated with "exceeds premium". When the ratio exceeds the preset threshold, it is annotated with "multiple". The rendering module is used to combine the headers of the split sub-tables with the benefit demonstration data after rounding and annotation, and render them into an HTML table.
9. An electronic device, characterized in that, The electronic device includes a processor coupled to a memory, the memory storing at least one computer program, which is loaded and executed by the processor to enable the electronic device to implement the dynamic dual-header semantic splitting and configurable rendering method for the insurance benefit presentation table as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which, when executed by a processor, implements the dynamic dual-header semantic splitting and configurable rendering method for the insurance benefit demonstration table as described in any one of claims 1 to 7.
