Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
With the popularization of the internet, the way of acquiring information is changed from traditional reading to reading and newspaper reading to acquiring various information by using the internet. When information is obtained through the internet, people are generally required to install different application programs on electronic equipment, wherein the different application programs correspond to different types of information. For example, a video application may be acquiring video information, a live application may be acquiring live video, a news application may be acquiring news information, and a music application may be acquiring music information. Different types of information correspond to different applications.
Various application programs can provide corresponding information services and can also recommend information so as to meet the requirements of people on information acquisition. For example, in a live application program, live videos of different anchor broadcasts can be seen, the application program can directly recommend a part of the live videos to be displayed to a user, the situation that the user obtains the live videos through searching is reduced, and the user can obtain the live videos more conveniently.
The inventor finds that most application programs directly display an interface for information recommendation after being started so as to be convenient for a user to browse. However, there may be multiple forms of information display interfaces in the application programs, and when information recommendation is performed, information recommendation is usually performed in a recommendation manner. When the information recommendation system has various display interface forms, the recommendation information obtained by adopting one recommendation mode is not good enough in effect, and different information acquisition requirements of users are difficult to adapt.
Therefore, the inventor provides the information recommendation method provided by the embodiment of the application, and obtains the display attribute of the current information display interface; calling a recommendation algorithm matched with the display attribute to obtain target information to be displayed; and outputting the target information. The method comprises the steps of obtaining the display attribute of the current information display interface, determining the recommendation algorithm to be called according to the display attribute when information recommendation is carried out, wherein different display attribute information display interfaces call different recommendation algorithms to carry out information recommendation, so that the recommendation diversification can be realized by combining different recommendation modes, various information obtaining requirements of users are met, and the use experience of the users is improved.
Referring to fig. 1, an application environment 10 of the information recommendation method provided in the embodiment of the present application is shown, where the application environment 10 includes: terminal device 11, server 12, and network 13. The terminal device 11 may be a mobile phone, a tablet computer, a notebook computer, an intelligent television, or other devices capable of supporting an application program. The server 12 may be a local server or a cloud server. The network 13 may be a wide area network or a local area network, or a combination of both, and uses wireless links for data transmission.
The terminal device 11 and the server 12 are connected through a network 13 to realize information recommendation.
In some embodiments, when making a recommendation, the server 12 may obtain the display attribute of the current information display interface; calling a recommendation algorithm matched with the display attribute to obtain target information to be displayed; and outputting the target information. The server 12 may send the target information to the terminal device 11 through the network 13 for display.
In some embodiments, when performing recommendation, the terminal device 11 may obtain a display attribute of a current information display interface, and call a recommendation algorithm matched with the display attribute to obtain target information to be displayed; and finally, outputting the target information for display. When the terminal device calls the recommendation algorithm matched with the display attribute, the server 12 may send the required information to the terminal device 11, so that the terminal device 11 may determine the target information from the information through the recommendation algorithm based on the information sent by the server 12.
In some embodiments, when information recommendation is performed, the terminal device 11 may further obtain a display attribute of a current information display interface, and send the display attribute to the server 12 through the network 13, and the server 12 calls a recommendation algorithm matched with the display attribute according to the display attribute to obtain target information to be displayed; the target information is output by the server 12 and sent to the terminal device 11 through the network 13 for display. As shown in fig. 1, different interfaces 14 and 16 for information display are shown, wherein in display interface 14, the target information may be displayed at the location shown at 15, and in display interface 16, the target information may be displayed at the location shown at 17.
Referring to fig. 2, an embodiment of the present application provides an information recommendation method, which implements information recommendation based on the application environment. The following will describe a specific flow of the present embodiment by taking an electronic device as an example. The electronic device applied in this embodiment may be a server or a terminal device, and is not limited specifically herein. The method comprises the following steps:
step S110, acquiring the display attribute of the current information display interface.
Various application programs can be installed on the terminal equipment, the application programs are utilized to display information, and different display attributes can be provided when the information is displayed, wherein the page layouts of display interfaces displayed by the different display attributes are different. There may be multiple different display interfaces in the same application, and then different display interfaces may have different display properties. In order to realize more flexible recommendation, different recommendation algorithms can be adopted for information display interfaces with different display attributes. Therefore, the display attribute of the display interface of the current information can be acquired to determine the recommendation algorithm to be called.
As an implementation manner, when the display attribute of the current information display interface is acquired, the display attribute of the current information display interface may be determined according to the configuration information of the current display interface. As another implementation, the page layout of the current information display interface may be obtained, and the display attribute of the current information display interface may be determined according to the page layout.
And step S120, calling a recommendation algorithm matched with the display attribute to acquire target information to be displayed.
And when the display attribute of the current information display interface is determined, calling a recommendation algorithm matched with the display attribute according to the display attribute to obtain target information to be displayed. Therefore, after the display attribute of the current information display interface is acquired, a recommendation algorithm matched with the display attribute needs to be determined.
As an implementation manner, an algorithm comparison table may be stored in advance, where the algorithm comparison table includes a corresponding relationship between a display attribute and a recommendation algorithm, so that when the display attribute of the current information display interface is obtained, the recommendation algorithm corresponding to the display attribute of the current information display interface may be obtained by querying the algorithm comparison table, and the target information to be displayed is obtained by using the recommendation algorithm found in the algorithm comparison table.
When information recommendation is performed, a plurality of different recommendation algorithms exist, wherein the target information to be displayed acquired by the different recommendation algorithms is different. For example, the recommendation algorithm may be divided into a first recommendation algorithm and a second recommendation algorithm, the first recommendation algorithm may select target information from information different from the last recommended information, and the second recommendation algorithm may select target information from information that is recovered and information different from the last recommended information after the information that is recommended but not displayed is recovered. In addition, the second recommendation algorithm can also select target information according to the behavior habit of the user for browsing information.
When the target information is acquired by using the recommendation algorithm, the number of the acquired target information may be preset or may be determined according to the number of the information to be displayed on the information display interface. Specifically, the number of the acquired target information may be selected according to actual needs, and is not specifically limited herein.
In some embodiments, the number of the acquired target information may be determined according to the number of the information required to be displayed by the information display interface. For example, the number of information to be displayed in one information display interface is one, and the number of acquired target information may be 1; the number of information to be displayed in another information display interface is 10, and the number of acquired target information may be 10.
In other embodiments, the number of the acquired target information may be preset in different algorithms, and when the recommendation algorithm is invoked to acquire the target information, the set number of the target information may be acquired correspondingly. For example, the number of acquired target information is set to 10 in the first recommendation algorithm, and the number of acquired target information is set to 5 in the second recommendation algorithm. Then, when the first recommendation algorithm is invoked to obtain the target information, the number of the obtained target information is 10, and when the second recommendation algorithm is invoked to obtain the target information, the number of the obtained target information is 5.
When the recommendation algorithm is called to obtain the target information to be displayed, the called process may be to generate a corresponding information request instruction after determining the recommendation algorithm and the number of the obtained target information, where the information request instruction may include the recommendation algorithm information to be called, and the number of the obtained target information, and the like, to trigger calling of the corresponding recommendation algorithm to obtain the target information to be displayed.
And step S130, outputting the target information.
And when a recommendation algorithm matched with the display attribute corresponding to the display attribute of the current display interface is called to obtain target information, the target information can be output to be displayed for a user to browse. If the step is executed by the server, the server can send the output target information to an application program of the terminal equipment, and the application program displays the target information for a user to browse; if the step is executed by the terminal device, the target information can be directly output for display. The target information may be picture information, video information, or text information.
Specifically, when the target information is output to be displayed, the target information may be displayed in a form of being matched with a current information display interface, for example, only one piece of target information may be displayed on the current information display interface, and when the user slides down, the next piece of target information is displayed, so that the acquired pieces of target information may be displayed one by one according to the operation of the user. If the current information display interface can display a plurality of target information, the plurality of target information can be adaptively displayed.
The information recommendation method provided by the application acquires the display attribute of the current information display interface; calling a recommendation algorithm matched with the display attribute to obtain target information to be displayed; and outputting the target information. The method comprises the steps of obtaining the display attribute of the current information display interface, determining the recommendation algorithm to be called according to the display attribute when information recommendation is carried out, wherein different display attribute information display interfaces call different recommendation algorithms to carry out information recommendation, so that the recommendation diversification can be realized by combining different recommendation modes, various information obtaining requirements of users are met, and the use experience of the users is improved.
Referring to fig. 3, another embodiment of the present application provides an information recommendation method, which focuses on the process of obtaining the display attribute of the current information display interface on the basis of the previous embodiment. Specifically, the method may include:
step S210, obtaining a page layout of the current information display interface.
Different display interfaces can correspond to different page layouts, wherein the display effects of information display under different page layouts are different. For example, in a waterfall-like layout, a number of different pieces of information may be displayed, and in an immersive layout, only one piece of information is displayed per display interface. When the page layout of the display interface of the current information is obtained, the page layout parameters of the display interface of the current information may be obtained. Specifically, the page layout may be obtained by extracting corresponding page layout parameters from the page layout code to determine the page layout of the current information display interface.
In some embodiments, the page layout may be changed according to user settings, and when the page layout of the current information display interface is obtained, setting information of the user may be obtained to determine the page layout of the current information display interface. For example, two ways of page layout are provided for user selection, waterfall flow layout and immersive layout. Therefore, the page setting information of the current information display interface can be obtained, and the page layout mode selected by the user is obtained to determine the page layout of the current information display interface.
And step S220, determining the display attribute of the current information display interface according to the page layout.
When the page layout is acquired, the display attribute of the current information display interface can be determined according to the acquired page layout. As shown in fig. 4, the following steps may be included:
and step S221, determining the display quantity of the target information required to be displayed in the current information display interface according to the page layout.
And acquiring the display quantity of the target information to be displayed according to the parameter information of the page layout while determining the page layout. For example, when the page layout of the current information display interface is a streaming layout, a plurality of pieces of information may be generally displayed, and then the maximum number of pieces of information that can be displayed on the current information display interface may be obtained according to parameters of the page layout, and the maximum number of pieces of information that can be displayed is used as the number of pieces of target information that needs to be displayed on the current information display interface.
Step S222, judging whether the display quantity of the target information to be displayed is greater than a preset quantity; if yes, go to step S223; if not, go to step S224.
The preset number of the current information display interfaces is preset, and after the display number of the target information to be displayed in the current information display interfaces is determined according to the page layout, the size relationship between the display number and the preset number can be compared. Wherein the preset number may be for distinguishing different display attributes. When the display quantity of the target information to be displayed is greater than the preset quantity, indicating that more target information needs to be displayed on the current information display interface, executing step S223; if the display quantity of the target information to be displayed is less than or equal to the preset quantity, which indicates that the target information to be displayed on the current information display interface is less, step S224 may be executed.
Step S223, determining that the current information display interface has the first attribute.
When the display quantity of the target information to be displayed is compared with the preset quantity, if the display quantity of the target information to be displayed is larger than the preset quantity, the current information display interface is considered to need to display more target information, and the fact that the current information display interface has the first attribute can be determined, namely when the information display interface has the first attribute, more target information needs to be displayed.
Step S224, determining that the current information display interface has the second attribute.
When the display quantity of the target information to be displayed is compared with the preset quantity, if the display quantity of the target information to be displayed is smaller than or equal to the preset quantity, the current information display interface is considered to need to display less target information, and the fact that the current information display interface has the second attribute can be determined, namely when the information display interface has the second attribute, less target information needs to be displayed.
Alternatively, step S223 and step S224 are performed, that is, when it is determined that the current information display interface has the first attribute, step S224 is not performed, and when it is determined that the current information display interface has the second attribute, step S223 is not performed.
And step S230, calling a recommendation algorithm matched with the display attribute to acquire target information to be displayed.
After the display attribute of the current information display interface is determined, a matched recommendation algorithm can be determined according to the display attribute. And after the recommendation algorithm is determined, acquiring target information to be displayed by using the determined recommendation algorithm.
Specifically, an algorithm comparison table is stored in advance, the algorithm comparison table comprises a corresponding relation between a display attribute and a recommended algorithm, when the display attribute of the current information display interface is obtained, the recommended algorithm corresponding to the display attribute of the current information display interface can be obtained by inquiring the algorithm comparison table, and the target information to be displayed is obtained by using the recommended algorithm searched in the algorithm comparison table. Wherein, the algorithm comparison table can refer to table 1.
TABLE 1
| Display attributes
|
First attribute
|
Second attribute
|
| Recommendation algorithm
|
First recommendation algorithm
|
Second recommendation algorithm |
In table 1, the display attributes may include a first attribute and a second attribute, and the recommendation algorithm may include a first recommendation algorithm and a second recommendation algorithm. The recommendation algorithm corresponding to the first attribute is a first recommendation algorithm, and the recommendation algorithm corresponding to the second attribute is a second recommendation algorithm. If the display attribute of the current information display interface is determined to be a first attribute, inquiring the algorithm comparison table to obtain that the recommendation algorithm corresponding to the first attribute is a first recommendation algorithm, and obtaining target information to be displayed by using the first recommendation algorithm; and if the display attribute of the current information display interface is determined to be the second attribute, inquiring the algorithm comparison table to obtain that the recommendation algorithm corresponding to the second attribute is the second recommendation algorithm, and obtaining the target information to be displayed by using the second recommendation algorithm.
Therefore, after the display attribute of the current information display interface is obtained, the recommendation algorithm matched with the display attribute can be called to obtain the target information to be displayed.
And step S240, outputting the target information.
Step S240 may refer to corresponding parts of the foregoing embodiments, which are not described herein.
The information recommendation method obtains the page layout of the current information display interface, and determines the display attribute of the current information display interface according to the page layout; calling a recommendation algorithm matched with the display attribute to obtain target information to be displayed; and outputting the target information. The display attribute is determined by obtaining the page layout of the current information display interface, and the recommendation algorithm to be called is determined according to the display attribute when information recommendation is carried out, wherein different display attribute information display interfaces call different recommendation algorithms to carry out information recommendation, so that the recommendation diversification can be realized by combining different recommendation modes, the various information acquisition requirements of users are met, and the use experience of the users is improved.
Referring to fig. 5, another embodiment of the present application provides an information recommendation method, and this embodiment focuses on describing a process of obtaining target information to be displayed by invoking a recommendation algorithm matched with the display attribute on the basis of the foregoing embodiment. As shown in fig. 5, the method may include:
step S310, acquiring the display attribute of the current display interface.
Step S310 may refer to the corresponding description of the foregoing embodiments, and is not repeated herein.
Step S320, when the information display interface has the first attribute, calling a first recommendation algorithm to obtain target information to be displayed, wherein the first recommendation algorithm selects the target information from the non-recommended information.
When the information display interface is determined to have the first attribute, the fact that the current information display interface needs to display more target information is indicated, and a first recommendation algorithm can be called to obtain the target information to be displayed. The first recommendation algorithm may be to select target information from the unrenominated information. Specifically, referring to fig. 6, obtaining target information to be displayed through a first recommendation algorithm may include the following steps:
in step S321, information different from the last recommended information is obtained and stored in the first information base.
When information recommendation is performed, the current information display interface already displays information, and when a user performs sliding or pull-down operation on the current information display interface to refresh the information displayed on the current information display interface, the obtained target information can be displayed. The information displayed in the current information display interface can be understood as target information obtained by calling the first recommendation algorithm last time, namely last recommendation information. When the information displayed on the current information display interface is refreshed along with the operation of the user, the information different from the last recommended information can be acquired and stored in the first information base, namely, the information different from the information displayed on the current information display interface is stored in the first information base.
For example, the recommended information is live video, the last recommended live video is video a, video B, video C, and video D, and the obtained information different from the last recommended information may be all live videos except for video a, video B, video C, and video D.
As an implementation manner, last recommended information may be obtained first, and then information different from the last recommended information is obtained according to the last recommended information and stored in the first information base, so that the information in the first information base is information different from the last recommended information.
As another embodiment, the first information base may store all information, obtain last recommended information, search for the same information as the last recommended information from the first information base, and delete the same information from the first information base, so that the information in the first information base is different from the last recommended information.
Step S322, acquiring the display quantity of the target information required to be displayed on the current information display interface.
Specifically, as described in the foregoing embodiment, the page layout of the current information display interface may be obtained, and the display quantity of the target information that needs to be displayed in the current information display interface is determined according to the page layout, which specifically refers to the corresponding description in the foregoing embodiment and is not described herein again.
Step S323, selecting the display quantity information from the first information base as the target information.
After the display quantity of the target information required to be displayed on the current information display interface is acquired, the display quantity information can be selected from the first information base as the target information according to the recommendation rule of the first recommendation algorithm.
When the page layout of the current information display interface is a waterfall flow type layout, the first recommendation algorithm can be called to obtain the target information to be displayed when the current information display situation has the first attribute, namely more target information needs to be displayed. Referring specifically to fig. 7, a display interface diagram of a waterfall flow type layout is shown. A plurality of target information may be displayed in the waterfall flow type layout 20, the display position of the target information may be the position shown at 21, and the information displayed at 21 may be continuously updated as the user performs a refresh operation, such as sliding down.
Step S330, when the information display interface has a second attribute, a second recommendation algorithm is called to obtain target information to be displayed, and the second recommendation algorithm selects the target information from the non-recommended information and the recommended but non-displayed information.
When the information display interface is determined to have the second attribute, the fact that the current information display interface needs to display less target information is indicated, and a second recommendation algorithm can be called to obtain the target information to be displayed. The second recommendation algorithm may be to select target information from the unrenominated information. Specifically, referring to fig. 8, obtaining target information to be displayed through the second recommendation algorithm may include the following steps:
in step S331, information that has been recommended last time but is not displayed and information that is different from the information recommended last time are acquired and stored in the second information base.
When information recommendation is performed, the current information display interface already displays information, and when a user performs sliding or pull-down operation on the current information display interface to refresh the information displayed on the current information display interface, the obtained target information can be displayed. The information displayed in the current information display interface can be understood as the target information acquired by calling the second recommendation algorithm last time, namely the last recommendation information. When the information displayed on the current information display interface is refreshed along with the operation of the user, the information different from the last recommended information can be acquired and stored in the second information base, namely, the information different from the information displayed on the current information display interface is stored in the second information base.
Specifically, since the current information display interface invoking the second recommendation algorithm has the second attribute, that is, less target information needs to be displayed, the current page layout may be an immersive layout, and referring to fig. 9 in particular, a schematic diagram of the display interface of the immersive layout is shown. In fig. 9, only one piece of information may be displayed at the position shown at 31 in the immersive layout 30. Therefore, the information displayed on the current information display interface calling the second recommendation algorithm last time is not all the content of the target information recommended last time, and a part of the target information is not displayed, so that the information recommended last time but not displayed can be recycled and stored in the second information base. For example, the last recommended information is five pieces of target information in total, only one piece of target information is displayed on the current information display interface, and when the user performs a refresh operation, 4 pieces of target information which are not displayed can be acquired and stored in the second information base.
As an implementation manner, the last recommended information may be obtained, then the recommended information already displayed in the last recommended information is determined, and information different from the already displayed recommended information is obtained and stored in the second information base, so that the information in the second information base is information different from the last recommended information and information which has been recommended last time but is not displayed last time.
As another embodiment, the second information base may store all information, obtain information already displayed in the last recommended information, search for information that is the same as information already displayed in the last recommendation from the first information base, and delete the information from the second information base, so that the information in the second information base is information that is different from the last recommended information and information that has been recommended last time but is not displayed.
Step S332, acquiring the display quantity of the target information required to be displayed on the current information display interface.
Specifically, as described in the foregoing embodiment, the page layout of the current information display interface may be obtained, and the display quantity of the target information that needs to be displayed in the current information display interface is determined according to the page layout, which specifically refers to the corresponding description in the foregoing embodiment and is not described herein again.
Step S333, selecting the display quantity information from the second information base as the target information.
After the display quantity of the target information required to be displayed on the current information display interface is acquired, the display quantity information can be selected from the second information base as the target information according to the recommendation rule of a second recommendation algorithm.
If the quantity of the target information acquired by the second recommendation algorithm is a preset quantity and is different from the display quantity of the target information required to be displayed on the current information display interface, the recommended target information is not displayed, and the recommended target information which is not displayed is acquired and stored in the second information base, so that the recommended information which is not displayed can be recycled, and the waste of information is avoided. And if the quantity of the target information acquired by adopting the second recommendation algorithm is the same as the display quantity of the target information required to be displayed on the current information display interface, no recommended target information which is not displayed exists, and the recommended target information which is not displayed is not acquired and stored in the second information base.
In addition, in the second recommendation algorithm, a satisfaction index of the user to the last recommendation information can be obtained; when the satisfaction index is larger than or equal to a preset index, selecting information with the same type as the information recommended last time from the second information base as the target information; and when the satisfaction index is smaller than a preset index, selecting information with a type different from that recommended last time from the second information base as the target information.
Specifically, the satisfaction index of the user on the last recommended information may be obtained according to the watching behavior of the user. For example, when browsing the last recommended information, the user may like the information, and the like behavior of the user may correspond to a satisfactory value. Or the time length for the user to watch the information is obtained, and when the watching time length is longer than the preset time length, a satisfactory value can be corresponded. The sum of all the satisfaction values is the satisfaction index of the user to the last recommended information. When the satisfaction index is larger than or equal to a preset index, the user likes the last recommended information, and information with the same type as the last recommended information can be continuously recommended to the user, namely, the information with the same type as the last recommended information is selected from a second information base to serve as the target information; and when the satisfaction index is smaller than a preset index, the user does not like the last recommended information, information with the type different from that of the last recommended information is recommended to the user, namely, the information with the type different from that of the last recommended information is selected from the second information base to serve as the target information.
For example, if the last recommended information is a live video of a singing category, and the satisfaction index of the user on the live video is greater than the preset index, the live videos of the same type, such as the live video of the singing category, can be selected from the second information base as the target information. Therefore, information recommendation more in accordance with the user can be realized according to the information browsing behavior of the user.
And step S340, outputting the target information.
Step S340 may refer to corresponding parts of the foregoing embodiments, and will not be described herein.
The information recommendation method provided by the application acquires the display attribute of the current information display interface; when the information display interface has a first attribute, calling a first recommendation algorithm to obtain target information to be displayed; when the information display interface has a second attribute, calling a second recommendation algorithm to obtain target information to be displayed; and then the target information is output. The first recommendation algorithm can adapt to a display interface adopting a waterfall flow type layout, the second recommendation algorithm can adapt to a display interface adopting an immersive layout, and real-time recommendation can be performed according to the behavior of the user browsing information and adapting to the preference of the user. Therefore, the recommendation method and the system can be integrated with different recommendation modes to realize the recommendation diversification, meet the various information acquisition requirements of users, and improve the use experience of the users.
Referring to fig. 10, an information recommendation apparatus 500 according to an embodiment of the present application is shown, where the information recommendation apparatus 400 includes an obtaining module 410, a recommending module 420, and an outputting module 430. The obtaining module 410 is configured to obtain a display attribute of a current information display interface; the recommending module 420 is configured to call a recommending algorithm matched with the display attribute to obtain target information to be displayed; the output module 430 is configured to output the target information.
Further, the obtaining module 410 is further configured to obtain a page layout of the current information display interface; and determining the display attribute of the current information display interface according to the page layout.
Further, the obtaining module 410 is further configured to determine, according to the page layout, a display quantity of target information to be displayed in a current information display interface; judging whether the display quantity of the target information to be displayed is greater than a preset quantity or not; if yes, determining that the current information display interface has a first attribute; if not, determining that the current information display interface has the second attribute.
Further, the recommending module 420 is further configured to, when the information display interface has a first attribute, invoke a first recommending algorithm to obtain target information to be displayed, where the first recommending algorithm selects the target information from the non-recommended information; and when the information display interface has a second attribute, calling a second recommendation algorithm to acquire target information to be displayed, wherein the second recommendation algorithm selects the target information from the non-recommended information and the recommended but non-displayed information.
Further, the recommending module 420 is further configured to obtain information different from the last recommended information and store the information in the first information base; acquiring the display quantity of target information required to be displayed on a current information display interface; and selecting the information with the display quantity from the first information base as the target information.
Further, the recommending module 420 is further configured to obtain information that has been recommended last time but is not displayed, and store information that is different from the information recommended last time into a second information base; acquiring the display quantity of target information required to be displayed on a current information display interface; and selecting the information with the display quantity from the second information base as the target information.
Further, the recommending module 420 is further configured to obtain a satisfaction index of the user on the last recommended information; when the satisfaction index is larger than or equal to a preset index, selecting information with the same type as the information recommended last time from the second information base as the target information; and when the satisfaction index is smaller than a preset index, selecting information with a type different from that recommended last time from the second information base as the target information.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In summary, the information recommendation method provided by the application obtains the display attribute of the current information display interface; calling a recommendation algorithm matched with the display attribute to obtain target information to be displayed; and outputting the target information. The method comprises the steps of obtaining the display attribute of the current information display interface, determining the recommendation algorithm to be called according to the display attribute when information recommendation is carried out, wherein different display attribute information display interfaces call different recommendation algorithms to carry out information recommendation, so that the recommendation diversification can be realized by combining different recommendation modes, various information obtaining requirements of users are met, and the use experience of the users is improved.
In the several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or modules may be in an electrical, mechanical or other form.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 11, a block diagram of an electronic device according to an embodiment of the present application is shown. The electronic device 500 may be a terminal device capable of running an application, such as a smart phone, a tablet computer, an electronic book, or may be a server. The electronic device 500 in the present application may include one or more of the following components: a processor 510, a memory 520, and one or more applications, wherein the one or more applications may be stored in the memory 520 and configured to be executed by the one or more processors 510, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 510 may include one or more processing cores. The processor 510 interfaces with various components throughout the electronic device 500 using various interfaces and circuitry to perform various functions of the electronic device 500 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 520 and invoking data stored in the memory 520. Alternatively, the processor 510 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 510 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 510, but may be implemented by a communication chip.
The Memory 520 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 520 may be used to store instructions, programs, code sets, or instruction sets. The memory 520 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The data storage area may also store data created during use by the electronic device 500 (e.g., phone books, audio-visual data, chat log data), and so forth.
Referring to fig. 12, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable storage medium 600 has stored therein program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 600 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 600 includes a non-transitory computer-readable storage medium. The computer readable storage medium 600 has storage space for program code 610 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 610 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.