Content template generation method, device, storage medium and electronic device
Through the demonstration template processing, the design attribute characteristics are extracted and amplified by the demonstration template, and a collection of single-page content templates that match the presentation theme templates is automatically generated, which solves the problem of time-consuming and labor-intensive design of templates in the existing technology, and achieves the consistency of template style and the efficiency and convenience of presentation production.
Patent Information
- Application Number
- CN202411618736.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-11-13
AI Technical Summary
In the prior art When making presentations, designers need to manually design multiple single-page content templates to match the presentation theme templates, resulting in wasted time and energy, and it is difficult to ensure consistency in the template style.
Through the demonstration template processing, the design attribute characteristics of the demonstration theme template and single-page content template sample are extracted, and the collection of single-page content templates that match the demonstration theme template is automatically amplified to ensure the consistency of the template style.
It greatly saves designers' time and energy, ensures the style consistency between the single-page template and the overall presentation theme, and improves the efficiency and convenience of presentation production.
Smart Images

Figure CN119150834B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a content template generation method, device, storage medium and electronic device. Background Art
[0002] As a presentation file, PowerPoint (PPT for short) is widely used in many scenarios, such as education and training, project reports, business meetings, sales and marketing. PPT can help speakers present complex information in a structured way, making it easier for the audience to understand and remember key points. For example, in education and training scenarios, teachers can use PPT to break down teaching content into clear chapters and key points to improve the systematicness and logic of classroom teaching. In sales scenarios, sales staff can use PPT to show potential customers product features, market advantages and case studies to help customers better understand the value of the product. Therefore, PPT is a useful tool in daily work and life. With the help of PPT, complex information and data can be simplified into content that is easy to understand and absorb in a visual way. When users create presentation files, they often make presentations based on presentation templates and select the corresponding presentation template before making presentations. Summary of the invention
[0003] The embodiments of this specification provide a content template generation method, device, storage medium and electronic device, and the technical solution is as follows:
[0004] In a first aspect, an embodiment of the present specification provides a method for generating a content template, the method comprising:
[0005] Determine the presentation theme template selected by the client, and obtain a single-page content template sample selected by the client for the presentation theme template;
[0006] Based on the demonstration theme template and the single-page content template sample, a demonstration template processing large model is used to extract the theme single-page attribute characteristics, and based on the theme single-page attribute characteristics, the demonstration theme template is subjected to single-page content template amplification processing to obtain a single-page content template set corresponding to the demonstration theme template;
[0007] The single-page content template set is displayed to the client.
[0008] In a feasible implementation, the subject single page attribute characteristics are extracted by using a large presentation template processing model based on the presentation theme template and the single page content template sample, and the presentation theme template is amplified based on the subject single page attribute characteristics to obtain a single page content template set corresponding to the presentation theme template, including:
[0009] Input the presentation theme template and the single-page content template sample into the presentation template processing macro model;
[0010] Acquire the attribute feature label of the single-page content template sample through the presentation template processing macro model, and determine the theme meta information of the presentation theme template and the single-page sample meta information of the single-page content template sample;
[0011] Determine the theme single page attribute characteristics based on the theme meta information, the single page sample meta information and the attribute characteristic tag, and determine the demonstration theme design information based on the theme single page attribute characteristics;
[0012] A single-page content template amplification process is performed based on the demonstration theme design information to obtain a single-page content template set corresponding to the demonstration theme template.
[0013] In a feasible implementation manner, determining the theme single page attribute characteristics based on the theme meta information, the single page sample meta information and the attribute characteristic tag, and determining the demonstration theme design information based on the theme single page attribute characteristics includes:
[0014] Performing design element mapping processing on the theme meta information and the single page sample meta information to obtain theme single page design element information, performing page style mapping processing on the theme meta information and the single page sample meta information to obtain theme single page style information, and performing layout rule mapping processing on the theme meta information and the single page sample meta information to obtain theme single page layout rule information;
[0015] Generate the theme single page attribute characteristics based on the theme single page design element information, the theme single page style information, the theme single page layout rule information and the attribute characteristic tag;
[0016] Based on the attribute characteristics of the theme single page, a design language description is performed to obtain initial subject design information, and the design information of the initial subject design information is expanded to obtain demonstration theme design information.
[0017] In a feasible implementation manner, the single-page content template amplification process is performed based on the demonstration theme design information to obtain a single-page content template set corresponding to the demonstration theme template, including:
[0018] Performing single-page content template amplification processing based on the demonstration theme design information to obtain multiple single-page content templates;
[0019] A single-page configuration tag is configured for the single-page content template, and the single-page content template is added to the single-page content template set corresponding to the presentation theme template.
[0020] In a feasible implementation manner, the method further includes:
[0021] Receiving the single-page content prompt word input by the client, searching a single-page content template library for a candidate single-page content template whose single-page configuration tag matches the single-page content prompt word, wherein the single-page content template library includes at least one single-page content template set;
[0022] The candidate single-page content template is displayed to the client.
[0023] In a feasible implementation manner, after searching the single-page content template library for a candidate single-page content template whose single-page configuration tag matches the single-page content prompt word, the method further includes:
[0024] Based on the candidate single-page content template, a presentation template processing macro model is used to perform single-page content template amplification processing to obtain an extended single-page content template, and the extended single-page content template is displayed to the client.
[0025] In a feasible implementation manner, the single-page content template amplification process is performed based on the demonstration theme design information to obtain a single-page content template set corresponding to the demonstration theme template, including:
[0026] Retrieving the historical presentation template design data corresponding to the client through the presentation template processing large model;
[0027] Determining customer presentation design preference information based on the historical presentation template design data;
[0028] A single-page content template amplification process is performed based on the customer presentation design preference information and the presentation theme design information to obtain a single-page content template set corresponding to the presentation theme template.
[0029] In a feasible implementation manner, the method further includes:
[0030] Acquire a basic large language model, and create an initial presentation template processing large model for a presentation material processing scenario based on the basic large language model;
[0031] Obtain a sample demonstration theme template and a sample single-page content template example corresponding to the sample client, and mark the sample client with a single-page content template tag;
[0032] Using the sample presentation theme template and the sample single-page content template examples to perform at least one round of model training on the initial presentation template processing large model to obtain a predicted single-page content template;
[0033] The comprehensive model loss is determined based on the predicted single-page content template and the single-page content template label, and the model parameters of the initial presentation template processing large model are adjusted based on the comprehensive model loss until the model training conditions are met to obtain the presentation template processing large model.
[0034] In a second aspect, an embodiment of the present specification provides a content template generating device, the device comprising:
[0035] A data acquisition module, used to determine the presentation theme template selected by the client, and to acquire a single-page content template sample selected by the client for the presentation theme template;
[0036] A template extension module is used to extract the theme single page attribute characteristics by using a demonstration template processing large model based on the demonstration theme template and the single page content template sample, and to perform single page content template amplification processing on the demonstration theme template based on the theme single page attribute characteristics to obtain a single page content template set corresponding to the demonstration theme template;
[0037] A template display module is used to display the single-page content template set to the client.
[0038] In a feasible implementation manner, the template extension module is used to:
[0039] Input the presentation theme template and the single-page content template sample into the presentation template processing macro model;
[0040] Acquire the attribute feature label of the single-page content template sample through the presentation template processing macro model, and determine the theme meta information of the presentation theme template and the single-page sample meta information of the single-page content template sample;
[0041] Determine the theme single page attribute characteristics based on the theme meta information, the single page sample meta information and the attribute characteristic tag, and determine the demonstration theme design information based on the theme single page attribute characteristics;
[0042] A single-page content template amplification process is performed based on the demonstration theme design information to obtain a single-page content template set corresponding to the demonstration theme template.
[0043] In a feasible implementation manner, the template extension module is used to:
[0044] Performing design element mapping processing on the theme meta information and the single page sample meta information to obtain theme single page design element information, performing page style mapping processing on the theme meta information and the single page sample meta information to obtain theme single page style information, and performing layout rule mapping processing on the theme meta information and the single page sample meta information to obtain theme single page layout rule information;
[0045] Generate the theme single page attribute characteristics based on the theme single page design element information, the theme single page style information, the theme single page layout rule information and the attribute characteristic tag;
[0046] Based on the attribute characteristics of the theme single page, a design language description is performed to obtain initial subject design information, and the design information of the initial subject design information is expanded to obtain demonstration theme design information.
[0047] In a feasible implementation manner, the template extension module is used to:
[0048] Performing single-page content template amplification processing based on the demonstration theme design information to obtain multiple single-page content templates;
[0049] A single-page configuration tag is configured for the single-page content template, and the single-page content template is added to the single-page content template set corresponding to the presentation theme template.
[0050] In a feasible implementation manner, the device is used to:
[0051] Receiving the single-page content prompt word input by the client, searching a single-page content template library for a candidate single-page content template whose single-page configuration tag matches the single-page content prompt word, wherein the single-page content template library includes at least one single-page content template set;
[0052] The candidate single-page content template is displayed to the client.
[0053] In a feasible implementation manner, the device is used to:
[0054] Based on the candidate single-page content template, a presentation template processing macro model is used to perform single-page content template amplification processing to obtain an extended single-page content template, and the extended single-page content template is displayed to the client.
[0055] In a feasible implementation manner, the template extension module is used to:
[0056] Retrieving the historical presentation template design data corresponding to the client through the presentation template processing large model;
[0057] Determining customer presentation design preference information based on the historical presentation template design data;
[0058] A single-page content template amplification process is performed based on the customer presentation design preference information and the presentation theme design information to obtain a single-page content template set corresponding to the presentation theme template.
[0059] In a feasible implementation manner, the device is used to:
[0060] Acquire a basic large language model, and create an initial presentation template processing large model for a presentation material processing scenario based on the basic large language model;
[0061] Obtain a sample demonstration theme template and a sample single-page content template example corresponding to the sample client, and mark the sample client with a single-page content template tag;
[0062] Using the sample presentation theme template and the sample single-page content template examples to perform at least one round of model training on the initial presentation template processing large model to obtain a predicted single-page content template;
[0063] The comprehensive model loss is determined based on the predicted single-page content template and the single-page content template label, and the model parameters of the initial presentation template processing large model are adjusted based on the comprehensive model loss until the model training conditions are met to obtain the presentation template processing large model.
[0064] In a third aspect, an embodiment of the present specification provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.
[0065] In a fourth aspect, an embodiment of the present specification provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.
[0066] The beneficial effects brought by the technical solutions provided by some embodiments of this specification include at least:
[0067] In one or more embodiments of the present specification, the service platform determines the presentation theme template selected by the client, obtains the single-page content template sample selected by the client for the presentation theme template, extracts the theme single-page attribute characteristics using the presentation template processing big model based on the presentation theme template and the single-page content template sample, performs single-page content template amplification processing on the presentation theme template based on the theme single-page attribute characteristics, and obtains a single-page content template set corresponding to the presentation theme template; through the ability of the presentation template processing big model, the single-page content template set that matches the presentation theme template is automatically expanded, helping the designer of the presentation template to save a lot of time and energy; by extracting and extending the design style, the big model ensures the consistency of the single-page template with the overall presentation theme, making the entire presentation production process more efficient and convenient. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0069] Figure 1 It is a scenario diagram of a content template generation system provided by an embodiment of this specification;
[0070] Figure 2 It is a flowchart of a method for generating a content template provided in an embodiment of this specification;
[0071] Figure 3 It is a flowchart of a method for generating a single-page content template set provided in an embodiment of this specification;
[0072] Figure 4 It is a flowchart of determining the attribute characteristics of a theme single page and the design information of a demonstration theme provided in an embodiment of this specification;
[0073] Figure 5 This is a flow chart of a single-page content template display provided in an embodiment of this specification;
[0074] Figure 6 This is a schematic diagram of a process of expanding a single-page content template provided in an embodiment of this specification;
[0075] Figure 7 It is a model training schematic diagram of a large model for processing a demonstration template provided in an embodiment of this specification;
[0076] Figure 8 It is a structural diagram of a content template generating device provided in an embodiment of this specification;
[0077] Fig. 9 It is a structural schematic diagram of an electronic device provided in an embodiment of this specification;
[0078] Fig.10 It is a schematic diagram of the structure of the operating system and user space provided in the embodiments of this specification;
[0079] Fig.11 yes Fig.10 The architecture diagram of the Android operating system;
[0080] Fig.12 yes Fig.10 Architecture diagram of the IOS operating system. DETAILED DESCRIPTION
[0081] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0082] In the description of this specification, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of this specification, it should be noted that, unless otherwise clearly specified and limited, "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in this specification can be understood by specific circumstances. In addition, in the description of this specification, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are an "or" relationship.
[0083] In the related art, presentation production relies on pre-involved presentation templates. Designers usually first determine a presentation theme template, and then produce a large number of single-page content templates based on the presentation theme template. That is, the industry often uses a single presentation theme template to design multiple single-page content templates that are adapted to the current presentation theme template design style to ensure a unified design style. Then the designer uniformly produces a large number of unit content templates for the presentation theme template, which undoubtedly consumes a lot of time and resources, and the single-page content template production method is even more inconvenient.
[0084] The present specification is described in detail below with reference to specific embodiments.
[0085] See also Figure 1 , is a schematic diagram of a scenario of a content template generation system provided in an embodiment of the present application. Figure 1 As shown, the content template generation system may include at least a client cluster and a service platform 100 .
[0086] In some embodiments, a client cluster may include at least one client, such as Figure 1As shown, it specifically includes client 1 corresponding to user 1, client 2 corresponding to user 2, ..., client n corresponding to user n, where n is an integer greater than 0.
[0087] Each client in the client cluster may be an electronic device with communication function, including but not limited to: wearable device, handheld device, personal computer, tablet computer, vehicle-mounted device, smart phone, computing device or other processing device connected to a wireless modem, etc. Electronic devices may be called different names in different networks, such as: user equipment, access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, cellular phone, cordless phone, personal digital assistant (PDA), electronic device in 5G network or future evolution network, etc.
[0088] In some embodiments, the service platform 100 can be a separate server device, such as a rack-mounted, blade, tower, or cabinet-mounted server device, or a hardware device with strong computing power such as a workstation or a mainframe computer; it can also be a server cluster composed of multiple servers, and the servers in the service cluster can be composed in a symmetrical manner, wherein each server has equivalent functions and status in the transaction link, and each server can provide services to the outside independently, and the independent service can be understood as not requiring the assistance of other servers.
[0089] In one or more embodiments of the present specification, the service platform 100 may establish a communication connection with at least one client in the client cluster, and complete data interaction during content template generation based on the communication connection.
[0090] For example, a user may send a presentation file automatic generation instruction to the service platform 100 through a client; the service platform 100 may receive the presentation file automatic generation instruction input by the user, obtain reference materials corresponding to the presentation file automatic generation instruction, call the presentation file generation model based on the reference materials to perform outline content generation processing to obtain the presentation file outline content, perform template matching processing based on the presentation file outline content to obtain a theme style template and a single-page content template, and generate a target presentation file in the presentation file production software based on the presentation file outline content, the theme style template and the single-page content template; further, the service platform 100 may output the target presentation file to the user, for example, the server 100 sends the target presentation file to the client, so that the client can output the target presentation file to the user.
[0091] For another example, the device used by the designer can be regarded as a client, and the client sends the presentation theme template selected by the client to the service platform 100, and the service platform 100 obtains the single-page content template sample selected by the client for the presentation theme template;
[0092] For another example, the service platform 100 uses a presentation template processing model to extract the theme single-page attribute characteristics based on the presentation theme template and the single-page content template sample, performs single-page content template amplification processing on the presentation theme template based on the theme single-page attribute characteristics, and obtains a single-page content template set corresponding to the presentation theme template; the service platform 100 displays the single-page content template set to the client.
[0093] It should be noted that the service platform 100 and at least one client in the client cluster establish a communication connection through a network for interactive communication, wherein the network may be a wireless network or a wired network, wherein the wireless network includes but is not limited to a cellular network, a wireless local area network, an infrared network or a Bluetooth network, and the wired network includes but is not limited to an Ethernet, a universal serial bus (USB) or a controller local area network. In one or more embodiments of the specification, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data (such as a target compressed package) exchanged through a network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec), etc. may be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies may also be used to replace or supplement the above data communication technologies.
[0094] The content template generation system embodiment provided in this specification and the content template generation method described in one or more embodiments belong to the same concept. The execution subject corresponding to the content template generation method involved in one or more embodiments of the specification can be an electronic device, the electronic device can be the above-mentioned service platform, and the electronic device can also be the above-mentioned client, which is determined based on the actual application environment. The specific implementation process of the demonstration file generation system embodiment can be found in the following method embodiment, which will not be repeated here.
[0095] In one embodiment, Figure 2 As shown, a content template generation method is proposed, which can be implemented by a computer program and can be run on a content template generation device based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application. The content template generation device can be used as a service platform.
[0096] Specifically, the content template generation method includes:
[0097] S102: Determine the presentation theme template selected by the client, and obtain a single-page content template sample selected by the client for the presentation theme template;
[0098] Client: This refers to the designer of the presentation template. The client first needs to select a presentation theme template in the entire presentation template design process, which is the core style and design basis of the entire presentation.
[0099] Presentation theme template: The main design style determined by the client for the entire presentation, including colors, fonts, layout, etc., represents the overall style of the entire presentation. The presentation theme template usually only includes a small number of presentation pages. Such as the cover, directory, end page, etc. The client as a designer usually needs to design a rich single-page content template for this presentation theme template, so that after the presentation template goes online, the user end determines the presentation template. The presentation template includes the presentation theme template, and the user can select the appropriate target single-page content template from the rich and diverse single-page content templates.
[0100] The user terminal refers to a person who needs to make a presentation file based on a presentation template. In the embodiment of the present application, the presentation file refers to a slide (PowerPoint, PPT for short) file, also known as a presentation, and the suffix of the presentation file may be ppt or pptx.
[0101] Single-page content template samples: refers to one or more single-page content template samples selected by the designer using the client for the presentation theme template. These samples represent the specific single-page design style or layout that the designer wants to use in the presentation. In this specification, the single-page content template samples are provided and then expanded using the presentation template processing macro model to obtain a large number of single-page content templates for the presentation theme template;
[0102] Specifically, the client first determines an overall presentation theme template, and then selects some single-page content template samples that match the presentation theme template as a basis for subsequent further expansion.
[0103] S104: extracting the theme single page attribute characteristics by using the demonstration template processing macro model based on the demonstration theme template and the single page content template sample, and performing single page content template amplification processing on the demonstration theme template based on the theme single page attribute characteristics to obtain a single page content template set corresponding to the demonstration theme template;
[0104] The large model for processing presentation templates can be obtained after model training for presentation template processing scenarios based on the basic large model. The basic large model (Large Language Model, LLM for short) is an artificial intelligence content generation model designed to understand and generate human language. LLM is trained on a large amount of data and can perform a wide range of tasks, including text summarization, translation, sentiment analysis, and so on. Optionally, the basic large model can adopt the Tongyi Qianwen large model, the Bailing large model, the GPT system large model, and so on. The trained large model for processing presentation templates can automatically analyze and extract the design attributes and features in the presentation theme templates and single-page content template samples, including color, font, layout, chart style, and so on.
[0105] In some embodiments, the presentation theme template may also be referred to as a theme style template, which refers to a template used to characterize the color, font, background and layout of the entire presentation file. The theme style template can ensure the visual and stylistic consistency of the entire presentation file.
[0106] A single-page content template refers to a single-page template used to represent the color, font, background, and layout of a single page in a presentation file. A single-page content template can ensure the visual and style consistency of the content on each single page.
[0107] Theme single page attribute features: refers to the design features, style features, single page layout rules and other features extracted from the presentation theme template and single page content template samples. Theme single page attribute features reflect the visual elements and layout style that the entire presentation should have.
[0108] Single-page content template expansion processing: refers to using the extracted single-page attribute characteristics of the theme to automatically generate more single-page content templates that meet these characteristics. Providing a single-page content template expansion processing process ensures that the newly generated single-page template remains consistent with the original theme and provides a variety of single-page design options.
[0109] Specifically, the large model for processing presentation templates is used to analyze the presentation theme templates and the selected single-page content template samples, and the theme single-page attribute characteristics such as design style are automatically extracted. Then, a new set of single-page content templates is generated based on these theme single-page attribute characteristics. The single-page content templates and single-page content template samples constitute a single-page content template set. These generated single-page content templates are consistent in style with the theme templates, enriching the single-page template set that designers can choose.
[0110] S106: Displaying the single-page content template set to the client.
[0111] In a schematic way, the automatically generated single-page content template set is displayed to the client (designer), so that the client can select the most suitable single-page content template to design and produce the presentation template. This process greatly improves the design efficiency and ensures that the single-page template is consistent with the overall theme style.
[0112] In one or more embodiments of the present specification, the service platform determines the presentation theme template selected by the client, obtains the single-page content template sample selected by the client for the presentation theme template, extracts the theme single-page attribute characteristics using the presentation template processing big model based on the presentation theme template and the single-page content template sample, performs single-page content template amplification processing on the presentation theme template based on the theme single-page attribute characteristics, and obtains a single-page content template set corresponding to the presentation theme template; through the ability of the presentation template processing big model, the single-page content template set that matches the presentation theme template is automatically expanded, helping the designer of the presentation template to save a lot of time and energy; by extracting and extending the design style, the big model ensures the consistency of the single-page template with the overall presentation theme, making the entire presentation production process more efficient and convenient.
[0113] See also Figure 3 , Figure 3 It is a flow chart of a method for generating a single-page content template set proposed in this specification. Specifically, the method of extracting the theme single-page attribute characteristics by using the demonstration template processing large model based on the demonstration theme template and the single-page content template sample, performing single-page content template amplification processing on the demonstration theme template based on the theme single-page attribute characteristics, and obtaining the single-page content template set corresponding to the demonstration theme template can be referred to as follows:
[0114] S202: inputting the presentation theme template and the single-page content template sample into a presentation template processing macro model;
[0115] The presentation theme templates and the single-page content template samples selected by the client will be input into a presentation template processing big model, so that the big model can analyze and understand these input templates to extract their design characteristics and styles.
[0116] Exemplarily, the demonstration content template amplification prompt words are pre-set, and the demonstration theme template, the single-page content template sample and the demonstration content template amplification prompt words are input into the demonstration template processing big model. The demonstration content template amplification prompt words can instruct the demonstration template processing big model to extract the theme single-page attribute characteristics from the demonstration theme template and the single-page content template sample, perform single-page content template amplification processing on the demonstration theme template based on the theme single-page attribute characteristics, and obtain the single-page content template set corresponding to the demonstration theme template.
[0117] S204: Acquire the attribute feature label of the single-page content template sample through the presentation template processing macro model, and determine the theme meta information of the presentation theme template and the single-page sample meta information of the single-page content template sample;
[0118] Attribute feature label: Attribute feature label can be a label that the client has marked on the single-page content template sample in advance, representing the client's additional marking of the design attributes of the single-page content template sample, such as color, font, layout, chart style, etc. Through these attribute feature labels, the presentation template processing large model can be assisted to summarize the design features of the single-page content template sample.
[0119] Theme meta information: refers to the description information of the demonstration theme template, which can usually be understood as the core design information of the demonstration theme template, including the overall style, color scheme, font style, typesetting rules, etc. of the theme.
[0120] Single-page sample meta information: refers to the description information of the single-page content template sample, which can usually be understood as the detailed design information of the single-page content template sample, describing the specific style, layout, element arrangement and other aspects of the single-page sample.
[0121] Exemplarily, the presentation template processing model automatically extracts the attribute feature tags of the single-page content template sample, and determines the theme meta information of the presentation theme template and the single-page sample meta information of the single-page content template sample, to provide a basis for subsequent amplification processing.
[0122] S206: Determine the theme single page attribute characteristics based on the theme meta information, the single page sample meta information and the attribute characteristic tag, and determine the demonstration theme design information based on the theme single page attribute characteristics;
[0123] Theme single page attribute characteristics: By integrating theme meta information, single page sample meta information, and attribute characteristic tags, the demonstration template processing large model parses and determines the theme single page attribute characteristics, which represents the comprehensive expression of the design style of the demonstration theme and the single page sample.
[0124] Presentation theme design information: The final design information obtained after summarizing and analyzing the attribute characteristics of the theme single page defines the design style of the entire presentation, including the layout, color, font, chart style, etc. that each single-page content template should follow.
[0125] Exemplarily, the large model for processing presentation templates will combine theme meta information, single page sample meta information and attribute feature tags to form complete theme single page attribute features, and based on these features, determine the design information of the entire presentation theme to obtain presentation theme design information. The presentation theme design information can be used as a complete design guide to guide subsequent single page content template expansion.
[0126] Optional, please refer to Figure 4 , Figure 4 The present invention is a flowchart of determining the attribute characteristics of a theme single page and the design information of a demonstration theme. Specifically, the following method can be used to determine the attribute characteristics of a theme single page based on the theme meta information, the single page sample meta information and the attribute characteristic tag, and determine the design information of the demonstration theme based on the attribute characteristics of the theme single page:
[0127] S3002: performing design element mapping processing on the theme meta information and the single page sample meta information to obtain theme single page design element information, performing page style mapping processing on the theme meta information and the single page sample meta information to obtain theme single page style information, performing layout rule mapping processing on the theme meta information and the single page sample meta information to obtain theme single page layout rule information;
[0128] Design element mapping: It is to map and analyze various design elements (such as color, font, graphics, pictures, etc.) in the theme meta information and the single page sample meta information, extract the common design elements, and obtain the theme single page design element information. Design element mapping reflects the basic visual elements that need to be used in single page design.
[0129] Page style mapping: Mapping the page style (such as typesetting, font size, color matching, etc.) in the theme meta information and the single page sample meta information to generate the theme single page style information. This information represents the overall visual style of the page, including how to arrange and present the content.
[0130] Layout rule mapping: Map the layout rules (such as the location, size, and arrangement of content modules) in the theme meta information and the single page sample meta information to extract the theme single page layout rule information. The theme single page layout rule information defines how the content of the single page template is arranged on the page.
[0131] For example, the large model for processing the presentation template maps the theme meta information and the single page sample meta information, extracts and integrates the information of design elements, page style and layout rules. This information constitutes the core elements of single page design, namely the theme single page layout rule information, and provides a basis for determining the theme single page attribute characteristics of the subsequent large model for processing the presentation template.
[0132] S3004: Generate the theme single page attribute characteristics based on the theme single page design element information, the theme single page style information, the theme single page layout rule information and the attribute characteristic tag;
[0133] The large model for processing the presentation template combines the theme single page design element information, style information, and layout rule information obtained in the previous step with the attribute feature tags extracted previously to generate complete theme single page attribute features. The theme single page attribute features contain all the elements and styles required for page design, and are summary information that fully describes the single page design features.
[0134] S3006: Based on the attribute characteristics of the theme single page, a design language description is performed to obtain initial subject design information, and the design information of the initial subject design information is expanded to obtain demonstration theme design information.
[0135] Based on the theme single page attribute characteristics, the design language description can be understood as converting the generated theme single page attribute characteristics into a design language description to form the initial main design information. Design language description is a process of converting design elements, styles and layout rules into understandable design instructions or descriptive language, so that the subsequent demonstration template processing large model can fully understand the design concept and expand the single page content template;
[0136] The design information expansion of the initial main body design information is to expand the initial main body design information, supplement and improve the design details, and finally obtain the demonstration theme design information. The demonstration theme design information is the complete design information that is ultimately used to guide the expansion of the entire single-page content template, including all necessary design elements, styles and layouts.
[0137] Exemplarily, the large model for processing the presentation template first converts the single page attribute characteristics of the theme into a design language description to obtain the initial main design information, and then expands it to form the final presentation theme design information. This information will be used to generate a single page content template that matches the presentation theme template.
[0138] In one or more embodiments of the present specification, by mapping the design elements, page styles and layout rules of the theme meta information and the single page sample meta information, the theme single page attribute characteristics are generated, and the complete presentation theme design information is formed through design language description and expansion. This process ensures that the generated single page content template not only conforms to the design style of the original theme template, but also has rich design elements to meet the diverse needs of presentations.
[0139] S208: Perform single-page content template amplification processing based on the demonstration theme design information to obtain a single-page content template set corresponding to the demonstration theme template.
[0140] Exemplarily, the presentation template processing model automatically generates multiple single-page content templates that conform to the presentation theme style based on the previously determined presentation theme design information, thereby forming a new single-page content template set. These single-page content templates maintain design style consistency with the original presentation theme template, ensuring that the generated content template can match the overall presentation theme.
[0141] In a feasible implementation, the following method may be referred to:
[0142] A2: The large model for processing the presentation template performs a single-page content template amplification process based on the presentation theme design information to obtain multiple single-page content templates;
[0143] The large model for processing presentation templates uses the previously generated presentation theme design information to automatically expand and generate multiple single-page content templates. This means that the system will create a variety of single-page content templates based on the design elements, styles, layouts and other features in the theme design information. These templates are consistent with the original presentation theme in terms of design style, meeting the needs of different content presentations.
[0144] A4: The presentation template processing model configures a single-page configuration tag for the single-page content template, and adds the single-page content template to the single-page content template set corresponding to the presentation theme template.
[0145] Single-page configuration tag: a tag used to describe and identify the properties of a single-page content template. The single-page configuration tag can include information such as the applicable demonstration theme template, applicable scenarios, layout style, design elements, etc. of the single-page content template, which is convenient for subsequent search and use. The single-page configuration tag also includes a universal theme mode, that is, any theme template can use the single-page content template, and only the theme color can be switched later;
[0146] Adding to the single-page content template collection can be understood as adding the single-page content template configured with the single-page configuration tag to the template collection corresponding to the presentation theme template, forming a complete single-page content template library for designers to use when making presentations.
[0147] For example, a corresponding tag will be configured for each amplified single-page content template, and then these templates will be classified into the single-page content template collection corresponding to the presentation theme template. This process ensures that the generated templates can be effectively classified, managed and used, so that designers can quickly select the appropriate single-page content template according to their needs when making presentations.
[0148] In this specification, the large model for processing presentation templates generates multiple single-page content templates by expanding the presentation theme design information, and configuring tags for these templates, and finally classifying them into the template set corresponding to the presentation theme template. This process ensures that the generated single-page templates have consistent styles and rich content, and the configuration tags facilitate subsequent management and use, thereby improving the efficiency and convenience of presentation production.
[0149] Further, the single page content template configuration single page configuration tag, the demonstration template processing large model can assist the client to perform self-service screening query and directional single page content template expansion of the single page content template, please refer to Figure 5 , Figure 5 It is a flow chart displayed by a single-page content template. Specifically:
[0150] S4002: receiving a single-page content prompt word input by the client;
[0151] Exemplarily, the service platform receives a single-page content prompt from the client (designer). The prompt is input by the designer and is intended to describe or guide the content, style, layout, etc. of the single-page template. The prompt may include keywords, descriptive language, specific design requirements, etc., as a basis for subsequent search of single-page content templates.
[0152] S4004: Querying a candidate single-page content template whose single-page configuration tag matches the single-page content prompt word from a single-page content template library, wherein the single-page content template library includes at least one single-page content template set;
[0153] Single page configuration tag: This is a tag pre-configured for each single page content template, which contains information about the template's design features, application scenarios, style, content type, etc.
[0154] The single-page content template library refers to a database storing all single-page content templates, including at least one template set, which is composed of single-page content templates. Each set corresponds to a specific presentation theme template, and the single-page content template in the set can be applied to any presentation theme template.
[0155] In an illustrative manner, according to the provided single-page content prompt word, the single-page content template library is queried to find a candidate single-page content template that matches the prompt word. The matching process is based on calculating the text relevance between the single-page configuration tag and the single-page content prompt word to obtain the text relevance, and selecting the candidate unit content template whose text relevance is greater than the relevance threshold to ensure that the selected template meets the designer's needs.
[0156] S4006: Displaying the candidate single-page content template to the client.
[0157] For example, the searched candidate single-page content templates are displayed to the designer (client). The designer can browse these candidate templates and select the single-page content template that best meets his or her requirements to further improve the design of the presentation.
[0158] S4008: Based on the candidate single-page content template, a presentation template processing macro model is used to perform single-page content template amplification processing to obtain an extended single-page content template, and the extended single-page content template is displayed to the client.
[0159] The presentation template processing model will amplify the selected candidate single-page content template to obtain an extended single-page content template, that is, generate more similar but variant single-page content templates based on the original design style.
[0160] Extended single-page content template: refers to a new single-page content template generated after processing the large model. The extended single-page content template will maintain the same design style as the original candidate template, but provide more diverse design options.
[0161] For example, the candidate single-page content templates are expanded using the presentation template processing model to generate more extended single-page content templates that meet the prompt word requirements, and then these extended templates are displayed to the designer. This provides designers with more template choices, ensuring that each single-page content template can meet the specific needs and style of the presentation.
[0162] There is no particular order in which S4008 and S4006 are executed, and for example, they may be executed simultaneously.
[0163] In one or more embodiments of the present specification, by receiving the input single-page content prompt word, using the configuration tag to find the matching candidate single-page content template, and further amplifying the candidate template through the large model, an extended single-page content template is generated. This greatly enriches the designer's choices, makes the production of single-page content templates more efficient and diversified, and ensures that each template meets the required design style and content requirements.
[0164] In one or more embodiments of the present specification, the entire process utilizes the capabilities of the large model to analyze and extract the design features of the presentation theme template and the single-page content template sample, and automatically expands to generate a single-page content template set consistent with the presentation theme style. This solution effectively improves the efficiency of presentation production, ensures the uniformity of the design style, and provides a rich selection of single-page content templates, simplifying the designer's work.
[0165] Optional, please refer to Figure 6 , Figure 6It is a flow chart of amplifying a single-page content template. The single-page content template amplification process based on the demonstration theme design information is executed through a large model of a demonstration template processing to obtain a set of single-page content templates corresponding to the demonstration theme template. The following method can also be used for details:
[0166] S5002: Retrieving the historical presentation template design data corresponding to the client through the presentation template processing large model;
[0167] Historical presentation template design data can be understood as design information related to all presentation templates used by the client's corresponding designer in the past, covering the styles and design elements in different presentation template projects.
[0168] In an illustrative manner, the presentation template processing model is used to retrieve the historical presentation template design data associated with the client (current designer) from the database. The historical presentation template design data includes various design template information used by the designer in the presentations he / she has made in the past, such as the style of the theme template, the layout of the single-page content template, color matching, font selection, image style, etc. In order to understand the designer's habits and preferences in historical design, the presentation template processing model can generate a single-page content template that conforms to the designer's style in the subsequent steps.
[0169] S5004: Determine customer presentation design preference information based on the historical presentation template design data;
[0170] Presentation design preference information: it is a summary and refinement of the style, layout, element usage, etc. shown by the designer in historical designs by the presentation template processing model, which is used to assist in the generation of subsequent single-page content templates.
[0171] The presentation template processing model analyzes the historical presentation template design data retrieved previously to identify and extract the presentation design preference information of the designer (client). It will deeply explore the design habits and style preferences shown by the designer in past presentations, such as:
[0172] Color preference: The color combinations or tones that designers generally like to use.
[0173] Font style: font type, size, weight, etc. commonly used by designers.
[0174] Layout method: the layout method of single-page content, such as the relative position of common titles and content, the combination of pictures and text, etc.
[0175] Design elements: graphics, icons, chart styles, background designs, etc. that designers often use.
[0176] For example, by analyzing these historical design data, the large model for processing presentation templates can generate a comprehensive set of design preference information, which accurately reflects the personal style and habits of the designer when making presentations. The preference information will serve as an important reference for expanding and generating single-page content templates in subsequent steps, ensuring that the generated templates are consistent with the presentation theme and fit the designer's unique style.
[0177] S5006: Perform single-page content template amplification processing based on the customer presentation design preference information and the presentation theme design information to obtain a single-page content template set corresponding to the presentation theme template.
[0178] The presentation template processing model will combine the designer's (client's) presentation design preference information and the current presentation theme design information to perform augmentation processing on the single-page content template. First, combine preferences and themes: The system first merges the designer's historical preference information (such as commonly used colors, fonts, layouts, graphic elements, etc.) with the current presentation theme design information (the overall style, color scheme, typesetting rules, etc. of the presentation) to ensure that the generated single-page content template is consistent with the designer's personalized style and consistent with the selected theme template. Then perform augmentation processing: The presentation template processing model will use these two aspects of information to automatically generate a series of diverse single-page content templates. These templates meet the designer's preferences in terms of design style, typesetting method, content layout, etc., and are consistent with the style of the presentation theme template. Finally, a template set is obtained: Finally, the system will generate a complete set of single-page content templates, which can be selected and used by designers when making presentations.
[0179] In one or more embodiments of the present specification, by referring to the designer's historical presentation template design data, design preference information is extracted, and then combined with the presentation theme design information, the presentation template processing macro model is used to perform single-page content template amplification processing. This ensures that the generated single-page content template not only conforms to the current presentation theme, but also meets the designer's personalized design needs, thereby improving the pertinence and practicality of the template.
[0180] Optional, please refer to Figure 7 , Figure 7 This is a model training diagram of a demonstration template processing a large model, specifically:
[0181] S6002: Acquire a basic large language model, and create an initial presentation template processing large model for a presentation material processing scenario based on the basic large language model;
[0182] The initial presentation template processing large model can be obtained by training the model for the presentation file generation scenario based on the basic large model. The basic large model (Large Language Model, LLM for short) is an artificial intelligence content generation model designed to understand and generate human language. LLM is trained on a large amount of data and can perform a wide range of tasks, including text summarization, translation, sentiment analysis, etc. Optionally, the basic large model can adopt the Tongyi Qianwen large model, the Bailing large model, the GPT system large model, etc.
[0183] S6004: Obtain a sample demonstration theme template and a sample single-page content template example corresponding to the sample client, and mark the sample client with a single-page content template tag;
[0184] S6006: Using the sample presentation theme template and the sample single-page content template examples, perform at least one round of model training on the initial presentation template processing large model to obtain a predicted single-page content template;
[0185] In some embodiments, a trained basic large model can be obtained, and the basic large model can be adapted to the presentation template processing scenario to obtain an initial presentation template processing large model. Specifically, the basic large model can be obtained first, and an initial presentation template processing large model for the presentation template processing scenario can be created, and sample data "sample presentation theme template and sample single-page content template examples" in the presentation template processing scenario can be obtained. Since the basic large model is usually a trained AIGC model with content generation capabilities, it can be adapted to the presentation template processing scenario based on this. Specifically, the sample data in the presentation template processing scenario can be used to perform model fine-tuning training on the initial presentation template processing large model, and after the model fine-tuning training is completed, the presentation template processing large model in the adapted presentation template processing scenario can be obtained.
[0186] Specifically, during the model forward propagation training process, the initial demonstration template processing large model can be called based on the "sample demonstration theme template and sample single-page content template example" to extract the sample theme single-page attribute characteristics based on the sample demonstration theme template and the sample single-page content template example, and the single-page content template amplification processing can be performed on the demonstration theme template based on the sample theme single-page attribute characteristics to obtain one or more predicted single-page content templates corresponding to the sample demonstration theme template;
[0187] S6008: Determine a comprehensive model loss based on the predicted single-page content template and the single-page content template tag, and adjust model parameters of the initial presentation template processing large model based on the comprehensive model loss until the model training conditions are met to obtain the presentation template processing large model.
[0188] Specifically, a model loss value may be determined using a first model loss function based on the predicted single-page content template and the single-page content template label.
[0189] Optionally, the model loss value can be obtained using a model loss calculation function in related technologies. For example, the model loss calculation function includes but is not limited to any one of a hinge loss function, a contrast loss function, a Euclidean distance loss function, and a cross entropy loss function.
[0190] Optionally, the model training end condition may include that the value of the loss function is less than or equal to a preset loss function threshold, the number of iterations reaches a preset number threshold, etc. The model training end condition may be determined based on actual conditions and is not specifically limited here.
[0191] In one or more embodiments of the present specification, the above-mentioned method can be used to train a high-quality large model for processing presentation templates. Through the ability of the large model for processing presentation templates, the set of single-page content templates that match the presentation theme template can be automatically expanded, helping the designers of presentation templates to save a lot of time and energy. By extracting and extending the design style, the large model ensures the consistency of the single-page template with the overall presentation theme, making the entire presentation production process more efficient and convenient.
[0192] The following will be combined Figure 8 , the content template generation device provided in the embodiment of this specification is introduced in detail. It should be noted that, Figure 8 The content template generating device shown is used to execute the content template generating device of this specification. Figure 1 to Figure 7 For the convenience of explanation, only the part related to the embodiment of this specification is shown. For the specific technical details not disclosed, please refer to this specification. Figure 1 to Figure 7 The embodiment shown.
[0193] See also Figure 8 , which shows a schematic diagram of the structure of the content template generation device of the embodiment of the present specification. The content template generation device 1 can be implemented as all or part of the device through software, hardware or a combination of both. According to some embodiments, the content template generation device 1 includes a data acquisition module 11, a template expansion module 12 and a template display module 13, which are specifically used to:
[0194] In a feasible implementation manner, the template expansion module 12 is used to:
[0195] Input the presentation theme template and the single-page content template sample into the presentation template processing macro model;
[0196] Acquire the attribute feature label of the single-page content template sample through the presentation template processing macro model, and determine the theme meta information of the presentation theme template and the single-page sample meta information of the single-page content template sample;
[0197] Determine the theme single page attribute characteristics based on the theme meta information, the single page sample meta information and the attribute characteristic tag, and determine the demonstration theme design information based on the theme single page attribute characteristics;
[0198] A single-page content template amplification process is performed based on the demonstration theme design information to obtain a single-page content template set corresponding to the demonstration theme template.
[0199] In a feasible implementation manner, the template expansion module 12 is used to:
[0200] Performing design element mapping processing on the theme meta information and the single page sample meta information to obtain theme single page design element information, performing page style mapping processing on the theme meta information and the single page sample meta information to obtain theme single page style information, and performing layout rule mapping processing on the theme meta information and the single page sample meta information to obtain theme single page layout rule information;
[0201] Generate the theme single page attribute characteristics based on the theme single page design element information, the theme single page style information, the theme single page layout rule information and the attribute characteristic tag;
[0202] Based on the attribute characteristics of the theme single page, a design language description is performed to obtain initial subject design information, and the design information of the initial subject design information is expanded to obtain demonstration theme design information.
[0203] In a feasible implementation manner, the template expansion module 12 is used to:
[0204] Performing single-page content template amplification processing based on the demonstration theme design information to obtain multiple single-page content templates;
[0205] A single-page configuration tag is configured for the single-page content template, and the single-page content template is added to the single-page content template set corresponding to the presentation theme template.
[0206] In a feasible implementation manner, the device 1 is used to:
[0207] Receiving the single-page content prompt word input by the client, searching a single-page content template library for a candidate single-page content template whose single-page configuration tag matches the single-page content prompt word, wherein the single-page content template library includes at least one single-page content template set;
[0208] The candidate single-page content template is displayed to the client.
[0209] In a feasible implementation manner, the device 1 is used to:
[0210] Based on the candidate single-page content template, a presentation template processing macro model is used to perform single-page content template amplification processing to obtain an extended single-page content template, and the extended single-page content template is displayed to the client.
[0211] In a feasible implementation manner, the template expansion module 12 is used to:
[0212] Retrieving the historical presentation template design data corresponding to the client through the presentation template processing large model;
[0213] Determining customer presentation design preference information based on the historical presentation template design data;
[0214] A single-page content template amplification process is performed based on the customer presentation design preference information and the presentation theme design information to obtain a single-page content template set corresponding to the presentation theme template.
[0215] In a feasible implementation manner, the device 1 is used to:
[0216] Acquire a basic large language model, and create an initial presentation template processing large model for a presentation material processing scenario based on the basic large language model;
[0217] Obtain a sample demonstration theme template and a sample single-page content template example corresponding to the sample client, and mark the sample client with a single-page content template tag;
[0218] Using the sample presentation theme template and the sample single-page content template examples to perform at least one round of model training on the initial presentation template processing large model to obtain a predicted single-page content template;
[0219] The comprehensive model loss is determined based on the predicted single-page content template and the single-page content template label, and the model parameters of the initial presentation template processing large model are adjusted based on the comprehensive model loss until the model training conditions are met to obtain the presentation template processing large model.
[0220] It should be noted that the content template generation device provided in the above embodiment only uses the division of the above functional modules as an example when executing the content template generation method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the content template generation device provided in the above embodiment and the content template generation method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0221] The serial numbers of the embodiments of this specification are for description only and do not represent the advantages or disadvantages of the embodiments.
[0222] In an embodiment of the present specification, the service platform determines the presentation theme template selected by the client, obtains the single-page content template sample selected by the client for the presentation theme template, extracts the theme single-page attribute characteristics using the presentation template processing big model based on the presentation theme template and the single-page content template sample, performs single-page content template amplification processing on the presentation theme template based on the theme single-page attribute characteristics, and obtains a single-page content template set corresponding to the presentation theme template; through the ability of the presentation template processing big model, the single-page content template set that matches the presentation theme template is automatically expanded, helping the designer of the presentation template to save a lot of time and energy; by extracting and extending the design style, the big model ensures the consistency of the single-page template with the overall presentation theme, making the entire presentation production process more efficient and convenient.
[0223] The present specification also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 1 to Figure 7 The content template generation method of the embodiment shown in the figure can be found in the specific execution process. Figure 1 to Figure 7 The specific description of the illustrated embodiment will not be repeated here.
[0224] The present specification also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor as described above. Figure 1 to Figure 7 The content template generation method of the embodiment shown in the figure can be found in the specific execution process. Figure 1 to Figure 7 The specific description of the illustrated embodiment will not be repeated here.
[0225] Please refer to Fig. 9 , which shows a block diagram of the structure of an electronic device provided by an exemplary embodiment of this specification. The electronic device in this specification may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 may be connected via the bus 150.
[0226] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
[0227] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable storage medium. The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The operating system may be an Android system, including a system deeply developed based on the Android system, an IOS system developed by Apple, including a system deeply developed based on the IOS system or other systems. The data storage area may also store data created by the electronic device during use, such as a phone book, audio and video data, chat record data, etc.
[0228] See also Fig.10As shown, the memory 120 can be divided into an operating system space and a user space. The operating system runs in the operating system space, and native and third-party applications run in the user space. In order to ensure that different third-party applications can achieve good operating results, the operating system allocates corresponding system resources to different third-party applications. However, different application scenarios in the same third-party application also have different requirements for system resources. For example, in the local resource loading scenario, the third-party application has higher requirements for disk reading speed; in the animation rendering scenario, the third-party application has higher requirements for GPU performance. The operating system and third-party applications are independent of each other, and the operating system often cannot perceive the current application scenario of the third-party application in a timely manner, resulting in the operating system being unable to perform targeted system resource adaptation according to the specific application scenario of the third-party application.
[0229] In order for the operating system to distinguish the specific application scenarios of third-party applications, it is necessary to open up data communication between third-party applications and the operating system so that the operating system can obtain the current scenario information of third-party applications at any time, and then perform targeted system resource adaptation based on the current scenario.
[0230] Taking the Android operating system as an example, the programs and data stored in the memory 120 are as follows: Fig.11As shown, the memory 120 may store a Linux kernel layer 320, a system runtime library layer 340, an application framework layer 360 and an application layer 380, wherein the Linux kernel layer 320, the system runtime library layer 340 and the application framework layer 360 belong to the operating system space, and the application layer 380 belongs to the user space. The Linux kernel layer 320 provides underlying drivers for various hardware of electronic devices, such as display drivers, audio drivers, camera drivers, Bluetooth drivers, Wi-Fi drivers, power management, etc. The system runtime library layer 340 provides major feature support for the Android system through some C / C++ libraries. For example, the SQLite library provides support for databases, the OpenGL / ES library provides support for 3D drawing, and the Webkit library provides support for browser kernels, etc. The system runtime library layer 340 also provides an Android runtime library (Android runtime), which mainly provides some core libraries, allowing developers to use Java language to write Android applications. The application framework layer 360 provides various APIs that may be used when building applications. Developers can also use these APIs to build their own applications, such as activity management, window management, view management, notification management, content provider, package management, call management, resource management, and location management. At least one application runs in the application layer 380. These applications can be native applications that come with the operating system, such as contact applications, text messaging applications, clock applications, camera applications, etc.; they can also be third-party applications developed by third-party developers, such as game applications, instant messaging applications, photo beautification applications, etc.
[0231] Taking the operating system as an IOS system as an example, the programs and data stored in the memory 120 are as follows: Fig.12As shown, the IOS system includes: a core operating system layer 420 (Core OS layer), a core service layer 440 (Core Services layer), a media layer 460 (Media layer), and a touchable layer 480 (Cocoa Touch Layer). The core operating system layer 420 includes the operating system kernel, drivers, and underlying program frameworks. These underlying program frameworks provide functions closer to the hardware for use by the program frameworks located in the core service layer 440. The core service layer 440 provides system services and / or program frameworks required by applications, such as the foundation framework, account framework, advertising framework, data storage framework, network connection framework, geographic location framework, motion framework, etc. The media layer 460 provides audio-visual interfaces for applications, such as graphics and image-related interfaces, audio technology-related interfaces, video technology-related interfaces, and wireless playback (AirPlay) interfaces for audio and video transmission technologies. The touchable layer 480 provides various commonly used interface-related frameworks for application development, and the touchable layer 480 is responsible for the user's touch interaction operations on electronic devices. For example, local notification service, remote push service, advertising framework, game tool framework, message user interface (UI) framework, user interface UIKit framework, map framework, etc.
[0232] exist Fig. 9 Among the frameworks shown, the frameworks related to most applications include but are not limited to: the basic framework in the core service layer 440 and the UIKit framework in the touchable layer 480. The basic framework provides many basic object classes and data types, provides the most basic system services for all applications, and has nothing to do with UI. The classes provided by the UIKit framework are basic UI class libraries for creating touch-based user interfaces. iOS applications can provide UIs based on the UIKit framework, so it provides the basic architecture of applications for building user interfaces, drawing, processing and user interaction events, responding to gestures, etc.
[0233] Among them, the method and principle of implementing data communication between third-party applications and the operating system in the IOS system can be referred to the Android system, and this manual will not go into details here.
[0234] Among them, the input device 130 is used to receive input instructions or data, and the input device 130 includes but is not limited to a keyboard, a mouse, a camera, a microphone or a touch device. The output device 140 is used to output instructions or data, and the output device 140 includes but is not limited to a display device and a speaker. In one example, the input device 130 and the output device 140 can be combined, and the input device 130 and the output device 140 are touch screen displays, which are used to receive touch operations on or near the user using any suitable object such as a finger or a touch pen, and to display the user interface of each application. The touch screen display is usually set on the front panel of the electronic device. The touch screen display can be designed as a full screen, a curved screen or a special-shaped screen. The touch screen display can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in the embodiments of this specification.
[0235] In addition, those skilled in the art will understand that the structure of the electronic device shown in the above drawings does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the electronic device also includes radio frequency circuits, input units, sensors, audio circuits, wireless fidelity (WiFi) modules, power supplies, Bluetooth modules and other components, which will not be described in detail here.
[0236] In the embodiments of this specification, the execution subject of each step may be the electronic device described above. Optionally, the execution subject of each step is the operating system of the electronic device. The operating system may be an Android system, an IOS system, or other operating systems, which is not limited in the embodiments of this specification.
[0237] The electronic device of the embodiment of this specification may also be equipped with a display device, which may be various devices capable of realizing display functions, such as cathode ray tube display (CR), light-emitting diode display (LED), electronic ink screen, liquid crystal display (LCD), plasma display panel (PDP), etc. The user may use the display device on the electronic device to view displayed text, images, videos and other information. The electronic device may be a smart phone, a tablet computer, a gaming device, an AR (Augmented Reality) device, a car, a data storage device, an audio playback device, a video playback device, a notebook, a desktop computing device, a wearable device such as an electronic watch, an electronic glasses, an electronic helmet, an electronic bracelet, an electronic necklace, electronic clothing and other devices.
[0238] exist Fig. 9 In the electronic device shown, the processor 110 can be used to call the application program stored in the memory 120 and specifically execute the method described in the embodiments of this specification.
[0239] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0240] The above disclosure is only the preferred embodiment of this specification, which certainly cannot be used to limit the scope of rights of this specification. Therefore, equivalent changes made according to the claims of this specification are still within the scope covered by this specification.
Claims
1. A method for generating a content template, characterized in that: The method comprises: Determine the presentation theme template selected by the client, and obtain a single-page content template sample selected by the client for the presentation theme template; Based on the demonstration theme template and the single-page content template sample, a demonstration template processing large model is used to extract the theme single-page attribute characteristics, and based on the theme single-page attribute characteristics, the demonstration theme template is subjected to single-page content template amplification processing to obtain a single-page content template set corresponding to the demonstration theme template, and the single-page content template amplification processing is used to generate a set of new single-page content templates in addition to the single-page content template sample by using the theme single-page attribute characteristics; Displaying the single-page content template set to the client; Wherein, the method of extracting the theme single page attribute characteristics by using the demonstration template processing large model based on the demonstration theme template and the single page content template sample, performing single page content template amplification processing on the demonstration theme template based on the theme single page attribute characteristics, and obtaining the single page content template set corresponding to the demonstration theme template, including: Input the presentation theme template and the single-page content template sample into the presentation template processing macro model; Acquire the attribute feature label of the single-page content template sample through the presentation template processing macro model, and determine the theme meta information of the presentation theme template and the single-page sample meta information of the single-page content template sample; Determine the theme single page attribute characteristics based on the theme meta information, the single page sample meta information and the attribute characteristic tag, and determine the demonstration theme design information based on the theme single page attribute characteristics; A single-page content template amplification process is performed based on the demonstration theme design information to obtain a single-page content template set corresponding to the demonstration theme template.
2. The method according to claim 1, characterized in that The determining of the theme single page attribute characteristics based on the theme meta information, the single page sample meta information and the attribute characteristic tag, and determining the demonstration theme design information based on the theme single page attribute characteristics, includes: Performing design element mapping processing on the theme meta information and the single page sample meta information to obtain theme single page design element information, performing page style mapping processing on the theme meta information and the single page sample meta information to obtain theme single page style information, and performing layout rule mapping processing on the theme meta information and the single page sample meta information to obtain theme single page layout rule information; Generate the theme single page attribute characteristics based on the theme single page design element information, the theme single page style information, the theme single page layout rule information and the attribute characteristic tag; Based on the attribute characteristics of the theme single page, a design language description is performed to obtain initial subject design information, and the design information of the initial subject design information is expanded to obtain demonstration theme design information.
3. The method according to claim 1, characterized in that The single-page content template amplification process is performed based on the demonstration theme design information to obtain a single-page content template set corresponding to the demonstration theme template, including: Performing single-page content template amplification processing based on the demonstration theme design information to obtain multiple single-page content templates; A single-page configuration tag is configured for the single-page content template, and the single-page content template is added to the single-page content template set corresponding to the presentation theme template.
4. The method according to claim 3, characterized in that The method further comprises: Receiving the single-page content prompt word input by the client, searching a single-page content template library for a candidate single-page content template whose single-page configuration tag matches the single-page content prompt word, wherein the single-page content template library includes at least one single-page content template set; The candidate single-page content template is displayed to the client.
5. The method according to claim 4, characterized in that After searching the single-page content template library for a candidate single-page content template whose single-page configuration tag matches the single-page content prompt word, the method further includes: Based on the candidate single-page content template, a presentation template processing macro model is used to perform single-page content template amplification processing to obtain an extended single-page content template, and the extended single-page content template is displayed to the client.
6. The method according to claim 1, characterized in that The single-page content template amplification process is performed based on the demonstration theme design information to obtain a single-page content template set corresponding to the demonstration theme template, including: Retrieving the historical presentation template design data corresponding to the client through the presentation template processing large model; Determining customer presentation design preference information based on the historical presentation template design data; A single-page content template amplification process is performed based on the customer presentation design preference information and the presentation theme design information to obtain a single-page content template set corresponding to the presentation theme template.
7. The method according to claim 1, characterized in that The method further comprises: Acquire a basic large language model, and create an initial presentation template processing large model for a presentation material processing scenario based on the basic large language model; Obtain a sample demonstration theme template and a sample single-page content template example corresponding to the sample client, and mark the sample client with a single-page content template tag; Using the sample presentation theme template and the sample single-page content template examples to perform at least one round of model training on the initial presentation template processing large model to obtain a predicted single-page content template; The comprehensive model loss is determined based on the predicted single-page content template and the single-page content template label, and the model parameters of the initial presentation template processing large model are adjusted based on the comprehensive model loss until the model training conditions are met to obtain the presentation template processing large model.
8. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps as claimed in any one of claims 1 to 7.
9. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 7.
Citation Information
Patent Citations
Powerpoint generation method based on large model and training method of large model
CN118428332A