CN114741077A - Page effect preview method, device, equipment and medium based on field granularity - Google Patents

Page effect preview method, device, equipment and medium based on field granularity Download PDF

Info

Publication number
CN114741077A
CN114741077A CN202210370814.9A CN202210370814A CN114741077A CN 114741077 A CN114741077 A CN 114741077A CN 202210370814 A CN202210370814 A CN 202210370814A CN 114741077 A CN114741077 A CN 114741077A
Authority
CN
China
Prior art keywords
display
field
user
data
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210370814.9A
Other languages
Chinese (zh)
Inventor
阳捷
王力
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202210370814.9A priority Critical patent/CN114741077A/en
Publication of CN114741077A publication Critical patent/CN114741077A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Shopping interfaces
    • G06Q30/0643Graphical representation of items or shoppers

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Software Systems (AREA)
  • Accounting & Taxation (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to an artificial intelligence technology, and discloses a page effect preview method based on field granularity, which comprises the following steps: carrying out field analysis on the display page selected by the user, and extracting the display fields in the display data according to the analysis result; pushing the display field and the display page to a user, and receiving an initial preview interface generated by filling by the user; acquiring historical display content of a user, and prompting the user according to the difference part between the historical display content and the initial preview interface; and modifying the initial preview interface according to the adjustment instruction of the prompt by the user to obtain a second preview interface, and displaying the second preview interface to the user. In addition, the invention also relates to a block chain technology, and the historical display content can be stored in the nodes of the block chain. The invention also provides a page effect preview device based on the field granularity, electronic equipment and a storage medium. The invention can improve the effect of data display preview.

Description

Page effect preview method, device, equipment and medium based on field granularity
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to a page effect preview method and device based on field granularity, electronic equipment and a computer readable storage medium.
Background
With the diversification of user requirements, new products are in the market, product suppliers can display data related to the products in order to enable the products to occupy more consumers in the market, and in order to achieve the fine display of the data related to the products, the display pages need to be configured in advance by using the data.
In the current main display page configuration method, on one hand, a fixed display template is usually designated, the display form of data is single, and the use requirements of a user in various scenes cannot be met; on the other hand, after the user fills the data into the display template, the user needs to actively preview the display interface at the front end and check errors appearing in the preview page, and when the data volume is large, the error rate in the display data is high; therefore, the effect of performing display preview on the data is poor at present.
Disclosure of Invention
The invention provides a page effect previewing method and device based on field granularity and a computer readable storage medium, and mainly aims to solve the problem of poor effect in data display previewing.
In order to achieve the above object, the present invention provides a page effect preview method based on field granularity, which includes:
carrying out field analysis on a display page selected by a user to obtain a plurality of page fields;
inquiring the field format of each page field, and compiling preset characters into regular expressions according to the field formats;
acquiring display data uploaded by the user, and performing field extraction on the display data by using the regular expression to obtain a display field;
pushing the display field and the display page to the user, and receiving an initial preview interface generated by the user by filling the display page according to the display field;
acquiring a plurality of historical display contents of the user, calculating the matching degree of the display data and each historical display content, and acquiring a historical display template corresponding to the historical display content with the maximum matching degree;
screening a difference part between the historical display template and the initial preview interface, prompting the difference part to the user, and acquiring an adjusting instruction returned by the user according to the prompt;
and modifying the initial preview interface according to the adjusting instruction to obtain a second preview interface, and displaying the second preview interface to the user.
Optionally, the performing field analysis on the display page selected by the user to obtain a plurality of page fields includes:
acquiring a page support code of the display page;
carrying out field division on the page support code according to a preset field separator to obtain a plurality of code fields;
and searching each code field in the plurality of code fields in a preset user filling field table one by one, and collecting the searched code fields as the page fields.
Optionally, the compiling the preset character into a regular expression according to the field format includes:
selecting at least one character from the preset characters as a target character without repetition, and selecting one field format from the field formats as a target format one by one without repetition;
arranging and combining the selected target characters according to the target format to obtain combined characters;
and compiling the combined character to obtain a regular expression corresponding to the target format.
Optionally, the performing, by using the regular expression, field extraction on the display data to obtain a display field includes:
selecting one regular expression from the regular expressions one by one as a target expression;
the display data is recalled in fields by using the target expression, and the data fields recalled in all the fields are collected as the display fields of the target expression;
and collecting the display fields corresponding to all the regular expressions as the display fields of the display data.
Optionally, the calculating a matching degree between the presentation data and each of the historical presentation contents includes:
performing word segmentation processing on the display data to obtain a first word segmentation set;
constructing a data abstract of the display data according to the first word segmentation set;
performing word segmentation processing on the historical display contents one by one to obtain a second word segmentation set of each historical display content;
constructing a content abstract of each historical display content according to the second word set;
and respectively calculating a distance value between the data summary and the content summary of each historical display content, and determining the reciprocal of the distance value as the matching degree between the display data and each historical display content.
Optionally, the performing word segmentation processing on the display data to obtain a first word segmentation set includes:
deleting unintentional words from the display data to obtain standard data;
and retrieving the standard data in a preset dictionary according to different data lengths, and collecting the words retrieved from the dictionary and the same as the words in the standard data as a first word set of the display data.
Optionally, the screening the difference part between the history display template and the initial preview interface includes:
comparing the consistency of the data fields in the historical display template and the initial preview interface;
screening out different data fields in the history display template and the initial preview interface according to the comparison result of consistency;
comparing the historical display template with the display sequence of the data fields in the initial preview interface;
and screening out the parts with inconsistent display sequences in the historical display template and the initial preview interface according to the comparison result of the display sequences.
In order to solve the above problem, the present invention further provides a page effect preview apparatus based on field granularity, where the apparatus includes:
the field analysis module is used for carrying out field analysis on the display page selected by the user to obtain a plurality of page fields, inquiring the field format of each page field, and compiling preset characters into regular expressions according to the field formats;
the interface construction module is used for acquiring display data uploaded by the user, performing field extraction on the display data by using the regular expression to obtain a display field, pushing the display field and the display page to the user, and receiving an initial preview interface generated by the user by filling the display page according to the display field;
the historical content analysis module is used for acquiring a plurality of historical display contents of the user, calculating the matching degree of the display data and each historical display content, and acquiring a historical display template corresponding to the historical display content with the maximum matching degree;
the error correction module is used for screening the difference part between the historical display template and the initial preview interface, prompting the difference part to the user and acquiring an adjustment instruction returned by the user according to the prompt;
and the data display module is used for modifying the initial preview interface according to the adjustment instruction to obtain a second preview interface and displaying the second preview interface to the user.
In order to solve the above problem, the present invention also provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the field-granularity-based page effect preview method described above.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is executed by a processor in an electronic device to implement the above-mentioned page effect preview method based on field granularity.
According to the embodiment of the invention, the user selects the display page, so that the user-defined requirement is realized, and the diversification of data display is promoted; meanwhile, field analysis is carried out on the display page selected by the user, display data are screened according to the analyzed fields, and an initial preview interface is generated by utilizing the screened data field configuration, so that data display of field granularity is realized, and the accuracy and efficiency of data display are improved; furthermore, the historical display content of the user is analyzed to realize error correction prompting of the initial display interface, the initial preview interface is corrected according to a modification instruction returned by the user to the prompting, the user is helped to realize accurate and efficient error correction of the page content, and the accuracy, efficiency and personalization degree of the overall display preview of the data are favorably improved. Therefore, the page effect preview method, the page effect preview device, the electronic equipment and the computer readable storage medium based on the field granularity can solve the problem of poor effect when data display preview is carried out.
Drawings
Fig. 1 is a schematic flowchart of a page effect preview method based on field granularity according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating field parsing performed on a display page selected by a user according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of generating a regular expression according to an embodiment of the present invention;
FIG. 4 is a functional block diagram of a page effect preview apparatus based on field granularity according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device for implementing the field-granularity-based page effect preview method according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the application provides a page effect preview method based on field granularity. The execution body of the page effect preview method based on the field granularity includes, but is not limited to, at least one of electronic devices such as a server and a terminal, which can be configured to execute the method provided by the embodiment of the present application. In other words, the page effect preview method based on field granularity may be executed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
Referring to fig. 1, a flowchart of a page effect preview method based on field granularity according to an embodiment of the present invention is shown. In this embodiment, the method for previewing a page effect based on field granularity includes:
and S1, carrying out field analysis on the display page selected by the user to obtain a plurality of page fields.
In the embodiment of the invention, the display page is a window, a form, a graph and other pages capable of displaying and previewing data.
In detail, a plurality of display pages exist, and can be actively selected by a user according to data content required to be displayed.
In one practical application scenario of the invention, the display page can display a large amount of data in a multi-dimensional manner, so that even if different display pages display the same data in a previewing manner, the data fields filled in the display page may not be consistent, and therefore, the field analysis can be performed on the display page selected by the user to obtain various page fields needing to be filled in the display page selected by the user, so as to improve the accuracy of the subsequent data display preview.
In the embodiment of the present invention, referring to fig. 2, the performing field analysis on the display page selected by the user to obtain a plurality of page fields includes:
s21, acquiring a page support code of the display page;
s22, dividing the fields of the page support code according to preset field separators to obtain a plurality of code fields;
and S23, retrieving each code field in the plurality of code fields in a preset user filling field table one by one, and collecting the retrievable code fields as the page fields.
In detail, the page support code of the presentation page is a source code supporting the presentation function of the presentation page, and the page support code can be fetched from the presentation page by using a python statement with a data fetching function.
Specifically, the field separator includes, but is not limited to, "\", "; "the page support code may be divided into a plurality of code fields corresponding to the page support code according to the field separator.
Furthermore, the user filling field table comprises a plurality of fields which can be filled by the user, an INDEX of the user filling field table can be created by using a CREATE INDEX statement in an SQL library, the plurality of code fields are searched in the INDEX one by one, and the searched code fields are collected to be the display fields of the display page.
In the embodiment of the invention, the field analysis is carried out on the display page selected by the user, so that the field granularity analysis can be carried out on the display page, and the refinement degree of the subsequent display of the data of the user is improved.
S2, inquiring the field format of each page field, and compiling preset characters into regular expressions according to the field format.
In one practical application scenario of the invention, because a lot of data need to be displayed by the user can cause poor display effect if the data provided by the user is directly displayed, the field format of each page field can be queried, and then the rule expression is generated according to the field format, so that the data provided by the user can be screened subsequently, and the data display preview effect is improved.
In the embodiment of the invention, a pre-generated field format table can be obtained, wherein the field format table comprises a plurality of page fields and a field format corresponding to each page field.
In detail, the step of inquiring the field format of each page field is consistent with the step of searching each code field in the plurality of code fields in the preset user filling field table one by one in S1, and details are not repeated herein.
Further, in order to filter the data uploaded by the user according to the field format, a preset character can be compiled into a regular expression according to the field format.
In the embodiment of the present invention, as shown in fig. 3, compiling the preset character into the regular expression according to the field format includes:
s31, selecting at least one character from the preset characters as a target character without repetition, and selecting one field format from the field formats as a target format one by one without repetition;
s32, arranging and combining the selected target characters according to the target format to obtain combined characters;
and S33, compiling the combined character to obtain a regular expression corresponding to the target format.
In detail, the combined character may be compiled using preset compiling software, wherein the compiling software includes, but is not limited to, Dev-C + +, and the like.
In the embodiment of the invention, the customized expression of the field format can be realized by compiling the preset characters, and the flexibility of generating the field format is favorably improved.
And S3, acquiring the display data uploaded by the user, and performing field extraction on the display data by using the rule expression to obtain a display field.
In the embodiment of the present invention, the display data may be any data that can be displayed and previewed on a data display page, which is uploaded by the user in advance. For example, the presentation data may be a user's work experience, weather conditions for a preset period of time, fluctuating data of stock market, and the like.
In detail, since the display data may include a large amount of useless data, in order to achieve accurate display of the display data and improve display efficiency and display effect, the regular expression may be used to extract field granularity of the display data, so as to obtain a display field that needs to be displayed in the display data.
In the embodiment of the present invention, the performing field extraction on the display data by using the rule expression to obtain a display field includes:
selecting one regular expression from the regular expressions one by one as a target expression;
the display data is recalled in fields by using the target expression, and the data fields recalled in all the fields are collected as the display fields of the target expression;
and collecting the display fields corresponding to all the regular expressions as the display fields of the display data.
In detail, the regular expression can recall the data in the display data, which has the same field format as the regular expression, so that all the display data having the same field format as the regular expression can be extracted from the display data.
In the embodiment of the invention, the display data is subjected to field extraction by using the regular expression, so that the useless data in the display data can be screened out from the field granularity, and the accuracy of the subsequent display preview of the display data is improved.
S4, pushing the display field and the display page to the user, and receiving an initial preview interface generated by the user by filling the display page according to the display field.
In one practical application scene, the display field and the display page can be pushed to the user, so that the user is prevented from actively screening fields in display data according to the display field, and the efficiency of data display preview is improved; meanwhile, because the display fields are obtained by uniformly screening regular expressions, errors caused by active screening of a user are avoided, and the accuracy of data display preview is improved.
In the embodiment of the invention, after the user completes the filling of the display page according to the display fields, an initial preview interface of the user filling production can be obtained, wherein the initial preview interface comprises all the display fields needing the filling of the user.
S5, obtaining a plurality of historical display contents of the user, calculating the matching degree of the display data and each historical display content, and obtaining a historical display template corresponding to the historical display content with the maximum matching degree.
In one practical application scenario of the present invention, when the user fills in the display page, because the number of the display fields may be large, the user may have the situations of filling in errors or filling in deviations, etc., so after the initial preview interface is generated, the initial preview interface may be further corrected and corrected to improve the accuracy of data display preview.
In detail, since the habits of the user have a certain degree of fixity, that is, the habits of the same or similar display data, the display page selected by the user, the display sequence and the display position for filling in the display page, and the like are relatively fixed, a plurality of historical display contents of the user can be acquired to analyze the historical display contents, so as to correct and correct the current initial preview interface.
Specifically, the history display content is content of data displayed and previewed by the user in a history time.
In the embodiment of the invention, a computer sentence (such as a java sentence, a python sentence, etc.) with a data crawling function can be used for crawling prestored historical exhibition contents from a predetermined data storage, wherein the data storage comprises but is not limited to a database, a block chain node, a network cache, etc.
Further, in order to screen out the content which is the same as or similar to the display data which needs to be displayed by the user currently from the plurality of historical display contents, the matching degree between the display data and each historical display content can be calculated, the historical display content with the maximum matching degree is further screened out, and the historical display template corresponding to the historical display content is obtained.
In this embodiment of the present invention, the calculating the matching degree between the display data and each of the historical display contents includes:
performing word segmentation processing on the display data to obtain a first word segmentation set;
constructing a data abstract of the display data according to the first word segmentation set;
performing word segmentation processing on the historical display contents one by one to obtain a second word segmentation set of each historical display content;
constructing a content abstract of each historical display content according to the second word set;
and respectively calculating a distance value between the data summary and the content summary of each historical display content, and determining the reciprocal of the distance value as the matching degree between the display data and each historical display content.
In detail, the performing word segmentation processing on the display data to obtain a first word segmentation set includes:
deleting unintentional words from the display data to obtain standard data;
and retrieving the standard data in a preset dictionary according to different data lengths, and collecting the words retrieved from the dictionary and the same as the words in the standard data as a first word set of the display data.
In detail, the unintentional words refer to words without actual language meaning, for example, words such as language words, vocabularies, structure-assisted words, and the like, and since the display data may contain some unintentional words when the user generates the display data, and the unintentional words do not contain the actual meaning that the user wants to express, the data amount of the display data can be reduced by deleting the unintentional words in the display data, so as to improve the efficiency and accuracy of subsequent analysis of the display data.
Specifically, the dictionary is a pre-constructed dictionary containing a plurality of standard word segments, the display data after the unintentional word deletion can be retrieved in the dictionary according to different data lengths, and when the same word as the word in the display data is retrieved, the retrieved word is determined to be the first word segment set of the display data.
Further, a data summary of the presentation data can be constructed according to the first word set by using an artificial intelligence model with a summary generation function, wherein the artificial intelligence model includes, but is not limited to, NLP (Natural Language Processing) model, LSA (Latent Semantic Analysis) model, and the like.
In the embodiment of the present invention, the step of performing word segmentation on the historical display contents one by one to obtain a second word segmentation set of each historical display content, and the step of constructing the content summary of each historical display content according to the second word segmentation set are consistent with the step of performing word segmentation on the display data to obtain a first word segmentation set, and the step of constructing the data summary of the display data according to the first word segmentation set is not repeated here.
Further, a Euclidean distance algorithm, a cosine distance algorithm and the like with a distance value calculation function can be used for calculating a distance value between the data abstract and the content abstract of each historical display content respectively, and the reciprocal of the distance value is determined as the matching degree between the display data and each historical display content.
S6, screening the difference part between the historical display template and the initial preview interface, prompting the difference part to the user, and acquiring an adjusting instruction returned by the user according to the prompt.
In the embodiment of the invention, in order to prevent a user from filling in errors caused by negligence, mis-filling and the like when the initial preview interface is generated by filling in, and realize the correction of the initial preview interface, the historical display template and the initial preview interface can be compared to screen out a difference part of the historical display template and the initial preview interface, and the difference part is prompted to the user, so that the user can quickly find a place where an error possibly occurs in the filling content, and the correction of the initial preview interface is realized.
In an embodiment of the present invention, the screening the difference portion between the history display template and the initial preview interface includes:
comparing the consistency of the data fields in the historical display template and the initial preview interface;
screening out different data fields in the historical display template and the initial preview interface according to the comparison result of consistency;
comparing the historical display template with the display sequence of the data fields in the initial preview interface;
and screening out the parts with inconsistent display sequences in the historical display template and the initial preview interface according to the comparison result of the display sequences.
In detail, comparing the consistency of the data fields in the history display template and the initial preview interface means that the data fields in the history display template and the data fields in the initial preview interface are compared one by one to screen out different data fields in the history display template and the initial preview interface, and the detailed content of data does not need to be compared, which is beneficial to improving the accuracy of subsequently correcting the initial preview interface.
Specifically, comparing the display sequence of the data fields in the history display template and the initial preview interface refers to comparing the display sequence of the data fields in the history display template and the initial preview interface to find out possible filling errors of the user, so as to facilitate improvement of accuracy of subsequent correction of the initial preview interface.
In the embodiment of the invention, the difference part can be prompted to the user, so that the user can accurately and quickly verify the content of the initial preview interface according to the prompt, and finally obtain the adjustment instruction returned by the user according to the prompt.
S7, modifying the initial preview interface according to the adjusting instruction to obtain a second preview interface, and displaying the second preview interface to the user.
In the embodiment of the invention, the initial preview interface can be modified according to the adjustment instruction to obtain the second preview interface, so that the active correction of a user is realized, and the effect of data display preview is improved.
In detail, the second preview interface may be displayed to the user in the form of a movable window, an image interface, or the like, so as to implement preview display of the display data of the user.
According to the embodiment of the invention, the user selects the display page, so that the user-defined requirement is realized, and the diversification of data display is promoted; meanwhile, field analysis is carried out on the display page selected by the user, display data are screened according to the analyzed fields, and an initial preview interface is generated by utilizing the screened data field configuration, so that data display of field granularity is realized, and the accuracy and efficiency of data display are improved; furthermore, the historical display content of the user is analyzed to realize error correction prompting of the initial display interface, the initial preview interface is corrected according to a modification instruction returned by the user to the prompting, the user is helped to realize accurate and efficient error correction of the page content, and the accuracy, efficiency and personalization degree of the overall display preview of the data are favorably improved. Therefore, the page effect preview method based on the field granularity can solve the problem of poor effect when data display preview is carried out.
Fig. 4 is a functional block diagram of a page effect preview apparatus based on field granularity according to an embodiment of the present invention.
The page effect preview device 100 based on field granularity according to the present invention can be installed in an electronic device. According to the implemented functions, the page effect preview device 100 based on field granularity may include a field analysis module 101, an interface construction module 102, a historical content analysis module 103, an error correction module 104, and a data presentation module 105. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions of the respective modules/units are as follows:
the field analysis module 101 is configured to perform field analysis on a display page selected by a user to obtain a plurality of page fields, query a field format of each page field, and compile preset characters into a regular expression according to the field format;
the interface construction module 102 is configured to obtain display data uploaded by the user, perform field extraction on the display data by using the rule expression to obtain a display field, push the display field and the display page to the user, and receive an initial preview interface generated by the user by filling the display page according to the display field;
the historical content analysis module 103 is configured to obtain a plurality of historical display contents of the user, calculate a matching degree between the display data and each of the historical display contents, and obtain a historical display template corresponding to the historical display content with the largest matching degree;
the error correction module 104 is configured to filter a difference portion between the historical display template and the initial preview interface, prompt the difference portion to the user, and obtain an adjustment instruction returned by the user according to the prompt;
the data display module 105 is configured to modify the initial preview interface according to the adjustment instruction to obtain a second preview interface, and display the second preview interface to the user.
In detail, when the modules in the field-granularity-based page effect preview apparatus 100 according to the embodiment of the present invention are used, the same technical means as the field-granularity-based page effect preview method described in fig. 1 to 3 are adopted, and the same technical effect can be generated, which is not described herein again.
Fig. 5 is a schematic structural diagram of an electronic device for implementing a page effect preview method based on field granularity according to an embodiment of the present invention.
The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may further include a computer program stored in the memory 11 and operable on the processor 10, such as a page effect preview program based on field granularity.
In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions, and includes one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the whole electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules stored in the memory 11 (for example, executing a page effect preview program based on field granularity, etc.), and calling data stored in the memory 11.
The memory 11 includes at least one type of readable storage medium including flash memory, removable hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only to store application software installed in the electronic device and various types of data, such as code of a page effect preview program based on field granularity, but also to temporarily store data that has been output or is to be output.
The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
The communication interface 13 is used for communication between the electronic device and other devices, and includes a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are typically used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a Display (Display), an input unit such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
Only electronic devices having components are shown, and those skilled in the art will appreciate that the structures shown in the figures do not constitute limitations on the electronic devices, and may include fewer or more components than shown, or some components in combination, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management and the like are realized through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
It is to be understood that the embodiments described are illustrative only and are not to be construed as limiting the scope of the claims.
The page effect preview program stored in the memory 11 of the electronic device 1 based on field granularity is a combination of a plurality of instructions, which when executed in the processor 10, can realize:
carrying out field analysis on a display page selected by a user to obtain a plurality of page fields;
inquiring the field format of each page field, and compiling preset characters into regular expressions according to the field formats;
acquiring display data uploaded by the user, and performing field extraction on the display data by using the regular expression to obtain a display field;
pushing the display field and the display page to the user, and receiving an initial preview interface generated by the user by filling the display page according to the display field;
acquiring a plurality of historical display contents of the user, calculating the matching degree of the display data and each historical display content, and acquiring a historical display template corresponding to the historical display content with the maximum matching degree;
screening a difference part between the historical display template and the initial preview interface, prompting the difference part to the user, and acquiring an adjusting instruction returned by the user according to the prompt;
and modifying the initial preview interface according to the adjusting instruction to obtain a second preview interface, and displaying the second preview interface to the user.
Specifically, the specific implementation method of the instruction by the processor 10 may refer to the description of the relevant steps in the embodiment corresponding to the drawings, which is not described herein again.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
The present invention also provides a computer-readable storage medium storing a computer program which, when executed by a processor of an electronic device, implements:
carrying out field analysis on a display page selected by a user to obtain a plurality of page fields;
inquiring the field format of each page field, and compiling preset characters into regular expressions according to the field formats;
acquiring display data uploaded by the user, and performing field extraction on the display data by using the regular expression to obtain a display field;
pushing the display field and the display page to the user, and receiving an initial preview interface generated by the user according to the display field and the display page;
acquiring a plurality of historical display contents of the user, calculating the matching degree of the display data and each historical display content, and acquiring a historical display template corresponding to the historical display content with the maximum matching degree;
screening a difference part between the historical display template and the initial preview interface, prompting the difference part to the user, and acquiring an adjusting instruction returned by the user according to the prompt;
and modifying the initial preview interface according to the adjusting instruction to obtain a second preview interface, and displaying the second preview interface to the user.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A page effect preview method based on field granularity is characterized by comprising the following steps:
performing field analysis on a display page selected by a user to obtain a plurality of page fields;
inquiring the field format of each page field, and compiling preset characters into regular expressions according to the field formats;
acquiring display data uploaded by the user, and performing field extraction on the display data by using the regular expression to obtain a display field;
pushing the display field and the display page to the user, and receiving an initial preview interface generated by the user by filling the display page according to the display field;
acquiring a plurality of historical display contents of the user, calculating the matching degree of the display data and each historical display content, and acquiring a historical display template corresponding to the historical display content with the maximum matching degree;
screening a difference part between the historical display template and the initial preview interface, prompting the difference part to the user, and acquiring an adjusting instruction returned by the user according to the prompt;
and modifying the initial preview interface according to the adjusting instruction to obtain a second preview interface, and displaying the second preview interface to the user.
2. The method for previewing the page effect based on the field granularity according to claim 1, wherein the step of performing field analysis on the display page selected by the user to obtain a plurality of page fields comprises the following steps:
acquiring a page support code of the display page;
carrying out field division on the page support code according to a preset field separator to obtain a plurality of code fields;
and searching each code field in the plurality of code fields in a preset user filling field table one by one, and collecting the searched code fields as the page fields.
3. The field granularity-based page effect preview method of claim 1, wherein compiling the preset characters into regular expressions according to the field format comprises:
selecting at least one character from the preset characters as a target character without repetition, and selecting one field format from the field formats as a target format one by one without repetition;
arranging and combining the selected target characters according to the target format to obtain combined characters;
and compiling the combined character to obtain a regular expression corresponding to the target format.
4. The method for previewing page effect based on field granularity according to claim 1, wherein the performing field extraction on the presentation data by using the regular expression to obtain a presentation field comprises:
selecting one regular expression from the regular expressions one by one as a target expression;
utilizing the target expression to recall the fields of the display data, and collecting the data fields recalled by all the fields as the display fields of the target expression;
and collecting the display fields corresponding to all the regular expressions as the display fields of the display data.
5. The method for previewing page effect according to claim 1, wherein said calculating the matching degree of said presentation data and each of said historical presentation contents comprises:
performing word segmentation processing on the display data to obtain a first word segmentation set;
constructing a data abstract of the display data according to the first word segmentation set;
performing word segmentation processing on the historical display contents one by one to obtain a second word segmentation set of each historical display content;
constructing a content abstract of each historical display content according to the second word set;
and respectively calculating a distance value between the data summary and the content summary of each historical display content, and determining the reciprocal of the distance value as the matching degree between the display data and each historical display content.
6. The field granularity-based page effect preview method of claim 5, wherein the performing a word segmentation process on the presentation data to obtain a first word segmentation set comprises:
deleting unintentional words from the display data to obtain standard data;
and retrieving the standard data in a preset dictionary according to different data lengths, and collecting the words retrieved from the dictionary and the same as the words in the standard data to be a first word set of the display data.
7. The field granularity based page effect preview method of any one of claims 1 to 6, wherein the filtering the differential part of the history display template and the initial preview interface comprises:
comparing the consistency of the data fields in the historical display template and the initial preview interface;
screening out different data fields in the history display template and the initial preview interface according to the comparison result of consistency;
comparing the historical display template with the display sequence of the data fields in the initial preview interface;
and screening out the parts with inconsistent display sequences in the historical display template and the initial preview interface according to the comparison result of the display sequences.
8. An apparatus for previewing page effects based on field granularity, the apparatus comprising:
the field analysis module is used for carrying out field analysis on the display page selected by the user to obtain a plurality of page fields, inquiring the field format of each page field, and compiling preset characters into regular expressions according to the field formats;
the interface construction module is used for acquiring display data uploaded by the user, performing field extraction on the display data by using the regular expression to obtain a display field, pushing the display field and the display page to the user, and receiving an initial preview interface generated by the user by filling the display page according to the display field;
the historical content analysis module is used for acquiring a plurality of historical display contents of the user, calculating the matching degree of the display data and each historical display content, and acquiring a historical display template corresponding to the historical display content with the maximum matching degree;
the error correction module is used for screening the difference part between the historical display template and the initial preview interface, prompting the difference part to the user and acquiring an adjustment instruction returned by the user according to the prompt;
and the data display module is used for modifying the initial preview interface according to the adjusting instruction to obtain a second preview interface and displaying the second preview interface to the user.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform a field granularity based page effect preview method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the field-granularity-based page effect preview method according to any one of claims 1 to 7.
CN202210370814.9A 2022-04-11 2022-04-11 Page effect preview method, device, equipment and medium based on field granularity Pending CN114741077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210370814.9A CN114741077A (en) 2022-04-11 2022-04-11 Page effect preview method, device, equipment and medium based on field granularity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210370814.9A CN114741077A (en) 2022-04-11 2022-04-11 Page effect preview method, device, equipment and medium based on field granularity

Publications (1)

Publication Number Publication Date
CN114741077A true CN114741077A (en) 2022-07-12

Family

ID=82280604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210370814.9A Pending CN114741077A (en) 2022-04-11 2022-04-11 Page effect preview method, device, equipment and medium based on field granularity

Country Status (1)

Country Link
CN (1) CN114741077A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116450907A (en) * 2023-06-09 2023-07-18 深圳普菲特信息科技股份有限公司 Process route visual setting method, system and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116450907A (en) * 2023-06-09 2023-07-18 深圳普菲特信息科技股份有限公司 Process route visual setting method, system and readable storage medium

Similar Documents

Publication Publication Date Title
CN112541338A (en) Similar text matching method and device, electronic equipment and computer storage medium
CN112380859A (en) Public opinion information recommendation method and device, electronic equipment and computer storage medium
CN101859303A (en) Metadata management method and management system
CN114979120B (en) Data uploading method, device, equipment and storage medium
CN113449187A (en) Product recommendation method, device and equipment based on double portraits and storage medium
CN113706322A (en) Service distribution method, device, equipment and storage medium based on data analysis
CN114185895A (en) Data import and export method and device, electronic equipment and storage medium
CN113360768A (en) Product recommendation method, device and equipment based on user portrait and storage medium
CN115543198A (en) Method and device for lake entering of unstructured data, electronic equipment and storage medium
CN113687825B (en) Method, device, equipment and storage medium for constructing software module
CN114741077A (en) Page effect preview method, device, equipment and medium based on field granularity
CN113886708A (en) Product recommendation method, device, equipment and storage medium based on user information
CN112948380A (en) Data storage method and device based on big data, electronic equipment and storage medium
CN111552527A (en) Method, device and system for translating characters in user interface and storage medium
CN115186188A (en) Product recommendation method, device and equipment based on behavior analysis and storage medium
CN114490666A (en) Chart generation method, device and equipment based on data requirements and storage medium
CN115827115A (en) H5 page jump method, device, equipment and storage medium of WeChat applet
CN115062023A (en) Wide table optimization method and device, electronic equipment and computer readable storage medium
CN114357337A (en) Cache management method, device, equipment and storage medium
CN113707302A (en) Service recommendation method, device, equipment and storage medium based on associated information
CN111680204A (en) Data acquisition method, data acquisition device and computer readable storage medium
CN113657076B (en) Page operation record table generation method and device, electronic equipment and storage medium
CN113505128B (en) Method, device, equipment and storage medium for creating data table
CN114491007A (en) Data exposure method, device, equipment and storage medium
CN114168836A (en) Webpage data analysis and visualization method and device, electronic equipment and medium

Legal Events

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