Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention without any inventive step, are within the scope of protection of the invention.
Unless defined otherwise, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. The use of "first," "second," and similar terms in the present application do not denote any order, quantity, or importance, but rather the terms are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
To maintain the following description of the embodiments of the present invention clear and concise, a detailed description of known functions and known components of the invention have been omitted.
The first embodiment of the present invention provides a method for recommending a link, the flow of the method is shown in fig. 1, and the method includes steps S101 to S104:
s101, detecting whether a summary page corresponding to a current link in a first preset page receives a display triggering operation, wherein the current link is a link corresponding to a first content tag in a preset content tag library.
The first preset page is a page displaying recommended links, and the summary page corresponding to the current links is usually displayed in the first preset page, so that a user can conveniently determine which current links are wanted to be viewed according to the content of the summary page. In this embodiment, a first content tag is set for a current link displaying a summary page, where the first content tag may be obtained through machine learning or preset according to a predetermined tag setting rule, for example, if one link is a sports article, the first content tag may be set to "sports".
For the summary page, it may be composed of linked titles and pictures together, or may be a separate title, which is not limited herein.
If the user wants to view a certain link, the user clicks the summary page corresponding to the link to view the text page corresponding to the link, and the clicking operation can be the display triggering operation of the embodiment of the present invention, and of course, the display triggering operation is not limited to a single-clicking operation, and can also be a double-clicking operation, and the like, as long as the use habit is met.
And S102, increasing the weight value of the first content label under the condition of receiving the display trigger operation.
After the current link is provided with the first content tag, if a display trigger operation is received, which indicates that the user is interested in the content of the first content tag, the user can view the text page corresponding to the current link. At this time, in order to recommend a better link to the user, the weight value of the first content tag corresponding to the current link viewed by the current user needs to be increased (for example, the weight value is increased by one), so as to determine the preference of the user according to the weight value in the following.
S103, obtaining links corresponding to the first N content tags with the weight values sorted from large to small in the preset content tag library in a preset period, wherein N is an integer greater than or equal to 2.
Since the current links recommended to the first predetermined page are all links to which the first content tags are set, for the current user ID, the links already recommended to the first predetermined page, the links being displayed on the first predetermined page, and the links to be recommended to the first predetermined page correspond to a plurality of content tags, and the content tags are stored in the predetermined content tag library corresponding to the user ID. Therefore, in the embodiment of the present invention, the weight value of each content tag in the predetermined content tag library is obtained again according to a predetermined period, and links corresponding to several content tags with larger weight values are obtained, so that the links are used as recommended alternative links.
And S104, recommending the links corresponding to the N content tags to a first preset page for display.
After the alternative links to be recommended are selected, the alternative links to be recommended can be recommended to the first preset page to be displayed, however, when the number of the alternative links to be recommended is greater than the number that can be recommended on the first preset page, any link in the alternative links to be recommended can be recommended randomly, and certainly, in order to enable a user to have better use experience, physical examination display may be performed according to a certain sequence, for example, links with a higher click rate in the alternative links to be recommended are displayed preferentially.
The embodiment of the invention sets the corresponding content label for the current link in the first preset page, adjusts the weight value of each content label through the display triggering operation of the user, determines which links corresponding to the content labels are liked by the user according to the weight value, and further recommends the links corresponding to the content labels. According to the embodiment of the invention, the favorite of the user is collected, and the interesting link of the user is recommended according to the collection result, so that the use experience of the user is greatly improved.
The second embodiment of the present invention provides a method for recommending a link, the flow of the method is shown in fig. 2, and the method includes steps S201 to S206:
s201, detecting whether the summary page corresponding to the current link is displayed at a first preset position of a first preset page.
The page layout of the first predetermined page may include a variety of forms, for example, a page layout including 10 plain-text-type recommended links, 5 video-type links, and 5 ad slots. For different page layouts, the part of the first preset page which needs to be personalized and recommended can be set as a first preset position, for example, the first preset page is divided into four parts, the first preset position is the first part, only the summary page of the link displayed at the first preset position is detected, and whether the links of the other three parts are clicked or not does not participate in the statistics of the personalized recommendation of the user. The process can perform different personalized recommendation designs for the same page, and is beneficial to improving user experience.
Since the links of the corresponding positions of the other three parts do not need the statistical weight value, S202 is not further executed, but the detection of the first predetermined position in the page is continued, that is, S201 is executed. If the summary page corresponding to the current link is at the first predetermined position, S202 is executed.
S202, under the condition that the summary page is displayed at a first preset position, detecting whether the summary page corresponding to the current link in the first preset page receives a display triggering operation, wherein the current link is a link corresponding to a first content tag in a preset content tag library.
The first preset page is a page displaying recommended links, and the summary page corresponding to the current links is usually displayed in the first preset page, so that a user can conveniently determine which current links are wanted to be viewed according to the content of the summary page. In this embodiment, a first content tag is set for a current link displaying a summary page, where the first content tag may be obtained through machine learning or preset according to a predetermined tag setting rule, for example, if one link is a sports article, the first content tag may be set to "sports".
For the summary page, it may be composed of linked titles and pictures together, or may be a separate title, which is not limited herein.
If the user wants to view a certain link, the user clicks the summary page corresponding to the link to view the text page corresponding to the link, and the clicking operation can be the display triggering operation of the embodiment of the present invention, and of course, the display triggering operation is not limited to a single-clicking operation, and can also be a double-clicking operation, and the like, as long as the use habit is met.
If the display trigger operation is not received, S202 is executed, otherwise S203 is executed.
And S203, increasing the weight value of the first content label under the condition of receiving the display trigger operation.
After the current link is provided with the first content tag, if a display trigger operation is received, which indicates that the user is interested in the content of the first content tag, the user can view the text page corresponding to the current link. At this time, in order to recommend a better link to the user, the weight value of the first content tag corresponding to the current link viewed by the current user needs to be increased (for example, the weight value is increased by one), so as to determine the preference of the user according to the weight value in the following.
S204, obtaining links corresponding to the first N content tags with the weight values sorted from large to small in the preset content tag library in a preset period, wherein N is an integer greater than or equal to 2.
Since the current links recommended to the first predetermined page are all links to which the first content tags are set, for the current user ID, the links already recommended to the first predetermined page, the links being displayed on the first predetermined page, and the links to be recommended to the first predetermined page correspond to a plurality of content tags, and the content tags are stored in the predetermined content tag library corresponding to the user ID. Therefore, in the embodiment of the present invention, the weight value of each content tag in the predetermined content tag library is obtained again according to a predetermined period, and links corresponding to several content tags with larger weight values are obtained, so that the links are used as recommended alternative links.
S205, determining the number of links corresponding to each content tag in the N content tags according to the page layout of the first preset page.
In the case that the page layout determines that the first predetermined location can display 10 recommended links, if the personalized recommendation relates to 3 categories of content tags, it may be set to display 4 links under the content tag with the highest weight value, 3 links under the content tag with the middle weight value, and 3 links under the content tag with the lowest weight value. Of course, this arrangement is just one specific example, and the number of display links may be set to 5, 3, and 2, respectively. In the implementation, only a few links corresponding to a few content tags and a few displayed numbers of links corresponding to content tags with different weight values need to be preset.
And S206, recommending the links corresponding to the N content tags to a first preset page for display.
After the alternative links to be recommended are selected, the alternative links to be recommended can be recommended to the first preset page to be displayed, however, when the number of the alternative links to be recommended is greater than the number that can be recommended on the first preset page, any link in the alternative links to be recommended can be recommended randomly, and certainly, in order to enable a user to have better use experience, physical examination display may be performed according to a certain sequence, for example, links with a higher click rate in the alternative links to be recommended are displayed preferentially.
The embodiment of the invention sets the corresponding content label for the current link in the first preset page, adjusts the weight value of each content label through the display triggering operation of the user, determines which links corresponding to the content labels are liked by the user according to the weight value, and further recommends the links corresponding to the content labels. According to the embodiment of the invention, the favorite of the user is collected, and the interesting link of the user is recommended according to the collection result, so that the use experience of the user is greatly improved.
The third embodiment of the present invention provides a method for recommending a link, in which a first content tab of a current link is also displayed in a first predetermined page, and a flow of the method is shown in fig. 3, and includes steps S301 to S309:
s301, setting a first content tag for the summary page corresponding to the current link in the first preset page.
The first preset page is a page displaying recommended links, and the summary page corresponding to the current links is usually displayed in the first preset page, so that a user can conveniently determine which current links are wanted to be viewed according to the content of the summary page. In this embodiment, a first content tag is set for a current link displaying a summary page, where the first content tag may be obtained through machine learning or preset according to a predetermined tag setting rule, for example, if one link is a sports article, the first content tag may be set to "sports".
Since there are a plurality of current links displayed in the first predetermined page, there are also a plurality of types of the first content tab.
S302, setting the first content tag as a search word associated with the search box, and displaying the first content tag at a second preset position of the first preset page.
Fig. 4 is a first predetermined page showing no first content tag according to the prior art, and fig. 5 is a first predetermined page showing a first content tag according to the present embodiment, wherein three separately displayed juxtaposed contents "country AAAA", "grandchild AAAA", "opening AAAA" are the first content tag. Since the category of the first content tag may be multiple, the displayed first content tag may also be filtered, for example, the most basic filtering is white list filtering, when the first content tag is filtered by the white list, the filtering may be performed again according to the click rate of the corresponding link, and the like.
S303, detecting whether the summary page corresponding to the current link in the first preset page receives a display triggering operation, wherein the current link is a link corresponding to a first content tag in a preset content tag library.
For the summary page, it may be composed of linked titles and pictures together, or may be a separate title, which is not limited herein. If the user wants to view a certain link, the user clicks the summary page corresponding to the link to view the text page corresponding to the link, and the clicking operation can be the display triggering operation of the embodiment of the present invention, and of course, the display triggering operation is not limited to a single-clicking operation, and can also be a double-clicking operation, and the like, as long as the use habit is met.
If the display trigger operation is not received, S308 is executed, otherwise S304 is executed.
And S304, under the condition that the display trigger operation is received, increasing the weight value of the first content label.
After the current link is provided with the first content tag, if a display trigger operation is received, which indicates that the user is interested in the content of the first content tag, the user can view the text page corresponding to the current link. At this time, in order to recommend a better link to the user, the weight value of the first content tag corresponding to the current link viewed by the current user needs to be increased (for example, the weight value is increased by one), so as to determine the preference of the user according to the weight value in the following.
S305, obtaining links corresponding to the first N content tags with the weight values sorted from large to small in the preset content tag library in a preset period, wherein N is an integer greater than or equal to 2.
Since the current links recommended to the first predetermined page are all links to which the first content tags are set, for the current user ID, the links already recommended to the first predetermined page, the links being displayed on the first predetermined page, and the links to be recommended to the first predetermined page correspond to a plurality of content tags, and the content tags are stored in the predetermined content tag library corresponding to the user ID. Therefore, in the embodiment of the present invention, the weight value of each content tag in the predetermined content tag library is obtained again according to a predetermined period, and links corresponding to several content tags with larger weight values are obtained, so that the links are used as recommended alternative links.
S306, determining the number of links corresponding to each content tag in the N content tags according to the page layout of the first preset page.
In the case that the page layout determines that the first predetermined location can display 10 recommended links, if the personalized recommendation relates to 3 categories of content tags, it may be set to display 4 links under the content tag with the highest weight value, 3 links under the content tag with the middle weight value, and 3 links under the content tag with the lowest weight value. Of course, this arrangement is just one specific example, and the number of display links may be set to 5, 3, and 2, respectively. In the implementation, only a few links corresponding to a few content tags and a few displayed numbers of links corresponding to content tags with different weight values need to be preset.
S307, recommending the links corresponding to the N content tags to a first preset page for displaying.
After the alternative links to be recommended are selected, the alternative links to be recommended can be recommended to the first preset page to be displayed, however, when the number of the alternative links to be recommended is greater than the number that can be recommended on the first preset page, any link in the alternative links to be recommended can be recommended randomly, and certainly, in order to enable a user to have better use experience, physical examination display may be performed according to a certain sequence, for example, links with a higher click rate in the alternative links to be recommended are displayed preferentially.
S308, under the condition that the display trigger operation is not received, whether the first content label receives the search trigger operation or not is detected.
In case that the first content tag does not receive the search trigger operation, S308 is continuously executed, otherwise S309 is executed.
S309, under the condition that the first content tag receives the search triggering operation, all links corresponding to the first content tag are acquired, and summary pages of all links corresponding to the first content tag are displayed in a second preset page.
As shown in fig. 6, in order to jump to the second predetermined page after clicking "country AAAA" in fig. 5, summary pages of links corresponding to "country AAAA" are displayed. The process can realize the rapid search of a user for a specific content tag and simplify the operation flow of the user.
In a preferred embodiment, if a plurality of content tabs are preset in the current link, the content tabs may be randomly selected to be displayed when displayed on the first predetermined page, or may be displayed according to a certain rule. For example, if the current link includes a first content tag and a second content tag in a predetermined content tag library, where the first content tag is a parent content tag, and the second content tag is a child content tag under the parent content tag, it is further required to detect whether a difference between a weight value of the first content tag and a weight value of the second content tag is less than or equal to a predetermined difference, and normally, the weight value of the parent content tag must be greater than or equal to that of the child content tag, and therefore, the difference between the weight value of the first content tag and the weight value of the second content tag must be zero or a positive number; and displaying a second content tag at a second predetermined position of the first predetermined page in the case that the difference is less than or equal to the predetermined difference.
When the second content tag is displayed at the second predetermined position of the first predetermined page, the first content tag may be simultaneously displayed on the first predetermined page, or the second content tag may directly replace the first content tag that is originally displayed on the first predetermined page. The smaller the difference value is, the more the user tends to be linked to a specific content tag, the more the specific sub-level content tag is directly displayed, and it may be easier for the user to trigger the second content tag, so as to search for related content.
The embodiment of the invention sets the corresponding content label for the current link in the first preset page, adjusts the weight value of each content label through the display triggering operation of the user, determines which links corresponding to the content labels are liked by the user according to the weight value, and further recommends the links corresponding to the content labels. According to the embodiment of the invention, the favorite of the user is collected, and the interesting link of the user is recommended according to the collection result, so that the use experience of the user is greatly improved.
A fourth embodiment of the present invention provides an apparatus for recommending a link, which is schematically configured as shown in fig. 7, and includes:
the first detection module 10 is configured to detect whether a summary page corresponding to a current link in a first predetermined page receives a display trigger operation, where the current link is a link corresponding to a first content tag in a predetermined content tag library, and is preset; a counting module 20, coupled to the first detecting module 10, configured to increase a weight value of the first content tag when the display trigger operation is received; an obtaining module 30, coupled to the counting module 20, configured to obtain, in a predetermined period, links corresponding to first N content tags in a predetermined content tag library, where N is an integer greater than or equal to 2, and the weight values of the links are sorted from large to small; and the recommending module 40 is coupled with the obtaining module 30 and is used for recommending the links corresponding to the N content tags to a first preset page for display.
The first preset page is a page displaying recommended links, and the summary page corresponding to the current links is usually displayed in the first preset page, so that a user can conveniently determine which current links are wanted to be viewed according to the content of the summary page. In this embodiment, a first content tag is set for a current link displaying a summary page, where the first content tag may be obtained through machine learning or preset according to a predetermined tag setting rule, for example, if one link is a sports article, the first content tag may be set to "sports".
For the summary page, it may be composed of linked titles and pictures together, or may be a separate title, which is not limited herein.
If the user wants to view a certain link, the user clicks the summary page corresponding to the link to view the text page corresponding to the link, and the clicking operation can be the display triggering operation of the embodiment of the present invention, and of course, the display triggering operation is not limited to a single-clicking operation, and can also be a double-clicking operation, and the like, as long as the use habit is met.
After the current link is set with the first content tag, if the first detection module 10 receives a display trigger operation, which indicates that the user is interested in the content of the first content tag, the user will view the text page corresponding to the current link. At this time, in order to recommend a better link to the user, the counting module 20 needs to increase the weight value of the first content tag corresponding to the current link viewed by the current user (for example, increase the weight value by one), so as to determine the preference of the user according to the weight value in the following.
Since the current links recommended to the first predetermined page are all links to which the first content tags are set, for the current user ID, the links already recommended to the first predetermined page, the links being displayed on the first predetermined page, and the links to be recommended to the first predetermined page correspond to a plurality of content tags, and the content tags are stored in the predetermined content tag library corresponding to the user ID. Therefore, the obtaining module 30 in the embodiment of the present invention obtains the weight value of each content tag in the predetermined content tag library again according to a predetermined period, and obtains links corresponding to several content tags with larger weight values, so as to use the links as recommended alternative links.
After the candidate links to be recommended are selected, the recommending module 40 may recommend the links to be recommended to the first predetermined page for display, however, when the number of the candidate links to be recommended is greater than the number that can be recommended on the first predetermined page, any link in the candidate links to be recommended may be recommended at random, and certainly, in order to enable the user to have better physical examination, the display may be in a certain order, for example, the link with the higher click rate in the candidate links to be recommended is preferentially displayed.
In implementation, the first detection module may specifically be configured to: detecting whether the summary page corresponding to the current link is displayed at a first preset position of a first preset page or not; and under the condition that the summary page is displayed at a first preset position, detecting whether the summary page corresponding to the current link in the first preset page receives a display triggering operation.
The apparatus may further include a determining module, coupled to the obtaining module 30 and the recommending module 40, configured to determine, according to the page layout of the first predetermined page, the number of links corresponding to each of the N content tags. In the specific implementation process, in the case that the page layout determines that the first predetermined location may display 10 recommended links, if the personalized recommendation relates to 3 types of content tags, the setting may be to display 4 links under the content tag with the highest weight value, display 3 links under the content tag with the middle weight value, and display 3 links under the content tag with the lowest weight value. Of course, this arrangement is just one specific example, and the number of display links may be set to 5, 3, and 2, respectively. In the implementation, only a few links corresponding to a few content tags and a few displayed numbers of links corresponding to content tags with different weight values need to be preset.
A fifth embodiment of the present invention provides an apparatus for recommending a link, which is schematically configured as shown in fig. 8, and includes:
a display module 50, configured to set the first content tag as a search term associated with the search box, and display the first content tag at a second predetermined location of the first predetermined page; the first detection module 10 is coupled to the display module 50, and configured to detect whether a summary page corresponding to a current link in a first predetermined page receives a display trigger operation, where the current link is a link corresponding to a first content tag in a predetermined content tag library that is preset; a counting module 20, coupled to the first detecting module 10, configured to increase a weight value of the first content tag when the display trigger operation is received; an obtaining module 30, coupled to the counting module 20, configured to obtain, in a predetermined period, links corresponding to first N content tags in a predetermined content tag library, where N is an integer greater than or equal to 2, and the weight values of the links are sorted from large to small; the recommending module 40 is coupled with the obtaining module 30 and is used for recommending the links corresponding to the N content tags to a first preset page for display; a second detecting module 60, coupled to the display module 50, for detecting whether the first content tag receives a search triggering operation; the display module 50 is further configured to, when the first content tab receives the search trigger operation, acquire all links corresponding to the first content tab, and display summary pages of all links corresponding to the first content tab in a second predetermined page.
The first preset page is a page displaying recommended links, and the summary page corresponding to the current links is usually displayed in the first preset page, so that a user can conveniently determine which current links are wanted to be viewed according to the content of the summary page. In this embodiment, a first content tag is set for a current link displaying a summary page, where the first content tag may be obtained through machine learning or preset according to a predetermined tag setting rule, for example, if one link is a sports article, the first content tag may be set to "sports".
For the summary page, it may be composed of linked titles and pictures together, or may be a separate title, which is not limited herein.
If the user wants to view a certain link, the user clicks the summary page corresponding to the link to view the text page corresponding to the link, and the clicking operation can be the display triggering operation of the embodiment of the present invention, and of course, the display triggering operation is not limited to a single-clicking operation, and can also be a double-clicking operation, and the like, as long as the use habit is met.
After the current link is set with the first content tag, if the first detection module 10 receives a display trigger operation, which indicates that the user is interested in the content of the first content tag, the user will view the text page corresponding to the current link. At this time, in order to recommend a better link to the user, the counting module 20 needs to increase the weight value of the first content tag corresponding to the current link viewed by the current user (for example, increase the weight value by one), so as to determine the preference of the user according to the weight value in the following.
Since the current links recommended to the first predetermined page are all links to which the first content tags are set, for the current user ID, the links already recommended to the first predetermined page, the links being displayed on the first predetermined page, and the links to be recommended to the first predetermined page correspond to a plurality of content tags, and the content tags are stored in the predetermined content tag library corresponding to the user ID. Therefore, in the embodiment of the present invention, the obtaining module 30 may obtain the weight value of each content tag in the predetermined content tag library again in a predetermined period, and obtain links corresponding to several content tags with larger weight values, so as to use the links as recommended alternative links.
After the candidate links to be recommended are selected, the recommending module 40 may recommend the links to be recommended to the first predetermined page for display, however, when the number of the candidate links to be recommended is greater than the number that can be recommended on the first predetermined page, any link in the candidate links to be recommended may be recommended at random, and certainly, in order to enable the user to have better physical examination, the display may be in a certain order, for example, the link with the higher click rate in the candidate links to be recommended is preferentially displayed.
In a preferred embodiment, if a plurality of content tabs are preset in the current link, the content tabs may be randomly selected to be displayed when displayed on the first predetermined page, or may be displayed according to a certain rule. For example, the current link includes a first content tag and a second content tag, where the first content tag is a parent content tag, and the second content tag is a child content tag under the parent content tag, and the apparatus may further include: a third detecting module 70, coupled to the displaying module 50, for detecting whether a difference between the weight value of the first content tag and the weight value of the second content tag is less than or equal to a predetermined difference; the display module 50 is further configured to display a second content tag at a second predetermined position of the first predetermined page if the difference is smaller than or equal to the predetermined difference.
In general, the weight value of the parent content tag must be greater than or equal to that of the child content tag, and thus, the difference between the weight value of the first content tag and the weight value of the second content tag must be zero or a positive number.
When the second content tag is displayed at the second predetermined position of the first predetermined page, the first content tag may be simultaneously displayed on the first predetermined page, or the second content tag may directly replace the first content tag that is originally displayed on the first predetermined page.
The embodiment of the invention sets the corresponding content label for the current link, adjusts the weight value of each content label through the display triggering operation of the user, determines which content label corresponding link the user likes according to the weight value, and further recommends the link corresponding to the content label. According to the embodiment of the invention, the favorite of the user is collected, and the interesting link of the user is recommended according to the collection result, so that the use experience of the user is greatly improved.
A sixth embodiment of the present invention provides a storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method provided in any of the embodiments of the present invention, as follows, in steps S1 to S4:
and S1, detecting whether the summary page corresponding to the current link in the first preset page receives a display triggering operation, wherein the current link is a link corresponding to a first content tag in a preset content tag library.
The first preset page is a page displaying recommended links, and the summary page corresponding to the current links is usually displayed in the first preset page, so that a user can conveniently determine which current links are wanted to be viewed according to the content of the summary page. In this embodiment, a first content tag is set for a current link displaying a summary page, where the first content tag may be obtained through machine learning or preset according to a predetermined tag setting rule, for example, if one link is a sports article, the first content tag may be set to "sports".
For the summary page, it may be composed of linked titles and pictures together, or may be a separate title, which is not limited herein.
If the user wants to view a certain link, the user clicks the summary page corresponding to the link to view the text page corresponding to the link, and the clicking operation can be the display triggering operation of the embodiment of the present invention, and of course, the display triggering operation is not limited to a single-clicking operation, and can also be a double-clicking operation, and the like, as long as the use habit is met.
S2, when the display trigger operation is received, the weight value of the first content label is increased.
After the current link is provided with the first content tag, if a display trigger operation is received, which indicates that the user is interested in the content of the first content tag, the user can view the text page corresponding to the current link. At this time, in order to recommend a better link to the user, the weight value of the first content tag corresponding to the current link viewed by the current user needs to be increased (for example, the weight value is increased by one), so as to determine the preference of the user according to the weight value in the following.
And S3, acquiring links corresponding to the first N content tags with the weight values sorted from large to small in the preset content tag library in a preset period, wherein N is an integer greater than or equal to 2.
Since the current links recommended to the first predetermined page are all links to which the first content tags are set, for the current user ID, the links already recommended to the first predetermined page, the links being displayed on the first predetermined page, and the links to be recommended to the first predetermined page correspond to a plurality of content tags, and the content tags are stored in the predetermined content tag library corresponding to the user ID. Therefore, in the embodiment of the present invention, the weight value of each content tag in the predetermined content tag library is obtained again according to a predetermined period, and links corresponding to several content tags with larger weight values are obtained, so that the links are used as recommended alternative links.
And S4, recommending the links corresponding to the N content tags to a first preset page for display.
After the alternative links to be recommended are selected, the alternative links to be recommended can be recommended to the first preset page to be displayed, however, when the number of the alternative links to be recommended is greater than the number that can be recommended on the first preset page, any link in the alternative links to be recommended can be recommended randomly, and certainly, in order to enable a user to have better use experience, physical examination display may be performed according to a certain sequence, for example, links with a higher click rate in the alternative links to be recommended are displayed preferentially.
When the computer program is executed by the processor to detect whether the summary page corresponding to the current link in the first predetermined page receives the display trigger operation, the processor specifically executes the following steps:
detecting whether the summary page corresponding to the current link is displayed at a first preset position of a first preset page or not; and under the condition that the summary page is displayed at a first preset position, detecting whether the summary page corresponding to the current link in the first preset page receives a display trigger operation.
Before the computer program is executed by the processor to recommend the links corresponding to the N content tags to the first predetermined page for display, the processor further executes the following steps: and determining the number of links corresponding to each content tag in the N content tags according to the page layout of the first preset page.
The computer program may further be executable by the processor to perform the steps of: setting the first content tag as a search word associated with the search box, and displaying the first content tag at a second preset position of the first preset page; detecting whether a first content tag receives a search triggering operation; and under the condition that the first content tag receives a search triggering operation, acquiring all links corresponding to the first content tag, and displaying summary pages of all links corresponding to the first content tag in a second preset page.
In the case that the current link is also previously provided with a second content tag, before the step of displaying the first content tag at the second predetermined position of the first predetermined page is executed by the processor by the computer program, the following steps are also executed by the processor: detecting whether a difference between the weight value of the first content tag and the weight value of the second content tag is less than or equal to a predetermined difference; displaying a second content tag at a second predetermined position of the first predetermined page if the difference is less than or equal to a predetermined difference; the first content label is a parent content label, and the second content label is a child content label under the parent content label.
The storage medium may be disposed in a terminal that at least includes a memory and a processor, and exists in the form of a memory, which is not described in detail herein.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes. Optionally, in this embodiment, the processor executes the method steps described in the above embodiments according to the program code stored in the storage medium. Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again. It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
A seventh embodiment of the present invention provides a terminal, as shown in fig. 9, the terminal at least includes a memory 901 and a processor 902, the memory 901 stores a computer program, the processor 902 realizes the method provided by any embodiment of the present invention when executing the computer program on the memory 901, the steps of the computer program are as follows S11 to S14:
and S11, detecting whether the summary page corresponding to the current link in the first preset page receives a display triggering operation, wherein the current link is a link corresponding to a first content tag in a preset content tag library.
The first preset page is a page displaying recommended links, and the summary page corresponding to the current links is usually displayed in the first preset page, so that a user can conveniently determine which current links are wanted to be viewed according to the content of the summary page. In this embodiment, a first content tag is set for a current link displaying a summary page, where the first content tag may be obtained through machine learning or preset according to a predetermined tag setting rule, for example, if one link is a sports article, the first content tag may be set to "sports".
For the summary page, it may be composed of linked titles and pictures together, or may be a separate title, which is not limited herein.
If the user wants to view a certain link, the user clicks the summary page corresponding to the link to view the text page corresponding to the link, and the clicking operation can be the display triggering operation of the embodiment of the present invention, and of course, the display triggering operation is not limited to a single-clicking operation, and can also be a double-clicking operation, and the like, as long as the use habit is met.
S12, when the display trigger operation is received, the weight value of the first content label is increased.
After the current link is provided with the first content tag, if a display trigger operation is received, which indicates that the user is interested in the content of the first content tag, the user can view the text page corresponding to the current link. At this time, in order to recommend a better link to the user, the weight value of the first content tag corresponding to the current link viewed by the current user needs to be increased (for example, the weight value is increased by one), so as to determine the preference of the user according to the weight value in the following.
And S13, acquiring links corresponding to the first N content tags with the weight values sorted from large to small in the preset content tag library in a preset period, wherein N is an integer greater than or equal to 2.
Since the current links recommended to the first predetermined page are all links to which the first content tags are set, for the current user ID, the links already recommended to the first predetermined page, the links being displayed on the first predetermined page, and the links to be recommended to the first predetermined page correspond to a plurality of content tags, and the content tags are stored in the predetermined content tag library corresponding to the user ID. Therefore, in the embodiment of the present invention, the weight value of each content tag in the predetermined content tag library is obtained again according to a predetermined period, and links corresponding to several content tags with larger weight values are obtained, so that the links are used as recommended alternative links.
And S14, recommending the links corresponding to the N content tags to a first preset page for display.
After the alternative links to be recommended are selected, the alternative links to be recommended can be recommended to the first preset page to be displayed, however, when the number of the alternative links to be recommended is greater than the number that can be recommended on the first preset page, any link in the alternative links to be recommended can be recommended randomly, and certainly, in order to enable a user to have better use experience, physical examination display may be performed according to a certain sequence, for example, links with a higher click rate in the alternative links to be recommended are displayed preferentially.
When executing the computer program stored in the memory 901, which detects whether the summary page corresponding to the current link in the first predetermined page receives the display trigger operation, the processor 902 specifically executes the following computer program: detecting whether the summary page corresponding to the current link is displayed at a first preset position of a first preset page or not; and under the condition that the summary page is displayed at a first preset position, detecting whether the summary page corresponding to the current link in the first preset page receives a display trigger operation.
The processor 902 may further execute the following computer program before executing the computer program stored in the memory 901 and recommending the links corresponding to the N content tags to the first predetermined page for display: and determining the number of links corresponding to each content tag in the N content tags according to the page layout of the first preset page.
The processor 902 may also execute the following computer programs stored on the memory 901: setting the first content tag as a search word associated with the search box, and displaying the first content tag at a second preset position of the first preset page; detecting whether a first content tag receives a search triggering operation; and under the condition that the first content tag receives a search triggering operation, acquiring all links corresponding to the first content tag, and displaying summary pages of all links corresponding to the first content tag in a second preset page.
The processor 902 further executes the following computer program before executing the computer program stored on the memory 901 to display the first content tag at the second predetermined position of the first predetermined page: under the condition that a second content label is also preset in the current link, detecting whether the difference value between the weight value of the first content label and the weight value of the second content label is smaller than or equal to a preset difference value; displaying a second content tag at a second predetermined position of the first predetermined page if the difference is less than or equal to a predetermined difference; the first content label is a parent content label, and the second content label is a child content label under the parent content label.
According to the embodiment of the invention, the favorite of the user is collected, and the interesting link of the user is recommended according to the collection result, so that the use experience of the user is greatly improved.
Moreover, although exemplary embodiments have been described herein, the scope thereof includes any and all embodiments based on the present invention with equivalent elements, modifications, omissions, combinations (e.g., of various embodiments across), adaptations or alterations. The elements of the claims are to be interpreted broadly based on the language employed in the claims and not limited to examples described in the present specification or during the prosecution of the application, which examples are to be construed as non-exclusive. It is intended, therefore, that the specification and examples be considered as exemplary only, with a true scope and spirit being indicated by the following claims and their full scope of equivalents.
The above description is intended to be illustrative and not restrictive. For example, the above-described examples (or one or more versions thereof) may be used in combination with each other. For example, other embodiments may be used by those of ordinary skill in the art upon reading the above description. In addition, in the above-described embodiments, various features may be grouped together to streamline the disclosure. This should not be interpreted as an intention that a disclosed feature not claimed is essential to any claim. Rather, inventive subject matter may lie in less than all features of a particular disclosed embodiment. Thus, the following claims are hereby incorporated into the detailed description as examples or embodiments, with each claim standing on its own as a separate embodiment, and it is contemplated that these embodiments may be combined with each other in various combinations or permutations. The scope of the invention should be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled.
While the embodiments of the present invention have been described in detail, the present invention is not limited to these specific embodiments, and those skilled in the art can make various modifications and modifications of the embodiments based on the concept of the present invention, which fall within the scope of the present invention as claimed.