Content recommendation method and device

文档序号:1126531 发布日期:2020-10-02 浏览:11次 中文

阅读说明:本技术 一种内容推荐方法及装置 (Content recommendation method and device ) 是由 张凯磊 刘智朋 陈溪 黄晓烽 于 2020-06-28 设计创作,主要内容包括:本申请公开了一种内容推荐方法,利用该方法,可以根据第一用户输入的字符预测用户可能想要输入的提问语句,并显示该提问语句。具体地:可以获取第一用户输入的字符,并根据第一用户输入的字符确定目标关键词,目标关键词是第一用户可能输入的提问语句的关键词。获得目标关键词之后,可以根据关键词和提问语句之间的对应关系,确定与目标关键词对应的至少一个提问语句。进一步地,可以显示所确定的至少一个提问语句。由此可见,利用本方案,第一用户无需自身输入完整的提问语句,从而节省了第一用户利用搜索引擎进行搜索时输入提问语句的时间,相应的提升了搜索引擎为第一用户提供信息的效率。(The application discloses a content recommendation method, by which a question sentence which a user may want to input can be predicted according to characters input by a first user, and the question sentence is displayed. Specifically, the method comprises the following steps: the characters input by the first user can be obtained, and the target keywords are determined according to the characters input by the first user, wherein the target keywords are keywords of the question sentences possibly input by the first user. After the target keyword is obtained, at least one question sentence corresponding to the target keyword may be determined according to a correspondence between the keyword and the question sentence. Further, the determined at least one question sentence may be displayed. Therefore, by the aid of the method and the device, the first user does not need to input complete question sentences, time for inputting the question sentences when the first user searches by the search engine is saved, and efficiency of providing information for the first user by the search engine is correspondingly improved.)

1. A method for recommending content, the method comprising:

acquiring characters input by a first user;

determining a target keyword according to the characters input by the first user;

determining at least one question sentence corresponding to the target keyword according to the corresponding relation between the keyword and the question sentence;

displaying the at least one question sentence.

2. The method of claim 1, wherein obtaining the first user-entered character comprises:

acquiring characters input by the first user in a keyboard area; alternatively, the first and second electrodes may be,

and acquiring the characters input by the first user in a search area.

3. The method of claim 1 or 2, wherein determining the target keyword from the first user-entered character comprises:

and determining the characters input in the search area by the first user as the target keywords.

4. The method of claim 1 or 2, wherein determining the target keyword from the first user-entered character comprises:

and determining a target keyword corresponding to the character input by the first user according to the corresponding relation between the character and the keyword.

5. The method according to any one of claims 1 to 4, wherein the correspondence between the keyword and the question sentence includes a correspondence between a first keyword and a first question sentence, and the degree of association between the first keyword and the first question sentence is greater than a certain threshold.

6. The method of any of claims 1-5, wherein if the target keyword is different from the character input by the first user, the method further comprises:

and displaying the target keywords.

7. The method according to any one of claims 1-6, further comprising:

responding to the screen-up operation of a first sentence by the first user, and obtaining content matched with the first sentence, wherein the first sentence is the target keyword, or the first sentence is one of the at least one question sentence;

displaying the content while displaying the at least one question sentence, or displaying the content while displaying the at least one question sentence and the target keyword.

8. A content recommendation apparatus, characterized in that the apparatus comprises:

a first acquisition unit configured to acquire a character input by a first user;

a first determining unit, configured to determine a target keyword according to a character input by the first user;

the second determining unit is used for determining at least one question sentence corresponding to the target keyword according to the corresponding relation between the keyword and the question sentence;

the first display unit is used for displaying the at least one question sentence.

9. A content recommendation device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for:

acquiring characters input by a first user;

determining a target keyword according to the characters input by the first user;

determining at least one question sentence corresponding to the target keyword according to the corresponding relation between the keyword and the question sentence;

displaying the at least one question sentence.

10. A computer-readable medium having stored thereon instructions, which when executed by one or more processors, cause an apparatus to perform the method of any one of claims 1 to 7.

Technical Field

The present application relates to the field of computers, and in particular, to a content recommendation method and apparatus.

Background

With the development of network technology, users can acquire information required by themselves through a network. Specifically, the user may input a question in a search area provided by a search engine and trigger a search operation, thereby obtaining information desired by the user.

However, by adopting this method, the user is required to input a complete question sentence and trigger the search operation, and the search engine can feed back the corresponding information to the user, which is relatively low in efficiency.

Disclosure of Invention

The technical problem to be solved by the application is how to improve the efficiency of providing information for a user by a search engine, and a content recommendation method and device are provided.

In a first aspect, an embodiment of the present application provides a content recommendation method, where the method includes:

acquiring characters input by a first user;

determining a target keyword according to the characters input by the first user;

determining at least one question sentence corresponding to the target keyword according to the corresponding relation between the keyword and the question sentence;

displaying the at least one question sentence.

Optionally, the acquiring the character input by the first user includes:

acquiring characters input by the first user in a keyboard area; alternatively, the first and second electrodes may be,

and acquiring the characters input by the first user in a search area.

Optionally, the determining a target keyword according to the character input by the first user includes:

and determining the characters input in the search area by the first user as the target keywords.

Optionally, the determining a target keyword according to the character input by the first user includes:

and determining a target keyword corresponding to the character input by the first user according to the corresponding relation between the character and the keyword.

Optionally, the keywords included in the correspondence between the characters and the keywords are obtained according to a historical query statement input by a network user in a search engine.

Optionally, the keywords in the correspondence between the keywords and the question sentences are obtained according to historical query sentences input by the network user in the search engine.

Optionally, the keyword is a keyword with a click number greater than a certain threshold; or the keyword is a keyword with the input frequency of the network user in the search area being more than a certain threshold value; or the keyword is the keyword with the first user input frequency or the click frequency larger than a certain threshold value.

Optionally, the question sentences in the correspondence between the keywords and the question sentences are obtained according to historical query sentences input by the network user in the search engine.

Optionally, the correspondence between the keyword and the question sentence includes a correspondence between a first keyword and a first question sentence, and the degree of association between the first keyword and the first question sentence is greater than a certain threshold.

Optionally, if the target keyword is different from the character input by the first user, the method further includes:

and displaying the target keywords.

Optionally, the method further includes:

responding to the screen-up operation of a first sentence by the first user, and obtaining content matched with the first sentence, wherein the first sentence is the target keyword, or the first sentence is one of the at least one question sentence;

displaying the content while displaying the at least one question sentence, or displaying the content while displaying the at least one question sentence and the target keyword.

In a second aspect, an embodiment of the present application provides a content recommendation apparatus, including:

a first acquisition unit configured to acquire a character input by a first user;

a first determining unit, configured to determine a target keyword according to a character input by the first user;

the second determining unit is used for determining at least one question sentence corresponding to the target keyword according to the corresponding relation between the keyword and the question sentence;

the first display unit is used for displaying the at least one question sentence.

Optionally, the first obtaining unit is configured to:

acquiring characters input by the first user in a keyboard area; alternatively, the first and second electrodes may be,

and acquiring the characters input by the first user in a search area.

Optionally, the first determining unit is configured to:

and determining the characters input in the search area by the first user as the target keywords.

Optionally, the first determining unit is configured to:

and determining a target keyword corresponding to the character input by the first user according to the corresponding relation between the character and the keyword.

Optionally, the keywords included in the correspondence between the characters and the keywords are obtained according to a historical query statement input by a network user in a search engine.

Optionally, the keywords in the correspondence between the keywords and the question sentences are obtained according to historical query sentences input by the network user in the search engine.

Optionally, the keyword is a keyword with a click number greater than a certain threshold; or the keyword is a keyword with the input frequency of the network user in the search area being more than a certain threshold value; or the keyword is the keyword with the first user input frequency or the click frequency larger than a certain threshold value.

Optionally, the question sentences in the correspondence between the keywords and the question sentences are obtained according to historical query sentences input by the network user in the search engine.

Optionally, the correspondence between the keyword and the question sentence includes a correspondence between a first keyword and a first question sentence, and the degree of association between the first keyword and the first question sentence is greater than a certain threshold.

Optionally, if the target keyword is different from the character input by the first user, the apparatus further includes:

and the second display unit is used for displaying the target keywords.

Optionally, the apparatus further comprises:

a second obtaining unit, configured to obtain content matched with a first statement in response to a screen-up operation of a first user on the first statement, where the first statement is the target keyword, or the first statement is one of the at least one question sentence;

and a third display unit, configured to display the content while displaying the at least one question sentence, or display the content while displaying the at least one question sentence and the target keyword.

In a third aspect, an embodiment of the present application provides a content recommendation device, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by one or more processors, where the one or more programs include instructions for:

acquiring characters input by a first user;

determining a target keyword according to the characters input by the first user;

determining at least one question sentence corresponding to the target keyword according to the corresponding relation between the keyword and the question sentence;

displaying the at least one question sentence.

Optionally, the acquiring the character input by the first user includes:

acquiring characters input by the first user in a keyboard area; alternatively, the first and second electrodes may be,

and acquiring the characters input by the first user in a search area.

Optionally, the determining a target keyword according to the character input by the first user includes:

and determining the characters input in the search area by the first user as the target keywords.

Optionally, the determining a target keyword according to the character input by the first user includes:

and determining a target keyword corresponding to the character input by the first user according to the corresponding relation between the character and the keyword.

Optionally, the keywords included in the correspondence between the characters and the keywords are obtained according to a historical query statement input by a network user in a search engine.

Optionally, the keywords in the correspondence between the keywords and the question sentences are obtained according to historical query sentences input by the network user in the search engine.

Optionally, the keyword is a keyword with a click number greater than a certain threshold; or the keyword is a keyword with the input frequency of the network user in the search area being more than a certain threshold value; or the keyword is the keyword with the first user input frequency or the click frequency larger than a certain threshold value.

Optionally, the question sentences in the correspondence between the keywords and the question sentences are obtained according to historical query sentences input by the network user in the search engine.

Optionally, the correspondence between the keyword and the question sentence includes a correspondence between a first keyword and a first question sentence, and the degree of association between the first keyword and the first question sentence is greater than a certain threshold.

Optionally, if the target keyword is different from the character input by the first user, the method further includes:

and displaying the target keywords.

Optionally, the method further includes:

responding to the screen-up operation of a first sentence by the first user, and obtaining content matched with the first sentence, wherein the first sentence is the target keyword, or the first sentence is one of the at least one question sentence;

displaying the content while displaying the at least one question sentence, or displaying the content while displaying the at least one question sentence and the target keyword.

In a fourth aspect, embodiments of the present application provide a computer-readable medium having instructions stored thereon, which, when executed by one or more processors, cause an apparatus to perform the method of the first aspect above and any one of the first aspects above.

Compared with the prior art, the embodiment of the application has the following advantages:

the embodiment of the application provides a content recommendation method, by which a question sentence which a user may want to input can be predicted according to characters input by a first user, and the question sentence is displayed. Specifically, the method comprises the following steps: the characters input by the first user can be obtained, and the target keywords are determined according to the characters input by the first user, wherein the target keywords are keywords of the question sentences possibly input by the first user. After the target keyword is obtained, at least one question sentence corresponding to the target keyword may be determined according to a correspondence between the keyword and the question sentence. Further, the determined at least one question sentence may be displayed. Therefore, by the aid of the method and the device, the first user does not need to input complete question sentences, time for inputting the question sentences when the first user searches by the search engine is saved, and efficiency of providing information for the first user by the search engine is correspondingly improved.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.

Fig. 1 is a schematic flowchart of a content recommendation method according to an embodiment of the present application;

fig. 2 is a schematic structural diagram of a content recommendation device according to an embodiment of the present application;

fig. 3 is a schematic structural diagram of a client according to an embodiment of the present application;

fig. 4 is a schematic structural diagram of a server according to an embodiment of the present application.

Detailed Description

In order to make the technical solutions of the present application better understood, 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, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The inventor of the present application has found through research that, currently, when a user acquires information required by the user through a network, the user can input a question sentence in a search engine. Specifically, the user may enter a complete question sentence in the search area of the search engine and trigger a search operation. In some scenarios, the complete question sentence may include a large number of characters, or the user may input the complete question sentence at a slow speed, which may take a long time for the user to input the complete question sentence. Resulting in inefficient feedback of information to the user by the search engine.

In order to solve the above problem, an embodiment of the present application provides a content recommendation method, by which a user does not need to input a complete question sentence, so that time for inputting the question sentence when the user searches by using a search engine is saved, and efficiency of providing information for the user by using the search engine is correspondingly improved.

Various non-limiting embodiments of the present application are described in detail below with reference to the accompanying drawings.

Exemplary method

Referring to fig. 1, the figure is a schematic flow chart of a content recommendation method according to an embodiment of the present application.

The method provided by the embodiment of the present application may be executed, for example, by a device running a search engine, where the device mentioned herein includes, but is not limited to, a terminal device and a server. The terminal device mentioned here may be a mobile terminal such as a smart phone or a tablet computer, or may be a terminal device such as a desktop computer.

The method shown in fig. 1 can be implemented, for example, by the following S101 to S104.

S101: a character input by a first user is obtained.

The characters mentioned in the embodiments of the present application may be characters input by a user using an input method. The input method is not particularly limited in the embodiments of the present application, and may be a chinese input method, an english input method, a korean input method, a french input method, or the like.

In practical applications, when a user searches with a search engine, the user may first invoke an input method to input corresponding characters in a keyboard region. Then, the input method provides corresponding candidate items for the user according to characters input by the user in the keyboard area, and the candidate items are input into the search area after the user performs screen-up operation on the candidate items. The keyboard area refers to an area where a user invokes an input method to input characters, and may also be referred to as an input area. For a smart terminal, such as a smart phone, the keyboard zone may be the area where the virtual keyboard is located. For terminals with physical keyboards, such as desktop computers or non-smart phones, the keyboard zone may be the area where the physical keyboard is located. The search area refers to an area provided by a search engine for inputting a search sentence. After the user enters the complete question sentence into the search area, a search operation may be triggered. For example, a user may trigger a search operation via a search button provided by a search engine; as another example, a user may trigger a search operation by clicking a function key on a physical keyboard, such as the Enter key.

In one implementation manner of the embodiment of the application, the character input by the first user may be a character input by the first user in the keyboard region, that is, a character input by the user using an input method and not yet displayed in the search region. For example: the first user-entered character may be "huaw".

In another implementation manner of the embodiment of the present application, the character input by the first user may also be a character input by the first user in the search area, that is, a character input by the user using an input method and already displayed in the search area. Taking the Chinese input method as an example, the character input by the first user may be "Huaye". For example, the first user may input "huawei" as an input method of english.

In another implementation manner of the embodiment of the present application, the characters input by the first user may also include both the characters input by the first user in the keyboard area and the characters input by the first user in the search area. For example, the character input by the first user in the search area is "Hua Ye", the character input by the first user in the keyboard area is "p", and the character input by the first user may be "Hua Ye".

S102: and determining a target keyword according to the characters input by the first user.

In the embodiment of the present application, the target keyword refers to a keyword of a question sentence that the user may wish to input. The keyword of the quiz sentence that the user may wish to input may be predicted from the characters input by the first user through S102.

As described in S101, the character input by the first user may be a character input in the keyboard region, a character input in the search region, or both a character input in the keyboard region and a character input in the search region.

In this embodiment of the present application, if the character input by the first user is a character input by the first user in the search area, it is considered that the character input by the user in the search area may be a complete keyword, and therefore, in an implementation manner of this embodiment of the present application, the character input by the first user in the search area may be directly determined as the target keyword. Specifically, a keyword lexicon may be pre-constructed, the keyword lexicon includes a plurality of keywords, and when it is determined that a keyword matching a character input by a first user in a search area exists in the keyword lexicon, the character input by the first user in the search area is determined as a target keyword. For example, the character input by the first user in the search area is "hua ye" and the keyword "huaye" is included in the keyword thesaurus, so that the character input by the first user can be directly determined as the target keyword.

The embodiment of the present application does not specifically limit a specific implementation manner for constructing the keyword lexicon, and as an example, the keyword lexicon may be constructed in a manner of manually labeling keywords. As yet another example, a keyword thesaurus may be built from historical query statements entered in a search engine by a large number of network users. For example, a search engine log of the network user may be obtained, in which query statements entered in the search engine by the network user are recorded. After the historical query sentences input by the network user in the search engine are obtained, the historical query sentences can be analyzed and processed to obtain keywords in the historical query sentences, and a keyword library is constructed based on the obtained keywords. For example, the following steps are carried out: the historical query sentences input by the network users comprise: "how like Hua is the cell phone", "what the reason why Hua is successful", "how much Hua is the pre-sale price of p 40", "how 5G is supported by Hua p 40", "which photo is better for Hua p40 and mate 30". Then the above historical query sentences are analyzed to obtain keywords "hua ye" and "hua ye p 40", so that the keywords "huaye" and "huaye p 40" are added into the keyword lexicon. Of course, the words such as "pre-sale price", "5G", "photo", etc. may also be added to the keyword library as keywords, and the embodiment of the present application is not particularly limited.

The network user mentioned herein refers to a user using a search engine through a network, and the network user may or may not include a first user, and the embodiment of the present application is not particularly limited.

In this embodiment, if the character input by the first user is a character input by the first user in the search area, and the character input by the first user in the search area is not a complete keyword, or the character input by the first user is a character input in the input area and has not been displayed in the search area. For the two cases, in a specific implementation, for example, the S102 may determine the keyword corresponding to the character input by the user according to a pre-constructed correspondence relationship between the character and the keyword. The correspondence between characters and keywords can be understood by referring to table 1 below.

TABLE 1

Figure BDA0002557919420000091

It should be noted that table 1 is shown only for convenience of understanding, and does not limit the embodiments of the present application. In practical applications, the correspondence between the characters and the keywords is not limited to the cases shown in table 1, and the characters and the keywords are not necessarily in a one-to-one correspondence, for example, one character may correspond to a plurality of keywords. For example, the keywords corresponding to the character "Huaqi p" may include "Huaqi p 30", "Huaqi p30 pro", and the like, in addition to "Huaqi p 40" shown in table 1.

In the embodiment of the present application, the keywords shown in table 1 may also be obtained from historical query sentences input by a network user in a search engine. With regard to the implementation of determining keywords from historical query statements entered by network users in a search engine, reference may be made to the relevant description section above, which is not described in detail here.

In an implementation manner of the embodiment of the present application, on one hand, in consideration of the large number of network users, and accordingly, the number of keywords determined according to the historical query statements input by the network users in the search engine is also large, for example, the keywords corresponding to the character "hua be p" may include "hua be p 40" and "hua be p 30". On the other hand, a plurality of keywords corresponding to one character may be included. In order to accurately predict a target keyword according to a character input by a first user, when a corresponding relation between the character and the keyword is established, the keyword determined according to a historical query sentence can be screened.

As an example, considering that most of the network users click or input keywords in the search area, the probability that the keywords are keywords of the question sentence that the first user may input is relatively high, and therefore, the keywords in the corresponding relationship between the characters and the keywords may be keywords whose number of clicks is greater than a certain threshold in a certain time period, or keywords whose number of inputs in the search area is greater than a certain threshold by the network users in a certain time period. For example, the following steps are carried out: hua is the mobile phone p40 is the latest mobile phone on the market, most users pay attention to p40 in recent time. Correspondingly, the number of times of clicking the web page, the number of times of inputting the web page with the Chinese character p40, and the number of times of inputting the web page with the Chinese character p40 by the network user are also large. Therefore, "hua be p 40" can be determined as the keyword, and the correspondence of the character including the keyword "hua be p 40" and the keyword is constructed.

As still another example, considering that the problem focused on by the first user is related to the situation of the first user, the keyword in the correspondence relationship between the character and the keyword may be a keyword in which the first user has a history input number or a history click number greater than a certain threshold. The first user input mentioned here may be input by the first user in the keyboard region, or may be input by the first user in the search region, and the embodiment of the present application is not particularly limited. For example, the following steps are carried out: the first user purchases a Huaqi cell phone p30, the first user has a high attention degree to the Huaqi p30, and has clicked some web pages about the "Huaqi p 30" or input query sentences taking the "Huaqi p 30" as keywords in the search area. For this case, "hua p 30" may be determined as the keyword, and the correspondence of the character including the keyword "hua p 30" and the keyword is constructed. In this way, the target keywords determined according to the corresponding relationship are in accordance with the personalized requirements of the first user.

In the embodiment of the present application, if the character input by the first user includes both the character input by the first user in the search area and the character input by the first user in the keyboard area. S102 may have various implementations when implemented specifically. In one implementation, the character entered by the first user in the search area may be directly determined as the target keyword. In still another implementation manner, a keyword corresponding to a character input by a user may be determined according to a pre-constructed correspondence relationship between the character and the keyword. For the specific implementation of these two implementation manners, reference may be made to the description part of the related contents above, and details are not described here.

In the embodiment of the application, after the keyword is determined, the corresponding relation between the keyword and the character can be obtained by using a corresponding algorithm. The algorithms mentioned herein may include a prefix indexing algorithm, an inverted indexing algorithm, or a suffix indexing algorithm. The prefix indexing algorithm, the reverse indexing algorithm or the suffix indexing algorithm is a mature algorithm and will not be described in detail here.

S103: and determining at least one question sentence corresponding to the target keyword according to the corresponding relation between the keyword and the question sentence.

In the embodiment of the present application, a corresponding relationship between a keyword and a question sentence may be pre-constructed, and then, after the target keyword is determined in S102, at least one question sentence corresponding to the target keyword may be determined according to the corresponding relationship between the keyword and the question sentence. It is understood that the correspondence between the keyword and the question sentence at least includes a correspondence between the target keyword and the at least one question sentence. As for the correspondence between the keywords and the question sentences, it can be understood with reference to table 2 below.

TABLE 2

It should be noted that table 2 is shown only for convenience of understanding, and does not limit the embodiments of the present application. In practical applications, the correspondence between the keywords and the question sentences is not limited to the cases shown in table 2.

Regarding S103, as will be described with reference to table 2, assuming that the target keyword determined in S102 is "hua ye", the determined question sentence may include "how hua is a mobile phone" and "what is the reason for the success of hua ye".

Next, a specific implementation of constructing a correspondence between the keywords and the question sentence will be described.

In the embodiment of the application, the keywords can be determined according to historical query sentences input by network users in a search engine. With regard to the specific implementation of determining the keywords according to the historical query sentences input by the network users in the search engine, reference may be made to the above description of related contents, which is not described in detail here. Accordingly, considering the query sentence input by most network users in the search engine, the probability that the query sentence is a question sentence that the first user may input is relatively high. Therefore, the question sentence can be determined according to the historical query sentence input by the user in the search engine. In the embodiment of the present application, it is considered that, in practical applications, the historical query statement input by the network user in the search engine may be a question statement, or may not be a question statement but a statement. In view of this, in the embodiment of the present application, semantic analysis may be performed on the historical query sentences input by the network user in the search engine, and the question sentences in the historical query sentences may be screened out.

After obtaining the keywords and the question sentences, the degree of association between the keywords and the question sentences may be calculated by using a corresponding algorithm, and the degree of association referred to herein may be a semantic degree of association. If the degree of association between the keyword and the question sentence is greater than a certain threshold, the corresponding relationship between the keyword and the question sentence can be established. In other words, if the correspondence between the keyword and the question sentence includes the correspondence between the first keyword and the first question sentence, the degree of association between the first keyword and the first question sentence is greater than a certain threshold. Because the correlation degree between the keywords having the correspondence relationship in the correspondence relationship between the keywords and the question sentences is relatively high, the question sentences corresponding to the target keywords can be accurately predicted by using the correspondence relationship between the keywords and the question sentences.

The embodiment of the application does not limit the algorithm for calculating the association degree between the keywords and the question sentences, and as an example, the association degree between the keywords and the question sentences can be calculated by utilizing a collaborative filtering model in a recommendation algorithm; as yet another example, a text-based inverted index algorithm may be utilized to calculate the degree of association between keywords and question sentences.

S104: displaying the at least one question sentence.

After at least one question sentence corresponding to the target keyword is determined in S103, the at least one question sentence may be displayed. In the embodiment of the present application, the at least one question sentence may be displayed on the interface where the search area is located. As an example, the at least one question statement may be displayed in a certain area close to the search area, for example below the search area. As yet another example, the at least one question sentence may be displayed in an area proximate to the keypad area, for example, above the keypad area.

Examples are 1: after the scheme provided by the embodiment of the application is utilized, the target keyword 'huayi' determined according to the character 'huawa' and the question sentence 'hua is how the mobile phone' corresponding to the target keyword 'huayi' and the reason why the huayi is successful can be displayed for the user.

For example, 2: the user enters the character "Huaqi p" in the search area, which is not a complete keyword. After the scheme provided by the embodiment of the application is utilized, the target keyword 'Huaqi p 40' determined according to the character 'Huaqi p', and the question sentence 'Huaqi p40 pre-selling price' and 'Huaqi p40 support 5G' corresponding to the target keyword 'Huaqi p 40' can be displayed for the user.

For example, 3: the user entered the character "Huaqi p 40" in the search area, and the character "Huaqi p 40" was the complete keyword. After the scheme provided by the embodiment of the application is utilized, the character "Hua is p 40" can be determined as the target keyword, and question sentences "Hua is p40 pre-sold price, Hua is p40 supports 5G", and "Hua is p40 and mate30 have good photographing effect" corresponding to the target keyword "Hua is p 40" are displayed for the user.

For example, 4: the user has entered the character "hua chi" in the search area and the character "p" in the keyboard area. After the scheme provided by the embodiment of the application is utilized, the character 'Huaqi p' input by the user can be used for determining 'Huaqi p 40' as the target keyword, and question sentences 'Huaqi p40 pre-sale price', 'Huaqi p40 supports 5G' and 'Huaqi p40 and mate30 which have good photographing effect' corresponding to the target keyword 'Huaqi p 40' are displayed for the user.

Therefore, the first user does not need to input a complete question sentence, so that the time for inputting the question sentence when the user searches by using the search engine is saved, and the efficiency of providing information for the user by using the search engine is correspondingly improved.

As described above, the target keyword may be a character input by the first user, or may be determined according to the character input by the first user and the "correspondence between character and keyword". In the embodiment of the present application, it is considered that in practical applications, when a user inputs in a search area, the user may also input only a keyword to perform a search. For example, the user may wish to obtain some information about Huaqi p40, and so the user may enter the keyword "Huaqi p 40" in the search area and further trigger the search operation. Therefore, if the target keyword is different from the character input by the first user, the target keyword may be further displayed after the target keyword is determined in S102. For example, when the user inputs "hua is p" in the search area or the input area, and determines the target keyword "hua is p 40" from "hua is p", in this case, the target keyword "hua is p 40" may be displayed in addition to the question sentence corresponding to "hua is p 40". For another example, if the user inputs "hua ye" in the search area and "p" in the input area, the target keyword "hua ye p 40" is determined according to the characters input by the user in the search area and the input area, and for this case, in addition to the question sentence corresponding to "huaye p 40", the target keyword "huaye p 40" may be displayed.

After displaying at least one question sentence, or displaying the target keyword, or displaying at least one question sentence and the target keyword at S104, the first user may perform an on-screen operation with respect to the displayed content, that is, the first user may select one of the sentences to perform the on-screen operation, thereby inputting the sentence into the search area. For example, a first user may click on a target keyword, thereby entering the target keyword into a search area; for another example, the first user may click on one of the at least one question sentence, thereby entering the sentence into the search area. For convenience of description, in the following description, a sentence in which the first user performs the on-screen operation is referred to as a "first sentence", and it is understood that the first sentence is the target keyword, or the first sentence is one of the at least one question sentence.

In the embodiment of the application, in order to further improve the efficiency of the search engine providing the search content for the user, after the first user performs the screen-up operation on the first sentence, in addition to inputting the first sentence into the search area, the content matched with the first sentence can be obtained and displayed. In other words, in the embodiment of the present application, after the first user clicks the first sentence, the search engine may return the content corresponding to the first sentence for the first user without triggering the search operation.

For example, the following steps are carried out: the user entered the character "Huaqi p 40" in the search area, and the character "Huaqi p 40" was the complete keyword. After the scheme provided by the embodiment of the application is utilized, the character "Hua is p 40" can be determined as the target keyword, and question sentences "Hua is p40 pre-sold price, Hua is p40 supports 5G", and "Hua is p40 and mate30 have good photographing effect" corresponding to the target keyword "Hua is p 40" are displayed for the user. The user can trigger the screen-up operation for the question sentence "how much the p40 is pre-sold" based on the display content. So that the question sentence "how much to resell for p 40" is input to the search area. Correspondingly, answer details corresponding to the question sentence "how much p40 has been pre-sold" can also be displayed in the display interface.

Furthermore, in consideration of the conventional search method, once the user triggers a search operation, if the user needs to search for another content, the content currently input to the search area needs to be deleted and input again. By using the scheme of the embodiment of the application, the at least one question sentence is displayed while the content corresponding to the first sentence is displayed, or the at least one question sentence and the target keyword are displayed, so that after the first user views the content corresponding to the first sentence, the first user can continue to click other sentences and obtain the content corresponding to other sentences, the content which is already input in the search area does not need to be deleted, and the search efficiency is further improved.

For example, the following steps are carried out: the user entered the character "Huaqi p 40" in the search area, and the character "Huaqi p 40" was the complete keyword. After the scheme provided by the embodiment of the application is utilized, the character "Hua is p 40" can be determined as the target keyword, and question sentences "Hua is p40 pre-sold price, Hua is p40 supports 5G", and "Hua is p40 and mate30 have good photographing effect" corresponding to the target keyword "Hua is p 40" are displayed for the user. The user can trigger the screen-up operation for the question sentence "how much the p40 is pre-sold" based on the display content. So that the question sentence "how much to resell for p 40" is input to the search area. Correspondingly, answer details corresponding to the question sentence 'how much p40 has been pre-sold' can be displayed in the display interface. Meanwhile, even if the question sentence "how much p40 was pre-sold" is input to the search area, the question sentences "how much p40 was pre-sold", "how p40 supports 5G", and "which of p40 and mate30 was good" are displayed in the search interface, so that the user can perform a screen-up operation on the displayed question sentences and obtain the corresponding answer details. For example, the user may continue to enter "do p40 supports 5G" into the search area by clicking "do p40 supports 5G" and obtain answer details corresponding to "do p40 supports 5G".

Exemplary device

Based on the method provided by the above embodiment, the embodiment of the present application further provides an apparatus, which is described below with reference to the accompanying drawings.

Referring to fig. 2, the diagram is a schematic structural diagram of a content recommendation device according to an embodiment of the present application. The content recommendation apparatus 200 shown in fig. 2 may specifically include, for example: a first acquisition unit 201, a first determination unit 202, a second determination unit 203, and a first display unit 204.

A first acquiring unit 201 for acquiring a character input by a first user;

a first determining unit 202, configured to determine a target keyword according to a character input by the first user;

a second determining unit 203, configured to determine, according to a correspondence between a keyword and a question sentence, at least one question sentence corresponding to the target keyword;

a first display unit 204, configured to display the at least one question sentence.

Optionally, the first obtaining unit 201 is configured to:

acquiring characters input by the first user in a keyboard area; alternatively, the first and second electrodes may be,

and acquiring the characters input by the first user in a search area.

Optionally, the first determining unit 202 is configured to:

and determining the characters input in the search area by the first user as the target keywords.

Optionally, the first determining unit 202 is configured to:

and determining a target keyword corresponding to the character input by the first user according to the corresponding relation between the character and the keyword.

Optionally, the keywords included in the correspondence between the characters and the keywords are obtained according to a historical query statement input by a network user in a search engine.

Optionally, the keywords in the correspondence between the keywords and the question sentences are obtained according to historical query sentences input by the network user in the search engine.

Optionally, the keyword is a keyword with a click number greater than a certain threshold; or the keyword is a keyword with the input frequency of the network user in the search area being more than a certain threshold value; or the keyword is the keyword with the first user input frequency or the click frequency larger than a certain threshold value.

Optionally, the question sentences in the correspondence between the keywords and the question sentences are obtained according to historical query sentences input by the network user in the search engine.

Optionally, the correspondence between the keyword and the question sentence includes a correspondence between a first keyword and a first question sentence, and the degree of association between the first keyword and the first question sentence is greater than a certain threshold.

Optionally, if the target keyword is different from the character input by the first user, the apparatus further includes:

and the second display unit is used for displaying the target keywords.

Optionally, the apparatus further comprises:

a second obtaining unit, configured to obtain content matched with a first statement in response to a screen-up operation of a first user on the first statement, where the first statement is the target keyword, or the first statement is one of the at least one question sentence;

and a third display unit, configured to display the content while displaying the at least one question sentence, or display the content while displaying the at least one question sentence and the target keyword.

Since the apparatus 200 is an apparatus corresponding to the method provided in the above method embodiment, and the specific implementation of each unit of the apparatus 200 is the same as that of the above method embodiment, for the specific implementation of each unit of the apparatus 200, reference may be made to the description part of the above method embodiment, and details are not repeated here.

The method provided by the embodiment of the present application may be executed by a client or a server, and the client and the server that execute the method are described below separately.

Fig. 3 shows a block diagram of a client 300. For example, the client 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

Referring to fig. 3, client 300 may include one or more of the following components: processing component 302, memory 304, power component 306, multimedia component 308, audio component 310, input/output (I/O) interface 33, sensor component 314, and communication component 316.

The processing component 302 generally controls overall operation of the client 300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 302 may include one or more processors 320 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 302 can include one or more modules that facilitate interaction between the processing component 302 and other components. For example, the processing component 302 can include a multimedia module to facilitate interaction between the multimedia component 308 and the processing component 302.

The memory 304 is configured to store various types of data to support operations at the client 300. Examples of such data include instructions for any application or method operating on the client 300, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 304 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.

The power component 306 provides power to the various components of the client 300. The power components 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the client 300.

The multimedia component 308 comprises a screen providing an output interface between the client 300 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the client 300 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

The audio component 310 is configured to output and/or input audio signals. For example, the audio component 310 includes a Microphone (MIC) configured to receive external audio signals when the client 300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 304 or transmitted via the communication component 316. In some embodiments, audio component 310 also includes a speaker for outputting audio signals.

The I/O interface provides an interface between the processing component 302 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.

Sensor component 314 includes one or more sensors for providing status assessment of various aspects to client 300. For example, sensor component 314 may detect an open/closed state of device 300, the relative positioning of components, such as a display and keypad of client 300, sensor component 314 may also detect a change in the position of client 300 or a component of client 300, the presence or absence of user contact with client 300, client 300 orientation or acceleration/deceleration, and a change in the temperature of client 300. Sensor assembly 314 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 314 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

The communication component 316 is configured to facilitate communications between the client 300 and other devices in a wired or wireless manner. The client 300 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication section 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

In an exemplary embodiment, the client 300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the following methods:

acquiring characters input by a first user;

determining a target keyword according to the characters input by the first user;

determining at least one question sentence corresponding to the target keyword according to the corresponding relation between the keyword and the question sentence;

displaying the at least one question sentence.

Optionally, the acquiring the character input by the first user includes:

acquiring characters input by the first user in a keyboard area; alternatively, the first and second electrodes may be,

and acquiring the characters input by the first user in a search area.

Optionally, the determining a target keyword according to the character input by the first user includes:

and determining the characters input in the search area by the first user as the target keywords.

Optionally, the determining a target keyword according to the character input by the first user includes:

and determining a target keyword corresponding to the character input by the first user according to the corresponding relation between the character and the keyword.

Optionally, the keywords included in the correspondence between the characters and the keywords are obtained according to a historical query statement input by a network user in a search engine.

Optionally, the keywords in the correspondence between the keywords and the question sentences are obtained according to historical query sentences input by the network user in the search engine.

Optionally, the keyword is a keyword with a click number greater than a certain threshold; or the keyword is a keyword with the input frequency of the network user in the search area being more than a certain threshold value; or the keyword is the keyword with the first user input frequency or the click frequency larger than a certain threshold value.

Optionally, the question sentences in the correspondence between the keywords and the question sentences are obtained according to historical query sentences input by the network user in the search engine.

Optionally, the correspondence between the keyword and the question sentence includes a correspondence between a first keyword and a first question sentence, and the degree of association between the first keyword and the first question sentence is greater than a certain threshold.

Optionally, if the target keyword is different from the character input by the first user, the method further includes:

and displaying the target keywords.

Optionally, the method further includes:

responding to the screen-up operation of a first sentence by the first user, and obtaining content matched with the first sentence, wherein the first sentence is the target keyword, or the first sentence is one of the at least one question sentence;

displaying the content while displaying the at least one question sentence, or displaying the content while displaying the at least one question sentence and the target keyword.

Fig. 4 is a schematic structural diagram of a server in an embodiment of the present application. The server 400 may vary significantly due to configuration or performance, and may include one or more Central Processing Units (CPUs) 422 (e.g., one or more processors) and memory 432, one or more storage media 430 (e.g., one or more mass storage devices) storing applications 442 or data 444. Wherein the memory 432 and storage medium 430 may be transient or persistent storage. The program stored on the storage medium 430 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 422 may be arranged to communicate with the storage medium 430, and execute a series of instruction operations in the storage medium 430 on the server 400.

Still further, the central processor 422 may perform the following method:

acquiring characters input by a first user;

determining a target keyword according to the characters input by the first user;

determining at least one question sentence corresponding to the target keyword according to the corresponding relation between the keyword and the question sentence;

displaying the at least one question sentence.

Optionally, the acquiring the character input by the first user includes:

acquiring characters input by the first user in a keyboard area; alternatively, the first and second electrodes may be,

and acquiring the characters input by the first user in a search area.

Optionally, the determining a target keyword according to the character input by the first user includes:

and determining the characters input in the search area by the first user as the target keywords.

Optionally, the determining a target keyword according to the character input by the first user includes:

and determining a target keyword corresponding to the character input by the first user according to the corresponding relation between the character and the keyword.

Optionally, the keywords included in the correspondence between the characters and the keywords are obtained according to a historical query statement input by a network user in a search engine.

Optionally, the keywords in the correspondence between the keywords and the question sentences are obtained according to historical query sentences input by the network user in the search engine.

Optionally, the keyword is a keyword with a click number greater than a certain threshold; or the keyword is a keyword with the input frequency of the network user in the search area being more than a certain threshold value; or the keyword is the keyword with the first user input frequency or the click frequency larger than a certain threshold value.

Optionally, the question sentences in the correspondence between the keywords and the question sentences are obtained according to historical query sentences input by the network user in the search engine.

Optionally, the correspondence between the keyword and the question sentence includes a correspondence between a first keyword and a first question sentence, and the degree of association between the first keyword and the first question sentence is greater than a certain threshold.

Optionally, if the target keyword is different from the character input by the first user, the method further includes:

and displaying the target keywords.

Optionally, the method further includes:

responding to the screen-up operation of a first sentence by the first user, and obtaining content matched with the first sentence, wherein the first sentence is the target keyword, or the first sentence is one of the at least one question sentence;

displaying the content while displaying the at least one question sentence, or displaying the content while displaying the at least one question sentence and the target keyword.

The server 400 may also include one or more power supplies 426, one or more wired or wireless network interfaces 450, one or more input-output interfaces 456, one or more keyboards 456, and/or one or more operating systems 441, such as Windows Server, Mac OSXTM, UnixTM, LinuxTM, FreeBSDTM, and so forth.

Embodiments of the present application also provide a computer-readable medium having stored thereon instructions, which, when executed by one or more processors, cause an apparatus to perform the content recommendation method provided by the above method embodiments.

Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice in the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.

It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the attached claims

The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种持久缓存方法、装置和计算机设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类