Webpage prototype generation method and device, equipment, storage medium and program product
By automatically generating web page prototypes, the problem of lack of flexibility and innovation in web page prototype generation in the existing technology is solved, and efficient and accurate web page prototype generation is achieved, meeting users' personalized and diversified needs.
Patent Information
- Application Number
- CN202411731174.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-05-06
AI Technical Summary
In the prior art, web page prototype generation lacks flexibility and innovation, and it is difficult to meet the needs of personalization and diversification.
By receiving the function description information input by the user, the first key information is extracted, the second key information is generated through reasoning, the web page prototype is automatically generated, and the prototype is ensured through repeated judgments to comply with the function description information.
It improves the efficiency and quality of web prototype generation, increases flexibility and innovation, and meets the personalized and diversified needs of users.
Smart Images

Figure CN119939063A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of web page development, and in particular to a method, device, equipment, storage medium and program product for generating a web page prototype. Background Art
[0002] Web (World Wide Web) development, also known as web page development, refers to the process of creating and maintaining websites or network applications using Web technology. Web development usually goes through the following stages: requirements analysis, design, coding, testing, deployment, and maintenance. The design stage determines the appearance and interaction of the Web application. The design stage usually includes the creation of a Web prototype, which is a preliminary model of the Web application that is used to demonstrate the basic functions and interface of the Web application. Web prototypes can be used to help developers and customers communicate and confirm requirements, thereby improving the efficiency and quality of Web development.
[0003] At present, the methods for creating Web prototypes in related technologies include: manually drawing Web prototypes, creating Web prototypes based on templates, and creating Web prototypes based on codes. Among them, manually drawing Web prototypes is a simple and intuitive method, but this method requires a lot of time and energy, and is difficult to modify and reuse; creating Web prototypes based on templates refers to quickly building Web prototypes using stored web page templates or frameworks. This method lacks flexibility and innovation and is difficult to meet personalized and diversified needs; creating Web prototypes based on codes refers to using programming languages or tools to write Web prototype codes, but this method requires a high level of technical skills and expertise, and is difficult to debug and maintain. Summary of the invention
[0004] In view of this, the present invention provides a method, apparatus, device, storage medium and program product for generating a webpage prototype to solve the problem that the generation of webpage prototype lacks flexibility and innovation.
[0005] In a first aspect, the present invention provides a method for generating a web page prototype, comprising: receiving function description information input by a user, the function description information being used to characterize the user's needs and preferences for the web page prototype; extracting first key information from the function description information, the first key information being used to characterize a basis for generating the web page prototype; generating second key information based on the first key information, the second key information being an inference result of the first key information; generating a web page prototype based on the second key information; determining whether the web page prototype conforms to the function description information, and if the web page prototype does not conform to the function description information, returning to the step of generating the second key information based on the first key information, until the web page prototype conforms to the function description information.
[0006] The present invention extracts the function description information input by the user to obtain the first key information, infers the first key information to obtain the second key information, and generates a web page prototype according to the second key information. The present invention automatically generates a web page prototype, saves time and cost, and improves the efficiency and quality of web page prototype generation. The present invention determines whether the web page prototype conforms to the function description information. If the web page prototype does not conform to the function description information, it returns to the step of generating the second key information according to the first key information until the web page prototype conforms to the function description information. By repeatedly judging the web page prototype, the web page prototype that best conforms to the function description information is obtained, and the accuracy of web page prototype generation is improved. Compared with the related art, the present invention generates a Web prototype according to the function description information input by the user, increases flexibility and innovation, and meets the personalized and diversified needs of users.
[0007] In an optional implementation, the function description information includes text description information; extracting the first key information from the function description information includes: performing natural language processing on the text description information to extract keywords; adding the keywords to corresponding positions of a preset template to obtain the first key information.
[0008] In an optional implementation, second key information is generated based on first key information, and a web page prototype is generated based on the second key information; judging whether the web page prototype conforms to the functional description information includes: using a generator to generate second key information based on the first key information, generating a web page prototype code based on the second key information, and obtaining the web page prototype using the web page prototype code; and judging whether the web page prototype conforms to the functional description information using a discriminator.
[0009] In an optional implementation, determining whether the web page prototype conforms to the functional description information includes: selecting a target web page prototype sample that matches the functional description information from preset web page prototype samples; and determining whether the web page prototype conforms to the functional description information based on the similarity between the target web page prototype sample and the web page prototype.
[0010] In an optional implementation, after the webpage prototype meets the functional description information, the method further includes: displaying the interface of the webpage prototype in response to triggering of a webpage prototype display instruction.
[0011] The present invention responds to the triggering of the webpage prototype display instruction and displays the interface of the webpage prototype to meet the needs of users.
[0012] In an optional implementation, after displaying the interface of the webpage prototype, the method further includes: modifying the interface of the webpage prototype in response to triggering of a webpage prototype modification instruction.
[0013] The present invention responds to the triggering of the webpage prototype modification instruction, modifies the interface of the webpage prototype, and improves the interactivity and usability of the webpage prototype.
[0014] In a second aspect, the present invention provides a device for generating a web page prototype, comprising: an input module for receiving function description information input by a user, the function description information being used to characterize the user's needs and preferences for the web page prototype; a parsing module for extracting first key information from the function description information, the first key information being used to characterize a basis for generating the web page prototype; a first generating module for generating second key information based on the first key information, the second key information being an inference result of the first key information; a second generating module for generating a web page prototype based on the second key information; an output module for determining whether the web page prototype complies with the function description information, and if the web page prototype does not comply with the function description information, returning to the step of generating the second key information based on the first key information, until the web page prototype complies with the function description information.
[0015] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for generating a web page prototype of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0016] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for generating a web page prototype according to the first aspect or any corresponding embodiment thereof.
[0017] In a fifth aspect, the present invention provides a computer program product, including computer instructions, where the computer instructions are used to enable a computer to execute the method for generating a web page prototype according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 is a flow chart of a method for generating a webpage prototype according to an embodiment of the present invention;
[0020] Figure 2 is a flow chart of a Web prototype generator training method according to an embodiment of the present invention;
[0021] Figure 3 is a flow chart of another method for generating a webpage prototype according to an embodiment of the present invention;
[0022] Figure 4 is a flow chart of another method for generating a webpage prototype according to an embodiment of the present invention;
[0023] Figure 5 is a structural block diagram of a device for generating a webpage prototype according to an embodiment of the present invention;
[0024] Figure 6 is a structural block diagram of another device for generating a webpage prototype according to an embodiment of the present invention;
[0025] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0027] Web development refers to the process of creating and maintaining websites or web applications using web technologies. Web development involves a variety of technologies and languages, such as HyperText Markup Language (HTML), Cascading Style Sheets (CSS), programming languages (JavaScript, Python), and Hypertext Preprocessor (PHP). Web development usually goes through the following stages: requirements analysis, design, coding, testing, deployment, and maintenance.
[0028] In the process of web development, the design phase is very important because it determines the appearance and interaction of the web application. The design phase usually includes the creation of a web prototype, which is a preliminary model of the web application that is used to demonstrate the basic functions and interface of the web application. Web prototypes can help developers and users communicate and confirm requirements, and improve development efficiency and quality.
[0029] However, traditional Web prototype generation methods include: manually drawing Web prototypes: this method takes a lot of time and effort, and is difficult to modify and reuse; template-based Web prototype generation method: this method refers to the use of web page templates or frameworks to quickly build Web prototypes, but this method lacks flexibility and innovation, and it is difficult to meet personalized and diversified needs; code-based Web prototype generation method: this method refers to the use of programming languages or tools to write Web prototype codes, but this method requires a high level of technical skills and expertise, and is difficult to debug and maintain.
[0030] The embodiment of the present invention provides a method for generating a web page prototype, which achieves the effect of improving the flexibility of generating a web page prototype by automatically generating a web page prototype.
[0031] According to an embodiment of the present invention, an embodiment of a method for generating a web page prototype is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0032] In this embodiment, a method for generating a webpage prototype is provided, which can be used in a computer device. Figure 1 is a flow chart of a method for generating a webpage prototype according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0033] Step S101 : receiving function description information input by a user, where the function description information is used to characterize the user's needs and preferences for a webpage prototype.
[0034] The function description information may be a simple description or example input by the user to express the needs and preferences for the web page prototype. The function description information may be text, picture, voice, etc. The function description information may be input by typing on the keyboard, voice input, sending a picture, etc.
[0035] The embodiment of the present invention uses the Flask framework to build a Web server to provide a user with a simple Web interface for receiving function description information input by the user.
[0036] For example, the user can enter "I want a website about travel with a fresh and simple style and functions such as search, booking, comment, etc." in the web interface, or upload screenshots of their favorite website pages, and express their own ideas.
[0037] Step S102: extracting first key information from the function description information, where the first key information is used to characterize a basis for generating a webpage prototype.
[0038] In some optional implementations, the function description information includes text description information; extracting the first key information from the function description information includes: performing natural language processing on the text description information to extract keywords; adding the keywords to corresponding positions of a preset template to obtain the first key information.
[0039] In some optional implementations, a bidirectional encoder representation (Bidirectional Encoder Representations from Transformers, BERT) model is used to perform natural language processing on the text description information.
[0040] Among them, when the function description information is a picture, the picture is recognized and converted to obtain the text description information corresponding to the picture, and then the first key information is extracted; when the function description information is voice, the voice is recognized and extracted to obtain the text description information corresponding to the voice, and then the first key information is extracted.
[0041] For example, for the functional description information: "I want a website about travel, with a fresh and simple style, and functions such as search, reservation, comment, etc."; extract the keywords: travel, fresh and simple, search, reservation, and comment; then add the keywords to the corresponding positions of the preset template to obtain the first key information, which can be: theme: travel; style: fresh and simple; functions: search, reservation, comment.
[0042] Step S103, generating second key information according to the first key information, where the second key information is the inference result of the first key information.
[0043] Herein, generative artificial intelligence (AI) is used to learn and infer the first key information to obtain the second key information.
[0044] Step S104: Generate a webpage prototype according to the second key information.
[0045] Among them, the TensorFlow (open source software library) framework and the BERT model are used to build a Web prototype generator based on the Generative Adversarial Network (GAN). The Web prototype generator is used to learn and infer the first key information to obtain the second key information, and the web page prototype is generated according to the second key information.
[0046] In some optional implementations, a generator is used to generate second key information based on first key information, a web page prototype code is generated based on the second key information, and a web page prototype is obtained using the web page prototype code; a discriminator is used to determine whether the web page prototype conforms to the functional description information.
[0047] The Web prototype generator includes a generator and a discriminator. The generator generates a Web prototype using the BERT model based on the first key information, and the discriminator determines whether the Web prototype generated by the generator conforms to the functional description information based on the pre-collected Web prototype samples. The generator and the discriminator continuously learn and optimize each other until a high-quality Web prototype is generated.
[0048] In some optional implementations, the method for generating a web prototype further includes a training process for a web prototype generator, such as Figure 2 As shown, it is a flow chart of the Web prototype generator training method, the original requirement description is processed to obtain a text requirement description, a web page prototype code is generated by a decoder, the web page prototype code sample is decoded to generate a text requirement description, the web page prototype code is generated according to the encoder, and the discriminator judges whether the generated web page prototype code meets the original requirement description. Through continuous judgment, more realistic web page prototype code is continuously regenerated until the discriminator finally considers it realistic enough, that is, it meets the original requirement description enough, outputs the web page prototype interface, and saves the Web prototype generator for subsequent web page prototype generation.
[0049] Step S105, determining whether the webpage prototype conforms to the function description information. If the webpage prototype does not conform to the function description information, returning to the step of generating the second key information according to the first key information until the webpage prototype conforms to the function description information.
[0050] Among them, a pre-trained language model is used to determine whether the webpage prototype conforms to the functional description information.
[0051] In some optional implementations, determining whether a web page prototype conforms to functional description information includes: selecting a target web page prototype sample that matches the functional description information from preset web page prototype samples; and determining whether the web page prototype conforms to the functional description information based on the similarity between the target web page prototype sample and the web page prototype.
[0052] Among them, when the similarity between the target web page prototype sample and the web page prototype is greater than or equal to the preset value, it means that the web page prototype conforms to the functional description information; when the similarity between the target web page prototype sample and the web page prototype is less than the preset value, it means that the web page prototype conforms to the functional description information. The preset value can be set according to the actual situation. For example, the preset value can be 100%.
[0053] The method for generating a web page prototype provided in this embodiment extracts the function description information input by the user to obtain the first key information, infers the first key information to obtain the second key information, and generates the web page prototype according to the second key information. The embodiment of the present invention automatically generates the web page prototype, saves time and cost, and improves the efficiency and quality of web page prototype generation. The embodiment of the present invention determines whether the web page prototype conforms to the function description information. If the web page prototype does not conform to the function description information, it returns to the step of generating the second key information according to the first key information until the web page prototype conforms to the function description information. By repeatedly judging the web page prototype, the web page prototype that best conforms to the function description information is obtained, and the accuracy of web page prototype generation is improved. Compared with the related art, the embodiment of the present invention generates a Web prototype according to the function description information input by the user, which increases flexibility and innovation and meets the personalized and diversified needs of users.
[0054] In this embodiment, a method for generating a webpage prototype is provided, which can be used in a computer device. Figure 3 is a flow chart of another method for generating a webpage prototype according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0055] Step S301, receiving function description information input by the user, the function description information is used to characterize the user's needs and preferences for the webpage prototype. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0056] Step S302: extracting first key information from the function description information, where the first key information is used to characterize the basis for generating the webpage prototype.
[0057] Specifically, the above step S302 includes:
[0058] Step S3021, perform natural language processing on the text description information to extract keywords.
[0059] Among them, Natural Language Processing (NLP) is the analysis of text description information, including but not limited to understanding the semantics and grammar of text description information, extracting key information, and generating natural and fluent language.
[0060] Step S3022, adding the keyword to the corresponding position of the preset template to obtain the first key information.
[0061] Exemplarily, the template includes theme, style, function, etc., and keywords are added to corresponding positions of the preset template. Exemplarily, the keyword "travel" is added to the position corresponding to "theme" in the template.
[0062] Step S303: Generate second key information based on the first key information, where the second key information is the inference result of the first key information. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.
[0063] Step S304: Generate a webpage prototype based on the second key information. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.
[0064] Step S305: determine whether the webpage prototype conforms to the function description information.
[0065] Specifically, the above step S305 includes:
[0066] Step S3051: Select a target web page prototype sample that matches the function description information from the preset web page prototype samples.
[0067] The preset web page prototype samples are pre-collected web page prototypes of various types. For example, the types of the preset web page prototype samples include travel, search, fresh, game, and the like.
[0068] Step S3052, judging whether the web page prototype conforms to the functional description information according to the similarity between the target web page prototype sample and the web page prototype, if the web page prototype does not conform to the functional description information, returning to the step of generating the second key information according to the first key information until the web page prototype conforms to the functional description information.
[0069] In some optional implementations, when the similarity between the target web page prototype sample and the web page prototype is greater than or equal to a preset value, the web page prototype is judged to be consistent with the functional description information; when the similarity between the target web page prototype sample and the web page prototype is less than a preset value, the web page prototype is judged to be consistent with the functional description information.
[0070] Step S306, in response to the triggering of the webpage prototype display instruction, the interface of the webpage prototype is displayed.
[0071] The triggering of the webpage prototype display instruction may be in various forms, for example, clicking on a "display" component, clicking on a URL, and the like.
[0072] Step S307, in response to the triggering of the webpage prototype modification instruction, modify the interface of the webpage prototype.
[0073] The triggering of the webpage prototype modification instruction may be in various forms. For example, the interface of the webpage prototype is modified and optimized by triggering components such as dragging, scaling, deleting, and adding.
[0074] The web page prototype generation method provided in this embodiment responds to the triggering of the web page prototype display instruction to display the interface of the web page prototype to meet the needs of users; responds to the triggering of the web page prototype modification instruction to modify the interface of the web page prototype to improve the interactivity and usability of the web page prototype.
[0075] In this embodiment, a method for generating a webpage prototype is provided, which can be used in a computer device. Figure 4 is a flow chart of another method for generating a webpage prototype according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:
[0076] Step S401, receiving a simple description or example input by a user, such as text, picture, voice, etc.
[0077] The user can input their needs and preferences for the Web prototype in the input module through text, pictures or voice. For example, the user can input "I want a travel website with a fresh and simple style and functions such as search, booking, and comment", or upload a screenshot of a website they like, or express their own ideas.
[0078] Step S402, parse the content input by the user and extract key information therein, such as theme, style, function, etc.
[0079] Among them, natural language processing is performed on the content input by the user to extract key information therein. For example, the key information extracted is: theme: travel; style: fresh and simple; function: search, reservation, comment, etc.
[0080] Step S403, automatically generating the code and interface of the webpage prototype according to the extracted key information.
[0081] Among them, a Web prototype generator based on generative adversarial network is built using TensorFlow framework and BERT model. The Web prototype generator consists of a generator and a discriminator; the generator uses the BERT model to generate the code and interface of the Web prototype based on the key information extracted by the parsing module. The discriminator uses the pre-trained language model to judge whether the Web prototype generated by the generator meets the user's needs and preferences based on some pre-collected Web prototype samples. The generator and the discriminator continuously learn and optimize each other until a high-quality Web prototype is generated.
[0082] Step S404: output the generated webpage prototype to the user for the user to view and modify.
[0083] The Flask framework is used to build a Web server, which provides a simple Web interface for outputting the Web prototype generated by the generation module to the user for viewing and modification. The user can access the URL provided by the output module through the browser to view the generated Web prototype. The user can also modify and optimize the generated Web prototype through some simple operations, such as dragging, scaling, deleting, adding, etc.
[0084] In this embodiment, a device for generating a webpage prototype is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made are not repeated here. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0085] This embodiment provides a device for generating a webpage prototype, such as Figure 5 As shown, including:
[0086] The input module 501 is used to receive function description information input by a user, where the function description information is used to represent the user's needs and preferences for the webpage prototype.
[0087] The parsing module 502 is used to extract first key information from the function description information, where the first key information is used to characterize the basis for generating the webpage prototype.
[0088] The first generating module 503 is used to generate second key information according to the first key information, where the second key information is the inference result of the first key information.
[0089] The second generating module 504 is further used to generate a webpage prototype according to the second key information.
[0090] The output module 505 is used to determine whether the webpage prototype meets the function description information. If the webpage prototype does not meet the function description information, the process returns to the step of generating the second key information according to the first key information until the webpage prototype meets the function description information.
[0091] In some optional implementations, the parsing module 502 includes:
[0092] The keyword extraction unit is used to perform natural language processing on the text description information and extract keywords.
[0093] The keyword adding unit is used to add the keyword to the corresponding position of the preset template to obtain the first key information.
[0094] In some optional implementations, the output module 505 includes:
[0095] The target webpage prototype sample selection unit is used to select a target webpage prototype sample that matches the function description information from the preset webpage prototype samples.
[0096] The judging unit is used to judge whether the webpage prototype conforms to the functional description information according to the similarity between the target webpage prototype sample and the webpage prototype.
[0097] In some optional implementations, the webpage prototype generating device further includes:
[0098] The display module is used to display the interface of the web page prototype in response to the triggering of the web page prototype display instruction.
[0099] The modification module is used to modify the interface of the webpage prototype in response to the triggering of the webpage prototype modification instruction.
[0100] This embodiment provides another device for generating a webpage prototype, such as Figure 6 As shown, including:
[0101] The user inputs the text description into the input module. The parsing module is used to parse the text description input by the user through the input module and extract the key information therein. The generation module is used to automatically generate the Web prototype code using AI technology based on the key information extracted by the parsing module. The output module is used to output the Web prototype code generated by the generation module to the interface designer. The interface designer generates an interface based on the Web prototype code for the user to view or modify.
[0102] The input module here is Figure 5 The input module 501 in the parsing module is Figure 5 The parsing module 502 in the generating module includes Figure 5 The first generation module 503 and the second generation module 504 in the output module are Figure 5 The output module 505 in.
[0103] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0104] The web page prototype generation device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0105] The embodiment of the present invention also provides a computer device having the above Figure 5 The device for generating the web page prototype shown.
[0106] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.
[0107] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0108] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0109] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0110] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0111] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0112] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0113] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0114] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for generating a web page prototype, characterized in that: The method comprises: Receiving function description information input by a user, wherein the function description information is used to characterize the user's needs and preferences for the webpage prototype; Extracting first key information from the function description information, where the first key information is used to characterize a basis for generating a webpage prototype; Generate second key information according to the first key information, where the second key information is a result of reasoning about the first key information; Generate a webpage prototype according to the second key information; Determine whether the webpage prototype conforms to the functional description information. If the webpage prototype does not conform to the functional description information, return to the step of generating the second key information according to the first key information until the webpage prototype conforms to the functional description information.
2. The method according to claim 1, characterized in that The function description information includes text description information; and extracting the first key information from the function description information includes: Performing natural language processing on the text description information to extract keywords; The keyword is added to the corresponding position of the preset template to obtain the first key information.
3. The method according to claim 1 or 2, characterized in that: generating second key information according to the first key information, and generating a webpage prototype according to the second key information; Determining whether the webpage prototype conforms to the functional description information includes: Using a generator, generating second key information according to the first key information, generating a webpage prototype code according to the second key information, and obtaining the webpage prototype by using the webpage prototype code; A discriminator is used to determine whether the webpage prototype conforms to the functional description information.
4. The method according to claim 1 or 2, characterized in that: The determining whether the webpage prototype conforms to the functional description information includes: Selecting a target web page prototype sample that matches the functional description information from the preset web page prototype samples; According to the similarity between the target webpage prototype sample and the webpage prototype, it is determined whether the webpage prototype conforms to the functional description information.
5. The method according to claim 1 or 2, characterized in that: After the webpage prototype meets the functional description information, the method further includes: In response to the triggering of the webpage prototype display instruction, the interface of the webpage prototype is displayed.
6. The method according to claim 5, characterized in that After displaying the interface of the webpage prototype, the method further includes: In response to the triggering of the webpage prototype modification instruction, the interface of the webpage prototype is modified.
7. A device for generating a webpage prototype, characterized in that: The device comprises: An input module, used to receive function description information input by a user, wherein the function description information is used to characterize the user's needs and preferences for the webpage prototype; A parsing module, used to extract first key information from the function description information, wherein the first key information is used to characterize a basis for generating a webpage prototype; A first generating module, configured to generate second key information according to the first key information, wherein the second key information is a result of reasoning of the first key information; A second generating module, used for generating a webpage prototype according to the second key information; The output module is used to determine whether the webpage prototype conforms to the functional description information. If the webpage prototype does not conform to the functional description information, the output module returns to the step of generating the second key information according to the first key information until the webpage prototype conforms to the functional description information.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for generating a web page prototype according to any one of claims 1 to 6 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for generating a web page prototype according to any one of claims 1 to 6.
10. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to cause a computer to execute the method for generating a web page prototype according to any one of claims 1 to 6.