Techniques for automatically configuring web components
Abstract
A method for data processing is described. The method includes receiving, from a client of a web service, a request for a web component included in a web page supported by the web service, where the web component is associated with a data structure that defines design characteristics of the web component. The method further includes determining configuration parameters that define stylistic characteristics of the web component based on data attributes of the web page and the data structure associated with the web component, where the configuration parameters are determined using a model trained on a corpus of web pages supported by the web service. The method further includes transmitting, to the client and in response to the request, an indication of the configuration parameters for the web component, where the indication is configured to display the web component according to the stylistic characteristics defined by the configuration parameters.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1. A method for data processing, comprising:
receiving, from a client of a web service, a request for a web component included in a web page supported by the web service, the web component associated with a data structure that defines one or more design characteristics of the web component;
determining configuration parameters that define one or more stylistic characteristics of the web component based at least in part on data attributes of the web page and the data structure associated with the web component, wherein the configuration parameters are determined using a model trained on a corpus of web pages supported by the web service; and
transmitting, to the client and in response to the request, an indication of the configuration parameters for the web component, wherein the indication is configured to display the web component according to the one or more stylistic characteristics defined by the configuration parameters.
2. The method of claim 1 , further comprising:
identifying a plurality of web components in the corpus of web pages that are associated with the data structure of the web component, wherein the plurality of web components are identified using the model trained on the corpus of web pages.
3. The method of claim 2 , wherein determining the configuration parameters for the web component comprises:
determining the configuration parameters for the web component based at least in part on stylistic characteristics of the identified plurality of web components in the corpus of web pages supported by the web service.
4. The method of claim 1 , further comprising:
generating a style guide for the web page using the model trained on the corpus of web pages supported by the web service, wherein the style guide comprises stylistic characteristics of other web components included in the web page.
5. The method of claim 4 , wherein determining the configuration parameters for the web component comprises:
determining the configuration parameters that define the one or more stylistic characteristics of the web component based at least in part on the stylistic characteristics in the style guide generated by the model.
6. The method of claim 4 , wherein the model is configured to generate the style guide by using one or more application programming interfaces (APIs) to perform a page segmentation procedure on the web page.
7. The method of claim 1 , further comprising:
receiving, from the client, a second request for a second web component included in a second web page supported by the web service, the second web component associated with the data structure of the web component; and
determining configuration parameters for the second web component based at least in part on data attributes of the second web page and the data structure associated with the second web component, wherein the configuration parameters for the second web component are different from the configuration parameters for the web component.
8. The method of claim 1 , wherein transmitting the indication of the configuration parameters for the web component comprises:
transmitting, to the client, the indication of the configuration parameters for the web component based at least in part on determining that the one or more design characteristics associated with the data structure of the web component are stored in a cache associated with the client.
9. The method of claim 1 , wherein the corpus of web pages supported by the web service includes stylistic annotations that are used to train the model.
10. The method of claim 1 , wherein the model is configured to automatically determine stylistic characteristics for the web component based at least in part on the data structure of the web component, the data attributes of the web page, data attributes associated with the corpus of web pages supported by the web service, or a combination thereof.
11. The method of claim 1 , wherein the configuration parameters of the web component comprise hypertext markup language (HTML) properties, cascading style sheet (CSS) properties, or both.
12. The method of claim 1 , wherein the data structure of the web component is defined using one or more hypertext markup language (HTML) annotations.
13. The method of claim 1 , wherein the web component comprises a data table, a navigation menu, a banner, a product tile, a search bar, or a combination thereof.
14. The method of claim 1 , wherein the one or more stylistic characteristics of the web component comprise a font, a font size, a font color, a background color, a text alignment, a line spacing, or a combination thereof.
15. An apparatus for data processing, comprising:
a processor;
memory coupled with the processor; and
instructions stored in the memory and executable by the processor to cause the apparatus to:
receive, from a client of a web service, a request for a web component included in a web page supported by the web service, the web component associated with a data structure that defines one or more design characteristics of the web component;
determine configuration parameters that define one or more stylistic characteristics of the web component based at least in part on data attributes of the web page and the data structure associated with the web component, wherein the configuration parameters are determined using a model trained on a corpus of web pages supported by the web service; and
transmit, to the client and in response to the request, an indication of the configuration parameters for the web component, wherein the indication is configured to display the web component according to the one or more stylistic characteristics defined by the configuration parameters.
16. The apparatus of claim 15 , wherein the instructions are further executable by the processor to cause the apparatus to:
identify a plurality of web components in the corpus of web pages that are associated with the data structure of the web component, wherein the plurality of web components are identified using the model trained on the corpus of web pages.
17. The apparatus of claim 15 , wherein the instructions are further executable by the processor to cause the apparatus to:
generate a style guide for the web page using the model trained on the corpus of web pages supported by the web service, wherein the style guide comprises stylistic characteristics of other web components included in the web page.
18. The apparatus of claim 15 , wherein the instructions are further executable by the processor to cause the apparatus to:
receive, from the client, a second request for a second web component included in a second web page supported by the web service, the second web component associated with the data structure of the web component; and
determine configuration parameters for the second web component based at least in part on data attributes of the second web page and the data structure associated with the second web component, wherein the configuration parameters for the second web component are different from the configuration parameters for the web component.
19. The apparatus of claim 15 , wherein the instructions to transmit the indication of the configuration parameters for the web component are executable by the processor to cause the apparatus to:
transmit, to the client, the indication of the configuration parameters for the web component based at least in part on determining that the one or more design characteristics associated with the data structure of the web component are stored in a cache associated with the client.
20. A non-transitory computer-readable medium storing code for data processing, the code comprising instructions executable by a processor to:
receive, from a client of a web service, a request for a web component included in a web page supported by the web service, the web component associated with a data structure that defines one or more design characteristics of the web component;
determine configuration parameters that define one or more stylistic characteristics of the web component based at least in part on data attributes of the web page and the data structure associated with the web component, wherein the configuration parameters are determined using a model trained on a corpus of web pages supported by the web service; and
transmit, to the client and in response to the request, an indication of the configuration parameters for the web component, wherein the indication is configured to display the web component according to the one or more stylistic characteristics defined by the configuration parameters.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.