Disclosure of Invention
The disclosure provides a style information determining method, a style information determining device, an electronic device and a storage medium, so as to at least solve the problems of low experimental efficiency, high cost and poor flexibility in the process of newly adding an experiment for a page element style in the related art. The technical scheme of the present disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided a style information determining method, including:
responding to an element style request of a target page, and acquiring at least one piece of experimental configuration information corresponding to the target page; the experimental configuration information indicates a style determination logic identifier corresponding to the page element;
determining hit target experiment configuration information according to the at least one experiment configuration information;
Determining a logical identifier according to the style corresponding to the target experiment configuration information, and determining style information of a target page element corresponding to the style determination logical identifier; the style information is obtained by executing style determination logic corresponding to the style determination logic identifier;
and returning the style information of the target page element.
In an exemplary embodiment, the method further comprises:
Searching first target experiment configuration information according to page elements corresponding to the target experiment configuration information; the first target experiment configuration information refers to a plurality of target experiment configuration information corresponding to the same page element;
and generating alarm information according to the first target experiment configuration information when the first target experiment configuration information is searched.
In an exemplary embodiment, before returning the style information of the target page element, the method further includes:
When the target page element corresponds to a plurality of style information, selecting one style information from the plurality of style information as style information to be returned by the target page element.
In an exemplary embodiment, the method further comprises:
Responding to a style determination logic configuration instruction aiming at page elements, and acquiring condition parameters and execution results; the execution result indicates style information;
and generating style determination logic corresponding to the page element and style determination logic identification corresponding to the style determination logic according to the condition parameters and the execution result.
In an exemplary embodiment, the determining hit target experiment configuration information according to the at least one experiment configuration information includes:
Transmitting the at least one experiment configuration information to an experiment server;
Receiving hit result information corresponding to the at least one piece of experiment configuration information returned by the experiment server;
Determining experimental configuration information with the hit result information being first hit result information as target experimental configuration information; the first hit result information indicates a hit.
In an exemplary embodiment, the determining, according to the style determining logic identifier corresponding to the target experimental configuration information, style information of a target page element corresponding to the style determining logic identifier includes:
Inputting a style determination logic identifier corresponding to the target experiment configuration information into a style engine, and determining a style determination logic matched with the style determination logic identifier in the loaded style determination logic set by the style engine;
And executing the style determining logic through the style engine to obtain style information of the target page element corresponding to the style determining logic identification.
In an exemplary embodiment, the determining, according to the style determining logic identifier corresponding to the target experimental configuration information, style information of a target page element corresponding to the style determining logic identifier includes:
according to the style determination logic identifier corresponding to the target experiment configuration information, acquiring a script of style determination logic corresponding to the style determination logic identifier;
and executing the script of the style determination logic to obtain style information of the target page element corresponding to the style determination logic identification.
According to a second aspect of the embodiments of the present disclosure, there is provided a style information determining apparatus including:
An experiment configuration obtaining unit, configured to perform obtaining at least one experiment configuration information corresponding to a target page in response to an element style request of the target page; the experimental configuration information indicates a style determination logic identifier corresponding to the page element;
A first determining unit configured to perform determining hit target experiment configuration information according to the at least one experiment configuration information;
a style information determining unit configured to perform a style determination logic identifier corresponding to the target experimental configuration information, and determine style information of a target page element corresponding to the style determination logic identifier; the style information is obtained by executing style determination logic corresponding to the style determination logic identifier;
And the style information return unit is configured to execute the return of the style information of the target page element.
In an exemplary embodiment, the apparatus further comprises:
The searching unit is configured to execute the page elements corresponding to the target experiment configuration information and search the first target experiment configuration information; the first target experiment configuration information refers to a plurality of target experiment configuration information corresponding to the same page element;
and the alarm unit is configured to generate alarm information according to the first target experiment configuration information when the first target experiment configuration information is found.
In an exemplary embodiment, the apparatus further comprises:
And the selecting unit is configured to execute selecting one style information from the style information to be returned as the style information of the target page element when the target page element corresponds to the style information.
In an exemplary embodiment, the apparatus further comprises:
a style determination logic configuration unit configured to execute a style determination logic configuration instruction in response to a page element, acquire a condition parameter and an execution result; the execution result indicates style information;
And the style determination logic generating unit is configured to execute style determination logic corresponding to the page element and style determination logic identification corresponding to the style determination logic according to the condition parameters and the execution result.
In an exemplary embodiment, the first determining unit includes:
a transmitting unit configured to perform transmission of the at least one experiment configuration information to an experiment server;
The hit result information receiving unit is configured to receive hit result information corresponding to the at least one piece of experiment configuration information returned by the experiment server;
a target experimental configuration determining unit configured to perform determination of experimental configuration information, in which the hit result information is first hit result information, as target experimental configuration information; the first hit result information indicates a hit.
In an exemplary embodiment, the style information determining unit includes:
A style determination logic identification input unit configured to perform inputting a style determination logic identification corresponding to the target experimental configuration information into a style engine, the style engine determining a style determination logic in a loaded style determination logic set that matches the style determination logic identification;
and the style information acquisition unit is configured to execute the style determination logic through the style engine to obtain style information of the target page element corresponding to the style determination logic identification.
In an exemplary embodiment, the style information determining unit includes:
a script acquisition unit configured to execute a style determination logic identifier corresponding to the target experiment configuration information, and acquire a script of style determination logic corresponding to the style determination logic identifier;
And the script execution unit is configured to execute the script of the style determination logic to obtain style information of the target page element corresponding to the style determination logic identification.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
A processor;
A memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the style information determination method of the first aspect described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the style information determination method of the first aspect described above.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program/instruction which, when executed by a processor, implements the style information determination method of the first aspect described above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
At least one experimental configuration information corresponding to a target page is obtained by responding to an element style request of the target page, and because the experimental configuration information indicates a style determination logic identifier corresponding to a page element, after the hit target experimental configuration information is determined, style information of style determination logic corresponding to the style determination logic identifier can be obtained based on the style determination logic identifier corresponding to the target experimental configuration information, and style information of the style determination logic identifier corresponding to the target page element is returned, so that experimental efficiency is greatly improved, and when experiments on page element styles are newly added, only simple new experimental configuration is needed, processing logic for new experiments is not needed to be developed, cost of the new experiments is greatly reduced, and experimental flexibility is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
It should be further noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for presentation, analyzed data, etc.) related to the present disclosure are information and data authorized by the user or sufficiently authorized by each party.
In the related art, in order to determine the element style schemes most interesting to most users, a comparison effect of multiple groups of AB experiments (hereinafter referred to as experiments) is usually performed, and each experiment for a page element style is a single set of processing logic, and when a server responds to an element style request of a client for a target page, the server needs to execute logic of hit experiments in sequence according to all the experiments associated with the target page, namely: the server calls the AB experiment platform to judge whether the experiment 1 is hit, if the experiment 1 is hit, the processing logic of the server executing the experiment 1 obtains valid style data and transmits the valid style data to the client, if the experiment 1 is not hit, the server continues to call the AB platform to judge whether the experiment 2 is hit, if the experiment 2 is hit, the processing logic of the server executing the experiment 2 obtains valid style data and transmits the valid style data to the client, if the experiment 2 is not hit, the server continues to call the AB platform to judge whether the experiment 3 is hit, and so on, the server needs to interact with the AB experiment platform in sequence in the process, so that not only the experiment efficiency is low, but also the cost of a new experiment is high and the flexibility is poor due to the fact that a set of new experiment processing logic needs to be developed in a targeted way when the experiment for the page element style is newly added.
In view of the above problems, the embodiments of the present disclosure provide a style information determining method, by responding to an element style request of a target page, at least one experimental configuration information corresponding to the target page is obtained, and since the experimental configuration information indicates a style determining logic identifier corresponding to a page element, after determining hit target experimental configuration information, style information of a style determining logic corresponding to the style determining logic identifier can be obtained based on the style determining logic identifier corresponding to the target experimental configuration information, and style information of the style determining logic identifier corresponding to the target page element is returned, thereby greatly improving experimental efficiency, and when an experiment for a page element style is newly added, only simple new experimental configuration is needed, no processing logic for a new experiment needs to be developed, greatly reducing cost of the new experiment, and improving flexibility.
Referring to fig. 1, an application environment diagram of a style information determining method according to an exemplary embodiment is shown, where the application environment may include a terminal 110, a style server 120, and an AB experiment server 130, where the terminal 110 and the style server 120 and the AB experiment server may be connected through a wired network or a wireless network.
The terminal 110 may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, etc. The terminal 110 has an Application (App) running therein, and the Application may be a stand-alone Application or a subroutine in the Application. By way of example, the application may include a gaming application, a live application, a video class application, and the like. The user of the terminal 110 may log into the application through pre-registered user information, which may include an account number and a password.
The style server 120 may be a server that provides a page element style service for an application program in the terminal 110, specifically, the terminal 110 may send an element style request for a target page to the style server 120, the style server 120 determines all experimental configuration information corresponding to the target page in response to the element style request, calls the AB experiment server 130 to determine hit target experimental configuration information based on the experimental configuration information, further determines style information of a page element according to the hit target experimental configuration information, and returns style information of the page element.
In a specific implementation scenario, as shown in fig. 1, the style server 120 may include an experiment configuration server and a style engine, where the experiment configuration server provides an experiment configuration service for page elements in a page and stores configured experiment configuration information, each of the experiment configuration information may indicate a style determination logic identifier corresponding to the page element, and the style determination logic identifier may uniquely identify a style determination logic.
The style determination logic may include a judgment condition portion and an execution result portion, the execution result portion being an execution result when the judgment result of the judgment condition portion is yes. In practical applications, the style determination logic may employ if/then statements, which may also be referred to as rules, where the if portion of the rule (i.e., the judgment condition portion) is used for processing conditions, such as account.
The style engine may be considered an interpreter of the style determination logic, e.g., the style engine may be a complex if/then statement interpreter, which may also be referred to as a rules engine when the style engine is used to interpret if/then statements.
For example, the experimental configuration information may include one or more page element identifications, each page element identification corresponding to a pattern determination logic identification, as shown in FIG. 1, which may uniquely identify one page element.
In embodiments of the present disclosure, the style engine may load a set of style determination logic, which may include a plurality of style determination logic corresponding to page elements, such as title-highlight determination logic, avatar-highlight determination logic, and the like.
It should be noted that, in the embodiments of the present disclosure, the server may be an independent physical server, or may be a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server that provides cloud services, a cloud database, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, and basic cloud computing services such as big data and an artificial intelligence platform.
Fig. 2 is a flowchart illustrating a style information determining method according to an exemplary embodiment, and as shown in fig. 2, the method is applied to the style server of fig. 1, for example, and includes the following steps.
In step S201, at least one experimental configuration information corresponding to a target page is obtained in response to an element style request of the target page.
The experimental configuration information indicates a style determination logic identifier corresponding to the page element. It will be appreciated that each experiment configuration information may have an experiment identification that is used to uniquely identify an experiment, e.g., the experiment identification may be the name of the experiment.
In a specific implementation, the style server may store at least one piece of experimental configuration information corresponding to each pre-configured page, for example, may store the experimental configuration information corresponding to each page according to a page identifier, and when an element style request of a target page is received, all pieces of experimental configuration information corresponding to the page identifier may be obtained based on the page identifier of the target page.
In an exemplary embodiment, at least one experimental configuration information corresponding to each page may be stored in the configuration server, and then when the style server acquires at least one experimental configuration information corresponding to the target page, the style server may send an experimental configuration information acquisition request for the target page to the configuration server, where the experimental configuration information acquisition request carries a page identifier of the target page, so that the configuration server may search for the experimental configuration information corresponding to the page identifier of the target page, and return the searched experimental configuration information to the style server.
In step S203, hit target experiment configuration information is determined according to the at least one experiment configuration information.
The target experiment configuration information is determined based on a pre-configured hit strategy in the AB experiment server, parameters involved in the hit strategy may include a user ID and an experiment identifier, and specific hit modes may refer to related technologies and are not described herein.
Based on this, in an exemplary embodiment, the step S203 may include the following steps when implemented:
Transmitting at least one experiment configuration information to an AB experiment server;
receiving hit result information corresponding to the at least one piece of experiment configuration information returned by the AB experiment server;
Determining experimental configuration information with the hit result information being first hit result information as target experimental configuration information; the first hit result information indicates a hit.
In the above embodiment, the at least one experiment configuration information corresponding to the target page is sent to the AB experiment server, so that the AB experiment server determines the hit result information of each experiment and returns the hit result information, so that the style server can determine the hit result of the at least one experiment configuration information based on the hit result information of each experiment, and the style server only needs to request the AB experiment server once, thereby improving the determination efficiency of the hit result and further being beneficial to improving the experiment efficiency.
In step S205, style information of a target page element corresponding to the style determination logic identifier is determined according to the style determination logic identifier corresponding to the target experimental configuration information.
The style information is obtained by executing style determining logic corresponding to the style determining logic identification. Specifically, the style server may determine style determination logic in the style determination logic set that matches the style determination logic identifier, and then obtain style information of a target page element corresponding to the style determination logic identifier by executing the matched style determination logic.
The style determination logic set may include a plurality of style determination logic, each style determination logic indicating style information of a corresponding page element under a condition that the style determination logic is satisfied. The condition parameters in the style determination logic conditions may be set according to actual needs, for example, the current page, the author ID (Identity Document, identity), the work type, the work label, whether the work has popularization information, whether the current user pays attention to authors, the number of author fans, the number of author friends, and the like, and the condition threshold corresponding to the condition parameters may also be set according to actual needs.
To increase the efficiency of execution and flexibility of configuration for the style determination logic, the style determination logic set may be preloaded into the style engine, based on which, in an exemplary embodiment, step S205 described above may include, when implemented:
Inputting a style determination logic identifier corresponding to the target experiment configuration information into a style engine, and determining a style determination logic matched with the style determination logic identifier in the loaded style determination logic set by the style engine;
And executing the style determining logic through the style engine to obtain style information of the target page element corresponding to the style determining logic identification.
Specifically, the style engine may determine the style determination logic corresponding to the loaded style determination logic set according to the style determination logic identifier, further determine a condition parameter based on the style determination logic condition in the style determination logic, obtain data corresponding to the condition parameter, execute the style determination logic based on the data to obtain an execution result, where the execution result indicates style information, and output the execution result to the style server, so that the style server may obtain style information of a target page element corresponding to the style determination logic identifier in the target experimental configuration information.
It can be understood that when the hit target experimental configuration information is multiple, the style server may sequentially input the style determination logic identifier corresponding to each target experimental configuration information into the style engine, so as to obtain style information of the target page element corresponding to the style determination logic identifier in each target experimental configuration information output by the style engine.
It can be appreciated that, in the foregoing embodiment, a style engine is needed, and if no existing style engine is available, a scripting language may also be used, that is, the style determination logic identifier may correspond to the script of the style determination logic, so that flexibility of the embodiment of the disclosure may be improved. Based on this, in another exemplary embodiment, the step S205 may include:
according to the style determination logic identifier corresponding to the target experiment configuration information, acquiring a script of style determination logic corresponding to the style determination logic identifier;
and executing the script of the style determination logic to obtain style information of the target page element corresponding to the style determination logic identification.
In a specific implementation, a script of each style determination logic may be stored on the configuration server, and the style server may pull, from the configuration server, the script of the style determination logic corresponding to the style determination logic identifier according to the style determination logic identifier corresponding to the target experimental configuration information, and then execute the script to obtain style information of the target page element corresponding to the style determination logic identifier.
The above-mentioned style determination logic in the embodiments of the present disclosure is preconfigured, based on which, in an exemplary implementation, the method may further include a configuration step of the style determination logic to generate style determination logic and a corresponding style determination logic identifier, where the style determination logic may be used to load a style determination logic set of a style engine, the style determination logic may also be stored in a script form, and the style determination logic identifier may be used to configure experimental configuration information. Specifically, the configuration step of the style determination logic may include:
Responding to a style determination logic configuration instruction aiming at page elements, and acquiring condition parameters and execution results; the execution result indicates style information;
and generating style determination logic corresponding to the page element and style determination logic identification corresponding to the style determination logic according to the condition parameters and the execution result.
In a specific implementation, a plurality of preset condition parameters and a plurality of preset execution results can be displayed, and a style determination logic configuration instruction for the page element is generated in response to a selection operation of the plurality of preset condition parameters and the plurality of preset execution results, wherein the style determination logic configuration instruction comprises the selected preset condition parameters and the selected preset execution results, so that the condition parameters and the execution results can be obtained by analyzing the style determination logic configuration instruction when the logic configuration instruction is determined in response to the style for the page element.
In the above embodiment, the flexible adjustment of the experimental strategy can be realized by configuring the style determining logic of the page element, for example, when the number of judging fans is hoped to be changed into the number of judging friends, the configuration of the style determining logic is only needed to be adjusted, instead of redevelopment, testing and online complete experimental logic, the realization of the experimental strategy is changed from hard coding to flexible configuration of the style determining logic, so that the flexibility of experiments is improved, and the efficiency of the experiments is also improved.
In step S207, style information of the target page element is returned.
In a specific implementation, when there are multiple target experiment configuration information, the style server may obtain style information of a target page element corresponding to the style determination logic identifier in each target experiment configuration information, and then combine the style information of the target page element corresponding to the style determination logic identifier in each target experiment configuration information and return the combined style information to the sender of the element style request.
According to the embodiment of the disclosure, the newly added experiment can be realized by determining the logic configuration through the experiment configuration information and the style, and the processing logic aiming at the new experiment is not required to be developed, so that the cost of the newly added experiment is greatly reduced, the flexibility of the experiment is improved, and meanwhile, the experiment efficiency is also greatly improved.
In practical application, when performing the AB experiment, the experiment 1 and the experiment 2 may be performed on one user group at the same time, but because the priority of the experiment 1 in the processing logic is always higher than that of the experiment 2, the user group is not actually involved in the experiment 2, resulting in poor reliability and low accuracy of the AB experiment result.
In order to improve reliability and accuracy of AB experiment results, another style information determining method is provided in the embodiments of the present disclosure, as shown in fig. 3, which is a flow chart of another style information determining method, in which a conflict detection mechanism is introduced, that is, if experiments controlling the same page element hit a plurality of page elements, it is indicated that a hit strategy has a problem, and in general, the hit strategy is executed by the AB experiment server, so that it may be indicated that the configuration of the AB experiment server is incorrect, and at this time, alarm information may be generated and sent to an operation node corresponding to the AB experiment server, so as to remind of timely adjusting the configuration of the AB experiment server. Specifically, as shown in fig. 3, after determining the hit target experiment configuration information according to the at least one experiment configuration information in step S203, the method may further include:
s301, searching first target experiment configuration information according to page elements corresponding to the target experiment configuration information.
The first target experiment configuration information refers to a plurality of target experiment configuration information corresponding to the same page element, that is, the first target experiment configuration information may control style information of the same page element, so that the first target experiment configuration information may be regarded as experiment configuration information with conflicts.
In a specific implementation, the page element identifier corresponding to each piece of target experiment configuration information can be obtained, and if the page element identifiers corresponding to different pieces of target experiment configuration information have the same page element identifier, it can be determined that the piece of target experiment configuration information with the same page element identifier is the first piece of target experiment configuration information.
S303, when the first target experiment configuration information is found, generating alarm information according to the first target experiment configuration information.
The alarm information is used for indicating hit target experiment configuration information with conflicts. For example, the alarm information may be sent to the operation and maintenance node corresponding to the AB experiment server, so that the operation and maintenance node adjusts the relevant configuration in the AB experiment server based on the alarm information.
In the above embodiment, collision detection is performed on the hit target experiment configuration information, and alarm information is generated when the collision is detected, so that the relevant operation and maintenance node can be timely reminded to adjust the relevant configuration of the AB experiment server, so that only one hit of the experiment controlling the same page element can be ensured in the subsequent style information determining process, and further the reliability and accuracy of the AB experiment result can be improved.
Based on this, in an exemplary embodiment, as shown in the flow chart of another style information determining method in fig. 4, before returning the style information of the target page element, the method further includes:
in step S401, when the target page element corresponds to a plurality of style information, one style information is selected from the plurality of style information as style information to be returned by the target page element.
Specifically, the style server acquires style information of a target page element corresponding to a style determination logic identifier in each target experimental configuration information, counts the number of style information corresponding to each target page element, and if the number of style information is a plurality of target page elements, namely the number is greater than 1, selects one style information to be returned from the plurality of style information corresponding to the target page element as style information to be returned of the target page element, and further can return the style information to be returned as style information of the target page element to a sender of an element style request. The selection method may be, but is not limited to, random selection.
In the above embodiment, when the target page element corresponds to a plurality of style information, the validity of the return result of the style server may be ensured by selecting one of the style information to be returned by the target page element.
For a better understanding of the technical solutions of the embodiments of the present disclosure, a specific embodiment is described below. Fig. 5a is a schematic flow chart of another style information determining method according to an embodiment of the disclosure, where the method includes:
in step S501, the terminal transmits an element style request for a target page to a style server.
In step S503, the style server pulls all experimental configuration information corresponding to the target page from the configuration server in response to the element style request for the target page.
In step S505, the style server sends all the experiment configuration information corresponding to the target page to the AB experiment server, and obtains the hit condition of each experiment configuration information returned by the AB experiment server.
In step S507, the style server determines hit target experiment configuration information based on hit conditions of the respective experiment configuration information, and performs collision detection on the hit target experiment configuration information.
In step S509, for each target experimental configuration information, the style server calls the style engine with the style determination logic identifier corresponding to the target experimental configuration information as a parameter, finds the corresponding style determination logic through the style engine, loads the dependent data used in the condition corresponding to the style determination logic, executes the style determination logic, obtains the execution result (i.e., the style information of the target page element corresponding to the style determination logic identifier), and returns the execution result to the style server.
Correspondingly, the style server acquires style information of the target page element corresponding to the style determination logic identifier in the target experimental configuration information.
In step S511, the style server merges style information of the target page element corresponding to the style determination logical identifier in all the target experimental configuration information.
In step S513, the style server issues style information for each target page element to the terminal.
Taking the target page as a short video page as an example, when a user views the short video page, a terminal corresponding to the user sends an element style request aiming at the short video page to a style server;
The style server responds to the element style request, all experimental configuration information corresponding to the short video page is pulled from the configuration server, and 3 experimental configuration information corresponding to the short video page is assumed to be respectively experiment 1, experiment 2 and experiment 3, wherein experiment 1 is a head image element- > -style determination logic 1, experiment 2 is a title element- > -style determination logic 2, and experiment 3 is a head image element- > -style determination logic 3 and a title element- > -style determination logic 2;
the style server sends the three pieces of experiment configuration information to the AB experiment server, and obtains hit conditions of the experiment configuration information returned by the AB experiment server, wherein if all the three pieces of experiment configuration information hit, the style server further carries out conflict detection on the three pieces of experiment configuration information, because experiment 1 and experiment 3 correspond to head portrait elements, conflict exists between experiment 1 and experiment 3, similarly, experiment 2 corresponds to title elements, conflict exists between experiment 2 and experiment 3, and at the moment, the style server generates alarm information and sends the alarm information to the AB experiment server, and the alarm information indicates that experiment 1 conflicts with experiment 3 and experiment 2 conflicts with experiment 3;
the style server calls a style engine by taking style determination logic 1 as a parameter aiming at experiment 1, the style engine searches head portrait highlighting determination logic corresponding to the style determination logic 1, and supposing that the head portrait highlighting determination logic indicates that if an author is concerned, the head portrait is displayed, the style engine loads the concerned state of the current user on the short video author and executes the head portrait highlighting determination logic based on the concerned state, so that an execution result, namely style information 1 corresponding to head portrait elements is obtained;
Similarly, for experiment 2, the style server calls a style engine by taking style determination logic 2 as a parameter, the style engine searches title saliency determination logic corresponding to the style determination logic 2, and if the title saliency determination logic indicates that a title is displayed if the type of the work is video, the style engine loads the type of the work corresponding to the short video page and executes the title saliency determination logic based on the type of the work, so that an execution result, namely, style information 2 corresponding to a title element is obtained;
Similarly, for experiment 3, the style server calls a style engine by taking style determination logic 3 and style determination logic 2 as parameters, the style engine searches head portrait explicit determination logic corresponding to the style determination logic 3 and title explicit determination logic corresponding to the style determination logic 2, wherein the title explicit determination logic corresponding to the style determination logic 2 is the same as that in the experiment 2, so that style information 2 corresponding to a title element can be obtained, but the head portrait explicit determination logic corresponding to the style determination logic 3 is different from that in the experiment 1, the head portrait explicit determination logic corresponding to the style determination logic 3 indicates that if the number of the author vermicelli reaches 100 ten thousand, the head portrait is displayed, and then the style engine loads the number of the vermicelli of the current author and executes the head portrait explicit determination logic corresponding to the style determination logic 3, so that an execution result, namely the style information 3 corresponding to the head portrait element is obtained;
The style server merges style information corresponding to each experiment, the title element corresponds to only one style information 2, the header element corresponds to style information 1 and style information 3, and assuming that style information 1 is different from style information 3 (for example, style information 1 is a display header, and style information 3 is a non-display header), the style server may randomly select one style information from the style information as style information to be returned of the header element, for example, style information 1 is style information to be returned of the header element, and further the style server returns style information 2 corresponding to the title element and style information 1 corresponding to the header element to the terminal corresponding to the user, so that the terminal displays the title element and the header element in the short video page based on style information 2 and style information 1, as an example, in which fig. 5b is an example, the terminal displays the title element and the header element in the short video page based on the returned style information 2 and style information 1.
Fig. 6 is a block diagram illustrating a style information determining apparatus according to an exemplary embodiment. Referring to fig. 6, the style information determining apparatus 600 includes an experimental configuration acquiring unit 610, a first determining unit 620, a style information determining unit 630, and a style information returning unit 640. Wherein:
An experimental configuration obtaining unit 610, configured to obtain at least one experimental configuration information corresponding to a target page by performing an element style request in response to the target page; the experimental configuration information indicates a style determination logic identifier corresponding to the page element;
A first determining unit 620 configured to perform determining hit target experiment configuration information according to the at least one experiment configuration information;
A style information determining unit 630 configured to perform a style determination logic identifier corresponding to the target experimental configuration information, and determine style information of a target page element corresponding to the style determination logic identifier; the style information is obtained by executing style determination logic corresponding to the style determination logic identifier;
and a style information returning unit 640 configured to perform a return of style information of the target page element.
In an exemplary embodiment, the apparatus further comprises:
The searching unit is configured to execute the page elements corresponding to the target experiment configuration information and search the first target experiment configuration information; the first target experiment configuration information refers to a plurality of target experiment configuration information corresponding to the same page element;
and the alarm unit is configured to generate alarm information according to the first target experiment configuration information when the first target experiment configuration information is found.
In an exemplary embodiment, the apparatus further comprises:
And the selecting unit is configured to execute selecting one style information from the style information to be returned as the style information of the target page element when the target page element corresponds to the style information.
In an exemplary embodiment, the apparatus further comprises:
a style determination logic configuration unit configured to execute a style determination logic configuration instruction in response to a page element, acquire a condition parameter and an execution result; the execution result indicates style information;
And the style determination logic generating unit is configured to execute style determination logic corresponding to the page element and style determination logic identification corresponding to the style determination logic according to the condition parameters and the execution result.
In an exemplary embodiment, the first determining unit 620 includes:
a transmitting unit configured to perform transmission of the at least one experiment configuration information to an experiment server;
The hit result information receiving unit is configured to receive hit result information corresponding to the at least one piece of experiment configuration information returned by the experiment server;
a target experimental configuration determining unit configured to perform determination of experimental configuration information, in which the hit result information is first hit result information, as target experimental configuration information; the first hit result information indicates a hit.
In an exemplary embodiment, the style information determining unit 630 includes:
A style determination logic identification input unit configured to perform inputting a style determination logic identification corresponding to the target experimental configuration information into a style engine, the style engine determining a style determination logic in a loaded style determination logic set that matches the style determination logic identification;
and the style information acquisition unit is configured to execute the style determination logic through the style engine to obtain style information of the target page element corresponding to the style determination logic identification.
In an exemplary embodiment, the style information determining unit 630 includes:
a script acquisition unit configured to execute a style determination logic identifier corresponding to the target experiment configuration information, and acquire a script of style determination logic corresponding to the style determination logic identifier;
And the script execution unit is configured to execute the script of the style determination logic to obtain style information of the target page element corresponding to the style determination logic identification.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
In one exemplary embodiment, there is also provided an electronic device including a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement any one of the style information determination methods provided in the embodiments of the present disclosure when executing instructions stored on the memory.
The electronic device may be a terminal, a server, or a similar computing device, and taking the electronic device as an example of a server, fig. 7 is a block diagram of an electronic device for a style information determining method according to an exemplary embodiment, and as shown in fig. 7, the server 700 may have a relatively large difference due to configuration or performance, and may include one or more central processing units (Central Processing Units, CPU) 710 (the processor 710 may include, but is not limited to, a microprocessor MCU, a programmable logic device FPGA, or the like), a memory 730 for storing data, and one or more storage media 720 (e.g., one or more mass storage devices) storing applications 723 or data 722. Wherein memory 730 and storage medium 720 may be transitory or persistent. The program stored in the storage medium 720 may include one or more modules, each of which may include a series of instruction operations on the server. Still further, the central processor 710 may be configured to communicate with the storage medium 720 and execute a series of instruction operations in the storage medium 720 on the server 700. The server 700 may also include one or more power supplies 760, one or more wired or wireless network interfaces 750, one or more input/output interfaces 740, and/or one or more operating systems 721, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
Input-output interface 740 may be used to receive or transmit data via a network. The specific example of the network described above may include a wireless network provided by a communication provider of the server 700. In one example, the input/output interface 740 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices through a base station to communicate with the Internet. In one example, the input/output interface 740 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 7 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, server 700 may also include more or fewer components than shown in fig. 7, or have a different configuration than shown in fig. 7.
In an exemplary embodiment, a computer readable storage medium is also provided, such as memory 730, comprising instructions executable by processor 710 of apparatus 700 to perform any of the style information determination methods provided in the embodiments of the present disclosure. Alternatively, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In one exemplary implementation, there is also provided a computer program product comprising a computer program/instruction which, when executed by a processor, implements any of the style information determination methods provided in the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.