Customized page construction method and device, electronic equipment and computer readable medium
Patent Information
- Application Number
- CN202411383733.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2026-10-20
- Estimated Expiration
- 2044-09-30
AI Technical Summary
[0004]固定的页面设计方案往往难以满足用户的定制化需求,需要在设计基础上进一步沟通与修改,同时,在沟通过程中还容易错误理解用户的需求,因此,同样需要对构建的页面进行重复调整,从而,导致在页面重复修改展现过程中占用较多的计算资源,以及存储多个版本代码文件占用更多的内存资源
[0012]本公开的上述各个实施例具有如下有益效果:通过本公开的一些实施例的定制化页面构建方法,可以减少计算资源和内存资源的占用。具体来说,造成在页面重复修改展现过程中占用较多的计算资源,以及存储多个版本代码文件占用更多的内存资源的原因在于:固定的页面设计方案往往难以满足用户的定制化需求,需要在设计基础上进一步沟通与修改,同时,在沟通过程中还容易错误理解用户的需求,因此,同样需要对构建的页面进行重复调整。基于此,本公开的一些实施例的定制化页面构建方法,首先,考虑到固定页面的设计方案存在上述技术问题,因此在接收到用户通过用户终端发出的页面构建请求之后,创建与上述用户终端的问答会话窗口。以此,可以直接面向用户进行页面需求沟通。也因此,可以获取用户对问答会话窗口中所展示的页面构建问题的问题应答选项(例如,选择页面所展示的行业、选择页面风格等)。同时,还通过问答会话窗口获取用户对页面需求的描述信息,即页面构建需求文本。这里,考虑到页面构建存在冲突调整的问题。由此,可以通过分析用户需求进行定制化页面模拟操作。以此避免对用户需求的错误理解,以及确保页面设计与用户需求的贴合。从而,极大的避免页面重构建的情况。接着,通过构建页面对应的功能代码块,以构建定制化页面。因此,减少页面重构建的情况减少计算资源的消耗,以及因页面版本的减少,降低了内存资源的占用。
Smart Images

Figure CN119336429B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of this disclosure relate to the field of computer technology, and more specifically to customized page building methods, apparatus, electronic devices, and computer-readable media. Background Technology
[0002] Customized page building is a technology that builds pages based on user needs. Currently, the common approach to customized page building is to deploy the build environment and construct the overall page according to a fixed page design scheme.
[0003] However, when using the above method to build customized pages, the following technical problems often arise:
[0004] Fixed page design schemes often fail to meet users' customized needs, requiring further communication and modification based on the design. At the same time, misunderstandings of user needs are easy to occur during the communication process. Therefore, the constructed page also needs to be repeatedly adjusted, resulting in the consumption of more computing resources during the repeated modification and display of the page, as well as the consumption of more memory resources for storing multiple versions of code files.
[0005] The information disclosed in this background section is only intended to enhance the understanding of the background of the inventive concept, and therefore may contain information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0006] The summary portion of this disclosure is intended to provide a brief overview of the concepts, which will be described in detail in the detailed description portion. This summary portion is not intended to identify key or essential features of the claimed technical solutions, nor is it intended to limit the scope of the claimed technical solutions.
[0007] Some embodiments of this disclosure provide customized page building methods, apparatuses, electronic devices, and computer-readable media to address one or more of the technical problems mentioned in the background section above.
[0008] In a first aspect, some embodiments of this disclosure provide a customized page construction method, the method comprising: in response to receiving a page construction request issued by a user through a user terminal, creating a question-and-answer session window with the user terminal, wherein the question-and-answer session window is displayed on the user terminal, the page construction request includes initial description information of the page construction by the user, the initial description information including page purpose tags, page industry tags, and user logo images; sending a set of page construction question information corresponding to the initial description information to the user terminal through the question-and-answer session window, so that the user can select question and answer options corresponding to each page construction question information in the question-and-answer session window through the user terminal, wherein the set of page construction question information includes page construction question information corresponding to at least one of the following: page style questions, page industry classification questions, and page module questions; in response to receiving the user's question and answer options for each question in the set of page construction question information, the method further comprises: The system sends a page construction prompt to the user terminal through the question-and-answer session window to obtain the user's page construction requirement text in response to the prompt. It then performs customized page simulation operations on the page purpose tag, page industry tag, user logo image, question and answer options, and page construction requirement text to generate page simulation configuration information. This information includes a simulation configuration identifier indicating whether the page construction data simulation is successful. In response to determining that the page simulation configuration information meets preset construction conditions, it generates functional code blocks for each element of the customized page corresponding to the page purpose tag, page industry tag, user logo image, question and answer options, and page construction requirement text. Based on the page simulation configuration information and the functional code blocks, it constructs the customized page and stores the page code text of the customized page.
[0009] Secondly, some embodiments of this disclosure provide a customized page building apparatus, comprising: a creation unit configured to, in response to receiving a page building request from a user via a user terminal, create a question-and-answer session window with the user terminal, wherein the question-and-answer session window is displayed on the user terminal, and the page building request includes initial description information of the page building by the user, the initial description information including page purpose tags, page industry tags, and user logo images; a sending unit configured to, through the question-and-answer session window, send a set of page building question information corresponding to the initial description information to the user terminal, so that the user can select question answer options corresponding to each page building question information in the question-and-answer session window via the user terminal, wherein the set of page building question information includes page building question information corresponding to at least one of the following: page style questions, page industry classification questions, and page module questions; and an acquisition unit configured to, in response to receiving each question answer option from the user for the set of page building question information, [the unit then] sends a message to the user terminal. Through the aforementioned question-and-answer session window, a page construction prompt is sent to the aforementioned user terminal to obtain the user's page construction requirement text in response to the prompt. The page simulation unit is configured to perform customized page simulation operations on the aforementioned page purpose tag, page industry tag, user logo image, various question answer options, and the aforementioned page construction requirement text to generate page simulation configuration information, wherein the page simulation configuration information includes a simulation configuration identifier indicating whether the page construction data simulation is successful. The generation unit is configured to, in response to determining that the aforementioned page simulation configuration information meets preset construction conditions, generate various functional code blocks of the customized page corresponding to the aforementioned page purpose tag, page industry tag, user logo image, various question answer options, and the aforementioned page construction requirement text. The construction unit is configured to construct the customized page based on the network page simulation diagram and the various functional code blocks in the aforementioned page simulation configuration information, and to store the page code text of the customized page.
[0010] Thirdly, some embodiments of this disclosure provide an electronic device, including: one or more processors; and a storage device having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation of the first aspect above.
[0011] Fourthly, some embodiments of this disclosure provide a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect above.
[0012] The various embodiments of this disclosure have the following beneficial effects: the customized page construction method of some embodiments of this disclosure can reduce the occupation of computing and memory resources. Specifically, the reason why a lot of computing resources are occupied during the repeated modification and display of pages, and why storing multiple versions of code files occupies more memory resources, is that a fixed page design scheme often cannot meet the user's customization needs, and further communication and modification are required based on the design. At the same time, misunderstandings of user needs are easy to occur during the communication process, so the constructed page also needs to be repeatedly adjusted. Based on this, the customized page construction method of some embodiments of this disclosure, firstly, considering the above-mentioned technical problems of the fixed page design scheme, creates a question-and-answer session window with the user terminal after receiving the page construction request sent by the user through the user terminal. In this way, page requirements can be communicated directly to the user. Therefore, the user's answer options for the page construction questions displayed in the question-and-answer session window can be obtained (e.g., selecting the industry displayed on the page, selecting the page style, etc.). At the same time, the user's description information of page requirements, i.e., the page construction requirement text, is also obtained through the question-and-answer session window. Here, the problem of conflict adjustment in page construction is taken into consideration. Therefore, customized page simulation operations can be performed by analyzing user needs. This avoids misunderstandings of user requirements and ensures that the page design aligns with user needs, thus greatly reducing the need for page rebuilds. Next, customized pages are built by constructing corresponding functional code blocks. This reduces page rebuilds, decreases computational resource consumption, and lowers memory usage due to fewer page versions. Attached Figure Description
[0013] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and elements are not necessarily drawn to scale.
[0014] Figure 1 This is a flowchart of some embodiments of the customized page construction method according to this disclosure;
[0015] Figure 2 These are schematic diagrams illustrating the structure of some embodiments of the customized page building apparatus according to this disclosure;
[0016] Figure 3 This is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure;
[0017] Figure 4 These are screenshots of product interfaces from some embodiments of the customized page construction method disclosed herein. Detailed Implementation
[0018] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0019] It should also be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings. Unless otherwise specified, the embodiments and features described in this disclosure can be combined with each other.
[0020] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0021] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0022] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0023] This disclosure will now be described in detail with reference to the accompanying drawings and embodiments.
[0024] Figure 1 A flow 100 is shown, illustrating some embodiments of a customized page building method according to this disclosure. This customized page building method includes the following steps:
[0025] Step 101: In response to receiving a page building request from the user through the user terminal, create a question-and-answer session window with the aforementioned user terminal.
[0026] In some embodiments, the execution entity of the customized page building method can, in response to receiving a page building request from a user via a user terminal, create a question-and-answer session window with the user terminal. This question-and-answer session window is displayed on the user terminal. The page building request may include initial description information from the user regarding the page building. This initial description information may include: a page purpose tag, a page industry tag, and a user logo image. Here, the page purpose tag represents the purpose for which the user wants to build the page. The page industry tag represents the industry of the page content design. The user logo image can be the page's brand image. Next, a preset window function can be loaded to create the question-and-answer session window. After creation, a communication connection can be established between the server and the user terminal to enable information interaction between the server and the user terminal through the question-and-answer session window.
[0027] For specific details, please refer to the following: Figure 4 The screenshot shown illustrates the product interface. Users can select the "Add Template" option in the user terminal interface to submit a page build request.
[0028] Step 102: Send the set of page construction question information corresponding to the initial description information to the user terminal through the question and answer session window, so that the user can select the question and answer options corresponding to each page construction question information in the question and answer session window through the user terminal.
[0029] In some embodiments, the executing entity can send a set of page building question information corresponding to the initial description information to the user terminal through the question-and-answer session window, so that the user can select the question and answer options corresponding to each page building question in the question-and-answer session window. The set of page building question information may include page building question information corresponding to at least one of the following: page style questions, page industry classification questions, and page module questions. Here, the question and answer options corresponding to each page building question can represent the classification of the page that the user needs to build.
[0030] As an example, the answer options for the page industry category question could be manufacturing, such as mechanical parts manufacturing. The answer option for the page style question could be minimalist. The answer options for the page module question could be three modules, such as a logo module, a company profile module, and a product introduction module.
[0031] In some optional implementations of certain embodiments, the execution entity sends the page construction question information set corresponding to the initial description information to the user terminal through the question-and-answer session window, which may include the following steps:
[0032] The first step is to select questions from a pre-defined question library that match the page purpose tags and page industry tags mentioned above. These questions will form the page construction question information set corresponding to the initial description information. The pre-defined question library can include various types of pre-stored questions and corresponding question options. For example, style-related questions might have options such as minimalist, fresh, or sophisticated tag choices. Different question information can correspond to different tag fields. Therefore, by selecting question information with the same tags (page purpose tags and page industry tags) from the question library, we can obtain the page construction question information set.
[0033] The second step is to send the aforementioned set of page construction issues to the user terminal and display it in the Q&A session window. In practice, all the page construction issues in the set can be displayed simultaneously in the Q&A session window, or they can be displayed sequentially.
[0034] Step 103: In response to receiving the various question and answer options from the user regarding the page building question information set, a page building prompt message is sent to the user terminal through the question and answer session window to obtain the page building requirement text in response to the user's reply to the page building prompt message.
[0035] In some embodiments, the execution entity may, in response to receiving the various question and answer options from the user regarding the page construction question information set, send page construction prompts to the user terminal through the question-and-answer session window to obtain the user's page construction requirement text in response to the prompts. The page construction prompts may be information used to prompt the user to describe their requirements. For example, "Please provide a complete description of your page requirements."
[0036] In addition, page building prompts can include reference text describing the user's needs. This allows users to refer to the reference text when describing their requirements. The resulting page building requirement text includes the necessary descriptive vocabulary for page construction, and the structured text reduces the difficulty of text feature extraction.
[0037] In practice, while the above-mentioned methods for building customized pages can greatly avoid misunderstandings of the solution and reduce the number of page readjustments, the problem of design conflicts inherent in user needs still exists. This can lead to pages that are difficult to generate or crash. If the conflict is identified and the page design is attempted to avoid it, it's easy to choose the wrong design direction, causing the page to deviate from the user's customized needs, thus requiring page rebuilding. Therefore, the code files for multiple versions of the web page also consume significant storage resources. To address this second problem, and considering the available page building technologies, the following solution can be determined.
[0038] Step 104 involves performing customized page simulation operations on the page purpose tags, page industry tags, user logo images, various question answer options, and page construction requirement text to generate page simulation configuration information.
[0039] In some embodiments, the executing entity may perform customized page simulation operations on the page purpose tags, page industry tags, user logo images, various question answer options, and page construction requirement text to generate page simulation configuration information. This page simulation configuration information includes a simulation configuration identifier indicating whether the page construction data simulation has passed.
[0040] In some optional implementations of certain embodiments, the execution entity performs customized page simulation operations on the page purpose tags, page industry tags, user logo images, various question answer options, and page construction requirement text to generate page simulation configuration information, which may include the following steps:
[0041] The first step is to extract image theme tags from the aforementioned user logo image to obtain logo image theme tags. This can be done using a preset extraction function. These logo image theme tags can be used to characterize the image style of the aforementioned user logo image.
[0042] As an example, the extraction function may include, but is not limited to, at least one of the following: an image description generation model, a Show and Tell image content generation model. Specifically, objects or scenes in an image can also be classified or identified using Convolutional Neural Networks (CNNs). The names of these objects or scenes can be considered as the subject terms of the image.
[0043] The second step involves segmenting the answer options for each question and the page construction requirement text into words to generate a word segmentation set for the page construction requirement. This can be done using a preset word segmentation algorithm. Here, the word segmentation for the page construction requirement can be individual words.
[0044] As an example, word segmentation algorithms may include, but are not limited to, at least one of the following: maximum matching word segmentation algorithm, shortest path word segmentation algorithm, CLM (Chinese Language Model), average perceptron word segmentation algorithm, and CRF (conditional random field algorithm) word segmentation algorithm.
[0045] The third step involves vectorizing the aforementioned page purpose tags, page industry tags, logo image theme tags, and the generated page construction requirement word segments from the generated page construction requirement word segmentation set. This generates page purpose tag vectors, page industry tag vectors, logo image theme vectors, and requirement word segmentation vector groups. The lengths of these vectors are the same. Here, the data in the vectors corresponding to different tags are not located in different vector positions. For example, the first three digits of the vector corresponding to the page purpose tag, and the fourth to seventh digits of the vector corresponding to the page industry tag. Furthermore, different page purpose tags can have pre-set corresponding numerical values, and the lengths of these values can also differ. For example, the page purpose tag representing manufacturing might have a corresponding numerical value of "001". Therefore, the first three digits of its corresponding vector could be 001, and the data in other positions could be 0. Specifically, the numerical value corresponding to the logo image theme tag could be the theme color value of the logo image. For example, the theme color value could be 9-bit RGB data.
[0046] The fourth step is to combine the page purpose tag vector, page industry tag vector, logo image theme vector, and demand word segmentation vector groups into a page layout theme matrix. Specifically, the page purpose tag vector, page industry tag vector, logo image theme vector, and each demand word segmentation vector can be combined in a specific order to form the page layout theme matrix.
[0047] The fifth step is to perform theme analysis on the above page theme layout matrix to generate a set of theme vector correlation degrees. This can be achieved using a matrix factorization algorithm.
[0048] Step 6: In response to determining that the set of topic vector relevance scores meets a preset relevance condition, generate page simulation configuration information including a simulation configuration identifier indicating that the simulation has passed. The preset relevance condition may be that the relevance score of each topic vector in the set of topic vector relevance scores is greater than a preset relevance threshold.
[0049] Step 7: In response to the determination that the set of topic vector relevance does not meet the preset relevance conditions, generate page simulation configuration information including simulation configuration identifiers indicating that the simulation failed. In practice, a simulation failure can indicate that the user's description is complete and does not conflict, and can be used to generate a complete page.
[0050] In practice, when using the above methods to build customized pages, functional abnormalities often occur. Therefore, if one function malfunctions, the entire page needs to be rebuilt, and the entire page's code text needs to be transmitted to the user's terminal. This not only increases the consumption of computing resources but also consumes significant transmission resources. To address this third problem, and based on available page building technologies, the following solution can be determined.
[0051] Step 105: In response to determining that the page simulation configuration information meets the preset construction conditions, generate the various functional code blocks of the customized page corresponding to the page purpose tag, page industry tag, user logo image, various question answer options and page construction requirement text.
[0052] In some embodiments, the execution entity may, in response to determining that the page simulation configuration information meets preset construction conditions, generate various functional code blocks of a customized page corresponding to the page purpose tag, the page industry tag, the user logo image, the various question answer options, and the page construction requirement text. The preset construction conditions may include simulation configuration identifiers indicating that the simulation has passed, as part of the page simulation configuration information.
[0053] In some optional implementations of certain embodiments, the execution entity, in response to determining that the page simulation configuration information meets the preset construction conditions, generates various functional code blocks of a customized page corresponding to the page purpose tag, the page industry tag, the user logo image, the various question answer options, and the page construction requirement text, may include the following steps:
[0054] The first step is to select a set of page section layout information corresponding to the aforementioned page purpose tags and page industry tags from a pre-defined page section database. Each page section layout information in this set represents a web page that matches the aforementioned page purpose tags and page industry tags. Here, the page section layout information may include the overall page structure code, keywords for each module of the page, and page screenshots.
[0055] As an example, keywords may include, but are not limited to, at least one of the following: "message", "FAQ", "download", "case studies", "advertisement images", etc.
[0056] The second step involves performing feature association between the aforementioned set of page module layout information and the aforementioned set of page construction requirement word segments to select page module layout information that matches each page construction requirement word segment as a sample page layout information group. Feature association can be achieved by selecting page module layout information from the aforementioned set of page module layout information that has a correlation degree greater than a preset threshold with each page construction requirement word segment. Specifically, a word segmentation matching algorithm can be used to match each page construction requirement word segment with the topic words in the page module layout information to obtain the word segmentation correlation degree.
[0057] As an example, word segmentation matching algorithms may include, but are not limited to, at least one of the following: forward maximum matching algorithm and reverse maximum matching algorithm.
[0058] The third step is to extract the theme color from the aforementioned user logo image to obtain the logo image theme color data. This can be done using a color extraction algorithm. Here, the logo image theme color data can be RGB three-channel data.
[0059] As an example, the color extraction algorithm described above can be a function from the GD (Graphics Draw) library.
[0060] Fourth, based on the aforementioned logo image theme color data and logo image theme tags, page simulation is performed using the aforementioned sample page layout information group to obtain a simulated web page layout diagram. This simulated web page layout diagram can consist of multiple page layout modules. The simulated web page layout diagram can include the bounding boxes of each page layout module and their corresponding format and padding data. The format data can include rendering information for each page layout module. The padding data can include the network address for each page layout module. Here, the overall page structure code included in each sample page layout information in the aforementioned sample page layout information group is executed to generate a blank page, resulting in a blank page image set. Then, the position and size of the logo image in the blank page image can be adjusted to correspond to the user logo image corresponding to the aforementioned logo image theme tags. Afterwards, page rendering can be performed on the required rendering positions in each blank space according to the logo image theme color data to obtain a rendered page image set. Finally, the rendered page image set can be sent to the user terminal to obtain the user-selected rendered page image as the simulated web page layout diagram. Alternatively, a preset web page construction algorithm can be used to perform page simulation using the aforementioned sample page layout information group to obtain a simulated web page layout diagram.
[0061] The fifth step involves automatically generating initial functional code blocks for each page layout section using the formatted data included in the simulated web page layout diagram. Each initial functional code block undergoes a functional verification process. Upon successful verification, the initial functional code block is confirmed as a functional code block. Each functional code block may include the network address of the corresponding data in the populated data. The functional code block can be the front-end code of each page layout section. Secondly, initial functional code blocks for each page layout section can be constructed based on the formatted data included in the simulated web page layout diagram using a pre-defined website building script or large model. Additionally, each initial functional code block can be run, and successful execution confirms that the functional test has passed.
[0062] Optionally, the page section data in the above-mentioned page section database can be generated through the following steps:
[0063] The first step is to obtain the webpage data corresponding to each of the pre-defined network addresses, thus creating a webpage dataset. This network data may include page code text and page screenshots.
[0064] The second step is to classify the web page data in each web page dataset to generate a set of classified web page data groups.
[0065] The third step involves extracting page section layout information from the categorized page data in the categorized webpage data set and storing it in a page section database. This can be done by extracting keywords from page screenshots using natural language processing methods to obtain a keyword set. Then, the keyword set, page code text, and page screenshots can be used to determine the page section layout information.
[0066] Step 106: Based on the page simulation configuration information and various functional code blocks, construct a customized page and store the page code text of the customized page.
[0067] In some embodiments, the execution entity may construct a customized page based on the page simulation configuration information and the various functional code blocks, and store the page code text of the customized page.
[0068] In some optional implementations of some embodiments, the execution entity constructs a customized page based on the page simulation configuration information and the various functional code blocks, and stores the page code text of the customized page, which may include the following steps:
[0069] The first step is to create the page frame code text corresponding to the simulated web page layout diagram included in the page simulation configuration information above. This page frame code text can include the code that generates the page frame for the simulated web page layout diagram. Here, the page frame code text corresponding to the simulated web page layout diagram can be generated using the aforementioned website building script or large model. In practice, running the page frame code text will display the actual page layout structure in the browser.
[0070] The second step involves integrating the functional code blocks into their corresponding positions within the simulated network page layout diagram included in the page simulation configuration information. Each functional code block can be mapped to a corresponding function name in the page frame code text, based on its function name in the page frame code. This allows the functional code blocks to be added to their respective positions within the page frame code text to generate the page code file.
[0071] The third step is to run the page code file mentioned above to build a customized page.
[0072] Optionally, the aforementioned executing entity may also send the page code file of the customized page to the user terminal for display on the user terminal.
[0073] Steps 105-106 and their related content, as an inventive point of this disclosure, solve the third technical problem mentioned in the background: "When verifying the functionality of the entire page, if any function is abnormal, the entire page needs to be rebuilt. Simultaneously, the code text of the entire page needs to be transmitted between the page and the user terminal, thus increasing the consumption of computing resources and consuming more transmission resources." The factors leading to increased computing resource consumption and higher transmission resource consumption are often as follows: When verifying the functionality of the entire page, if any function is abnormal, the entire page needs to be rebuilt. Simultaneously, the code text of the entire page needs to be transmitted between the page and the user terminal. Solving these factors can reduce the consumption of computing resources and lower the consumption of transmission resources. To achieve this effect, firstly, by introducing a page module database, it can be used to refer to other page layout information in the same industry during the page construction process to filter out usable page layout information. Then, through page simulation, not only can the page be adjusted to better meet user needs, but a simulated network page layout diagram can also be constructed to display the page. Furthermore, because the constructed network page layout diagram is divided into various page layout modules... Therefore, the code blocks corresponding to each page layout module can be individually verified. This allows for checking for anomalies in each page layout module. Finally, if no anomalies are found in any of the page layout modules, the functional code blocks are integrated into their corresponding positions in the page framework code text according to the page positions in the simulated network page layout diagram included in the page simulation configuration information, thus generating the page code file. This completes the construction of the customized page. This greatly avoids the need to rebuild and adjust the entire page due to functional anomalies after the page is constructed. Furthermore, it reduces the consumption of computing resources and the waste of transmission resources caused by repeatedly sending page code files.
[0074] Optionally, the aforementioned implementing entity may also perform the following steps:
[0075] In response to the determination that the page simulation configuration information does not meet the preset construction conditions, supplementary page construction information is generated based on the answer options for each question and the page construction requirement text. This supplementary information includes supplementary questions for user responses. The fact that the page simulation configuration information does not meet the preset construction conditions indicates that the simulation failed.
[0076] Optionally, the aforementioned executing entity may generate supplementary page construction information based on the above-mentioned question answer options and page construction requirement text, which may include the following steps:
[0077] The first step is to determine whether there are semantically conflicting question and answer options among the aforementioned question and answer choices, based on a pre-defined list of conflicting question options. This pre-defined list can be a list of conflicting words stored as conflict relationships beforehand. Secondly, the existence of conflicting relationships between individual question and answer options can be detected from this list.
[0078] As examples, conflicting issues can be industry-specific, such as a conflict between manufacturing and services. Conflicting issues can also be page module conflicts, such as a user description stating "logo image placed in the top left corner of the page" versus "logo image placed in the middle of the page." Furthermore, there can be page style conflicts, such as a user selecting "simple" as the answer option, but the user description using the style term "rich."
[0079] The second step is to identify the corresponding question answer options as conflicting options in response to the existence of semantic conflicts, thus obtaining a conflicting option group.
[0080] The third step is to perform semantic word segmentation on the aforementioned page construction requirement text to generate semantic word groups. This can be achieved using the word segmentation algorithm described above.
[0081] The fourth step involves performing semantic conflict analysis on each semantic segment in the aforementioned text semantic segmentation group and each question-answer option to generate conflicting semantic segmentation groups. Specifically, the aforementioned question-answer option conflict list can be used again to determine whether there are any question conflicts between each semantic segment in the aforementioned text semantic segmentation group and the corresponding words in each question-answer option. Additionally, natural language processing algorithms can be used to vectorize the words, and the distance values between the vectors can be compared. Conflicting semantic segmentations are identified when the distance value is greater than a preset distance threshold.
[0082] The fifth step involves generating text from the aforementioned conflicting option groups and conflicting semantic segmentation groups to obtain supplementary information for page construction. This can be achieved by calling the network interface of a large language model to generate text from the conflicting option groups and conflicting semantic segmentation groups, thus obtaining the supplementary information for page construction.
[0083] The above-described step 104 and its two optional steps, as an inventive point of this disclosure, solve the second technical problem mentioned in the background: "During the page construction process, the page design scheme itself has design conflicts, which makes it difficult to generate the page or causes it to crash. If the conflict problem is located and the page design is avoided, it is easy to choose the wrong design direction, causing the page to deviate from the user's customized needs, thus requiring page construction again. Therefore, the code files corresponding to multiple versions of web pages still need to occupy a lot of storage resources." The factors that cause the code files corresponding to multiple versions of web pages to occupy a lot of storage resources are often as follows: During the page construction process, the page design scheme itself has design conflicts, which makes it difficult to generate the page or causes it to crash. If the conflict problem is located and the page design is avoided, it is easy to choose the wrong design direction, causing the page to deviate from the user's customized needs, thus requiring page construction again. If the above factors are solved, the storage resource occupation can be reduced. To achieve this effect, firstly, considering the problem of design conflicts in the page design scheme itself, page construction is piloted in advance through customized page simulation operations. Specifically, by extracting the logo image's theme tags, the thematic direction of the logo image can be determined. Then, by segmenting the question answer options and the aforementioned page construction requirement text, the page construction requirement words can be extracted. To simulate the operation using tags and word segmentation, vectorization is used to convert the tags and word segmentation into vector forms suitable for comparison. Next, theme analysis can be used to determine the degree of correlation between vectors. Therefore, it is possible to initially determine whether there are significant design conflicts between the user's description text and the user's question answer options. Subsequently, in the case of conflicts, a pre-built question option conflict list can be introduced to locate the conflicting word segments. Thus, the generated supplementary page construction information can be sent to the user so that the user can adjust the requirement description text, i.e., adjust the design scheme to resolve design conflicts. This avoids problems such as pages being difficult to generate, crashing, or generating pages with errors. Furthermore, it reduces the need for multiple page reconstructions. As a result, the number of page versions built can be reduced, thereby reducing memory resource consumption.
[0084] The various embodiments of this disclosure have the following beneficial effects: the customized page construction method of some embodiments of this disclosure can reduce the occupation of computing and memory resources. Specifically, the reason why a lot of computing resources are occupied during the repeated modification and display of pages, and why storing multiple versions of code files occupies more memory resources, is that a fixed page design scheme often cannot meet the user's customization needs, and further communication and modification are required based on the design. At the same time, misunderstandings of user needs are easy to occur during the communication process, so the constructed page also needs to be repeatedly adjusted. Based on this, the customized page construction method of some embodiments of this disclosure, firstly, considering the above-mentioned technical problems of the fixed page design scheme, creates a question-and-answer session window with the user terminal after receiving the page construction request sent by the user through the user terminal. In this way, page requirements can be communicated directly to the user. Therefore, the user's answer options for the page construction questions displayed in the question-and-answer session window can be obtained (e.g., selecting the industry displayed on the page, selecting the page style, etc.). At the same time, the user's description information of page requirements, i.e., the page construction requirement text, is also obtained through the question-and-answer session window. Here, the problem of conflict adjustment in page construction is taken into consideration. Therefore, customized page simulation operations can be performed by analyzing user needs. This avoids misunderstandings of user requirements and ensures that the page design aligns with user needs, thus greatly reducing the need for page rebuilds. Next, customized pages are built by constructing corresponding functional code blocks. This reduces page rebuilds, decreases computational resource consumption, and lowers memory usage due to fewer page versions.
[0085] Further reference Figure 2 As an implementation of the methods shown in the above figures, this disclosure provides some embodiments of a customized page building apparatus, which are similar to... Figure 1 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.
[0086] like Figure 2As shown, the customized page building apparatus 200 in some embodiments includes: a creation unit 201, a sending unit 202, an acquisition unit 203, a page simulation unit 204, a generation unit 205, and a building unit 206. The creation unit 201 is configured to, in response to receiving a page building request from a user via a user terminal, create a question-and-answer session window with the user terminal. The question-and-answer session window is displayed on the user terminal. The page building request includes initial description information from the user regarding the page building, including page purpose tags, page industry tags, and a user logo image. The sending unit 202 is configured to, through the question-and-answer session window, send a set of page building question information corresponding to the initial description information to the user terminal, allowing the user to select answer options for each page building question in the question-and-answer session window. The set of page building question information includes page building question information corresponding to at least one of the following: page style questions, page industry classification questions, and page module questions. The obtaining unit 203 is configured to, in response to receiving each answer option from the user for the page building question information set, send the request to the user terminal via the question-and-answer session window. The terminal sends a page building prompt message to obtain the user's page building requirement text in response to the prompt message; the page simulation unit 204 is configured to perform customized page simulation operations on the page purpose tag, the page industry tag, the user logo image, the question answer options, and the page building requirement text to generate page simulation configuration information, wherein the page simulation configuration information includes a simulation configuration identifier indicating whether the page building data simulation is successful; the generation unit 205 is configured to generate various functional code blocks of the customized page corresponding to the page purpose tag, the page industry tag, the user logo image, the question answer options, and the page building requirement text in response to determining that the page simulation configuration information meets the preset construction conditions; the construction unit 206 is configured to construct the customized page based on the network page simulation diagram and the functional code blocks in the page simulation configuration information, and to store the page code text of the customized page.
[0087] It is understandable that the units described in the device 200 are related to the reference. Figure 1 The steps in the described method correspond to each other. Therefore, the operations, features, and beneficial effects described above for the method also apply to the device 200 and the units contained therein, and will not be repeated here.
[0088] The following is for reference. Figure 3 It shows a schematic diagram of the structure of an electronic device (e.g., a computing device) 300 suitable for implementing some embodiments of the present disclosure. Figure 3The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of this disclosure.
[0089] like Figure 3 As shown, the electronic device 300 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory 302 or a program loaded from a storage device 308 into a random access memory 303. The random access memory 303 also stores various programs and data required for the operation of the electronic device 300. The processing unit 301, the read-only memory 302, and the random access memory 303 are interconnected via a bus 304. An input / output interface 305 is also connected to the bus 304.
[0090] Typically, the following devices can be connected to I / O interface 305: input devices 306 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 307 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 308 including, for example, magnetic tapes, hard disks, etc.; and communication devices 309. Communication device 309 allows electronic device 300 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 3 An electronic device 300 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively. Figure 3 Each box shown can represent a device or multiple devices as needed.
[0091] In particular, according to some embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, some embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 309, or installed from a storage device 308, or installed from a read-only memory 302. When the computer program is executed by the processing device 301, it performs the functions defined in the methods of some embodiments of this disclosure.
[0092] It should be noted that, in some embodiments of this disclosure, the computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In some embodiments of this disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In some embodiments of this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0093] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.
[0094] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device. The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: In response to receiving a page construction request from a user via a user terminal, create a question-and-answer session window with the user terminal, wherein the question-and-answer session window is displayed on the user terminal, and the page construction request includes initial description information from the user regarding page construction, including page purpose tags, page industry tags, and a user logo image; Through the question-and-answer session window, send a set of page construction question information corresponding to the initial description information to the user terminal, allowing the user to select question and answer options corresponding to each page construction question in the question-and-answer session window, wherein the set of page construction question information includes page construction question information corresponding to at least one of the following: page style questions, page industry classification questions, and page module questions; In response to receiving user information regarding the aforementioned page construction questions... The system sends page construction prompts to the user terminal through the question-and-answer session window for each question and answer option in the information set, in order to obtain the user's page construction requirement text in response to the prompts. It then performs customized page simulation operations on the page purpose tag, page industry tag, user logo image, question and answer options, and page construction requirement text to generate page simulation configuration information. This information includes a simulation configuration identifier indicating whether the page construction data simulation is successful. In response to determining that the page simulation configuration information meets preset construction conditions, it generates functional code blocks for each customized page corresponding to the page purpose tag, page industry tag, user logo image, question and answer options, and page construction requirement text. Based on the page simulation configuration information and the functional code blocks, it constructs the customized page and stores the page code text of the customized page.
[0095] Computer program code for performing operations of some embodiments of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0096] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0097] The units described in some embodiments of this disclosure can be implemented in software or hardware. The described units can also be housed in a processor; for example, a processor may be described as including a creation unit, a sending unit, an acquisition unit, a page simulation unit, a generation unit, and a construction unit. The names of these units do not necessarily limit the unit itself; for example, a construction unit may also be described as a "unit for building customized pages."
[0098] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0099] The above description is merely a selection of preferred embodiments of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in the embodiments of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features with similar functions disclosed in the embodiments of this disclosure.
Claims
1. A method for building a customized page, comprising: In response to receiving a page building request from a user via a user terminal, a question-and-answer session window is created with the user terminal, wherein the question-and-answer session window is displayed on the user terminal, and the page building request includes initial description information of the page building by the user, including page purpose tags, page industry tags, and user logo image. Through the question-and-answer session window, the set of page building question information corresponding to the initial description information is sent to the user terminal, so that the user can select the question answer options corresponding to each page building question information in the question-and-answer session window through the user terminal. The set of page building question information includes page building question information corresponding to at least one of the following: page style question, page industry classification question, and page module question. In response to receiving the various question answer options from the user regarding the page building question information set, a page building prompt message is sent to the user terminal through the question and answer session window to obtain the page building requirement text replied by the user in response to the page building prompt message; Customized page simulation operations are performed on the page purpose tags, page industry tags, user logo images, various question answer options, and page construction requirement text to generate page simulation configuration information, including: The user logo image is subjected to image theme tag extraction to obtain logo image theme tags; The answer options for each question and the page construction requirement text are segmented into words to generate a segmented word set for the page construction requirement. The page purpose tag, the page industry tag, the logo image theme tag, and each generated page construction requirement word segment in the generated page construction requirement word segmentation set are vectorized to generate page purpose tag vector, page industry tag vector, logo image theme vector, and requirement word segmentation vector group; The page purpose tag vector, page industry tag vector, logo image theme vector and each demand word segmentation vector in the demand word segmentation vector group are combined into a page layout theme matrix; Perform theme analysis on the page layout theme matrix to generate a set of theme vector correlation degrees; In response to the determination that the set of topic vector relevance meets the preset relevance conditions, page simulation configuration information is generated, including a simulation configuration identifier that represents the simulation passing. In response to the determination that the set of topic vector relevance does not meet the preset relevance conditions, page simulation configuration information is generated, including simulation configuration identifiers that indicate that the simulation failed. In response to determining that the page simulation configuration information meets the preset construction conditions, generate various functional code blocks of the customized page corresponding to the page purpose tag, the page industry tag, the user logo image, the various question answer options and the page construction requirement text; Based on the page simulation configuration information and the various functional code blocks, a customized page is constructed, and the page code text of the customized page is stored.
2. The method according to claim 1, wherein, The method further includes: The customized page's code file is sent to the user's terminal for display.
3. The method according to claim 1, wherein, The method further includes: In response to determining that the page simulation configuration information does not meet the preset construction conditions, supplementary page construction information is generated based on the various question answer options and the page construction requirement text, wherein the supplementary page construction information includes supplementary questions for user answers.
4. The method according to claim 3, wherein, Based on the answer options for each question and the page construction requirement text, supplementary page construction information is generated, including: Based on a preset list of conflicting question options, determine whether there are semantically conflicting question and answer options among the various question and answer options; In response to the existence of semantic conflicts, the corresponding question answer options are identified as conflicting options, resulting in a conflicting option group; The text describing the page construction requirements is subjected to semantic word segmentation to generate semantic word groups; Semantic conflict analysis is performed on each text semantic segment in the text semantic segmentation group and each question response option to generate conflict semantic segmentation groups; Text generation is performed on the conflict option group and the conflict semantic segmentation group to obtain supplementary information for page construction.
5. The method according to claim 1, wherein, The step of sending a page-based question information set corresponding to the initial description information to the user terminal through the question-and-answer session window includes: Select question information that matches the page purpose tag and page industry tag from the preset question library as the page construction question information set corresponding to the initial description information; The page constructs a set of question information, which is then sent to the user terminal and displayed in the question-and-answer session window.
6. A customized page building apparatus, comprising: The creation unit is configured to, in response to receiving a page build request from a user via a user terminal, create a question-and-answer session window with the user terminal, wherein the question-and-answer session window is displayed on the user terminal, and the page build request includes initial description information of the page build by the user, including page purpose tags, page industry tags, and user logo images. The sending unit is configured to send a set of page building question information corresponding to the initial description information to the user terminal through the question-and-answer session window, so that the user can select the question answer options corresponding to each page building question information in the question-and-answer session window through the user terminal. The set of page building question information includes page building question information corresponding to at least one of the following: page style question, page industry classification question, and page module question. The acquisition unit is configured to, in response to receiving the various question answer options of the user’s question information set for page construction, send page construction prompt information to the user terminal through the question-and-answer session window to obtain the page construction requirement text replied by the user in response to the page construction prompt information; The page simulation unit is configured to perform customized page simulation operations on the page purpose tag, the page industry tag, the user logo image, the various question answer options, and the page construction requirement text to generate page simulation configuration information. This includes: extracting image theme tags from the user logo image to obtain logo image theme tags; performing word segmentation on the various question answer options and the page construction requirement text to generate a page construction requirement word segmentation set; and vectorizing the page purpose tag, the page industry tag, the logo image theme tag, and each generated page construction requirement word segment in the generated page construction requirement word segmentation set to generate the page. The system comprises: a purpose tag vector, a page industry tag vector, a logo image theme vector, and a demand segmentation vector group; combining each demand segmentation vector in the purpose tag vector, page industry tag vector, logo image theme vector, and demand segmentation vector group into a page layout theme matrix; performing theme analysis on the page layout theme matrix to generate a theme vector relevance set; in response to determining that the theme vector relevance set meets a preset relevance condition, generating page simulation configuration information including a simulation configuration identifier indicating that the simulation passed; in response to determining that the theme vector relevance set does not meet the preset relevance condition, generating page simulation configuration information including a simulation configuration identifier indicating that the simulation failed. The generation unit is configured to generate, in response to determining that the page simulation configuration information meets preset construction conditions, various functional code blocks of a customized page corresponding to the page purpose tag, the page industry tag, the user logo image, the various question answer options, and the page construction requirement text; The building unit is configured to build a customized page based on the network page simulation diagram and the various functional code blocks in the page simulation configuration information, and to store the page code text of the customized page.
7. An electronic device, comprising: One or more processors; Storage device, on which one or more programs are stored, When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-5.
8. A computer-readable medium having a computer program stored thereon, wherein, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-5.
Citation Information
Patent Citations
Page generation method and device applied to webpage application and electronic equipment
CN117573123A
Management page generation method and device, electronic equipment and storage medium
CN118605873A