CN118094680A - Content generation method, device, medium, electronic device, and program product - Google Patents

Content generation method, device, medium, electronic device, and program product Download PDF

Info

Publication number
CN118094680A
CN118094680A CN202410347129.3A CN202410347129A CN118094680A CN 118094680 A CN118094680 A CN 118094680A CN 202410347129 A CN202410347129 A CN 202410347129A CN 118094680 A CN118094680 A CN 118094680A
Authority
CN
China
Prior art keywords
page
component
target page
description information
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410347129.3A
Other languages
Chinese (zh)
Inventor
银国徽
周鹏
姚立
徐菱敏
彭吉元
郑建华
刘新宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Douyin Vision Co Ltd
Original Assignee
Douyin Vision Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Douyin Vision Co Ltd filed Critical Douyin Vision Co Ltd
Priority to CN202410347129.3A priority Critical patent/CN118094680A/en
Publication of CN118094680A publication Critical patent/CN118094680A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure relates to a content generation method, apparatus, medium, electronic device, and program product, the method comprising: acquiring page description information of page design requirements of a package aiming at a target page design draft; inputting the page description information into a content generation model to obtain a target page type of a target page design draft; determining a target page layout component matched with the target page type and at least one display component included in the target page layout component; based on the page description information, the target page layout component and the acquired component variants matched with at least one display type component, target page design manuscripts corresponding to the page description information are obtained, the user interface effects of the display type components of different component variants are different, based on the page description information, the accurate matching of the page types and the user interface effects of the design manuscripts is realized, the target page design manuscripts are automatically generated, and the design efficiency of the page design manuscripts is improved.

Description

Content generation method, device, medium, electronic device, and program product
Technical Field
The present disclosure relates to the field of electronic information technology, and in particular, to a content generation method, apparatus, medium, electronic device, and program product.
Background
The front page refers to an interface through which a user interacts with software, applications, or devices. The design of the front-end page needs to consider various factors, such as user requirements and interaction flow, and through continuous iteration and optimization of the front-end page, a user-friendly experience and an efficient interaction mode are provided.
The design of the front-end page usually requires a professional technician to use complex tools for design, and the tools need long learning and use, so that the design efficiency of the front-end page is low, the time cost is high, and the like.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, the present disclosure provides a content generation method, including:
acquiring page description information, wherein the page description information comprises page design requirements aiming at a target page design draft;
Inputting the page description information into a content generation model to obtain a target page type of the target page design manuscript;
determining a target page layout component matched with the target page type and at least one presentation component included in the target page layout component;
Obtaining a target page design draft corresponding to the page description information based on the page description information, the target page layout component and the obtained component variant matched with the at least one display component; wherein the user interface effects of the exposed components of different component variants are different, the component variants to which the exposed components match being determined by the content generation model based on the page description information and the candidate component variants of the exposed components.
In a second aspect, the present disclosure provides a content generating apparatus including:
the first acquisition module is used for acquiring page description information, wherein the page description information comprises page design requirements aiming at a target page design draft;
the first input module is used for inputting the page description information into a content generation model to obtain a target page type of the target page design draft;
the determining module is used for determining a target page layout component matched with the target page type and at least one display type component included in the target page layout component;
The rendering module is used for obtaining a target page design draft corresponding to the page description information based on the page description information, the target page layout component and the obtained component variant matched with the at least one display component; wherein the user interface effects of the exposed components of different component variants are different, the component variants to which the exposed components match being determined by the content generation model based on the page description information and the candidate component variants of the exposed components.
In a third aspect, the present disclosure provides a computer readable medium having stored thereon a computer program which, when executed by a processing device, implements the steps of the method described in the first aspect.
In a fourth aspect, the present disclosure provides an electronic device comprising:
A storage device having a computer program stored thereon;
Processing means for executing said computer program in said storage means to carry out the steps of the method described in the first aspect.
In a fifth aspect, the present disclosure provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method described in the first aspect.
Through the technical scheme, the page description information comprising the page design requirement aiming at the target page design draft is obtained; obtaining a target page type to which a target page design draft belongs based on a content generation model; determining a target page layout component matched with the target page type and at least one display component included in the target page layout component; based on the page description information, the target page layout component and the acquired component variants matched with at least one display component, target page design manuscripts corresponding to the page description information are obtained, user interface effects of the display components of different component variants are different, and the component variants matched with the display components are determined based on the page description information and candidate component variants of the display components through a content generation model, so that based on the page description information, accurate matching of page types and user interface effects of the design manuscripts is achieved, the target page design manuscripts conforming to the page description information are automatically generated, and design efficiency of the page design manuscripts is improved.
Additional features and advantages of the present disclosure will be set forth in the detailed description which follows.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale. In the drawings:
fig. 1 is a flowchart illustrating a content generation method according to an exemplary embodiment of the present disclosure.
FIG. 2 is a schematic diagram of a page layout component illustrated in accordance with an exemplary embodiment of the present disclosure.
Fig. 3 is a schematic diagram showing a design draft replacing target content according to an exemplary embodiment of the present disclosure.
Fig. 4 is a block diagram of a content generating apparatus according to an exemplary embodiment of the present disclosure.
Fig. 5 is a schematic structural view of an electronic device according to an exemplary embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
It will be appreciated that prior to using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed and authorized of the type, usage range, usage scenario, etc. of the personal information related to the present disclosure in an appropriate manner according to the relevant legal regulations.
For example, in response to receiving an active request from a user, a prompt is sent to the user to explicitly prompt the user that the operation it is requesting to perform will require personal information to be obtained and used with the user. Thus, the user can autonomously select whether to provide personal information to software or hardware such as an electronic device, an application program, a server or a storage medium for executing the operation of the technical scheme of the present disclosure according to the prompt information.
As an alternative but non-limiting implementation, in response to receiving an active request from a user, the manner in which the prompt information is sent to the user may be, for example, a popup, in which the prompt information may be presented in a text manner. In addition, a selection control for the user to select to provide personal information to the electronic device in a 'consent' or 'disagreement' manner can be carried in the popup window.
It will be appreciated that the above-described notification and user authorization process is merely illustrative and not limiting of the implementations of the present disclosure, and that other ways of satisfying relevant legal regulations may be applied to the implementations of the present disclosure.
Meanwhile, it can be understood that the data (including but not limited to the data itself, the acquisition or the use of the data) related to the technical scheme should conform to the requirements of the corresponding laws and regulations and related regulations.
In the related art, the design draft of the front-end page needs professional personnel to design, and the time consumption is long under the design requirement of needing a large number of front-end pages; in addition, when the design draft of the front-end page is produced by cooperation of multiple persons, the problem of non-uniformity of patterns, interactions and the like of all components in the front-end page exists.
In view of this, the embodiments of the present disclosure provide a content generating method, apparatus, medium, electronic device, and program product, which improve the design efficiency of a page design draft, and ensure uniformity of components in terms of style and interaction, i.e., ensure controllability of the design draft generated automatically.
The disclosure is further explained and illustrated below with reference to the drawings.
Fig. 1 is a flowchart illustrating a content generation method according to an exemplary embodiment of the present disclosure, which may be performed by a content generation apparatus, where the apparatus may be implemented by software and/or hardware, may be configured in an electronic device, and typically may be configured in a mobile phone or a tablet computer. Referring to fig. 1, the content generation method may include the steps of:
step 110, acquiring page description information, wherein the page description information comprises page design requirements aiming at a target page design draft.
It should be noted that, in this embodiment, the page is disassembled. In particular, pages can be expressed in terms of page types and page components. By way of example, page types such as list pages, detail pages, configuration pages, and workstations, among others. While a page Component (Component) generally refers to a reusable, independent, and self-contained unit of code that is used to construct a page or implement a particular function. The page components can be further divided into page layout components for constructing a page layout of a page, and presentation components that can be referenced or recursively referenced under the page layout components, where presentation components are components that present page content using what styles and interactions (i.e., component variants).
Exemplary page layouts are an up 1 down 2 layout, an up 1 down 1 layout, a left 1 right 1 layout, and so on. Taking the layout of 1 and 2 above as an example, referring to the page layout components shown in fig. 2, each rectangle represents a display component, and three display components form the page layout of 1 and 2 above, further, the corresponding navigation bar component above, and 2 below is a sidebar component and a main content component respectively. Further, under the navigation bar component, the sidebar component, and the body content component, the presentation component may be further referenced.
Illustratively, the presentation component may further include a composite component and a base component, the composite component may be composed of a plurality of base components. By way of example, the base component may include a button component, an input component, a container component, and the like.
The page description information is the page design requirement of a target page design draft expressed by natural language. The page description information may be description information for page design requirements, which is first input by a user, or the page description information may be description information for modifying a target page design manuscript, which is input by the user for the target page design manuscript. And for the latter, based on the multi-round continuous dialogue between the user and the content generation model, the modification of the design manuscript generated last time can be realized, and the design manuscript fitting the user requirement can be gradually obtained.
The target page design draft may be a page that the user wants to design, the page may be a web page or a page in an application, etc., and the user may be a page designer or an ordinary user, etc.
By way of example, the page design requirements may include design requirements related to page type, design requirements related to page content, which may include style content of components in the page, and business data related to the business. For example: the page description information may be "generate cloud computing product with filter card list page".
And 120, inputting the page description information into a content generation model to obtain a target page type of the target page design draft.
The content generation model can be trained in advance, and the content generation model is utilized to obtain the target page type conforming to the page description information. As an example, a natural language understanding technique may be used to convert the page description information into input data identifiable by the content generation model, and input the input data into the content generation model to obtain a target page type of the output of the content generation model.
Step 130, determining a target page layout component that matches the target page type, and at least one presentation component included in the target page layout component.
In this embodiment, the page layouts applicable to different page types may be different, further, target page layout components corresponding to different page layouts may be different, and further, presentation components included in different target page layout components may be different.
It is worth noting that for a determined page layout, the target page layout component is determinable. By way of example, components may be described in DSL (domain-specific language ). Based on the DSL of the target page layout component, the presentation component included in the target page layout component can be obtained.
Step 140, obtaining a target page design draft corresponding to the page description information based on the page description information, the target page layout component and the obtained component variant matched with at least one display component; wherein the user interface effects of the exposed components of the different component variants are different, and the component variants to which the exposed components match are determined by the content generation model based on the page description information and the candidate component variants of the exposed components.
In the field of front-end page development or design, component variants generally refer to different styles or behaviors of the same component according to different scenes, states or configurations, and the design method enhances the flexibility and reusability of the component, so that the types of the front-end pages are enriched.
As can be seen from the above, the page description information may be description information for the page design requirement, which is first input by the user, or the page description information may be description information for modifying the target page design manuscript, which is input by the user for the target page design manuscript.
The content generation model can be further pre-trained, so that accurate matching of page description information and component variants matched with the display type component is realized by using the content generation model. As an example, natural language understanding techniques may be employed to convert page description information and candidate component variants corresponding to the exposed components into input data recognizable by the content generation model, and input the input data into the content generation model to obtain exposed component-matched component variants of the output of the content generation model.
By the method, based on the page description information, the accurate matching of the page type of the design manuscript and the user interface effect is realized, the target page design manuscript which accords with the page description information is automatically generated, and the design efficiency of the page design manuscript is improved.
In some embodiments, the content generating method further includes: acquiring first description data of a display type component in a database, wherein the first description data is used for describing candidate component variants of the corresponding display type component; and inputting the first description data and the page description information into a content generation model to obtain component variants with matched presentation components.
The first description data may be JSON-format data, which is data formed by key-value pairs. As an example, the first description data may include an identification of the component, an identification of the component variant, and a variant description of the component variant, the identification of the component variant, and the variant description of the component variant being stored in the first description data in the form of key-value pairs. The identification of a component is used to uniquely identify the component, the identification of component variants is used to uniquely identify component variants, variant descriptions of the component are used to describe candidate component variants, i.e., describe the style and interactions of the component, and so forth.
As an example, the content generation model may perform semantic matching based on all candidate variant descriptions of the exposed component and the page description information, so as to obtain a variant description with the highest matching degree with the page description information, and further use the variant description as a component variant matched with the corresponding exposed component.
Through the method, the component variants in the database are managed uniformly, the variant descriptions matched with the display type components are determined through the content generation model based on the description information and the page description information of the candidate component variants of the display type components stored in the database, and the uniformity of styles and interactions of design manuscripts is ensured, so that the controllability of the target page design manuscripts is met.
In some embodiments, the step of determining a target page layout component that matches a target page type may be implemented by: acquiring second description data of the page layout components in the database, wherein the second description data is used for describing page types matched with the corresponding page layout components; and inputting the second description data of the page layout component and the target page type into the content generation model to obtain the target page layout component matched with the target page type.
Wherein, similar to the first description data, the second description data may be JSON-format data. As an example, the second description data may include an identification of the page layout component, and an applicable page type description of the page layout component. The identification of the page layout component is used to uniquely identify the page layout component.
As an example, the content generation model may match based on the target page type and the applicable page type descriptions of all page layout components, resulting in a target page layout component that matches the target page type.
As another example, when the target page layout components whose target page types match include a plurality of target page layout components, one may be randomly selected as the final target page layout component; or may provide a user with a selection, based on which the final target page layout component is determined.
By the method, the second description data of the page layout components in the database are uniformly managed, so that the determination of the target page layout components is performed based on the second description data stored in the database, and the controllability of the target page design manuscript is met.
In some embodiments, in the second description data, a presentation component corresponding to the page layout component reference or the recursive reference may also be included.
Thus, in the second description data, the exposed components in the target page layout component can be determined in a traversing manner.
In some embodiments, the first description data of the presentation component and the second description data of the page layout component may be maintained in the same database, and further description data describing corresponding component types may be included in the first description data and the second description data, where it is understood that the component types include the page layout component and the presentation component.
In this way, the component types of the corresponding components can be intuitively determined according to the description data of the component types, so that the display type components and the page layout components can be conveniently distinguished in the same database, and further, the variant descriptions of the matching of the target page layout components and the display type components can be conveniently determined according to the embodiment; in addition, the data is maintained in the same database, so that the maintenance cost of the database can be reduced.
In some embodiments, the content generating method may further include the steps of: and executing an updating task at regular time, wherein the updating task is used for updating the database.
The execution time of the update task can be configured according to actual conditions. For example, the update task is performed every 24 hours.
Wherein the update task is to update candidate component variants of the page layout component and the presentation component based on the page design manuscript of the new design. For example, the semantic structure (such as DSL) of the page design draft may be extracted according to the marking information of the page design draft, the DSL of each component and the corresponding description data are obtained based on the semantic structure and stored in the database, so as to realize the update of the database.
Through the mode, databases can be enriched, so that diversification of the design manuscript of the target page is realized.
In some embodiments, the content generating method may further include the steps of: and responding to the operation of calling the update interface triggered by the user, executing an update task, wherein the update task is used for updating the database.
Similar to the update task described above, the update task is to update candidate component variants of the page layout component and the presentation component based on the page design script of the new design.
And the update task is executed by responding to the operation of calling the update interface triggered by the user, so that the requirement of the user for updating the database autonomously and at any time is supported.
In some embodiments, the database is associated with a business scenario to which the target page design manuscript belongs. The design specifications of the page design script may be different, such as the pitch specifications of the components, under different business scenarios.
Accordingly, the database may be associated with the business scenario to which the target page design manuscript belongs, such that when the target page design manuscript is generated, respective components and corresponding variant descriptions that conform to the design specification of the business scenario to which the target page design manuscript belongs are determined from the associated database.
Thus, the controllability of the target page design manuscript is further improved, and the quality of the target page design manuscript is further improved.
In some embodiments, the step of obtaining the target page design draft corresponding to the page description information based on the page description information, the target page layout component and the obtained component variant matched with the at least one presentation component may be implemented in the following manner: generating an intermediate page code according to the target page layout component, the display type component and the component variant matched with at least one display type component; inputting the intermediate page code and the page description information into a content generation model to obtain a page code corresponding to the target page design draft, wherein the page code carries business data in the page description information; and loading the target page design manuscript corresponding to the page description information in the code rendering application based on the business data in the page codes corresponding to the intermediate page codes and the target page design manuscript.
For example, the target page layout component, the presentation component, and the component variant that matches the at least one presentation component may be input to the content generation model, such that the content generation model may invoke the target page layout component, the presentation component, and the component variant that matches the at least one presentation component in the database to obtain the intermediate page code. It should be noted that the database stores codes corresponding to the components.
The middle page code is a page-level code, and is obtained by combining all components according to the page structure of the target page design draft.
Wherein the service data is data related to a service scenario. When designing a target page design manuscript of a certain business scene, data related to business in a multiplexed component needs to be replaced, so that a design manuscript which accords with the business scene to which the target page design manuscript belongs is obtained, and the data can be called business data. For the specific implementation of the replacement service data, please refer to the following related embodiments, which are not described herein.
The code rendering application has a rendering function and can analyze DSL, so that a front-end page is obtained.
By the method, the page codes corresponding to the target page design manuscript are obtained based on the content generation model, and further the target page design manuscript corresponding to the page description information is obtained by loading service data and intermediate page codes in the page codes corresponding to the target page design manuscript in the code rendering application.
In some embodiments, the step of loading the target page design draft corresponding to the page description information in the code rendering application based on the business data in the intermediate page code and the page code corresponding to the target page design draft may be implemented in the following manner: in a code rendering application, building an instance of a component for composing a target page based on intermediate page code; traversing the instance through a content generation model, and replacing the target content in the instance with the corresponding service data based on the service data in the page code corresponding to the target page design draft and the marking information of the marking node of the component of the corresponding instance; and loading and obtaining the target page design manuscript corresponding to the page description information based on all the examples of the replaced target content.
The user can mark the component in advance, and then the content generation model can replace target content based on marking information of marking nodes. It should be noted that, the marking information is used to indicate the content generation model, and the target content needs to be replaced in the component.
Fig. 3 is a schematic diagram showing a design draft replacing target content according to an exemplary embodiment of the present disclosure. Referring to fig. 3, A1, A2, A3, A4, A5, and A6 are target contents to be replaced in a multiplexed component, which is labeled in advance in order to indicate that the content creation model needs replacement of A1, A2, A3, A4, A5, and A6. B1, B2, B3, B4, B5 and B6 are business data in the page code corresponding to the target page design manuscript.
According to the method, the content generation model is utilized, the target page design manuscript meeting the page design requirement of the user is obtained in an end-to-end mode based on the understanding capability of the page description information, the page design efficiency is improved, in the process of generating the target page design manuscript, the components in the pre-constructed database are accurately matched with the information representing the page design requirement input by the content generation model, the conversion from the templated components to the components in a specific business scene is realized based on the pre-marking information, the page design manuscript is automatically generated, and the page design manuscript efficiency is improved.
Based on the same concept, the embodiment of the present disclosure provides a block diagram of a content generating apparatus, fig. 4 is a block diagram of a content generating apparatus according to an exemplary embodiment of the present disclosure, and referring to fig. 4, the content generating apparatus 400 includes:
A first obtaining module 401, configured to obtain page description information, where the page description information includes page design requirements for a target page design draft;
A first input module 402, configured to input the page description information to a content generation model, to obtain a target page type to which the target page design draft belongs;
a determining module 403, configured to determine a target page layout component that matches the target page type, and at least one presentation component included in the target page layout component;
A rendering module 404, configured to obtain a target page design draft corresponding to the page description information based on the page description information, the target page layout component, and the obtained component variant matched with the at least one presentation component; wherein the user interface effects of the exposed components of different component variants are different, the component variants to which the exposed components match being determined by the content generation model based on the page description information and the candidate component variants of the exposed components.
Optionally, the content generating apparatus 400 further includes:
the second acquisition module is used for acquiring first description data of the display type component in the database, wherein the first description data is used for describing candidate component variants of the corresponding display type component;
And the second input module is used for inputting the first description data and the page description information into the content generation model to obtain the component variant matched with the display component.
Optionally, the determining module 403 includes:
the first acquisition sub-module is used for acquiring second description data of the page layout components in the database, wherein the second description data is used for describing page types matched with the corresponding page layout components;
And the first input sub-module is used for inputting the second description data of the page layout component and the target page type into the content generation model to obtain the target page layout component matched with the target page type.
Optionally, the content generating apparatus 400 further includes:
the updating module is used for executing updating tasks at regular time, and the updating tasks are used for updating the database or;
And the updating task is executed in response to the operation of calling the updating interface triggered by the user.
Optionally, the database is associated with a business scenario to which the target page design manuscript belongs.
Optionally, the rendering module 404 includes:
The generation sub-module is used for generating an intermediate page code according to the target page layout component, the display type component and component variants matched with at least one display type component;
the second input sub-module is used for inputting the intermediate page code and the page description information into the content generation model to obtain a page code corresponding to the target page design draft, wherein the page code carries service data in the page description information;
And the rendering sub-module is used for loading the target page design draft corresponding to the page description information in the code rendering application based on the business data in the intermediate page code and the page code corresponding to the target page design draft.
Optionally, the rendering sub-module is specifically configured to:
in a code rendering application, building an instance of a component for composing the target page based on the intermediate page code;
Traversing the instance through the content generation model, and replacing the target content in the instance with corresponding service data based on the service data in the page code corresponding to the target page design draft and marking information of marking nodes of components corresponding to the instance;
And loading and obtaining a target page design draft corresponding to the page description information based on all the examples replacing the target content.
The implementation of each module in the content generating apparatus 400 may refer to the related embodiments, which are not described herein.
Based on the same conception, the embodiments of the present disclosure also provide a computer readable medium having stored thereon a computer program which, when executed by a processing device, implements the steps of the content generation method described above.
Based on the same conception, the disclosed embodiment also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the content generation method described above.
Based on the same concept, the embodiments of the present disclosure also provide an electronic device including:
A storage device having a computer program stored thereon;
Processing means for executing the computer program in the storage means to implement the steps of the content generation method described above.
Referring now to fig. 5, a schematic diagram of an electronic device 500 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 5 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 5, the electronic device 500 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 501, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
In general, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 507 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 508 including, for example, magnetic tape, hard disk, etc.; and communication means 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 shows an electronic device 500 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or from the storage means 508, or from the ROM 502. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 501.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the electronic device may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring page description information, wherein the page description information comprises page design requirements aiming at a target page design draft; inputting the page description information into a content generation model to obtain a target page type of the target page design manuscript; determining a target page layout component matched with the target page type and at least one presentation component included in the target page layout component; obtaining a target page design draft corresponding to the page description information based on the page description information, the target page layout component and the obtained component variant matched with the at least one display component; wherein the user interface effects of the exposed components of different component variants are different, the component variants to which the exposed components match being determined by the content generation model based on the page description information and the candidate component variants of the exposed components.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented in software or hardware. The name of a module does not in some cases define the module itself.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims. The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.

Claims (11)

1. A content generation method, comprising:
acquiring page description information, wherein the page description information comprises page design requirements aiming at a target page design draft;
Inputting the page description information into a content generation model to obtain a target page type of the target page design manuscript;
determining a target page layout component matched with the target page type and at least one presentation component included in the target page layout component;
Obtaining a target page design draft corresponding to the page description information based on the page description information, the target page layout component and the obtained component variant matched with the at least one display component; wherein the user interface effects of the exposed components of different component variants are different, the component variants to which the exposed components match being determined by the content generation model based on the page description information and the candidate component variants of the exposed components.
2. The method according to claim 1, wherein the method further comprises:
acquiring first description data of the display type component in a database, wherein the first description data is used for describing candidate component variants of the corresponding display type component;
and inputting the first description data and the page description information into the content generation model to obtain the component variant matched with the display component.
3. The method of claim 1, wherein the determining a target page layout component that matches the target page type comprises:
Acquiring second description data of page layout components in a database, wherein the second description data is used for describing page types matched with the corresponding page layout components;
And inputting the second description data of the page layout component and the target page type into the content generation model to obtain a target page layout component matched with the target page type.
4. A method according to claim 2 or 3, characterized in that the method further comprises:
Performing an update task at regular time, wherein the update task is used for updating the database, or;
And responding to the operation of calling the update interface triggered by the user, and executing the update task.
5. A method according to claim 2 or 3, wherein the database is associated with a business scenario to which the target page design manuscript belongs.
6. The method according to claim 1, wherein the obtaining the target page design draft corresponding to the page description information based on the page description information, the target page layout component, and the obtained component variant matched with the at least one presentation component includes:
Generating an intermediate page code according to the target page layout component, the display type component and component variants matched with at least one display type component;
Inputting the intermediate page code and the page description information into the content generation model to obtain a page code corresponding to the target page design draft, wherein the page code carries service data in the page description information;
And loading the target page design manuscript corresponding to the page description information in a code rendering application based on the business data in the intermediate page code and the page code corresponding to the target page design manuscript.
7. The method according to claim 6, wherein loading the target page design draft corresponding to the page description information in a code rendering application based on the service data in the intermediate page code and the page code corresponding to the target page design draft includes:
in a code rendering application, building an instance of a component for composing the target page based on the intermediate page code;
Traversing the instance through the content generation model, and replacing the target content in the instance with corresponding service data based on the service data in the page code corresponding to the target page design draft and marking information of marking nodes of components corresponding to the instance;
And loading and obtaining a target page design draft corresponding to the page description information based on all the examples replacing the target content.
8. A content generating apparatus, comprising:
the first acquisition module is used for acquiring page description information, wherein the page description information comprises page design requirements aiming at a target page design draft;
the first input module is used for inputting the page description information into a content generation model to obtain a target page type of the target page design draft;
the determining module is used for determining a target page layout component matched with the target page type and at least one display type component included in the target page layout component;
The rendering module is used for obtaining a target page design draft corresponding to the page description information based on the page description information, the target page layout component and the obtained component variant matched with the at least one display component; wherein the user interface effects of the exposed components of different component variants are different, the component variants to which the exposed components match being determined by the content generation model based on the page description information and the candidate component variants of the exposed components.
9. A computer readable medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processing device, carries out the steps of the method according to any one of claims 1-7.
10. An electronic device, comprising:
A storage device having a computer program stored thereon;
processing means for executing said computer program in said storage means to carry out the steps of the method according to any one of claims 1-7.
11. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 1-7.
CN202410347129.3A 2024-03-25 2024-03-25 Content generation method, device, medium, electronic device, and program product Pending CN118094680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410347129.3A CN118094680A (en) 2024-03-25 2024-03-25 Content generation method, device, medium, electronic device, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410347129.3A CN118094680A (en) 2024-03-25 2024-03-25 Content generation method, device, medium, electronic device, and program product

Publications (1)

Publication Number Publication Date
CN118094680A true CN118094680A (en) 2024-05-28

Family

ID=91143827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410347129.3A Pending CN118094680A (en) 2024-03-25 2024-03-25 Content generation method, device, medium, electronic device, and program product

Country Status (1)

Country Link
CN (1) CN118094680A (en)

Similar Documents

Publication Publication Date Title
CN111324342B (en) Method, device, medium and electronic equipment for generating interface layer code
CN112395253B (en) Index file generation method, terminal device, electronic device and medium
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN113220281A (en) Information generation method and device, terminal equipment and storage medium
CN112035256A (en) Resource allocation method, device, electronic equipment and medium
CN116092092A (en) Matching method, device, medium and electronic equipment
CN111414161B (en) Method, device, medium and electronic equipment for generating IDL file
CN118094680A (en) Content generation method, device, medium, electronic device, and program product
CN110908867B (en) Task completion judging method and device, storage medium and electronic equipment
CN114428615B (en) CSS compiling method, style updating device, medium and equipment
CN114968621B (en) Data communication method, device, equipment, storage medium and system
CN117493217A (en) Test case generation method and device, readable medium and electronic equipment
CN117271550A (en) Processing method, device and equipment of data processing statement and storage medium
CN116795339A (en) Service interface generation method, device, equipment and storage medium
CN118296122A (en) Message processing method, device, equipment and medium
CN116991407A (en) Page generation method, device, equipment and storage medium
CN118228697A (en) Text processing method, device, electronic equipment and storage medium
CN117391046A (en) Data display method and device, readable medium and electronic equipment
CN116432954A (en) Report management scheduling method, system, equipment and storage medium for new energy power plant
CN116886531A (en) Service processing method, device, medium and electronic equipment
CN116069227A (en) Interface interaction method, device, equipment and storage medium
CN116243926A (en) Service processing method, device, medium and electronic equipment
CN116149825A (en) Task processing method, device, medium and electronic equipment
CN116414359A (en) Card layout method, device, medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination