CN-122019901-A - Data generation and dynamic rendering method
Abstract
The application belongs to the technical field of interface display, and relates to a data generation and dynamic rendering method, wherein when a target instruction is detected, target text content generation is triggered according to a target data set; and controlling the rendering of the target text content to the target display position by adopting a text rendering component capable of performing rendering state control, wherein the rendering of the contents at the key fields and the semantic node positions is performed in a distinguishing manner. The method is applied to the generation and dynamic rendering of the display data to the scene of the target interface according to the interface interaction instruction, and the real-time generation and controllable rendering display of the target data are realized. Specifically, the method is applied to the field of financial business, business evaluation or business recommendation data and automatic display can be intelligently generated according to historical financial business evaluation data, real-time generation and controllable rendering display of interface display data are realized, and browsing and viewing by target personnel are facilitated.
Inventors
- YE ZUNFA
Assignees
- 中国平安财产保险股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260114
Claims (10)
- 1. A method for data generation and dynamic rendering, comprising the steps of: When a target instruction is detected, triggering to generate target text content according to a target data set; Identifying key fields and semantic node positions contained in the target text content; And controlling the target text content to be rendered to a target display position by adopting a text rendering component capable of performing rendering state control, wherein in the process of rendering the target text content, the key field and the semantic node position are rendered in a distinguishing mode.
- 2. The method of claim 1, wherein upon execution of the detected target instruction, prior to the step of triggering target text content generation from a target data set, the method further comprises: detecting the latest instruction of a target operation end by adopting a preset instruction detection assembly, wherein the preset instruction detection assembly comprises an instruction triggering detection assembly based on a front end interface; If the latest instruction is not the target instruction, continuing to execute detection of the latest instruction of the target operation end, wherein the target instruction comprises a data rendering instruction; when the target instruction is detected, triggering the step of generating the target text content according to the target data set, wherein the step specifically comprises the following steps: if the latest instruction is the target instruction, acquiring the total target data given by the historical user; And generating optimal target data according to the full target data to obtain the target text content.
- 3. The data generation and dynamic rendering method according to claim 2, wherein before the step of generating optimal target data from the full amount of target data to obtain the target text content is performed, the method further comprises: according to a preset keyword dictionary, extracting field keywords from each item of target data in the total target data to obtain field keyword extraction results respectively corresponding to each item of target data; the step of generating the optimal target data according to the total target data to obtain the target text content comprises the following steps: Triggering the input of the full target data into preset semantic understanding agents, and identifying text semantics corresponding to each item of target data, wherein the preset semantic understanding agents comprise semantic understanding agents based on text serialization coding and a space-time attention mechanism; Summarizing the whole text semantics of the whole target data according to the text semantics corresponding to each item of target data respectively to obtain the whole semantic tendency of the whole target data; generating optimal target data based on the overall semantic tendency and the preset keyword dictionary; And outputting the optimal target data as the target text content.
- 4. The method for generating and dynamically rendering data according to claim 3, wherein the step of triggering the input of the total target data into a preset semantic understanding agent and identifying text semantics corresponding to each item of target data respectively comprises the following steps: Respectively carrying out text serialization coding processing on each item of target data by utilizing the text serialization coding component of the semantic understanding agent to obtain at least one text coding statement contained in each item of target data; Respectively carrying out text semantic analysis on all text coding sentences, removing the text coding sentences with the semantic understanding contribution degree not exceeding a preset contribution degree threshold by utilizing a semantic correlation algorithm preset in the semantic understanding agent, and only reserving the text coding sentences with the semantic understanding contribution degree exceeding the preset contribution degree threshold; determining the same item of target data relation of the reserved text coding sentences by utilizing the space-time attention mechanism of the semantic understanding agent, and sorting the sequence relation of the reserved text coding sentences in the same item of target data; and carrying out classification accumulation processing according to semantic understanding contribution degrees respectively corresponding to different text coding sentences in the same item of target data to obtain multi-class text semantics contained in the same item of target data and semantic metric values respectively occupied by each class of text semantics.
- 5. The method for generating and dynamically rendering data according to claim 3, wherein the step of identifying the key field and the semantic node position contained in the target text content specifically comprises: Identifying all keywords contained in the target text content according to the keyword dictionary, taking the keywords as the key fields, and marking the key fields by adopting a first distinguishing mark; Inputting the target text content into the preset semantic understanding agent; Identifying multiple types of text semantics contained in the target text content and semantic metric values occupied by each type of text semantics respectively by utilizing the semantic understanding agent; According to the multi-class text semantics contained in the target text content and the text content positions corresponding to each class of text semantics in the target text content, determining semantic node positions corresponding to the multi-class text semantics respectively, and marking the semantic node positions by adopting a second distinguishing mark.
- 6. The method for generating and dynamically rendering data according to claim 5, wherein the text rendering component capable of rendering state control comprises a text rendering component based on Svelte frame, and the step of controlling the rendering of the target text content to the target display position by using the text rendering component capable of rendering state control specifically comprises: Importing the target text content serving as display data to be rendered into the text rendering component capable of performing rendering state control; Determining key fields and semantic node positions contained in the target text content according to the first distinguishing mark and the second distinguishing mark; aiming at non-key fields in the target text content and text content at a non-semantic node position, dynamically displaying the text content to a target display position according to a first rendering display frequency; Aiming at key fields contained in the target text content and text content at semantic node positions, the target text content is dynamically displayed according to other rendering display frequencies different from the first rendering display frequency, wherein different rendering display frequencies contain different display delay time lengths between adjacent characters in the text word-by-word display.
- 7. The method according to claim 6, wherein the step of dynamically displaying the text content at the semantic node position and the key field included in the target text content to the target display position according to the other display frequency different from the first display frequency comprises: Identifying a rendering display frequency priority preset for key fields and semantic node positions; if the current text to be rendered is only an important field or is only text content at a semantic node position, displaying the current text to be rendered according to the corresponding rendering display frequency; If the current text to be rendered is the text content at the position of the key field and the semantic node, displaying the current text to be rendered according to the rendering display frequency corresponding to the highest rendering display frequency priority between the key field and the semantic node; After performing the step of dynamically displaying the text content at the target display position with respect to the key field and the semantic node position included in the target text content at other rendering display frequencies different from the first rendering display frequency, the method further includes: And according to preset color and animation alternation frequency, individuating and displaying key fields contained in the target text content and text content at the position of the semantic node.
- 8. A data generation and dynamic rendering apparatus, comprising: The text content generation module is used for triggering target text content generation according to a target data set when the target instruction is detected; The text content identification module is used for identifying key fields and semantic node positions contained in the target text content; And the text content rendering module is used for controlling the target text content to be rendered to a target display position by adopting a text rendering component capable of performing rendering state control, wherein in the process of rendering the target text content, the key fields and the semantic node positions are rendered in a distinguishing mode.
- 9. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which when executed by the processor implement the steps of the data generation and dynamic rendering method of any one of claims 1 to 7.
- 10. A computer readable storage medium having stored thereon computer readable instructions which when executed by a processor implement the steps of the data generation and dynamic rendering method of any of claims 1 to 7.
Description
Data generation and dynamic rendering method Technical Field The application relates to the technical field of interface display, which is applied to generating and dynamically rendering display data to a scene of a target interface according to interface interaction instructions, and relates to a data generating and dynamically rendering method. Background In the conventional technology, the data content of text types such as news, information, discount information and the like needs to be pushed to the terminal, so that a user can acquire the latest news information or business information in time. But the number of news information or business information stored on the server is large, and the user needs to select proper data to recommend to the user. In recent years, with the on-line processing investment of financial services, service related information or comprehensive data is often required to be recommended to users, such as service evaluation data, service recommendation data and the like, and in the current improvement mode, the related data is not acquired from other channels in consideration of a large number of users involved in the financial service data, and the related service data of historical users is only analyzed and processed to generate the financial service recommendation data, so that the complexity of acquiring reference data is reduced, but certain output improvement is still lacking for generated target data. Disclosure of Invention The embodiment of the application aims to provide a data generation and dynamic rendering method for improving output of target data. In a first aspect, an embodiment of the present application provides a data generating and dynamic rendering method, which adopts the following technical schemes: a data generation and dynamic rendering method comprises the following steps: When a target instruction is detected, triggering to generate target text content according to a target data set; Identifying key fields and semantic node positions contained in the target text content; And controlling the target text content to be rendered to a target display position by adopting a text rendering component capable of performing rendering state control, wherein in the process of rendering the target text content, the key field and the semantic node position are rendered in a distinguishing mode. In a second aspect, an embodiment of the present application further provides a data generating and dynamic rendering device, which adopts the following technical scheme: a data generation and dynamic rendering device, comprising: The text content generation module is used for triggering target text content generation according to a target data set when the target instruction is detected; The text content identification module is used for identifying key fields and semantic node positions contained in the target text content; And the text content rendering module is used for controlling the target text content to be rendered to a target display position by adopting a text rendering component capable of performing rendering state control, wherein in the process of rendering the target text content, the key fields and the semantic node positions are rendered in a distinguishing mode. In a third aspect, an embodiment of the present application further provides a computer device, which adopts the following technical scheme: A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which when executed by the processor implement the steps of the data generation and dynamic rendering method described above. In a fourth aspect, an embodiment of the present application further provides a computer readable storage medium, which adopts the following technical solutions: A computer readable storage medium having stored thereon computer readable instructions which when executed by a processor implement the steps of a data generation and dynamic rendering method as described above. Compared with the prior art, the embodiment of the application has the following main beneficial effects: The data generation and dynamic rendering method comprises the steps of triggering target text content generation according to a target data set when a target instruction is detected, identifying key fields and semantic node positions contained in the target text content, and controlling the target text content to be rendered to a target display position by adopting a text rendering component capable of performing rendering state control, wherein in the process of rendering the target text content, the key fields and the semantic node positions are rendered in a distinguishing mode. The method is applied to the generation and dynamic rendering of the display data to the scene of the target interface according to the interface interaction instruction, and the real-time generation and controllable rendering display of the target data are realized. S