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.
A first embodiment of the present invention provides a method for recommending an input associative word, the flow of the method is shown in fig. 1, and the method includes steps S101 to S103:
s101, constructing an associated search word set of articles according to historical behavior data of a predetermined number of users.
When a user browses an article, the user may search the article through a certain search word to realize browsing, or may check the article through content recommended by another article after the user watches another article, so that the embodiment of the invention acquires historical behavior data related to the article by the user, and further determines the associated search word of the article.
The related search words may be from different words according to different historical behavior data. For example, when the historical behavior data indicates that an article is searched by the search word AA, the search word BB is entered in the search box after the article is browsed, another article searched by the search word BB is clicked, and the operation is terminated. In this process, the related search terms of an article may be search term AA, search term BB, and the core term of another article.
When the historical behavior data of a plurality of users are obtained, a large set of associated search terms can be formed according to the historical behavior data, and the large set is the associated search term set.
In specific implementation, the above steps need to be repeated, and then a corresponding associated search term set can be constructed for all articles, and any one of the articles can be a predetermined article in a subsequent process.
S102, whether the search word is received by the search box or not is detected within first preset time after the preset article is browsed.
The triggering time point of the embodiment of the invention is that after the user browses the predetermined article, whether the user triggers the search box to perform the search operation is detected. In specific implementation, the detection can be started after a predetermined article is browsed and when the browsing interface exits to the previous interface.
S103, under the condition that the search word is received, determining the input association word displayed in the input association word list according to the search word and the related search word set.
When the search word is received, the associated search word matched with the search word can be searched in the associated search word set, and then the associated search word is displayed in the input association word list as the input association word.
In specific implementation, some screening rules can be set so as to recommend the word which best meets the search intention of the user from the associated search word set to the user.
For example, determining all relevant search words matched with the search word in the relevant search word set to obtain a first input associated word set; selecting N associated search words from a first input associated word set according to a first preset rule, and determining the N associated search words as input associated words displayed in an input associated word list; wherein, N is the number of input association words displayed at the first predetermined position in the input association word list, and N is an integer greater than or equal to 1.
The first predetermined rule may be set according to specific needs, for example, selected according to a ranking mode that the occurrence times are from top to bottom when generating the associated search term set, or selected from search terms in which a search operation really occurs when generating the associated search term set.
The embodiment of the invention constructs the corresponding associated search word set for the articles in advance, and when the article is searched, whether the search word is received by the search box is detected after the preset article is detected to be browsed, if the search word is received, the fact that the content which the user wants to search is associated with the read article is probably shown, therefore, the associated search word matched with the received search word is selected from the associated search word set, and the matched associated search word is displayed in the input associated word list as the input associated word, so that the user can quickly realize the search operation.
The embodiment of the invention starts from the search intention of the user, and considers that the probability of searching the related content of an article is higher if the user performs the search operation within a period of time after reading the article, so that the associated search word set is constructed, the rapid search is realized by inputting the association words under the condition, the content which the user wants to input can be truly predicted, and the user experience is better.
A second embodiment of the present invention provides a method for recommending an input associative word, the flow of the method is shown in fig. 2, and the method includes steps S201 to S204:
s201, constructing an associated search word set of a predetermined article according to historical behavior data of a predetermined number of users.
When a user browses an article, the user may search the article through a certain search word to realize browsing, or may check the article through content recommended by another article after the user watches another article, so that the embodiment of the invention acquires historical behavior data related to the article by the user, and further determines the associated search word of the article.
The related search words may be from different words according to different historical behavior data. For example, when the historical behavior data indicates that an article is searched by the search word AA, the search word BB is entered in the search box after the article is browsed, another article searched by the search word BB is clicked, and the operation is terminated. In this process, the related search terms of an article may be search term AA, search term BB, and the core term of another article.
When the historical behavior data of a plurality of users are obtained, a large set of associated search terms can be formed according to the historical behavior data, and the large set is the associated search term set.
During specific implementation, behavior data of any user in a second time after browsing the article is acquired; obtaining the associated search terms of the article according to the behavior data; and generating a related search word set according to all related search words obtained based on the behavior data of the number of users.
For example, when the historical behavior data includes an article click, a video click and a search triggering operation, when analyzing the historical behavior data, the core word of the article clicked by the user in the second time after exiting from the browsing interface of the article, the core word of the video click and the search word triggering the search operation need to be acquired, so as to obtain the associated search word of the article according to the core word and the search word.
In the implementation, the above steps need to be repeated, so that the corresponding associated search term set can be constructed for all articles, and any one of the articles can be a predetermined article in the subsequent process.
S202, whether the article browsed currently is the P article which is read continuously by the user based on the same core word in a third preset time is detected, wherein P is an integer greater than or equal to 2. If so, determining the article currently browsed as the predetermined article, and executing S203, otherwise, continuing to execute S202.
If the user reads articles with the same core word all the time, if the search operation happens at this time, the search word most easily received in the search box is the word related to the articles, and the related search word set is the word related to each article determined for each article.
The method and the device for detecting the search intention can further accurately determine the search intention which may occur to the user by detecting the process that whether the user continuously reads the same core word article, and bring better use experience to the user.
S203, whether the search box receives the search word is detected within first preset time after the preset article is browsed.
The triggering time point of the embodiment of the invention is that after the user browses the predetermined article, whether the user triggers the search box to perform the search operation is detected. In specific implementation, the detection can be started after a predetermined article is browsed and when the browsing interface exits to the previous interface.
S204, under the condition that the search word is received, determining the input association word displayed in the input association word list according to the search word and the associated search word set.
When the search word is received, the associated search word matched with the search word can be searched in the associated search word set, and then the associated search word is displayed in the input association word list as the input association word.
In specific implementation, some screening rules can be set so as to recommend the word which best meets the search intention of the user from the associated search word set to the user.
For example, determining all relevant search words matched with the search word in the relevant search word set to obtain a first input associated word set; selecting N associated search words from a first input associated word set according to a first preset rule, and determining the N associated search words as input associated words displayed in an input associated word list; wherein, N is the number of input association words displayed at the first predetermined position in the input association word list, and N is an integer greater than or equal to 1.
The first predetermined rule may be set according to specific needs, for example, selected according to a ranking mode that the statistical number is from top to bottom when the associated search term set is generated, or selected from search terms in which a search operation really occurs when the associated search term set is generated.
In order to reduce the poor use experience brought to the user by the misjudgment of the possible search intention, the embodiment of the present invention may further include the following process when determining the input associative word displayed in the input associative word list according to the search word and the associated search word set: determining a second input association word set according to the search word; selecting M input association words in a second input association word set according to a second preset rule, and determining M input association word lines as the input association words displayed in the input association word list; wherein, M is the number of input association words displayed at a second predetermined position in the input association word list, and M is an integer greater than or equal to 1. In a particular configuration, the first predetermined location is typically located before the second predetermined location so that the user can more easily see the input associative word that may be more in line with their search intent.
Through the process, the common input association word set and the associated search word set are fused, so that the user can see the content which the user wants to search in the input association word list, and the quick search is realized to the greatest extent.
The following is a comparative description with reference to a specific example.
The existing method comprises the following steps: 1. a user browses a series of articles; 2. and (4) inputting search words by removing the search box, wherein the input association word list is obtained based on the whole network heat and dictionary tree sequencing mode, and has no association with the articles. For example: the article is Liu Ci Xin three-body film: amazon invests 10 hundred million, when the user enters "liu" in the search box, the list of suggested words will be displayed: liu both Liu Shi Liu de Hua Hao ran.
The embodiment of the invention comprises the following steps: 1. a user browses a series of articles; 2. and inputting search words by removing the search box, introducing information related to the previous article on the basis of the whole network heat and dictionary tree sequencing, namely associating a search word set, and preferentially displaying the input association words related to the articles and the current search intention. For example: the article is Liu Ci Xin three-body film: amazon invests 10 hundred million, when the user enters "liu" in the search box, the list of suggested words will be displayed: liuxin Liu Jiang Liu Fei Shi Liu De Hua.
The embodiment of the invention constructs the corresponding associated search word set for the articles in advance, and when the article is searched, whether the search word is received by the search box is detected after the preset article is detected to be browsed, if the search word is received, the fact that the content which the user wants to search is associated with the read article is probably shown, therefore, the associated search word matched with the received search word is selected from the associated search word set, and the matched associated search word is displayed in the input associated word list as the input associated word, so that the user can quickly realize the search operation.
The embodiment of the invention starts from the search intention of the user, and considers that the probability of searching the related content of an article is higher if the user performs the search operation within a period of time after reading the article, so that the associated search word set is constructed, the rapid search is realized by inputting the association words under the condition, the content which the user wants to input can be truly predicted, and the user experience is better.
A third embodiment of the present invention provides a recommendation apparatus for inputting associative words, the apparatus having a structure schematically shown in fig. 3, and including:
the building module 10 is used for building an associated search word set of articles according to historical behavior data of a predetermined number of users; the detection module 20 is coupled with the construction module 10 and is used for detecting whether the search box receives the search word within a first preset time after the preset article is browsed; a determining module 30, coupled to the detecting module 20, for determining the input association words displayed in the input association word list according to the search words and the associated search word sets in case of receiving the search words.
When a user browses an article, the user may search the article through a certain search word to realize browsing, or may check the article through content recommended by another article after the user watches another article, so that the embodiment of the invention acquires historical behavior data related to the article by the user, and further determines the associated search word of the article.
The related search words may be from different words according to different historical behavior data. For example, when the historical behavior data indicates that an article is searched by the search word AA, the search word BB is entered in the search box after the article is browsed, another article searched by the search word BB is clicked, and the operation is terminated. In this process, the related search terms of an article may be search term AA, search term BB, and the core term of another article.
When the historical behavior data of a plurality of users are obtained, a large set of associated search terms can be formed according to the historical behavior data, and the large set is the associated search term set.
In specific implementation, the building module 10 needs to repeatedly work, so that the corresponding associated search term set can be built for all articles, and any one of the articles can be a predetermined article in a subsequent process.
A building block, specifically configured to: acquiring behavior data of any user in second preset time after browsing the article; obtaining the associated search terms of the article according to the behavior data; and generating a related search word set according to all related search words obtained based on the behavior data of the preset number of users. Specifically, the core words of the article clicked within the second preset time after the preset article is browsed by the preset user, the core words of the video clicked, and the search words triggering the search operation are obtained, so that the associated search words of the preset article are obtained according to the core words and the search words.
The triggering time point of the embodiment of the invention is that after the user browses the predetermined article, whether the user triggers the search box to perform the search operation is detected. In specific implementation, the detection can be started after a predetermined article is browsed and when the browsing interface exits to the previous interface.
The detection module is further configured to detect whether the currently browsed article is a pth article that the user continuously reads based on the same core word within a third predetermined time, and determine the currently browsed article as the predetermined article if the currently browsed article is the pth article that the user continuously reads based on the same core word within the third predetermined time, where P is an integer greater than or equal to 2.
When the search word is received, the associated search word matched with the search word can be searched in the associated search word set, and then the associated search word is displayed in the input association word list as the input association word.
In specific implementation, some screening rules can be set so as to recommend the word which best meets the search intention of the user from the associated search word set to the user.
A determination module specifically configured to: determining all related search words matched with the search words in the related search word set to obtain a first input related word set; selecting N associated search words from a first input associated word set according to a first preset rule, and determining the N associated search words as input associated words displayed in an input associated word list; wherein, N is the number of input association words displayed at the first predetermined position in the input association word list, and N is an integer greater than or equal to 1.
The first predetermined rule may be set according to specific needs, for example, selected according to a ranking mode that the statistical number is from top to bottom when the associated search term set is generated, or selected from search terms in which a search operation really occurs when the associated search term set is generated.
In order to reduce a poor usage experience brought to the user by a possible misjudgment of the search intention, the determining module is further specifically configured to: determining a second input association word set according to the search word; selecting M input association words in a second input association word set according to a second preset rule, and determining M input association word lines as the input association words displayed in the input association word list; wherein, M is the number of input association words displayed at a second predetermined position in the input association word list, and M is an integer greater than or equal to 1. In a particular configuration, the first predetermined location is typically located before the second predetermined location so that the user can more easily see the input associative word that may be more in line with their search intent.
Through the process, the common input association word set and the associated search word set are fused, so that the user can see the content which the user wants to search in the input association word list, and the quick search is realized to the greatest extent.
The embodiment of the invention constructs the corresponding associated search word set for the articles in advance, and when the article is searched, whether the search word is received by the search box is detected after the preset article is detected to be browsed, if the search word is received, the fact that the content which the user wants to search is associated with the read article is probably shown, therefore, the associated search word matched with the received search word is selected from the associated search word set, and the matched associated search word is displayed in the input associated word list as the input associated word, so that the user can quickly realize the search operation.
The embodiment of the invention starts from the search intention of the user, and considers that the probability of searching the related content of an article is higher if the user performs the search operation within a period of time after reading the article, so that the associated search word set is constructed, the rapid search is realized by inputting the association words under the condition, the content which the user wants to input can be truly predicted, and the user experience is better.
A fourth embodiment of the present invention provides a storage medium storing a computer program that, when executed by a processor, implements the method provided in any of the embodiments of the present invention, as follows steps S1 to S3:
s1, constructing an associated search term set of articles according to historical behavior data of a predetermined number of users;
s2, detecting whether the search box receives the search word in the first preset time after browsing the preset article;
s3, in case of receiving the search word, determines the input associated word displayed in the input associated word list from the search word and the associated search word set.
The predetermined article may be the article with the same core word as the pth article read continuously by the user within the third predetermined time, where P is an integer greater than or equal to 2.
When the computer program is executed by the processor to determine the input associative word displayed in the input associative word list according to the search word and the associated search word set, the processor specifically executes the following steps: determining all related search words matched with the search words in the related search word set to obtain a first input related word set; selecting N associated search words from a first input associated word set according to a first preset rule, and determining the N associated search words as input associated words displayed in an input associated word list; wherein, N is the number of input association words displayed at the first predetermined position in the input association word list, and N is an integer greater than or equal to 1.
When the computer program is executed by the processor to determine the input associative word displayed in the input associative word list according to the search word and the associated search word set, the processor may further specifically execute the following steps: determining a second input association word set according to the search word; selecting M input association words in a second input association word set according to a second preset rule, and determining M input association word lines as the input association words displayed in the input association word list; wherein, M is the number of input association words displayed at a second predetermined position in the input association word list, and M is an integer greater than or equal to 1.
When the computer program is executed by the processor to construct the associated search term set of the article according to the historical behavior data of the predetermined number of users, the processor specifically executes the following steps: acquiring behavior data of any user in a second preset time after browsing the article; obtaining the associated search terms of the article according to the behavior data; and generating a related search word set according to all related search words obtained based on the behavior data of the preset number of users.
Wherein the first predetermined position is located before the second predetermined position. The associated search terms include at least one of: the core words of the clicked article, the core words of the clicked video and the search words triggering the search operation.
The predetermined article is determined by: detecting whether the currently browsed article is a No. P article which is continuously read by a user based on the same core word within a third preset time, wherein P is an integer greater than or equal to 2; in the case where the currently browsed article is the pth article, the currently browsed article is determined as the predetermined article.
The embodiment of the invention starts from the search intention of the user, and considers that the probability of searching the related content of an article is higher if the user performs the search operation within a period of time after reading the article, so that the associated search word set is constructed, the rapid search is realized by inputting the association words under the condition, the content which the user wants to input can be truly predicted, and the user experience is better.
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 fifth embodiment of the present invention provides an electronic device, as shown in fig. 4, the electronic device at least includes a memory 901 and a processor 902, the memory 901 stores a computer program, and the processor 902 implements the method provided in any embodiment of the present invention when executing the computer program on the memory 901, for example, the computer program has the following steps S11 to S13:
s11, constructing an associated search term set of articles according to historical behavior data of a predetermined number of users;
s12, detecting whether the search box receives the search word or not within a first preset time after quitting from the browsing interface of the preset article;
s13, in case of receiving the search word, determines the input associated word displayed in the input associated word list from the search word and the associated search word set.
The processor 902, when executing a computer program stored in the memory 901 for determining an input associative word displayed in the input associative word list according to the search word and the associated search word set, specifically executes the following computer program: determining all related search words matched with the search words in the related search word set to obtain a first input related word set; selecting N associated search words from a first input associated word set according to a first preset rule, and determining the N associated search words as input associated words displayed in an input associated word list; wherein, N is the number of input association words displayed at the first predetermined position in the input association word list, and N is an integer greater than or equal to 1.
The processor 902, when executing a computer program stored in the memory 901 for determining an input associative word displayed in the input associative word list according to the search word and the associated search word set, specifically executes the following computer program: determining a second input association word set according to the search word; selecting M input association words in a second input association word set according to a second preset rule, and determining M input association word lines as the input association words displayed in the input association word list; wherein, M is the number of input association words displayed at a second predetermined position in the input association word list, and M is an integer greater than or equal to 1.
The processor 902, when executing a computer program stored in the memory 901 for constructing a set of related search terms of an article according to historical behavior data of a predetermined number of users, specifically executes the following computer program: acquiring behavior data of any user in a second preset time after browsing the article; obtaining the associated search terms of the article according to the behavior data; and generating a related search word set according to all related search words obtained based on the behavior data of the preset number of users.
The processor 902, when executing the computer program stored on the memory 901, also executes a computer program that determines a predetermined article as follows: detecting whether the currently browsed article is a No. P article which is continuously read by a user based on the same core word within a third preset time, wherein P is an integer greater than or equal to 2; in the case where the currently browsed article is the pth article, the currently browsed article is determined as the predetermined article.
Wherein the first predetermined position is located before the second predetermined position. The associated search terms include at least one of: the core words of the clicked article, the core words of the clicked video and the search words triggering the search operation.
The embodiment of the invention starts from the search intention of the user, and considers that the probability of searching the related content of an article is higher if the user performs the search operation within a period of time after reading the article, so that the associated search word set is constructed, the rapid search is realized by inputting the association words under the condition, the content which the user wants to input can be truly predicted, and the user experience is better.
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 in the claims are to be interpreted broadly based on the language employed in the claims and not limited to examples described in the specification or during the prosecution of the disclosure, 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.