Page display method and device, electronic equipment and computer readable medium

Through the matching technology of word segmentation extraction and page template library, the problems of code errors and large computing resource occupancy during the page display process are solved, and efficient page construction and display are achieved.

CN119473289APending Publication Date: 2025-02-18SHENZHEN LIANYA NETWORK TECHNOLOGY CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411559484.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

During the page display process, writing the preset page style code is prone to errors, making it difficult to display the page, and it requires more computing resources to be used for code verification and adjustment.

Method used

By obtaining the user's page construction requirements description information, word segmentation is extracted to generate a page construction description word segmentation set, select matching page templates from the preset page template library, and allow users to perform according to the section sample diagram in the page template debugging area Combination and adjustment, and finally generate and send page configuration code text for page display.

Benefits of technology

It reduces the use of computing resources, avoids code errors and repeated writing, and improves the efficiency of page construction and presentation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473289A_ABST
    Figure CN119473289A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a page display method and device, electronic equipment and a computer readable medium. A specific embodiment of the method comprises the steps of obtaining page construction demand description information; performing word segmentation extraction on the page construction demand description information to generate a page construction description word segmentation set; selecting a page template matched with each page construction description segmented word in the page construction description segmented word set from a preset page template library as a selected page template set; sending each selected page template in the selected page template set to a user terminal for a user to select; performing code configuration on the adjusted page template to generate a page configuration code text; and sending the page configuration code text to the user terminal, so that the user terminal operates the page configuration code text to perform page display. According to the embodiment, occupation of computing resources can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a page display method, device, electronic device, and computer-readable medium. Background Art

[0002] Page display is a technology that sends pages built according to user needs to user terminals for page display. At present, when performing page display, the commonly used method is: for different pages, codes need to be written according to pre-set page styles for page display.

[0003] However, in practice, it is found that when the above method is used to display pages, the following technical problems often occur:

[0004] Code errors are prone to occur during the code writing process according to the preset page style, which makes it difficult to display the page. Therefore, the code needs to be checked and adjusted, which requires more computing resources.

[0005] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention

[0006] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0007] Some embodiments of the present disclosure propose a page display method, device, electronic device, and computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.

[0008] In a first aspect, some embodiments of the present disclosure provide a page display method, the method comprising: in response to receiving a page construction request sent by a user terminal, obtaining page construction requirement description information; performing word segmentation extraction on the above-mentioned page construction requirement description information to generate a page construction description word set; selecting a page template that matches each page construction description word in the above-mentioned page construction description word set from a preset page template library as a selected page template set, wherein each page template in the above-mentioned page template library is composed of multiple detachable page sections, and each detachable page section corresponds to a section sample diagram; each selected page template in the above-mentioned selected page template set is sent to The above-mentioned user terminal is provided for user selection, wherein a page template debugging area is provided in the page of the user terminal, so that the user can combine and adjust the detachable page sections in different selected page templates according to the corresponding section sample diagram in the above-mentioned page template debugging area, and save and upload the selected selected page template or the adjusted page template as the target page template; in response to receiving that the target page template uploaded by the above-mentioned user terminal is the adjusted page template, code configuration is performed on the above-mentioned adjusted page template to generate a page configuration code text; and the above-mentioned page configuration code text is sent to the above-mentioned user terminal, so that the above-mentioned user terminal can run the above-mentioned page configuration code text for page display.

[0009] In a second aspect, some embodiments of the present disclosure provide a page display device, which includes: an acquisition unit, configured to acquire page construction requirement description information in response to receiving a page construction request sent by a user terminal; a word segmentation extraction unit, configured to perform word segmentation extraction on the above-mentioned page construction requirement description information to generate a page construction description word set; a selection unit, configured to select page templates that match each page construction description word in the above-mentioned page construction description word set from a preset page template library as a selected page template set, wherein each page template in the above-mentioned page template library is composed of multiple detachable page sections, and each detachable page section corresponds to a section sample diagram; a sending unit, configured to send each selected page template in the above-mentioned selected page template set to a server. The post-page template is sent to the above-mentioned user terminal for user selection, wherein a page template debugging area is set in the page of the user terminal, so that the user can combine and adjust the detachable page sections in different selected post-page templates according to the corresponding section sample diagram in the above-mentioned page template debugging area, and save and upload the selected post-page template or the adjusted page template as the target page template; the code configuration unit is configured to perform code configuration on the above-mentioned adjusted page template in response to receiving the target page template uploaded by the above-mentioned user terminal as the adjusted page template, so as to generate a page configuration code text; the page display unit is configured to send the above-mentioned page configuration code text to the above-mentioned user terminal, so that the above-mentioned user terminal can run the above-mentioned page configuration code text for page display.

[0010] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and 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 manner of the above-mentioned first aspect.

[0011] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.

[0012] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the page display method of some embodiments of the present disclosure, the occupation of computing resources can be reduced. Specifically, the reason for occupying more computing resources is that code errors are prone to occur during the code writing process according to the preset page style, which makes it difficult to display the page, and thus, the code needs to be checked and adjusted. Based on this, the page display method of some embodiments of the present disclosure, first, when receiving the page building request sent by the user terminal, simultaneously obtains the user's page building demand description information. Then, through word segmentation extraction, the demand word segmentation of the page to be built by the user is determined. Also because the page building description word segmentation is extracted, it is convenient to select a matching page template from a preset page template library. The preset page template is composed of a plurality of detachable page sections, and each detachable page section corresponds to a section sample diagram. Therefore, after sending it to the user terminal, the user can freely combine and adjust the section sample diagrams of different page templates according to the needs. As a result, there is no need for the user to design the page separately, avoiding the situation where the written code conflicts or does not conform to the design. Afterwards, the target page template saved and uploaded by the user is received, and the code configuration can be performed on it. Because each detachable page section in the target page template is pre-set, the code corresponding to each detachable page section in the target page template can be used for code configuration. As a result, code errors can be greatly avoided. Thus, the code text corresponding to the page that meets the user's needs can be sent to the user terminal for page display. In addition, the code verification and recompilation adjustment can be avoided, thereby reducing the occupation of computing resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0014] Figure 1is a flow chart of some embodiments of the page display method according to the present disclosure;

[0015] Figure 2 It is a schematic diagram of the structure of some embodiments of the page display device according to the present disclosure;

[0016] Figure 3 is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure;

[0017] Figure 4 It is a screenshot of a template selection interface of a user terminal of some embodiments of the page display method of the present disclosure;

[0018] Figure 5 It is a screenshot of the template attribute adjustment interface of the user end of some embodiments of the page display method of the present disclosure. DETAILED DESCRIPTION

[0019] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0020] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0021] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0022] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0023] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0024] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0025] Figure 1The process 100 of some embodiments of the page display method according to the present disclosure is shown. The page display method includes the following steps:

[0026] Step 101, in response to receiving a page building request sent by a user terminal, obtaining page building requirement description information.

[0027] In some embodiments, the execution subject of the page display method can obtain page construction requirement description information in response to receiving a page construction request sent by a user terminal in a wired or wireless manner. The page construction request can be a request for building a page sent by a user through a user terminal. The page construction requirement description information can be a natural language description text of the user's page construction requirements.

[0028] It should be noted that the above-mentioned wireless connection methods may include but are not limited to 3G / 4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.

[0029] Step 102: perform word segmentation extraction on the page construction requirement description information to generate a page construction description word set.

[0030] In some embodiments, the execution subject may perform word segmentation extraction on the page construction requirement description information to generate a page construction description word set, wherein the word segmentation extraction may be to extract keywords from the page construction requirement description information.

[0031] In some optional implementations of some embodiments, the execution subject extracts words from the page construction requirement description information to generate a page construction description word set, which may include the following steps:

[0032] The first step is to perform an overall demand analysis on the above page construction demand description to generate an overall demand segmentation set. The text of the above page construction demand description can be input into a preset large language model interface to generate an overall demand segmentation set. Each overall demand segmentation can represent the overall characteristics of the text of the page construction demand description.

[0033] As an example, the text of the page construction requirement description may be "I want to build a simple shopping website". Then the generated overall requirement word set may include two overall requirement word sets: "simple" and "shopping website".

[0034] The second step is to perform sentence splitting on the page building requirement description to obtain a split sentence set. The sentence splitting can be performed according to symbols (such as commas or periods) in the page building requirement description text to obtain a split sentence set.

[0035] The third step is to extract sentence segmentation from each of the split sentences in the above split sentence set to generate a sentence segmentation set. The sentence segmentation set can be obtained by extracting sentence segmentation from each of the split sentences using a preset segmentation extraction algorithm.

[0036] As an example, the above-mentioned word segmentation extraction algorithm may include but is not limited to at least one of the following: the word segmentation algorithm may include but is 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, CRF (conditional random field algorithm) word segmentation algorithm.

[0037] The fourth step is to combine the overall demand segmentation set and the sentence segmentation set into a page construction description segmentation set. In which, each overall demand segmentation and each sentence segmentation can be determined as a page construction description segmentation to obtain a page construction description segmentation set.

[0038] In practice, different page constructions often require redesigning the page and rewriting the code, which makes it difficult to avoid duplicate content. Therefore, a complete reconstruction is not only prone to page construction errors, making it difficult to meet user needs, but also reduces the efficiency of page display and causes more computing resources to be occupied during the page construction process. In response to this second problem, combined with the page construction technology we have, we decided to adopt the following solution.

[0039] Step 103 , selecting a page template that matches each page construction description word in the page construction description word set from a preset page template library as a selected page template set.

[0040] In some embodiments, the execution entity may select from a preset page template library a page template that matches each page construction description word in the page construction description word set as a selected page template set. Each page template in the page template library may be composed of a plurality of detachable page sections. Each detachable page section may correspond to a section sample diagram. Secondly, the page template library may also store page code text corresponding to each page template. Each page code text may include page code blocks corresponding to each detachable page section of a page template.

[0041] In some optional implementations of some embodiments, each page template in the preset page template library is provided with a corresponding associated word field. And the execution subject selects page templates matching each page construction description word in the page construction description word set from the preset page template library as the selected page template set, which may include the following steps:

[0042] In the first step, for each page construction description segment in the page construction description segment set, determine the associated word field in the page template library that matches the page construction description segment, wherein the match may be that the associated words of the page construction description segment and the associated word field are the same.

[0043] In the second step, the page templates corresponding to the determined associated word fields are determined as the selected page templates to obtain a selected page template set.

[0044] Step 104: Send each selected page template in the selected page template set to the user terminal for user selection.

[0045] In some embodiments, the execution entity may send each selected page template in the selected page template set to the user terminal for selection by the user. A page template debugging area is provided in the page of the user terminal, so that the user can combine and adjust the separable page sections in different selected page templates according to the corresponding section sample diagram in the page template debugging area, and can save and upload the selected selected page template or the adjusted page template as the target page template.

[0046] As an example, the selected page template displayed in the page template display area can be as follows: Figure 4 Therefore, the user can directly select the desired template as the target page template by clicking the "Select Template" option.

[0047] Optionally, the user issues a page building request through a page of a page building website accessed by a user terminal, wherein a page template debugging area is provided in the page, and the page may also include a pre-set page template display area. The target page template may be saved and uploaded by following the steps below:

[0048] In the first step, after receiving each selected page template, the user terminal visualizes each selected page template in the page template display area, wherein the page template display area can display the complete page image of each selected template or the page thumbnail of the selected template.

[0049] In the second step, in response to receiving the user drag command, the detachable page section in the selected page template displayed in the page template display area is moved to the above-mentioned page template debugging area according to the user drag command, so as to be combined into the adjusted page template in the above-mentioned page template debugging area. Among them, the user can drag the detachable page section in the selected page template displayed in the page template display area to the page template debugging area. The size of the detachable page section can also be adjusted and different sections can be combined and spliced ​​in the page template debugging area.

[0050] As an example, Figure 5 As shown, users can also adjust the properties of the template during the template combination process. During the page construction process, the adjusted properties can be combined into a page property modification file and transmitted to the server. During the page use process, users can also directly adjust the data of the page code by modifying the properties of the template to adjust the page structure.

[0051] The third step is to determine at least one selected page template or adjusted page template as the target page template, and perform the save and upload operations in response to receiving the save and upload trigger instructions for the target page template. If the user does not perform combination splicing and directly selects a page template, it can be uploaded as the target page template. If the user performs combination splicing, the combined target can be saved and uploaded.

[0052] Optionally, the above page template library can be constructed by following the steps below:

[0053] In the first step, each sample web page data acquired in advance is subjected to information clearing processing to generate a blank sample web page set. Each sample web page data may include a sample web page code text. The sample web page data may be a code text of a sample web page. Secondly, the code text of each sample web page may be read to identify the link address in the web page. Finally, each link address may be deleted, and the code text after the link address is deleted may be determined as the cleared code text. The network page corresponding to the cleared code text may be determined as a blank sample web page.

[0054] In the second step, code segmentation is performed on the sample web page code text corresponding to each blank sample web page in the above blank sample web page set to generate segmented code block groups, and obtain a segmented code block group set. Among them, each segmented code block in each segmented code block group in the above segmented code block group set can correspond to each separable page section in a blank sample web page. Here, code segmentation can be performed according to the layers (for example, div (DIVision) tags) in the sample web page code text. The code block corresponding to each layer can be used as a segmented code block.

[0055] In the third step, according to the page position corresponding to each of the above-mentioned segmented code blocks in the above-mentioned segmented code block group set, each blank sample web page in the blank sample web page set is screenshotted to generate a page sample view group set. Each page sample view can represent a separable page section. Here, the page position corresponding to each segmented code block can be read, and a screenshot can be taken at the page position as a page sample view.

[0056] The fourth step is to extract keywords from each page sample view in the above page sample view group set to generate a sample view keyword group set. The sample view keyword can be extracted from the page sample view by a preset extraction function. Here, the keyword can represent the function or view style of the page sample view. For example, the keyword can be: simple search, green background, sports and health, etc.

[0057] 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 the image may be classified or recognized by a convolutional neural network (CNN). The names of these objects or scenes may be regarded as keywords of the image.

[0058] The fifth step is to add each sample view keyword in the above sample view keyword group set to the associated word field, and add the storage address of the sample web page code text, segmented code block group and page sample view group corresponding to the same sample web page to the page template library.

[0059] The above steps 103-104 and their related contents, as an inventive point of an embodiment of the present disclosure, solve the second technical problem mentioned in the background technology, "Different page constructions often require redesigning and coding of pages, and it is difficult to avoid duplicate content. Therefore, complete reconstruction is not only prone to page construction errors, making it difficult to meet user needs, but also reduces the efficiency of page display, and also leads to the occupation of more computing resources during the page construction process". The factors that lead to the occupation of more computing resources during the page construction process are often as follows: Different page constructions often require redesigning and coding of pages, and it is difficult to avoid duplicate content. Therefore, complete reconstruction is not only prone to page construction errors, making it difficult to meet user needs, but also reduces the efficiency of page display. If the above factors are solved, the occupation of computing resources can be reduced. In order to achieve this effect, first, by setting a page template display area and a page template debugging area on the page end where the page construction website accessed by the user terminal is located, it is convenient for users to freely combine templates. Before this, the page template is divided into multiple detachable page sections from the overall page according to the layer structure of the page through sectioning. As a result, it is convenient for users to splice and combine pages from the layer structure level. In this way, user satisfaction and personalized needs are improved. It replaces the step of page design before page construction. At the same time, because of the introduction of page templates, users can freely combine pages based on page templates until the target page template that meets the needs is determined. In addition, by introducing a page template library, it can be used to store a large number of preset page templates. Here, by clearing the information of a large number of acquired page templates and dividing them into sections, they can be better stored and used for user page splicing. Secondly, the corresponding split page code is also stored for the corresponding section of the divided page. It makes it possible to quickly combine the corresponding page code according to the target page template uploaded by the user. As a result, the repeated writing and running of code is greatly avoided. As a result, not only can the efficiency of page construction and display be greatly improved, but also the consumption of computing resources during page construction and display can be reduced.

[0060] By introducing the page section database, it can be used to refer to other page layout information of the same industry during the page construction process. To filter out the available page layout information. Then, through page simulation, not only can the page be adjusted to be more in line with user needs, but also the page can be displayed by constructing a simulated network page layout diagram. Then, because each page layout section is divided in the constructed network page layout diagram. Therefore, the code blocks corresponding to each constructed page layout section can be respectively checked for code. Thus, it can be used to check whether there are abnormalities in each page layout section. Finally, in the case that there are no abnormalities in each page layout section, the above-mentioned each function code block is integrated into the corresponding position in the above-mentioned page framework code text according to the page position corresponding to each function code block in the simulated network page layout diagram included in the above-mentioned page simulation configuration information to generate a page code file. Thus, the construction of the customized page is completed. Thus, it can greatly avoid the situation where the function abnormality of the page after the framework causes the need to rebuild and adjust the entire page. Furthermore, the consumption of computing resources is reduced, and the waste of transmission resources caused by issuing page code files multiple times is also reduced.

[0061] In practice, even if the template can be constructed based on the target page template spliced ​​by the user, it is easy to ignore the page style that the user actually needs. This leads to large differences between different sections of the generated web page. For example, style differences, format differences, attribute differences, etc. As a result, the displayed page is difficult to meet the actual needs of the user. This wastes the computing resources consumed in the page construction process. In response to this third problem, combined with the page construction technology available, it is decided to adopt the following solution.

[0062] Step 105 , in response to receiving the target page template uploaded by the user terminal as an adjusted page template, code configuration is performed on the adjusted page template to generate a page configuration code text.

[0063] In some embodiments, the execution entity may, in response to receiving the target page template uploaded by the user terminal as an adjusted page template, perform code configuration on the adjusted page template to generate a page configuration code text.

[0064] In some optional implementations of some embodiments, the execution subject performs code configuration on the adjusted page template to generate a page configuration code text, which may include the following steps:

[0065] The first step is to obtain the page attribute modification file uploaded synchronously by the user terminal, wherein the page attribute modification file may be a data file in which the user performs attribute adjustment on the segmented code blocks of each page sample view corresponding to the adjusted page template.

[0066] For example, a user adjusts the length of a certain page sample view through the adjustment option in the page template debugging area. Then, the page attribute modification file may include the modified length value of the page sample view. In addition, the page attribute modification file may also include a rendering file for the page sample view, such as a css (Cascading Style Sheets) file or a js (JavaScript) file.

[0067] In the second step, the segmented code blocks corresponding to the separable page sections in the adjusted page template are extracted from the page template library as target page code blocks to obtain a target page code block set.

[0068] The third step is to adjust the parameters of each target page code block in the target page code block set according to the page attribute modification file to obtain the adjusted page code block set. The page attribute modification file may include the div id (Identity document) layer tag address of the attribute to be modified. Thus, the parameters in the target page code block can be modified according to the layer tag address, or the rendering file corresponding to the target page code block can be replaced.

[0069] The fourth step is to integrate the adjusted page code blocks in the adjusted page code block set according to the adjusted page template to generate the page configuration code text. The code integration can be to arrange the adjusted page code blocks in layers according to the positions of the separable page sections in the adjusted page template. That is, the adjusted page code blocks are integrated under the same root element tag (body) to obtain the page configuration code text.

[0070] Optionally, before performing code configuration on the adjusted page template to generate the page configuration code text, the execution subject further includes performing adjustment detection on the adjusted page template, which may include the following steps:

[0071] In the first step, sample view keywords corresponding to each detachable page section in the adjusted page template are extracted from the page template library as page section keywords to obtain a page section keyword set. The sample view keywords can be searched from the page template library according to the correspondence between the detachable page section and the sample view keywords. Alternatively, the distance between the word vector of the sample view keyword and the word vector of the page section keyword is less than a preset vector distance threshold, which indicates that the two words are synonymous or have similar semantics.

[0072] The second step is to determine the word vector corresponding to each page section topic word in the above page section topic word set to generate a topic word vector set. In which, each page section topic word can be mapped to a word vector through a preset bag of words model to obtain a topic word vector set.

[0073] The third step is to perform overall page detection on the adjusted page template based on the above-mentioned subject word vector set to generate an overall feature value set for page detection. Among them, the principal component analysis algorithm can be used to perform correlation detection on each subject word vector other than each subject word vector to generate an overall feature value set for page detection. Here, each overall feature value of page detection can represent the overall correlation degree of the vector excluding a certain subject word vector. If the correlation degree is less than the preset correlation threshold, it can be represented that the correlation degree of each subject word vector after excluding the above-mentioned subject word vector is low. If the correlation degree is greater than the preset correlation threshold, it can be represented that the correlation degree of each subject word vector after excluding the above-mentioned subject word vector is high.

[0074] In the fourth step, according to the positions of the above-mentioned separable page sections in the above-mentioned adjusted page template, the vector similarity between the subject word vectors corresponding to the two adjacent separable page sections in the above-mentioned subject word vector set is determined to generate a vector similarity set. Among them, the vector similarity between the subject word vectors corresponding to the two adjacent separable page sections in the above-mentioned subject word vector set can be determined by a preset similarity algorithm to generate a vector similarity set.

[0075] As an example, the similarity algorithm may include but is not limited to: Pearson coefficient, Euclidean distance, cosine similarity, etc.

[0076] In the fifth step, based on the vector similarity set, the adjusted page template is subjected to adjacent page section detection to generate an adjacent page detection feature value set. For each separable page section in the adjusted page template, the vector similarities corresponding to the separable page sections can be weighted summed to obtain the adjacent page detection feature value.

[0077] In the sixth step, in response to determining that the above-mentioned page detection overall feature value set and the above-mentioned adjacent page detection feature value set meet the preset detection conditions, it is determined that the above-mentioned adjusted page template adjustment detection has passed. Among them, the preset detection conditions can be that the overall feature values ​​of each page detection are greater than the preset correlation threshold, and the feature values ​​of each adjacent page detection are greater than the preset feature value threshold. Here, the above-mentioned page detection overall feature value set and the above-mentioned adjacent page detection feature value set meet the preset detection conditions, which can indicate that the characteristics of each detachable page section in the adjusted page template are highly correlated and have a unified style, which meets the user's demand for the overall page.

[0078] The above step 105 and its related contents, as an inventive point of an embodiment of the present disclosure, solve the technical problem three mentioned in the background technology: "Even if the template can be constructed according to the target page template spliced ​​by the user, it is easy to ignore the page style actually required by the user. As a result, the differences between different sections of the generated web page are large. For example, style differences, format differences, attribute differences, etc. As a result, the displayed page is difficult to meet the actual needs of the user. And then the computing resources consumed in the page construction process are wasted." The factors that make the displayed page difficult to meet the actual needs of the user and thus waste the computing resources consumed in the page construction process are often as follows: Even if the template can be constructed according to the target page template spliced ​​by the user, it is easy to ignore the page style actually required by the user. As a result, the differences between different sections of the generated web page are large. For example, style differences, format differences, attribute differences, etc. If the above factors are solved, the consumption of computing resources can be reduced. In order to achieve this effect, first, in order to determine whether the differences between the sections in the page spliced ​​by the user are too large, the sample view keywords are also saved in the page template library, so as to determine the degree of association between the sections according to the keyword word vectors corresponding to the sample view keywords. Here, the overall degree of association between the various sections is first determined through page detection, and then the degree of association between the sections is determined by generating adjacent page detection feature values. Thus, the degree of association between the various detachable page sections in the adjusted page template can be determined from two perspectives. In this way, not only can it be ensured that the adjusted page template meets user needs and the differences between the various sections in the template are not high, but also because the adjustment detection performed before generating the page configuration code text can greatly avoid the situation where the computing resources consumed in the page construction process are wasted due to excessive differences in sections. In turn, the consumption of computing resources is reduced. .

[0079] Step 106: Send the page configuration code text to the user terminal so that the user terminal can run the page configuration code text to display the page.

[0080] In some embodiments, the execution entity may send the page configuration code text to the user terminal so that the user terminal can run the page configuration code text to display the page.

[0081] Optionally, the above execution entity may further perform the following steps:

[0082] In response to receiving that the target page template uploaded by the user terminal is the selected page template, the initial configuration code file corresponding to the page template is sent to the user terminal for page display.

[0083] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the page display method of some embodiments of the present disclosure, the occupation of computing resources can be reduced. Specifically, the reason for occupying more computing resources is that code errors are prone to occur during the code writing process according to the preset page style, which makes it difficult to display the page, and thus, the code needs to be checked and adjusted. Based on this, the page display method of some embodiments of the present disclosure, first, when receiving the page building request sent by the user terminal, simultaneously obtains the user's page building demand description information. Then, through word segmentation extraction, the demand word segmentation of the page to be built by the user is determined. Also because the page building description word segmentation is extracted, it is convenient to select a matching page template from a preset page template library. The preset page template is composed of a plurality of detachable page sections, and each detachable page section corresponds to a section sample diagram. Therefore, after sending it to the user terminal, the user can freely combine and adjust the section sample diagrams of different page templates according to the needs. As a result, there is no need for the user to design the page separately, avoiding the situation where the written code conflicts or does not conform to the design. Afterwards, the target page template saved and uploaded by the user is received, and the code configuration can be performed on it. Because each detachable page section in the target page template is pre-set, the code corresponding to each detachable page section in the target page template can be used for code configuration. As a result, code errors can be greatly avoided. Thus, the code text corresponding to the page that meets the user's needs can be sent to the user terminal for page display. In addition, the code verification and recompilation adjustment can be avoided, thereby reducing the occupation of computing resources.

[0084] Further references Figure 2 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a page display device. These device embodiments are similar to Figure 1 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.

[0085] like Figure 2As shown, the page display device 200 of some embodiments includes: an acquisition unit 201, a word segmentation extraction unit 202, a selection unit 203, a sending unit 204, a code configuration unit 205 and a page display unit 206. Among them, the acquisition unit 201 is configured to obtain page construction requirement description information in response to receiving a page construction request sent by a user terminal; the word segmentation extraction unit 202 is configured to perform word segmentation extraction on the above page construction requirement description information to generate a page construction description word set; the selection unit 203 is configured to select page templates that match each page construction description word in the above page construction description word set from a preset page template library as a selected page template set, wherein each page template in the above page template library is composed of a plurality of detachable page sections, and each detachable page section corresponds to a section sample diagram; the sending unit 204 is configured to send each selected page template in the above selected page template set to the above user terminal. The terminal is provided for user selection, wherein a page template debugging area is provided in the page of the user terminal, so that the user can combine and adjust the detachable page sections in different selected page templates according to the corresponding section sample diagram in the above-mentioned page template debugging area, and save and upload the selected selected page template or the adjusted page template as the target page template; the code configuration unit 205 is configured to perform code configuration on the above-mentioned adjusted page template in response to receiving that the target page template uploaded by the above-mentioned user terminal is the adjusted page template, so as to generate a page configuration code text; the page display unit 206 is configured to send the above-mentioned page configuration code text to the above-mentioned user terminal, so that the above-mentioned user terminal can run the above-mentioned page configuration code text for page display.

[0086] It is understood that the units described in the device 200 are similar to those described in the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 200 and the units included therein, and will not be described in detail here.

[0087] Reference below Figure 3 , which shows a structural schematic diagram of an electronic device (eg, a computing device) 300 suitable for implementing some embodiments of the present disclosure. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0088] like Figure 3As shown, the electronic device 300 may include a processing device (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. Various programs and data required for the operation of the electronic device 300 are also stored in the random access memory 303. The processing device 301, the read-only memory 302, and the random access memory 303 are connected to each other via a bus 304. An input / output interface 305 is also connected to the bus 304.

[0089] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 3 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0090] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the read-only memory 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0091] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0092] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0093] The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist independently without being assembled into the electronic device. The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains page construction requirement description information in response to receiving a page construction request sent by a user terminal; performs word segmentation extraction on the above-mentioned page construction requirement description information to generate a page construction description word set; selects page templates that match each page construction description word set in the above-mentioned page construction description word set from a preset page template library as a selected page template set, wherein each page template in the above-mentioned page template library consists of multiple detachable page sections, and each detachable page section corresponds to a section sample diagram; and extracts each selected page template in the above-mentioned page template set. The selected page template is sent to the above-mentioned user terminal for user selection, wherein a page template debugging area is set in the page of the user terminal, so that the user can combine and adjust the detachable page sections in different selected page templates according to the corresponding section sample diagram in the above-mentioned page template debugging area, and save and upload the selected selected page template or the adjusted page template as the target page template; in response to receiving that the target page template uploaded by the above-mentioned user terminal is the adjusted page template, code configuration is performed on the above-mentioned adjusted page template to generate a page configuration code text; and the above-mentioned page configuration code text is sent to the above-mentioned user terminal, so that the above-mentioned user terminal can run the above-mentioned page configuration code text for page display.

[0094] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate 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 a remote computer, the remote computer may 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 may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0095] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0096] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor including an acquisition unit, a word segmentation extraction unit, a selection unit, a sending unit, a code configuration unit and a page display unit. The names of these units do not constitute limitations on the units themselves in certain circumstances, for example, the acquisition unit may also be described as a "unit for acquiring page construction requirement description information".

[0097] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0098] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims

1. A page display method, comprising: In response to receiving a page building request sent by a user terminal, obtaining page building requirement description information; Performing word segmentation extraction on the page building requirement description information to generate a page building description word set; Selecting page templates that match each page construction description word in the page construction description word set from a preset page template library as a selected page template set, wherein each page template in the page template library is composed of a plurality of detachable page sections, and each detachable page section corresponds to a section sample image; Sending each selected page template in the selected page template set to the user terminal for selection by the user, wherein a page template debugging area is provided in the page of the user terminal, so that the user can combine and adjust the separable page sections in different selected page templates according to the corresponding section sample diagram in the page template debugging area, and save and upload the selected selected page template or the adjusted page template as the target page template; In response to receiving that the target page template uploaded by the user terminal is an adjusted page template, code configuration is performed on the adjusted page template to generate a page configuration code text; The page configuration code text is sent to the user terminal so that the user terminal runs the page configuration code text to display the page.

2. The method according to claim 1, wherein: The method further comprises: In response to receiving that the target page template uploaded by the user terminal is the selected page template, an initial configuration code file corresponding to the page template is sent to the user terminal for page display.

3. The method according to claim 1, wherein: The performing word segmentation extraction on the page construction requirement description information to generate a page construction description word set includes: Performing an overall demand analysis on the page construction demand description to generate an overall demand word set; Perform sentence splitting on the page building requirement description to obtain a split sentence set; Perform sentence segmentation extraction on each split sentence in the split sentence set to generate a sentence segmentation set; The overall demand word set and the sentence word set are combined into a page construction description word set.

4. The method according to claim 1, wherein: Each page template in the preset page template library is provided with a corresponding associated word field; and The step of selecting a page template that matches each page construction description word in the page construction description word set from a preset page template library as a selected page template set includes: For each page construction description segment in the page construction description segment set, determining an associated word field in the page template library that matches the page construction description segment; The page templates corresponding to the determined associated word fields are determined as the selected page templates to obtain a selected page template set.

5. The method according to claim 1, wherein: A user issues a page building request through a page building website accessed by a user terminal, wherein the page has a page template debugging area and a page template display area; and Save the upload target page template by following these steps: After receiving each selected page template, the user terminal visualizes each selected page template in the page template display area; In response to receiving a user drag command, moving the separable page sections in the selected page template displayed in the page template display area to the page template debugging area according to the user drag command, so as to be combined into an adjusted page template in the page template debugging area; The at least one selected page template or the adjusted page template is determined as a target page template, and a save and upload operation is performed in response to receiving a save and upload trigger instruction for the target page template.

6. The method according to claim 4, wherein: The page template library is constructed by the following steps: Performing information clearing processing on each sample web page data acquired in advance to generate a blank sample web page set, wherein each sample web page data includes a sample web page code text; Performing code segmentation on the sample web page code text corresponding to each blank sample web page in the blank sample web page set to generate segmented code block groups, thereby obtaining a segmented code block group set, wherein each segmented code block in each segmented code block group in the segmented code block group set corresponds to each separable page section in a blank sample web page; According to the page position corresponding to each of the split code blocks in the split code block group set, each blank sample web page in the blank sample web page set is screenshotted to generate a page sample view group set, wherein each page sample view represents a divisible page section; Extracting subject words from each page sample view in the page sample view group set to generate a sample view subject word group set; Each sample view keyword in the sample view keyword group set is added to the associated word field, and the storage addresses of the sample web page code text, segmented code block group and page sample view group corresponding to the same sample web page are added to the page template library.

7. A page display device, comprising: An acquisition unit, configured to acquire page building requirement description information in response to receiving a page building request sent by a user terminal; A word segmentation extraction unit is configured to perform word segmentation extraction on the page construction requirement description information to generate a page construction description word set; A selection unit is configured to select, from a preset page template library, page templates that match each page construction description word in the page construction description word set as a selected page template set, wherein each page template in the page template library is composed of a plurality of detachable page sections, and each detachable page section corresponds to a section sample diagram; A sending unit is configured to send each selected page template in the selected page template set to the user terminal for user selection, wherein a page template debugging area is provided in the page of the user terminal, so that the user can combine and adjust the separable page sections in different selected page templates according to the corresponding section sample diagram in the page template debugging area, and save and upload the selected selected page template or the adjusted page template as the target page template; A code configuration unit is configured to, in response to receiving that the target page template uploaded by the user terminal is an adjusted page template, perform code configuration on the adjusted page template to generate a page configuration code text; The page display unit is configured to send the page configuration code text to the user terminal so that the user terminal runs the page configuration code text to display the page.

8. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

9. A computer readable medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Page generation method and device, electronic equipment and computer readable medium

    CN112214708A

  • Application page rendering method and device, equipment, readable medium and program product

    CN115098217A

  • Page generation method and device, equipment and storage medium

    CN116991407A

  • Page generation method and device applied to webpage application and electronic equipment

    CN117573123A

  • Web front-end style code generation method based on DOM

    CN118626065A