WO2023024716A1 - 查询结果显示方法、装置、介质和电子设备 - Google Patents

查询结果显示方法、装置、介质和电子设备 Download PDF

Info

Publication number
WO2023024716A1
WO2023024716A1 PCT/CN2022/104090 CN2022104090W WO2023024716A1 WO 2023024716 A1 WO2023024716 A1 WO 2023024716A1 CN 2022104090 W CN2022104090 W CN 2022104090W WO 2023024716 A1 WO2023024716 A1 WO 2023024716A1
Authority
WO
WIPO (PCT)
Prior art keywords
query
query result
display order
quality information
target
Prior art date
Application number
PCT/CN2022/104090
Other languages
English (en)
French (fr)
Inventor
彭睿棋
Original Assignee
北京字跳网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京字跳网络技术有限公司 filed Critical 北京字跳网络技术有限公司
Priority to EP22860063.1A priority Critical patent/EP4322032A1/en
Priority to JP2023568193A priority patent/JP2024517853A/ja
Publication of WO2023024716A1 publication Critical patent/WO2023024716A1/zh
Priority to US18/493,646 priority patent/US20240054167A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results

Definitions

  • the present disclosure relates to the field of computer technology, and in particular, to a query result display method, device, medium and electronic equipment.
  • the method of displaying recommended query words for users in the query results is usually used to expand the user's query conditions.
  • the display position of the recommended query words is usually fixed. If the recommended words are displayed too high, It will affect the user's acquisition of the query results he needs. If the query recommendation words are displayed too late, when the user finds the query results that meet his needs, he will usually end the query, which is not convenient for the user to follow the recommended words. It is difficult to meet the user's derived query needs and reduce the efficiency of query.
  • the present disclosure provides a query result display method, the method comprising:
  • the query result quality information is used to indicate the matching degree between the query content and the query result obtained based on the query content;
  • the query result quality information determine the display order of the recommended word set corresponding to the query content in the query result
  • the target query result is sent to the terminal, and the terminal displays the recommended word set at a display position corresponding to the display order in the query result interface.
  • the present disclosure provides a method for querying content results, the method comprising:
  • the display order is determined by the server based on the query result quality information corresponding to the query content, and the query result quality information is used To represent the matching degree between the query content and the query result;
  • the set of recommended words corresponding to the query content is displayed.
  • the present disclosure provides a device for displaying query results, the device comprising:
  • a receiving module configured to receive query content
  • a first determining module configured to determine query result quality information corresponding to the query content, where the query result quality information is used to indicate a matching degree between the query content and a query result obtained based on the query content;
  • the second determination module is used to determine the display order of the recommended word set corresponding to the query content in the query result according to the query result quality information
  • a processing module configured to add the set of recommended words to the query result according to the display order, so as to obtain a target query result
  • the first sending module is used to send the target query result to the terminal, so that the terminal displays the recommended word set at a display position corresponding to the display order in the query result interface.
  • the present disclosure provides a device for querying content results, the device comprising:
  • the second sending module is used to send the received query content to the server
  • the fourth determining module is configured to, in response to receiving the target query result sent by the server, determine the display position corresponding to the recommended word set according to the display order corresponding to the recommended word set indicated by the target query result, wherein the The target query result includes the recommended word set and the display order, and the query result obtained based on the query content, the display order is determined by the server based on the query result quality information corresponding to the query content, The query result quality information is used to indicate the matching degree between the query content and the query result;
  • a display module configured to display the set of recommended words corresponding to the query content at the display position in the query result interface.
  • a computer-readable medium on which a computer program is stored, and when the program is executed by a processing device, the steps of the method described in the first aspect or the second aspect are implemented.
  • an electronic device including:
  • a processing device configured to execute the computer program in the storage device to implement the steps of the method in the first aspect or in the second aspect.
  • the query content is received, and the query result quality information corresponding to the query content is determined, and then according to the query result quality information, it can be determined that the recommended word set corresponding to the query content is in the corresponding query content
  • the display order in the query results so that the recommended word set is added to the query results according to the display order to obtain the target query results, so that the target query results are sent to the terminal, so that the terminal can query
  • the display position corresponding to the display order in the result interface displays the set of recommended words.
  • the display order of the recommended word set in the query result can be dynamically determined based on the query content, so that the display order of the recommended words contained in the recommended word set meets the user's query needs, and it can avoid the display of recommended words too high Querying the user to check the impact of the query results ensures that the user can query the content they need faster, and guides the user to initiate a new query behavior through the recommended words to meet the user's derived query needs, facilitate the user's use, and improve Improve user experience while improving user query efficiency.
  • FIG. 1 is a flowchart of a query result display method provided according to an embodiment of the present disclosure
  • Fig. 2A is a schematic diagram of a query result interface in an embodiment
  • Fig. 2B is a schematic diagram of a query result interface in an embodiment
  • Fig. 3 is a schematic diagram of a query result interface under an embodiment
  • Fig. 4 is a schematic diagram of a query result interface in an embodiment
  • Fig. 5 is a block diagram of a query result display device provided according to an embodiment of the present disclosure.
  • FIG. 6 shows a schematic structural diagram of an electronic device suitable for implementing an embodiment of the present disclosure.
  • the term “comprise” and its variations are open-ended, ie “including but not limited to”.
  • the term “based on” is “based at least in part on”.
  • the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one further embodiment”; the term “some embodiments” means “at least some embodiments.” Relevant definitions of other terms will be given in the description below.
  • FIG. 1 it is a flowchart of a query result display method provided according to an implementation manner of the present disclosure. As shown in FIG. 1, the method may include:
  • step 11 the query content is received, wherein the query content may be a query condition input by the user, and the query content may include one or more keywords, so as to facilitate content search based on the keywords.
  • step 12 determine the query result quality information corresponding to the query content, the query result quality information is used to indicate the matching degree between the query content and the query result obtained based on the query content, the higher the matching degree, The higher the satisfaction level of the user for the query result corresponding to the query content, that is, the higher the display order of the query result required by the user is in the query result interface.
  • keywords in the query content can be used to query in the quality information set, and if the corresponding query result quality information is found, the query result quality information corresponding to the query content can be determined according to the query result.
  • pre-extraction can be performed according to the data of the user's permission, so as to obtain the corresponding relationship between the keywords in the quality information set and the quality information of the query result.
  • step 13 according to the query result quality information, the display sequence of the recommended word set corresponding to the query content in the query result is determined.
  • the recommended word set may contain multiple recommended words, and the recommended words are determined based on the query content.
  • the query result quality information indicates that the matching degree is high, it indicates that the user has a high level of satisfaction with the query result, that is, the earlier records in the query result can meet the user's query needs.
  • the recommended words can be set It is displayed at a higher position to provide users with extended queries while meeting their query needs.
  • step 14 the recommended word set is added to the query result according to the display order to obtain the target query result.
  • step 15 the target query result is sent to the terminal, and the recommended word set is displayed at a display position corresponding to the display order of the terminal on the query result interface.
  • query results may be displayed on the query result interface, and the query results determined based on the query content are A1, A2, A3, A4, A5, and A6 in sequence, as shown in FIG. 2A .
  • the determined display order is 4, and the recommended words contained in the recommended word set can be displayed at the fourth position in the query result interface, that is, the recommended word set C is added to the query result in the display order.
  • the obtained The display sequence of the display queue in the target query result is as follows: A1, A2, A3, C, A4, A5, as shown in FIG. 2B.
  • the query content is received, and the query result quality information corresponding to the query content is determined, and then according to the query result quality information, it can be determined that the recommended word set corresponding to the query content is included in the query
  • the display order in the query result corresponding to the content so as to add the recommended word set to the query result according to the display order to obtain the target query result, so as to send the target query result to the terminal to be used by the
  • the terminal displays the set of recommended words at a display position corresponding to the display order in the query result interface.
  • the display order of the recommended word set in the query result can be dynamically determined based on the query content, so that the display order of the recommended words contained in the recommended word set meets the user's query needs, and it can avoid the display of recommended words too high Querying the user to check the impact of the query results ensures that the user can query the content they need faster, and guides the user to initiate a new query behavior through the recommended words to meet the user's derived query needs, facilitate the user's use, and improve Improve user experience while improving user query efficiency.
  • step 13 according to the query result quality information, an exemplary implementation manner of determining the display order of the recommended word set corresponding to the query content in the query result is as follows, and this step may include:
  • the target quantity can determine the quantity of query results that can be displayed in one display interface by acquiring the display information of the corresponding terminal, that is, the quantity of query results that can be displayed in one screen without sliding or scrolling display. For example, it can be determined according to the display resolution of the terminal and the size information of the query result. For example, when the terminal is a mobile phone terminal, the determined target number can be 6 or the target number can be set in the display information of the terminal in advance. , which can be obtained directly.
  • the display order is determined according to the difference between the quality standard information of the query result quality information and the query result quality information, and the target quantity, wherein the value of the query result quality information is greater than or equal to zero , and the value of the query result quality information is less than or equal to the quality standard information.
  • the product of the value obtained after normalizing the difference between the quality standard information of the query result quality information and the query result quality information and the target quantity may be determined as the initial display order, and the formula is as follows:
  • the H is used to represent the initial display sequence
  • the D is used to represent the quality standard information of the query result quality information, for example, the quality standard information may be 1;
  • the A is used to represent the query result quality information, and the value range of the query result quality information is [0, D];
  • the N is used to represent the target quantity
  • f(x) is used to represent the normalization of x, for example, the difference between the quality standard information of the query result quality information and the query result quality information may be divided by the quality standard information of the query result quality information for normalization.
  • the quality standard information is 1, the normalization operation may not be performed.
  • the initial display sequence is not an integer, the initial display sequence is rounded to obtain the display sequence.
  • the initial display sequence may be directly used as the display sequence.
  • the rounding method may be upper rounding or lower rounding, which may be set according to actual usage scenarios, which is not limited in the present disclosure.
  • the initial display sequence determined by the above method is as follows:
  • the initial display sequence determined by the above method is as follows:
  • the initial display order needs to be rounded.
  • the downward rounding operation can be used, and the determined display order is 6, that is, the recommended words corresponding to the query content "youth idol drama" can be determined.
  • the display order of the collection is 6, and the recommended word collection is displayed on the query result interface as the sixth query result.
  • the display order of the recommended word set corresponding to the query content can be determined according to the query content input by the user, so as to dynamically adjust the display order of the recommended word set according to the user input content, which can meet the needs of the user to obtain It can also provide users with more recommended word queries, save users' operations, meet users' derived query needs to a certain extent, and improve users' query experience.
  • an exemplary implementation of determining the display order of the recommended word set corresponding to the query content in the query result is as follows. In addition to the above steps, this step can also be include:
  • the target range of the display sequence of the recommended word set can facilitate the user to perform extended query, and the user can realize further query or related query without modifying the query condition by himself. Therefore, in order to facilitate the user's query operation, the present disclosure can pre-set the target range of the display order of the recommended word set, so as to avoid the adverse impact on the user's query experience if it is too early or too late.
  • the display sequence is corrected according to the target range to obtain a corrected sequence, and the displayed sequence is updated to the corrected sequence.
  • the target range of the display order of the recommended word set can be preset.
  • the target number of query results that can be displayed in the query result interface is 10
  • the target range of the display order of the recommended word set can be set to [ 3, 8], that is, the recommended word set can be used as the 3rd to 8th positions of the displayed results in the query result interface.
  • correcting the display order according to the target range to obtain the corrected order may include:
  • the lower limit value of the target range is used as the correction order; if the display order is greater than the upper limit value of the target range, the upper limit value of the target range is used as The correction sequence.
  • the lower limit value 3 of the target range can be used as the correction order, and update the display order to 3.
  • the display order of the recommended word sets can be constrained and corrected based on the target range of the display order of the recommended word sets, so as to avoid displaying the content required by the user due to the display order of the recommended word sets being too high It is backward, reducing the query efficiency, and can avoid the problem that the display order of the recommended word set is too late and the user needs to modify the query content to perform related queries, which meets the user's needs.
  • the query content includes multiple query keywords
  • an exemplary implementation manner of determining the display order of the set of recommended words corresponding to the query content in the query result may include:
  • the display order of the recommended words corresponding to the query keyword is determined.
  • the query result quality information corresponding to each query keyword may be the same or different, therefore, for each query keyword, the query keyword may be determined according to the query result quality information corresponding to the query keyword
  • the display order of the corresponding recommended words, and the display position corresponding to the display order is used to display the recommended words corresponding to the query keyword.
  • the display order of the recommended words may be determined by determining the display order based on the query result quality information as described above, which will not be repeated here.
  • the display order corresponding to the query content is determined.
  • the display order corresponding to the query content can be comprehensively determined according to the relationship between each keyword.
  • the relationship between the multiple query keywords included in the query content is OR, that is to say, the query result can be queried based on any one of the multiple query keywords.
  • the query keywords are "Andy Lau, Tony Leung, Liming”
  • the query results can include only records related to Andy Lau, only records related to Tony Leung, records only related to Liming, etc., and can also include multiple people among them related records.
  • an exemplary implementation of determining the display order corresponding to the query content is as follows, and this step may include:
  • the display order of the recommended words corresponding to the query keywords is determined as the display order corresponding to the query content, and based on the display order of the recommended words, the corresponding The query keywords determine the recommended words in the recommended word set corresponding to the display order of the recommended words, and add the recommended words to the target query result.
  • the display order of the recommended words corresponding to a plurality of the query keywords is determined as the display order of the plurality of keywords, and according to the display order of the query keywords corresponding to the display order of the recommended words
  • the total number and the displayed number of recommended words that can be displayed in the recommended word set determine the number of recommended words in the recommended word set that correspond to the plurality of query keywords, so as to obtain the corresponding quantity of recommended words and added to the target query result.
  • the display order of each recommended word corresponds to a set of recommended words. That is to say, in this embodiment, the display order of the corresponding recommended word sets can be determined according to the quality information of the query results corresponding to "Andy Lau", “Tony Leung” and “Liming". The specific method of determining the display order has been described above detailed description in this paper and will not be repeated here. For example, the determined display order is: the display order corresponding to "Andy Lau” is 3, the display order corresponding to "Tony Leung” is 3, and the display order corresponding to "Liming" is 6.
  • the display order of the recommended words corresponding to the query keywords "Andy Lau” and “Tony Leung” is the same. Therefore, when determining the set of recommended words corresponding to the display order, it is necessary to select from the recommended words corresponding to the two query keywords Recommended words to display.
  • the recommended word set and the plurality of query keywords are respectively The number of corresponding recommended words.
  • recommended words as the recommended words in the recommended word set corresponding to the display order, and add them to the target query results.
  • the query result interface of the corresponding target query result is shown in area N in FIG. 4 .
  • the display order of 6 corresponds to one query keyword, that is, " ⁇ ". Therefore, the recommended word set corresponding to the display order of the recommended words can be determined directly based on the query keyword " ⁇ " corresponding to the display order of the recommended words , and add the recommended words to the target query results. For example, if the number of displayable recommended words in the recommended word set is 4, you can select 4 recommended words from the recommended words corresponding to "Dawn" as the recommended words in the recommended word set corresponding to the display order, and set It is added to the target query result, and the query result interface of the corresponding target query result is shown in the Q area in FIG. 4 . In this way, the recommended words corresponding to multiple query keywords can be displayed separately, so as to increase the diversity of recommended queries.
  • the query result may be obtained based on multiple query keywords. For example, if the query keyword is "the joint works of Andy Lau, Tony Leung and Liming", the query results will include records related to this person.
  • an exemplary implementation of determining the display order corresponding to the query content is as follows, including:
  • the order obtained by averaging the display order of the recommended words corresponding to each of the query keywords is determined as the display order corresponding to the query content.
  • the display order of the determined recommended words is: "Andy Lau” corresponds to the display order of 3, the display order of the recommended words corresponding to "Leung Chiu Wai” is 3, and the display order of the recommended words corresponding to "Liming” is 6, then query
  • the display order corresponding to the content may be 4 (ie, (3+3+6)/3).
  • the recommended words in the recommended word set to be displayed can be further determined and added to the target query result.
  • the implementation method has been described in detail above and will not be repeated here.
  • the recommended words corresponding to multiple query keywords can be comprehensively displayed.
  • the display order of the recommended words corresponding to the multiple query keywords can be determined respectively, so that the display order of the multiple recommended words and the multiple Query the relationship between keywords, determine the display order corresponding to the query content, and display the recommended words corresponding to the multiple query keywords, which can not only meet the user's query needs, but also provide users with targeted prompts.
  • the recommended words are convenient for users to conduct follow-up inquiries and improve user experience.
  • the query result quality information corresponding to the query content is determined based on the query result quality information corresponding to the query keywords included in the query content, and the query result quality information corresponding to the query keywords Information is predetermined by:
  • a plurality of historical query records corresponding to the query keywords are acquired.
  • the query records generated by the user's query can be obtained as historical query records, and each historical query record is used to represent a complete process of querying based on the query keyword.
  • preprocessing is performed on the plurality of historical query records to obtain query result confirmation information corresponding to each of the historical query records, wherein the query result confirmation information is used to represent the user's ability to complete the query based on the query keyword
  • the operation performed during the process includes at least one of the following: confirmation operation, page turning operation, keyword modification operation, browsing operation:
  • Confirmation operation to determine whether the user has performed a confirmation operation on the query result for viewing in this query, and the display ranking of the query result confirmed by the user among all the query results in the query;
  • Page turning operation to determine the number of page turning operations triggered by the user during the query process corresponding to the query record. When the number of times is 0, it means that no page turning operation has been performed;
  • Keyword modification operation to determine the number of times the user has modified the query keyword during the query process corresponding to the query record. When the number of times is 0, it means that no keyword modification operation has been performed;
  • the browse operation is used to determine the duration information corresponding to the query result viewed by the user during the query process corresponding to the query record.
  • the query result confirmation information may be determined based on the value of the corresponding field in the historical query record, which will not be repeated here.
  • the query result quality information corresponding to the query keyword may be determined based on the query result confirmation information and the decision tree model corresponding to the plurality of historical query records.
  • the query result confirmation information corresponding to the plurality of historical query records can be input into the decision tree model, so as to obtain the decision parameters corresponding to each historical query record, so as to obtain the decision parameters corresponding to each historical query record
  • the average value is determined as the query result quality information corresponding to the query keyword, and correspondingly stored to obtain a quality information set.
  • the query result quality information corresponding to the query keyword can be determined based on the historical query records corresponding to the query keyword, and in the process can be determined based on the query process of multiple users, so as to ensure that the determined query
  • the matching between the result quality information and the query keyword avoids the deviation caused by a single user data, and improves the application range of the query result display method.
  • the decision tree model is obtained through training in the following manner:
  • a training sample set is acquired, and each training sample in the training sample set includes a training query record corresponding to the training sample and labeled query result quality information corresponding to the training query record.
  • the query result quality information may be marked based on the operations performed by the user in the training query records.
  • the query result quality information may be marked based on the operations performed by the user in the training query records.
  • Record 1 Query keywords, click the first query result to complete the query. The user can complete the query operation with very few operations, indicating that the query result is very satisfactory, and the quality information of the query result can be marked as 0.9.
  • Record 2 Query keywords, click multiple query results, and complete the query.
  • the user can complete the query operation with fewer operations, indicating that the query result is satisfactory, and the quality information of the query result can be marked as 0.6.
  • Record 3 Query keywords, do not click on the query results, and complete the query by rewriting the query keywords several times. If the user performs more operations to complete the query operation, it means that the query result is not satisfactory, and the quality information of the query result can be marked as 0.2.
  • the query result confirmation information corresponding to the training query record is used as an input, and the marked query result quality information corresponding to the training query record is used as a target output to perform model training to obtain a decision tree model.
  • the weight values corresponding to the confirmation information of each query result in the decision tree model may be randomly initialized, or initialized to the same value. Afterwards, the weight value in the decision tree model can be adjusted through the training query record and the quality information of the marked query result corresponding to the training query record, and then the trained decision tree model can be obtained. Wherein, the manner of training the decision tree model based on the training samples may adopt a common training manner in the field, which will not be repeated here.
  • a decision tree model can be trained based on the multiple dimensions of the query result confirmation information in the query record, and the accurate weight of each dimension can be determined to sort the importance of multiple dimensions, which is convenient for subsequent Determine the query result quality information corresponding to the query keyword without manual labeling, effectively reducing the manual workload.
  • the query result quality information corresponding to each query keyword is stored in a quality information set, and the method may further include:
  • the target query record may be a query record generated after the previous update, or may be a query record generated after the previous update or part of the query records before the previous update.
  • the target query record usually includes query records corresponding to multiple query keywords
  • the query keyword to be updated is the first keyword among the multiple query keywords contained in the target query record, specifically The manner of determining the confirmation information of the query result has been described above, and will not be repeated here.
  • the query result quality information corresponding to the target keyword is determined.
  • grouping may be performed based on the target keywords corresponding to each query record to obtain the query record grouping corresponding to each target keyword. For the records in each query record group, determine the query result quality information of the target keyword corresponding to the query record group. Similar to the decision tree model, the specific implementation manner of determining the quality information of the query result corresponding to the query keyword is similar, and will not be repeated here.
  • the quality information set may be updated according to the query result quality information corresponding to the target keyword.
  • the query result quality information corresponding to the target keyword can be directly stored in the quality information set, if there is a target keyword in the quality information set If the query result quality information corresponding to the target keyword is not used, the query result quality information corresponding to the target keyword can be replaced with the query result quality information stored in the quality information set, thereby realizing the update of the quality information set.
  • the query result quality information corresponding to the query keyword can be updated.
  • new query result quality information can be determined based on the user's query operation in the near future, and the amount of data in the quality information set can be increased. This makes the quality information set applicable to content queries in a wider range.
  • the query result quality information corresponding to the previously determined query keywords can be updated, so as to ensure that the query result quality information in the quality information set matches the actual user query operation, and further ensure the accuracy of prompting recommended words for users. User-friendly.
  • the present disclosure also provides a query result display method, the method comprising:
  • the query content may be the received content input by the user.
  • the display order is determined by the server based on the query result quality information corresponding to the query content, and the query result quality information is used is used to represent the matching degree between the query content and the query result.
  • the set of recommended words corresponding to the query content is displayed.
  • the received target query result may include the query result obtained by performing a query based on the query content, and may include a recommended word set determined according to the query content, and the display order corresponding to the recommended word set may be based on the query
  • the content is determined dynamically.
  • the display position corresponding to the recommended word set can be determined according to the display order. For example, if the determined display order is 4, then when the query result is displayed, the fourth word in the query result interface
  • the display position displays the recommended words in the recommended word set, and the corresponding display mode and the schematic diagram of the display interface have been described in detail above.
  • the display order of the recommended word set in the query result can be dynamically determined based on the query content, so that when the terminal displays the recommended word set in the query result, it can dynamically determine the display of the recommended word set Position, so that the display position of the recommended words contained in the recommended word set meets the user's query needs, which can avoid the impact of the recommended words being displayed too high on the user's query and query results, and ensure that the user can query what they want more quickly
  • the required content can also guide users to initiate new query behaviors through recommended words, meet users' derived query needs, facilitate users to use, improve user query efficiency, and improve user experience.
  • the present disclosure also provides a device for displaying query results. As shown in FIG. 5 , the device 10 includes:
  • a receiving module 101 configured to receive query content
  • the first determining module 102 is configured to determine query result quality information corresponding to the query content, where the query result quality information is used to indicate a matching degree between the query content and a query result obtained based on the query content;
  • the second determination module 103 is configured to determine the display order of the recommended word set corresponding to the query content in the query result according to the query result quality information;
  • a processing module 104 configured to add the recommended word set to the query result according to the display order, so as to obtain a target query result
  • the first sending module 105 is configured to send the target query result to the terminal, so that the terminal displays the recommended word set in a display position corresponding to the display order in the query result interface.
  • the second determination module includes:
  • the first determination submodule is used to determine the target number of target query results that can be displayed in the query result interface of the terminal;
  • the second determining submodule is configured to determine the display order according to the difference between the quality standard information of the query result quality information and the query result quality information, and the target quantity, wherein the query result quality information The value of is greater than or equal to zero, and the value of the query result quality information is less than or equal to the quality standard information.
  • the second determination module also includes:
  • a correction submodule configured to correct the display sequence according to the target range to obtain a corrected sequence when the determined display sequence exceeds the target range, and update the display sequence to the Calibration sequence.
  • the query content includes multiple query keywords
  • the second determination module includes:
  • the third determining submodule is used to determine the display order of recommended words corresponding to the query keyword based on the query result quality information corresponding to the query keyword for each of the query keywords;
  • the fourth determining submodule is configured to determine the display order corresponding to the query content based on the display order of the recommended words corresponding to each of the query keywords.
  • the fourth determining submodule includes:
  • the first processing submodule is used to determine the display order of the recommended words corresponding to each of the query keywords as the display order corresponding to the query content if the display orders of the recommended words corresponding to the query keywords are different, And determine the recommended words in the recommended word set corresponding to the recommended word display order based on the query keywords corresponding to the recommended word display order, and add the recommended words to the target query result;
  • the second processing submodule is used to determine the display order of the recommended words as the display order of the plurality of keywords if the display order of the recommended words corresponding to the plurality of query keywords is the same, and according to the display order of the recommended words
  • the total number of query keywords corresponding to the display order, and the displayed number of displayable recommended words in the recommended word set determine the number of recommended words in the recommended word set corresponding to the plurality of query keywords, to obtain the A number of recommended words corresponding to the plurality of query keywords are added to the target query result.
  • the fourth determination submodule includes:
  • the third processing sub-module is configured to determine the order obtained by rounding the display order of the recommended words corresponding to each of the query keywords as the display order corresponding to the query content.
  • the query result quality information corresponding to the query content is determined based on the query result quality information corresponding to the query keywords contained in the query content, and the query result quality information corresponding to the query keywords is pre-determined in the following manner Sure:
  • the query result quality information corresponding to the query keyword is determined.
  • the decision tree model is obtained through training in the following manner:
  • each training sample in the training sample set includes a training query record corresponding to the training sample and labeled query result quality information corresponding to the training query record;
  • the query result confirmation information corresponding to the training query record is used as an input, and the marked query result quality information corresponding to the training query record is used as a target output to perform model training to obtain the decision tree model.
  • the query result quality information corresponding to each query keyword is stored through a quality information set, and the device further includes:
  • An acquisition module configured to acquire multiple target query records for updating
  • a preprocessing module configured to preprocess the plurality of target query records, obtain a target keyword in each of the target query records and query result confirmation information corresponding to the target keyword, the target keyword record the first keyword in the corresponding query content for the target query;
  • a third determining module configured to determine the query result quality information corresponding to the target keyword according to the decision tree model and the query result confirmation information corresponding to the same target keyword;
  • An update module configured to update the quality information set according to the query result quality information corresponding to the target keyword.
  • the present disclosure also provides a device for displaying query results, the device comprising:
  • the second sending module is used to send the received query content to the server
  • the fourth determining module is configured to, in response to receiving the target query result sent by the server, determine the display position corresponding to the recommended word set according to the display order corresponding to the recommended word set indicated by the target query result, wherein the The target query result includes the recommended word set and the display order, and the query result obtained based on the query content, the display order is determined by the server based on the query result quality information corresponding to the query content, The query result quality information is used to indicate the matching degree between the query content and the query result;
  • a display module configured to display the set of recommended words corresponding to the query content at the display position in the query result interface.
  • FIG. 6 it shows a schematic structural diagram of an electronic device 600 suitable for implementing an embodiment of the present disclosure.
  • the terminal equipment in the embodiment of the present disclosure may include but not limited to such as mobile phone, notebook computer, digital broadcast receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia player), vehicle terminal (such as mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers and the like.
  • the electronic device shown in FIG. 6 is only an example, and should not limit the functions and application scope of the embodiments of the present disclosure.
  • an electronic device 600 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 601, which may be randomly accessed according to a program stored in a read-only memory (ROM) 602 or loaded from a storage device 608.
  • a processing device such as a central processing unit, a graphics processing unit, etc.
  • RAM read-only memory
  • various appropriate actions and processes are executed by programs in the memory (RAM) 603 .
  • RAM 603 In the RAM 603, various programs and data necessary for the operation of the electronic device 600 are also stored.
  • the processing device 601, the ROM 602 and the RAM 603 are connected to each other through a bus 604.
  • An input/output (I/O) interface 605 is also connected to the bus 604 .
  • the following devices can be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration an output device 607 such as a computer; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609.
  • the communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While FIG. 6 shows electronic device 600 having various means, it should be understood that implementing or having all of the means shown is not a requirement. More or fewer means may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer readable medium, where the computer program includes program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from a network via communication means 609, or from storage means 608, or from ROM 602.
  • the processing device 601 When the computer program is executed by the processing device 601, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.
  • the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two.
  • a computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device .
  • Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
  • the client and the server can communicate using any currently known or future network protocols such as HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol), and can communicate with digital data in any form or medium
  • HTTP HyperText Transfer Protocol
  • the communication eg, communication network
  • Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network of.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: receives the query content; determines the query result quality information corresponding to the query content, and the The query result quality information is used to indicate the matching degree between the query content and the query result obtained based on the query content; according to the query result quality information, it is determined that the recommended word set corresponding to the query content is included in the query result according to the display order in the display order; add the recommended word set to the query result according to the display order to obtain the target query result; send the target query result to the terminal to be selected by the terminal in the query result interface
  • the display position corresponding to the above display order displays the set of recommended words.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: sends the received query content to the server; responds to receiving the server For the target query result sent, determine the display position corresponding to the recommended word set according to the display order corresponding to the recommended word set indicated by the target query result, wherein the target query result includes the recommended word set and the displayed order, and the query results obtained based on the query content, the display order is determined by the server based on the query result quality information corresponding to the query content, and the query result quality information is used to indicate that the query content is consistent with The matching degree between the query results; at the display position in the query result interface, the set of recommended words corresponding to the query content is displayed.
  • Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, or combinations thereof, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages - such as "C" or similar programming languages.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer may be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (for example, using an Internet service provider to connected via the Internet).
  • LAN local area network
  • WAN wide area network
  • Internet service provider for example, using an Internet service provider to connected via the Internet.
  • each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
  • the modules involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of the module does not constitute a limitation on the module itself under certain circumstances, for example, the receiving module may also be described as "a module that receives query content”.
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs System on Chips
  • CPLD Complex Programmable Logical device
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device.
  • a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • a machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM compact disk read only memory
  • magnetic storage or any suitable combination of the foregoing.
  • Example 1 provides a query result display method, wherein the method includes:
  • the query result quality information is used to indicate the matching degree between the query content and the query result obtained based on the query content;
  • the query result quality information determine the display order of the recommended word set corresponding to the query content in the query result
  • the target query result is sent to the terminal, and the terminal displays the recommended word set at a display position corresponding to the display order in the query result interface.
  • Example 2 provides the method of Example 1, wherein, according to the query result quality information, determine the display of the recommended word set corresponding to the query content in the query result sequence, including:
  • the display order is determined according to the difference between the quality standard information of the query result quality information and the query result quality information and the target quantity, wherein the value of the query result quality information is greater than or equal to zero, and The value of the query result quality information is less than or equal to the quality standard information.
  • Example 3 provides the method of Example 2, wherein, according to the query result quality information, determine the display of the recommended word set corresponding to the query content in the query result order, also include:
  • the display sequence is corrected according to the target range to obtain a corrected sequence, and the displayed sequence is updated to the corrected sequence.
  • Example 4 provides the method of Example 1, wherein the query content includes multiple query keywords;
  • the determining the display order of the recommended word set corresponding to the query content in the query result according to the query result quality information includes:
  • the display order corresponding to the query content is determined.
  • Example 5 provides the method of Example 4, wherein the plurality of query keywords are in an OR relationship;
  • the determining the display order corresponding to the query content based on the display order of recommended words corresponding to each of the query keywords includes:
  • the display order of the recommended words corresponding to the query keywords is determined as the display order corresponding to the query content, and based on the display order of the recommended words, the corresponding The query keywords determine the recommended words in the recommended word set corresponding to the recommended word display order, and add the recommended words to the target query result;
  • the display order of the recommended words corresponding to a plurality of the query keywords is determined as the display order of the plurality of keywords, and according to the display order of the query keywords corresponding to the display order of the recommended words
  • the total number and the displayed number of recommended words that can be displayed in the recommended word set determine the number of recommended words in the recommended word set that correspond to the plurality of query keywords, so as to obtain the corresponding quantity of recommended words and added to the target query result.
  • Example 6 provides the method of Example 4, wherein, based on the display order of recommended words corresponding to each of the query keywords, determining the display order corresponding to the query content includes :
  • the order obtained by averaging the display order of the recommended words corresponding to each of the query keywords is determined as the display order corresponding to the query content.
  • Example 7 provides the method of any one of Examples 1-6, wherein the query result quality information corresponding to the query content is based on the query keywords contained in the query content If the corresponding query result quality information is determined, the query result quality information corresponding to the query keyword is predetermined in the following manner:
  • the query result quality information corresponding to the query keyword is determined.
  • Example 8 provides the method of Example 7, wherein the decision tree model is obtained by training in the following manner:
  • each training sample in the training sample set includes a training query record corresponding to the training sample and labeled query result quality information corresponding to the training query record;
  • the query result confirmation information corresponding to the training query record is used as an input, and the marked query result quality information corresponding to the training query record is used as a target output to perform model training to obtain the decision tree model.
  • Example 9 provides the method of Example 7, wherein the query result quality information corresponding to each of the query keywords is stored in a quality information set, and the method further includes:
  • the quality information set is updated according to the query result quality information corresponding to the target keyword.
  • Example 10 provides a query result display method, wherein the method includes:
  • the display order is determined by the server based on the query result quality information corresponding to the query content, and the query result quality information is used To represent the matching degree between the query content and the query result;
  • the set of recommended words corresponding to the query content is displayed.
  • Example 11 provides an apparatus for displaying query results, wherein the apparatus includes:
  • a receiving module configured to receive query content
  • a first determining module configured to determine query result quality information corresponding to the query content, where the query result quality information is used to indicate a matching degree between the query content and a query result obtained based on the query content;
  • the second determination module is used to determine the display order of the recommended word set corresponding to the query content in the query result according to the query result quality information
  • a processing module configured to add the set of recommended words to the query result according to the display order, so as to obtain a target query result
  • the first sending module is configured to send the target query result to the terminal, so that the terminal displays the recommended word set in a display position corresponding to the display order in the query result interface.
  • Example 12 provides an apparatus for displaying query results, wherein the apparatus includes:
  • the second sending module is used to send the received query content to the server
  • the fourth determining module is configured to, in response to receiving the target query result sent by the server, determine the display position corresponding to the recommended word set according to the display order corresponding to the recommended word set indicated by the target query result, wherein the The target query result includes the recommended word set and the display order, and the query result obtained based on the query content, the display order is determined by the server based on the query result quality information corresponding to the query content, The query result quality information is used to indicate the matching degree between the query content and the query result;
  • a display module configured to display the set of recommended words corresponding to the query content at the display position in the query result interface.
  • Example 13 provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processing device, the steps of the method described in any one of Examples 1-10 are implemented. .
  • Example 14 provides an electronic device, including:
  • a processing device configured to execute the computer program in the storage device, so as to implement the steps of the method in any one of Examples 1-10.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种查询结果显示方法、装置、介质和电子设备,所述方法包括:接收查询内容(11);确定查询内容对应的查询结果质量信息(12);根据查询结果质量信息,确定查询内容对应的推荐词集合在查询结果中的显示顺序(13);根据显示顺序将推荐词集合添加至查询结果,以获得目标查询结果(14);将目标查询结果发送至终端,以由终端在查询结果界面中显示顺序对应的显示位置展示推荐词集合(15)。由此,可以基于查询内容动态地确定推荐词集合在查询结果中的显示顺序,使得该推荐词集合显示位置符合用户的查询需求以及衍生查询需求。

Description

查询结果显示方法、装置、介质和电子设备
相关申请的交叉引用
本申请基于申请号为202110991160.7、申请日为2021年08月26日,名称为“查询结果显示方法、装置、介质和电子设备”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本公开涉及计算机技术领域,具体地,涉及一种查询结果显示方法、装置、介质和电子设备。
背景技术
用户在基于关键词进行内容搜索时,有时显示出的查询结果无法直接满足用户的需求,此时用户可以通过对关键词改写以继续查询。在该情况下,用户在改写时也不能确定出合适的改写方式,导致查询效率不足。
相关技术中,通常在查询结果中为用户显示推荐查询词的方式以拓展用户的查询条件,然而在上述过程中该推荐查询词的显示位置通常是固定的,若该推荐词显示过于靠前,则会影响该用户对其所需的查询结果的获取,若该查询推荐词显示过于靠后,则在用户找到满足其需要的查询结果时,其通常会结束本次查询,不便于用户根据推荐词进行扩展查询,难以满足用户的衍生查询需求,降低查询的效率。
发明内容
提供该发明内容部分以便以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。该发明内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。
第一方面,本公开提供一种查询结果显示方法,所述方法包括:
接收查询内容;
确定所述查询内容对应的查询结果质量信息,所述查询结果质量信息用于表示所述查询内容与基于所述查询内容获得的查询结果之间的匹配度;
根据所述查询结果质量信息,确定所述查询内容对应的推荐词集合在所述查询结果中的显示顺序;
根据所述显示顺序将所述推荐词集合添加至所述查询结果,以获得目标查询结果;
将所述目标查询结果发送至终端,以由所述终端在查询结果界面中所述显示顺序对应的显示位置展示所述推荐词集合。
第二方面,本公开提供一种查询内容结果方法,所述方法包括:
向服务器发送接收到的查询内容;
响应于接收到所述服务器发送的目标查询结果,根据所述目标查询结果指示的推荐词集合对应的显示顺序,确定所述推荐词集合对应的显示位置,其中,所述目标查询结果包括所述推荐词集合和所述显示顺序,以及基于所述查询内容获得的查询结果,所述显示顺序是所述服务器基于所述查询内容对应的查询结果质量信息确定出的,所述查询结果质量信息用于表示所述查询内容与所述查询结果之间的匹配度;
在查询结果界面中的所述显示位置,展示所述查询内容对应推荐词集合。
第三方面,本公开提供一种查询结果显示装置,所述装置包括:
接收模块,用于接收查询内容;
第一确定模块,用于确定所述查询内容对应的查询结果质量信息,所述查询结果质量信息用于表示所述查询内容与基于所述查询内容获得的查询结果之间的匹配度;
第二确定模块,用于根据所述查询结果质量信息,确定所述查询内容对应的推荐词集合在所述查询结果中的显示顺序;
处理模块,用于根据所述显示顺序将所述推荐词集合添加至所述查询结果,以获得目标查询结果;
第一发送模块,用于将所述目标查询结果发送至终端,以由所述终端在 查询结果界面中所述显示顺序对应的显示位置展示所述推荐词集合。
第四方面,本公开提供一种查询内容结果装置,所述装置包括:
第二发送模块,用于向服务器发送接收到的查询内容;
第四确定模块,用于响应于接收到所述服务器发送的目标查询结果,根据所述目标查询结果指示的推荐词集合对应的显示顺序,确定所述推荐词集合对应的显示位置,其中,所述目标查询结果包括所述推荐词集合和所述显示顺序,以及基于所述查询内容获得的查询结果,所述显示顺序是所述服务器基于所述查询内容对应的查询结果质量信息确定出的,所述查询结果质量信息用于表示所述查询内容与所述查询结果之间的匹配度;
展示模块,用于在查询结果界面中的所述显示位置,展示所述查询内容对应推荐词集合。
第五方面,提供一种计算机可读介质,其上存储有计算机程序,该程序被处理装置执行时实现第一方面或第二方面所述方法的步骤。
第六方面,提供一种电子设备,包括:
存储装置,其上存储有计算机程序;
处理装置,用于执行所述存储装置中的所述计算机程序,以实现第一方面或第二方面所述方法的步骤。
在上述技术方案中,接收查询内容,并确定所述查询内容对应的查询结果质量信息,进而可以根据所述查询结果质量信息,确定所述查询内容对应的推荐词集合在所述查询内容对应的查询结果中的显示顺序,以根据所述显示顺序将所述推荐词集合添加至所述查询结果,以获得目标查询结果,从而将所述目标查询结果发送至终端,以由所述终端在查询结果界面中显示顺序对应的显示位置展示所述推荐词集合。通过上述技术方案,可以基于查询内容动态地确定推荐词集合在查询结果中的显示顺序,使得该推荐词集合包含的推荐词的显示顺序符合用户的查询需求,既可以避免推荐词显示过于靠前而对用户进行查询查看查询结果的影响,保证用户能够更快的查询到其所需要的内容,又能够通过推荐词引导用户发起新的查询行为,满足用户的衍生查询需求,便于用户使用,提高用户查询效率的同时,提升用户使用体验。
本公开的其他特征和优点将在随后的具体实施方式部分予以详细说明。
附图说明
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。在附图中:
图1是根据本公开的一种实施方式提供的查询结果显示方法的流程图;
图2A是一种实施例下的查询结果界面的示意图;
图2B是一种实施例下的查询结果界面的示意图;
图3是一种实施例下的查询结果界面的示意图;
图4是一种实施例下的查询结果界面的示意图;
图5是根据本公开的一种实施方式提供的查询结果显示装置的框图;
图6示出了适于用来实现本公开实施例的电子设备的结构示意图。
具体实施方式
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
图1所示,为根据本公开的一种实施方式提供的查询结果显示方法的流程图,如图1所示,所述方法可以包括:
在步骤11中,接收查询内容,其中该查询内容可以为用户输入的查询条件,该查询内容中可以包括一个或多个关键词,以便于根据该关键词进行内容搜索。
在步骤12中,确定查询内容对应的查询结果质量信息,所述查询结果质量信息用于表示所述查询内容与基于所述查询内容获得的查询结果之间的匹配度,该匹配度越高,用户针对查询内容对应的查询结果的满意度水平越高,即用户所需的查询结果在查询结果界面中显示顺序越靠前。
示例地,可以在质量信息集中以该查询内容中的关键词进行查询,若查询到对应的查询结果质量信息,则可以根据查询到的结果确定该查询内容对应的查询结果质量信息。其中,可以在获得用户许可的情况下,根据用户许可的数据进行预先提取,以获得质量信息集中的关键词与查询结果质量信息的对应关系。
在步骤13中,根据查询结果质量信息,确定查询内容对应的推荐词集合在查询结果中的显示顺序。其中,推荐词集合中可以包含多个推荐词,该推荐词是基于查询内容确定出的。
在该查询结果质量信息表示匹配度较高时,表征用户针对该查询结果的满意度水平较高,即在查询结果中较前的记录可以满足用户的查询需求,此时可以将该推荐词集合显示在较前位置,以在满足用户的查询需求的同时,为用户提供扩展查询。
在步骤14中,根据显示顺序将推荐词集合添加至查询结果,以获得目标查询结果。
在步骤15中,将目标查询结果发送至终端,以由终端在查询结果界面中显示顺序对应的显示位置展示推荐词集合。
示例地,查询结果界面中可以显示6个查询结果,基于该查询内容确定出的查询结果依次是A1、A2、A3、A4、A5、A6,如图2A所示。作为示例,确定出的显示顺序为4,可以在查询结果界面中的第4位显示推荐词集合包含的推荐词,即将该推荐词集合C按照显示顺序添加至该查询结果,此时,获得的目标查询结果中的显示队列显示顺序如下:A1、A2、A3、C、A4、A5,如图2B所示。
由此,在上述技术方案中,接收查询内容,并确定所述查询内容对应的查询结果质量信息,进而可以根据所述查询结果质量信息,确定所述查询内容对应的推荐词集合在所述查询内容对应的查询结果中的显示顺序,以根据所述显示顺序将所述推荐词集合添加至所述查询结果,以获得目标查询结果,从而将所述目标查询结果发送至终端,以由所述终端在查询结果界面中显示顺序对应的显示位置展示所述推荐词集合。通过上述技术方案,可以基于查询内容动态地确定推荐词集合在查询结果中的显示顺序,使得该推荐词集合包含的推荐词的显示顺序符合用户的查询需求,既可以避免推荐词显示过于靠前而对用户进行查询查看查询结果的影响,保证用户能够更快的查询到其所需要的内容,又能够通过推荐词引导用户发起新的查询行为,满足用户的衍生查询需求,便于用户使用,提高用户查询效率的同时,提升用户使用体验。
在一种可能的实施例中,在步骤13中根据查询结果质量信息,确定查询内容对应的推荐词集合在查询结果中的显示顺序的示例性实现方式如下,该步骤可以包括:
确定所述终端的查询结果界面中可显示的目标查询结果的目标数量。
其中,该目标数量可以通过获取对应的终端的显示信息确定其一个显示界面中可以显示的查询结果的数量,即在无滑动或者滚动显示的情况下,一屏幕中可以显示的查询结果的数量。例如可以根据终端的显示分辨率以及查询结果的尺寸信息进行确定,示例地,该终端为手机终端时,其确定出的目标数量可以为6或者可以预先将该目标数量设置在该终端的显示信息中,从而可以直接获得。
之后,根据所述查询结果质量信息的质量标准信息与所述查询结果质量信息的差值、和所述目标数量,确定所述显示顺序,其中,所述查询结果质 量信息的取值大于或等于零,且所述查询结果质量信息的取值小于或等于所述质量标准信息。
作为示例,可以将所述查询结果质量信息的质量标准信息与所述查询结果质量信息的差值进行归一化后所得数值、和所述目标数量的乘积确定为初始显示顺序,公式如下:
H=f(D-A)*N;
其中,所述H用于表示所述初始显示顺序;
所述D用于表示所述查询结果质量信息的质量标准信息,示例地,该质量标准信息可以1;
所述A用于表示所述查询结果质量信息,所述查询结果质量信息的取值范围为[0,D];
所述N用于表示所述目标数量;
f(x)用于表示对x进行归一化,示例地,可以将所述查询结果质量信息的质量标准信息与所述查询结果质量信息的差值除以该查询结果质量信息的质量标准信息以进行归一化。在该质量标准信息为1时,可以无需进行归一化操作。
之后在初始显示顺序不为整数的情况下,对初始显示顺序进行取整操作,获得显示顺序。
若初始显示顺序为整数,则可以直接将该初始显示顺序作为该显示顺序。
其中,该取整方式可以采用上取整或者下取整,其可以根据实际使用场景进行设置,本公开对此不进行限定。
作为示例,用户输入的查询内容为“刘德华”,确定出该查询内容对应的查询结果质量信息为0.7,查询结果质量信息的质量标准信息为1,查询结果界面可显示的查询结果的目标数量为10,则通过上述方式确定出的初始显示顺序如下:
H=f(D-A)*N=(1-0.7)*10=3
该情况下,则可以直接确定查询内容“刘德华”对应的推荐词集合的显示顺序为3,即该推荐词集合作为第3个查询结果在查询结果界面中进行展示,如图3中M区域所示。
作为另一示例,用户输入的查询内容为“青春偶像剧”,确定出该查询内容对应的查询结果质量信息为0.33,则通过上述方式确定出的初始显示顺序如下:
H=f(D-A)*N=(1-0.33)*10=6.7
该情况下,则需要对该初始显示顺序进行取整操作,示例地可以采用向下取值整操作,则确定出的显示顺序为6,即可以确定查询内容“青春偶像剧”对应的推荐词集合的显示顺序为6,该推荐词集合作为第6个查询结果在查询结果界面中进行展示。
由此,通过上述技术方案,可以根据用户输入的查询内容确定该查询内容对应的推荐词集合的显示顺序,以根据用户的输入内容动态调整推荐词集合的显示顺序,既可以满足用户获取其需要的查询结果的需求,又可以为用户提供更多的推荐词查询,节省用户的操作,并在一定程度上满足用户的衍生查询需求,提升用户的查询体验。
在一种可能的实施例中,根据查询结果质量信息,确定查询内容对应的推荐词集合在查询结果中的显示顺序的示例性实现方式如下,该步骤除包括上述步骤之外,该步骤还可以包括:
获取所述推荐词集合的显示顺序的目标范围。其中,在本公开中对推荐词集合进行显示可以便于用户进行扩展查询,用户无需自己修改查询条件,则可以实现进一步的查询或者相关查询。因此,为便于用户的查询操作,本公开中可以对推荐词集合的显示顺序的目标范围进行预先设置,以避免其过于靠前或者靠后对用户查询体验的不良影响。
在确定出的所述显示顺序超出所述目标范围的情况下,根据所述目标范围对所述显示顺序进行校正以获得校正顺序,并将所述显示顺序更新为所述校正顺序。
其中,可以对推荐词集合的显示顺序的目标范围进行预先设置,例如,在查询结果界面中的可显示的查询结果的目标数量为10,该推荐词集合的显示顺序的目标范围可以设置为[3,8],即推荐词集合可以作为查询结果界面中的显示结果的第3-8位。
示例地,根据所述目标范围对所述显示顺序进行校正以获得校正顺序可以包括:
若该显示顺序小于该目标范围的下限值,则将该目标范围的下限值作为该校正顺序;若该显示顺序大于该目标范围的上限值,则将该目标范围的上限值作为该校正顺序。
在该实施例中,若获得的显示顺序为2,即推荐词集合对应的显示顺序超出推荐词集合的显示顺序的目标范围,因此,可以将该目标范围的下限值3作为该校正顺序,并将该显示顺序更新为3。
由此,通过上述技术方案,可以基于推荐词集合的显示顺序的目标范围对推荐词集合的显示顺序进行约束和校正,避免出现由于推荐词集合的显示顺序过于靠前而导致用户所需内容显示落后,降低查询效率的问题,又可以避免出现推荐词集合的显示顺序过于靠后而需要用户自己修改查询内容才能进行相关查询的问题,贴合用户的使用需求。
在一种可能的实施例中,所述查询内容中包含多个查询关键词;
相应地,在步骤13中,根据查询结果质量信息,确定查询内容对应的推荐词集合在查询结果中的显示顺序的示例性实现方式可以包括:
针对每个所述查询关键词,基于该查询关键词对应的查询结果质量信息,确定该查询关键词对应的推荐词显示顺序。
在该实施例中,每个查询关键词对应的查询结果质量信息可能相同也可能不同,因此,可以针对每个查询关键词,根据该查询关键词对应的查询结果质量信息,确定该查询关键词对应的推荐词显示顺序,该显示顺序对应的显示位置用于展示该查询关键词对应的推荐词。其中,可以通过上文所述基于查询结果质量信息确定显示顺序的方式确定该推荐词显示顺序,在此不再赘述。
之后基于每个所述查询关键词对应的推荐词显示顺序,确定所述查询内容对应的显示顺序。
在确定出每个查询关键词对应的推荐词显示顺序后,则可以根据每个关键词之间的关系综合确定出查询内容对应的显示顺序。
作为示例,所述查询内容中包含的多个查询关键词之间为或的关系,也就是说该查询结果可以是基于多个查询关键词中的任一者查询出的。例如,查询关键词为“刘德华、梁朝伟、黎明”,则查询结果中可以包括只与刘德华相关的记录,只与梁朝伟相关的记录,只与黎明相关的记录等,也可以包 含与其中的多人相关的记录。
在该实施例中,所述基于每个所述查询关键词对应的推荐词显示顺序,确定所述查询内容对应的显示顺序的示例性实现方式如下,该步骤可以包括:
若所述查询关键词对应的推荐词显示顺序不同,将所述每一所述查询关键词对应的推荐词显示顺序均确定为所述查询内容对应的显示顺序,并基于该推荐词显示顺序对应的查询关键词确定该推荐词显示顺序对应的推荐词集合中的推荐词,并将所述推荐词添加至所述目标查询结果中。
若多个所述查询关键词对应的推荐词显示顺序相同,则将该推荐词显示顺序确定为该多个所述关键词的显示顺序,并根据与该推荐词显示顺序对应的查询关键词的总数量、和所述推荐词集合中可显示推荐词的显示数量,确定该推荐词集合中与该多个查询关键词分别对应的推荐词的数量,以获取该多个查询关键词分别对应的数量的推荐词并添加至所述目标查询结果中。
其中,每一所述推荐词显示顺序对应于一推荐词集合。也就是说,在该实施例中,可以根据“刘德华”、“梁朝伟”、“黎明”分别对应的查询结果质量信息确定其对应的推荐词集合的显示顺序,显示顺序的具体确定方式已在上文进行详述,在此不再赘述。示例地,确定出的显示顺序分别为:“刘德华”对应的显示顺序为3,“梁朝伟”对应的显示顺序为3,“黎明”对应的显示顺序为6。
上述示例中,查询关键词“刘德华”和“梁朝伟”对应的推荐词显示顺序相同,因此,在确定该显示顺序对应的推荐词集合时,需要从这两个查询关键词对应的推荐词中选择要显示的推荐词。
示例地,推荐词集合中可显示的推荐词的显示数量为4,与该推荐词显示顺序对应查询关键词的总数量为2,则可以确定该推荐词集合中与该多个查询关键词分别对应的推荐词的数量,该示例中可以确定“刘德华”和“梁朝伟”分别对应的推荐词的数量为2个,之后则可以分别从该“刘德华”和“梁朝伟”对应的推荐词中选择2个推荐词作为该显示顺序对应的推荐词集合中的推荐词,并将其添加至目标查询结果中。对应的目标查询结果的查询结果界面如图4中N区域所示。
上文所述显示顺序为6对应的查询关键词为一个,即“黎明”,因此, 可以直接基于该推荐词显示顺序对应的查询关键词“黎明”确定该推荐词显示顺序对应的推荐词集合中的推荐词,并将所述推荐词添加至所述目标查询结果中。示例地,推荐词集合中可显示推荐词的显示数量为4,则可以从该“黎明”对应的推荐词中选择4个推荐词作为该显示顺序对应的推荐词集合中的推荐词,并将其添加至目标查询结果中,对应的目标查询结果的查询结果界面如图4中Q区域所示。由此,可以针对多个查询关键词对应的推荐词进行分别显示,提高推荐查询的多样性。
在一种可能的实施例中,查询结果可以是基于多个查询关键词查询出的。例如,查询关键词为“刘德华和梁朝伟和黎明共同作品”,则查询结果中包括与该多人相关的记录。
相应地,所述基于每个所述查询关键词对应的推荐词显示顺序,确定所述查询内容对应的显示顺序的示例性实现方式如下,包括:
将每个所述查询关键词对应的推荐词显示顺序进行平均取整后所得的顺序确定为所述查询内容对应的显示顺序。
接上述示例,确定出的推荐词显示顺序分别为:“刘德华”对应的显示顺序为3,“梁朝伟”对应的推荐词显示顺序为3,“黎明”对应的推荐词显示顺序为6,则查询内容对应的显示顺序可以是4(即,(3+3+6)/3)。之后,可以进一步确定待显示的推荐词集合中的推荐词,并添加至目标查询结果中,其实现方式已在上文进行详述,在此不再赘述。由此,可以对多个查询关键词对应的推荐词进行综合显示。
由此,通过上述技术方案,可以在查询内容中的查询关键词为多个时,分别确定该多个查询关键词对应的推荐词显示顺序,从而可以根据该多个推荐词显示顺序以及多个查询关键词之间的关系,确定出查询内容对应的显示顺序,以对该多个查询关键词对应的推荐词进行展示,既可以满足用户的查询需求,又可以为用户有针对性的提示不同的推荐词,便于用户进行后续查询,提升用户使用体验。
在一种可能的实施例中,所述查询内容对应的查询结果质量信息是基于所述查询内容中包含的查询关键词对应的查询结果质量信息确定的,所述查询关键词对应的查询结果质量信息通过如下方式预先确定:
获取与所述查询关键词对应的多个历史查询记录。其中,可以在用户许 可的情况下,获取用户进行查询所生成的查询记录作为历史查询记录,每一历史查询记录用于表示基于该查询关键词进行查询的一次完整过程。
之后,对所述多个历史查询记录进行预处理,获得每一所述历史查询记录对应的查询结果确认信息,其中,所述查询结果确认信息用于表征用户基于所述查询关键词完成查询的过程中执行的操作,所述操作包括以下中的至少一者:确认操作、翻页操作、关键词修改操作、浏览操作:
确认操作,以确定用户在该次查询中是否对查询结果进行了确认操作以进行查看,以及在查看的情况下用户确认的查询结果在查询到的全部查询结果中的显示排位;
翻页操作,以确定用户在该查询记录对应的查询过程中触发的翻页操作次数,次数为0时表示未进行翻页操作;
关键词修改操作,以确定用户在该查询记录对应的查询过程中对查询关键词的修改次数,次数为0时表示未进行关键词修改操作;
浏览操作,以确定用户在该查询记录对应的查询过程中查看查询结果所对应的时长信息。
其中可以基于历史查询记录中对应的字段的取值确定该查询结果确认信息,在此不再赘述。
之后,则可以基于所述多个历史查询记录对应的所述查询结果确认信息和决策树模型,确定所述查询关键词对应的查询结果质量信息。
示例地,可以将该多个历史查询记录对应的所述查询结果确认信息输入该决策树模型,从而获得每一历史查询记录对应的决策参数,以将该每一历史查询记录对应的决策参数的平均值确定为该查询关键词对应的查询结果质量信息,并对应存储以获得质量信息集。
由此,通过上述技术方案,可以基于查询关键词对应的历史查询记录确定查询关键词对应的查询结果质量信息,并且在该过程中可以基于多用户的查询过程进行确定,从而保证确定出的查询结果质量信息与查询关键词的匹配性,避免单一用户数据导致的偏差,提升该查询结果显示方法的使用范围。
在一种可能的实施例中,所述决策树模型通过以下方式训练获得:
获取训练样本集,所述训练样本集中的每一训练样本包含所述训练样本对应的训练查询记录以及所述训练查询记录对应的标注查询结果质量信息。
其中,可以基于训练查询记录中用户执行的操作对查询结果质量信息进行标注。作为示例:
记录1:查询关键词,点击第一条查询结果,完成查询。用户执行操作极少即可完成查询操作,表示查询结果满足非常好,可以标注查询结果质量信息0.9。
记录2:查询关键词,点击了多条查询结果,完成查询。用户执行操作较少即可完成查询操作,表示查询结果满足较好,可以标注查询结果质量信息0.6。
记录3:查询关键词,没有点击查询结果,通过多次改写查询关键词,完成查询。用户执行操作较多完成查询操作,表示查询结果满足较差,可以标注查询结果质量信息0.2。
之后,对所述训练查询记录进行预处理,获得每一所述训练查询记录对应的查询结果确认信息。其中,该步骤已在上文进行描述,在此不再赘述。
以所述训练查询记录对应的查询结果确认信息为输入,将所述训练查询记录对应的标注查询结果质量信息为目标输出进行模型训练,获得决策树模型。
在该实施例中,可以对决策树模型中各个查询结果确认信息对应的权重值进行随机初始化,或者初始化为相同的值。之后可以通过训练查询记录以及所述训练查询记录对应的标注查询结果质量信息对该决策树模型中的权重值进行调整,进而获得训练完成的决策树模型。其中,基于训练样本对决策树模型进行训练的方式可以采用本领域中的常用训练方式,在此不再赘述。
由此,通过上述技术方案,可以基于查询记录中的查询结果确认信息的多个维度训练一决策树模型,可以确定每一维度的准确权重,以对多个维度的重要性进行排序,便于后续确定查询关键词对应的查询结果质量信息,无需人工标注,有效降低人工工作量。
在一种可能的实施例中,每一所述查询关键词对应的查询结果质量信息通过质量信息集进行存储,所述方法还可以包括:
获取用于更新的多个目标查询记录。
示例地,可以在距离前一次更新的时间达到预设时间,或者是在前一次 更新后生成的查询记录达到预设数量时获取用于更新的多个目标查询记录。相应地,该目标查询记录可以是前一次更新后生成的查询记录,也可以是前一次更新后生成的查询记录以及部分前一次更新前的查询记录。
对所述多个目标查询记录进行预处理,获得每一所述目标查询记录中的目标关键词和与所述目标关键词对应的查询结果确认信息,所述目标关键词为所述目标查询记录对应的查询内容中的第一个关键词。其中,该目标查询记录中通常包含多个查询关键词对应的查询记录,该待更新的查询关键词即为所述目标查询记录中包含的多个查询关键词中的第一个关键词,具体确定查询结果确认信息的方式已在上文进行描述,在此不再赘述。
之后,根据所述决策树模型和对应于同一目标关键词的查询结果确认信息,确定所述目标关键词对应的查询结果质量信息。
在该实施例中,可以基于各个查询记录对应的目标关键词进行分组,获得每一目标关键词对应的查询记录分组。针对每一查询记录分组中的记录确定该查询记录分组对应的目标关键词的查询结果质量信息,其具体实现方式与上文所述基于所述多个历史查询记录对应的所述查询结果确认信息和决策树模型,确定所述查询关键词对应的查询结果质量信息的具体实现方式类似,在此不再赘述。
之后,则可以根据所述目标关键词对应的查询结果质量信息对所述质量信息集进行更新。
作为示例,若该质量信息集中不存在目标关键词对应的查询结果质量信息,则可以直接将该目标关键词对应的查询结果质量信息存储至所述质量信息集中,若该质量信息集中存在目标关键词对应的查询结果质量信息,则可以将该目标关键词对应的查询结果质量信息替换所述质量信息集中存储的查询结果质量信息,从而实现质量信息集的更新。
由此,通过上述技术方案,可以对查询关键词对应的查询结果质量信息进行更新,一方面可以基于近期内用户的查询操作确定新的查询结果质量信息,增加质量信息集中的数据量,从而可以使得该质量信息集适用于更广范围下的内容查询。另一方面可以对之前确定出的查询关键词对应的查询结果质量信息进行更新,从而保证质量信息集中的查询结果质量信息与实际用户查询操作相匹配,进一步保证为用户提示推荐词的准确性,便于用户使用。
本公开还提供一种查询结果显示方法,所述方法包括:
向服务器发送接收到的查询内容。其中,该查询内容可以是接收到的用户输入的内容。
响应于接收到所述服务器发送的目标查询结果,根据所述目标查询结果指示的推荐词集合对应的显示顺序,确定所述推荐词集合对应的显示位置,其中,所述目标查询结果包括所述推荐词集合和所述显示顺序,以及基于所述查询内容获得的查询结果,所述显示顺序是所述服务器基于所述查询内容对应的查询结果质量信息确定出的,所述查询结果质量信息用于表示所述查询内容与所述查询结果之间的匹配度。
在查询结果界面中的所述显示位置,展示所述查询内容对应推荐词集合。
其中,接收到的目标查询结果中可以包含基于该查询内容进行查询所获得的查询结果,并且可以包括根据该查询内容确定出的推荐词集合,且该推荐词集合对应的显示顺序可以根据该查询内容进行动态确定。则在终端对目标查询结果进行显示时,可以根据该显示顺序确定推荐词集合对应的显示位置,例如确定出的显示顺序为4,则在展示查询结果时,在查询结果界面中的第4个显示位置展示该推荐词集合中的推荐词,其对应的显示方式及显示界面示意图已在上文进行详细描述。
由此,通过上述技术方案,推荐词集合在查询结果中的显示顺序可以基于查询内容动态地确定,从而终端在对查询结果中的推荐词集合进行展示时,可以动态确定该推荐词集合的显示位置,使得该推荐词集合包含的推荐词的显示位置符合用户的查询需求,既可以避免推荐词显示过于靠前而对用户进行查询查看查询结果的影响,保证用户能够更快的查询到其所需要的内容,又能够通过推荐词引导用户发起新的查询行为,满足用户的衍生查询需求,便于用户使用,提高用户查询效率的同时,提升用户使用体验。
本公开还提供一种查询结果显示装置,如图5所示,所述装置10包括:
接收模块101,用于接收查询内容;
第一确定模块102,用于确定所述查询内容对应的查询结果质量信息,所述查询结果质量信息用于表示所述查询内容与基于所述查询内容获得的查询结果之间的匹配度;
第二确定模块103,用于根据所述查询结果质量信息,确定所述查询内容对应的推荐词集合在所述查询结果中的显示顺序;
处理模块104,用于根据所述显示顺序将所述推荐词集合添加至所述查询结果,以获得目标查询结果;
第一发送模块105,用于将所述目标查询结果发送至终端,以由所述终端在查询结果界面中所述显示顺序对应的显示位置展示所述推荐词集合。
可选地,所述第二确定模块包括:
第一确定子模块,用于确定所述终端的查询结果界面中可显示的目标查询结果的目标数量;
第二确定子模块,用于根据所述查询结果质量信息的质量标准信息与所述查询结果质量信息的差值、和所述目标数量,确定所述显示顺序,其中,所述查询结果质量信息的取值大于或等于零,且所述查询结果质量信息的取值小于或等于所述质量标准信息。
可选地,所述第二确定模块还包括:
获取子模块,用于获取所述推荐词集合的显示顺序的目标范围;
校正子模块,用于在确定出的所述显示顺序超出所述目标范围的情况下,根据所述目标范围对所述显示顺序进行校正以获得校正顺序,并将所述显示顺序更新为所述校正顺序。
可选地,所述查询内容中包含多个查询关键词;
所述第二确定模块包括:
第三确定子模块,用于针对每个所述查询关键词,基于该查询关键词对应的查询结果质量信息,确定该查询关键词对应的推荐词显示顺序;
第四确定子模块,用于基于每个所述查询关键词对应的推荐词显示顺序,确定所述查询内容对应的显示顺序。
可选地,所述多个查询关键词之间为或关系;
所述第四确定子模块包括:
第一处理子模块,用于若所述查询关键词对应的推荐词显示顺序不同,将所述每一所述查询关键词对应的推荐词显示顺序均确定为所述查询内容对应的显示顺序,并基于该推荐词显示顺序对应的查询关键词确定该推荐词显示顺序对应的推荐词集合中的推荐词,并将所述推荐词添加至所述目标查 询结果中;
第二处理子模块,用于若多个所述查询关键词对应的推荐词显示顺序相同,则将该推荐词显示顺序确定为该多个所述关键词的显示顺序,并根据与该推荐词显示顺序对应的查询关键词的总数量、和所述推荐词集合中可显示推荐词的显示数量,确定该推荐词集合中与该多个查询关键词分别对应的推荐词的数量,以获取该多个查询关键词分别对应的数量的推荐词并添加至所述目标查询结果中。
可选地,所述第四确定子模块包括:
第三处理子模块,用于将每个所述查询关键词对应的推荐词显示顺序进行平均取整后所得的顺序确定为所述查询内容对应的显示顺序。
可选地,所述查询内容对应的查询结果质量信息是基于所述查询内容中包含的查询关键词对应的查询结果质量信息确定的,所述查询关键词对应的查询结果质量信息通过如下方式预先确定:
获取与所述查询关键词对应的多个历史查询记录;
对所述多个历史查询记录进行预处理,获得每一所述历史查询记录对应的查询结果确认信息,其中,所述查询结果确认信息用于表征用户基于所述查询关键词完成查询的过程中执行的操作,所述操作包括以下中的至少一者:确认操作、翻页操作、关键词修改操作、浏览操作;
基于所述多个历史查询记录对应的所述查询结果确认信息和决策树模型,确定所述查询关键词对应的查询结果质量信息。
可选地,所述决策树模型通过以下方式训练获得:
获取训练样本集,所述训练样本集中的每一训练样本包含所述训练样本对应的训练查询记录以及所述训练查询记录对应的标注查询结果质量信息;
对所述训练查询记录进行预处理,获得每一所述训练查询记录对应的查询结果确认信息;
以所述训练查询记录对应的查询结果确认信息为输入,将所述训练查询记录对应的标注查询结果质量信息为目标输出进行模型训练,获得所述决策树模型。
可选地,每一所述查询关键词对应的查询结果质量信息通过质量信息集进行存储,所述装置还包括:
获取模块,用于获取用于更新的多个目标查询记录;
预处理模块,用于对所述多个目标查询记录进行预处理,获得每一所述目标查询记录中的目标关键词和与所述目标关键词对应的查询结果确认信息,所述目标关键词为所述目标查询记录对应的查询内容中的第一个关键词;
第三确定模块,用于根据所述决策树模型和对应于同一目标关键词的查询结果确认信息,确定所述目标关键词对应的查询结果质量信息;
更新模块,用于根据所述目标关键词对应的查询结果质量信息对所述质量信息集进行更新。
本公开还提供一种查询结果显示装置,所述装置包括:
第二发送模块,用于向服务器发送接收到的查询内容;
第四确定模块,用于响应于接收到所述服务器发送的目标查询结果,根据所述目标查询结果指示的推荐词集合对应的显示顺序,确定所述推荐词集合对应的显示位置,其中,所述目标查询结果包括所述推荐词集合和所述显示顺序,以及基于所述查询内容获得的查询结果,所述显示顺序是所述服务器基于所述查询内容对应的查询结果质量信息确定出的,所述查询结果质量信息用于表示所述查询内容与所述查询结果之间的匹配度;
展示模块,用于在查询结果界面中的所述显示位置,展示所述查询内容对应推荐词集合。
下面参考图6,其示出了适于用来实现本公开实施例的电子设备600的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图6示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图6所示,电子设备600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有电子设备600操作所需的各种程序和数据。处理装置601、ROM 602以及RAM 603通过总线604彼此相 连。输入/输出(I/O)接口605也连接至总线604。
通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许电子设备600与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM 602被安装。在该计算机程序被处理装置601执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的***、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行***、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行***、装置或者器件使用或 者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:接收查询内容;确定所述查询内容对应的查询结果质量信息,所述查询结果质量信息用于表示所述查询内容与基于所述查询内容获得的查询结果之间的匹配度;根据所述查询结果质量信息,确定所述查询内容对应的推荐词集合在所述查询结果中的显示顺序;根据所述显示顺序将所述推荐词集合添加至所述查询结果,以获得目标查询结果;将所述目标查询结果发送至终端,以由所述终端在查询结果界面中所述显示顺序对应的显示位置展示所述推荐词集合。
或者,上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:向服务器发送接收到的查询内容;响应于接收到所述服务器发送的目标查询结果,根据所述目标查询结果指示的推荐词集合对应的显示顺序,确定所述推荐词集合对应的显示位置,其中,所述目标查询结果包括所述推荐词集合和所述显示顺序,以及基于所述查询内容获得的查询结果,所述显示顺序是所述服务器基于所述查询内容对应的查询结果质量信息确定出的,所述查询结果质量信息用于表示所述查询内容与所述查询结果之间的匹配度;在查询结果界面中的所述显示位置,展示所述查询内容对应推荐词集合。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计 语言-诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言——诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)——连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的***、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的***来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,模块的名称在某种情况下并不构成对该模块本身的限定,例如,接收模块还可以被描述为“接收查询内容的模块”。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上***(SOC)、复杂可编程逻辑设备(CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行***、装置或设备使用或与指令执行***、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体***、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算 机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
根据本公开的一个或多个实施例,示例1提供了一种查询结果显示方法,其中,所述方法包括:
接收查询内容;
确定所述查询内容对应的查询结果质量信息,所述查询结果质量信息用于表示所述查询内容与基于所述查询内容获得的查询结果之间的匹配度;
根据所述查询结果质量信息,确定所述查询内容对应的推荐词集合在所述查询结果中的显示顺序;
根据所述显示顺序将所述推荐词集合添加至所述查询结果,以获得目标查询结果;
将所述目标查询结果发送至终端,以由所述终端在查询结果界面中所述显示顺序对应的显示位置展示所述推荐词集合。
根据本公开的一个或多个实施例,示例2提供了示例1的方法,其中,所述根据所述查询结果质量信息,确定所述查询内容对应的推荐词集合在所述查询结果中的显示顺序,包括:
确定所述终端的查询结果界面中可显示的目标查询结果的目标数量;
根据所述查询结果质量信息的质量标准信息与所述查询结果质量信息的差值、和所述目标数量,确定所述显示顺序,其中,所述查询结果质量信息的取值大于或等于零,且所述查询结果质量信息的取值小于或等于所述质量标准信息。
根据本公开的一个或多个实施例,示例3提供了示例2的方法,其中,所述根据所述查询结果质量信息,确定所述查询内容对应的推荐词集合在所述查询结果中的显示顺序,还包括:
获取所述推荐词集合的显示顺序的目标范围;
在确定出的所述显示顺序超出所述目标范围的情况下,根据所述目标范围对所述显示顺序进行校正以获得校正顺序,并将所述显示顺序更新为所述校正顺序。
根据本公开的一个或多个实施例,示例4提供了示例1的方法,其中, 所述查询内容中包含多个查询关键词;
所述根据所述查询结果质量信息,确定所述查询内容对应的推荐词集合在所述查询结果中的显示顺序,包括:
针对每个所述查询关键词,基于该查询关键词对应的查询结果质量信息,确定该查询关键词对应的推荐词显示顺序;
基于每个所述查询关键词对应的推荐词显示顺序,确定所述查询内容对应的显示顺序。
根据本公开的一个或多个实施例,示例5提供了示例4的方法,其中,所述多个查询关键词之间为或关系;
所述基于每个所述查询关键词对应的推荐词显示顺序,确定所述查询内容对应的显示顺序,包括:
若所述查询关键词对应的推荐词显示顺序不同,将所述每一所述查询关键词对应的推荐词显示顺序均确定为所述查询内容对应的显示顺序,并基于该推荐词显示顺序对应的查询关键词确定该推荐词显示顺序对应的推荐词集合中的推荐词,并将所述推荐词添加至所述目标查询结果中;
若多个所述查询关键词对应的推荐词显示顺序相同,则将该推荐词显示顺序确定为该多个所述关键词的显示顺序,并根据与该推荐词显示顺序对应的查询关键词的总数量、和所述推荐词集合中可显示推荐词的显示数量,确定该推荐词集合中与该多个查询关键词分别对应的推荐词的数量,以获取该多个查询关键词分别对应的数量的推荐词并添加至所述目标查询结果中。
根据本公开的一个或多个实施例,示例6提供了示例4的方法,其中,所述基于每个所述查询关键词对应的推荐词显示顺序,确定所述查询内容对应的显示顺序,包括:
将每个所述查询关键词对应的推荐词显示顺序进行平均取整后所得的顺序确定为所述查询内容对应的显示顺序。
根据本公开的一个或多个实施例,示例7提供了示例1-6中任一示例的方法,其中,所述查询内容对应的查询结果质量信息是基于所述查询内容中包含的查询关键词对应的查询结果质量信息确定的,所述查询关键词对应的查询结果质量信息通过如下方式预先确定:
获取与所述查询关键词对应的多个历史查询记录;
对所述多个历史查询记录进行预处理,获得每一所述历史查询记录对应的查询结果确认信息,其中,所述查询结果确认信息用于表征用户基于所述查询关键词完成查询的过程中执行的操作,所述操作包括以下中的至少一者:确认操作、翻页操作、关键词修改操作、浏览操作;
基于所述多个历史查询记录对应的所述查询结果确认信息和决策树模型,确定所述查询关键词对应的查询结果质量信息。
根据本公开的一个或多个实施例,示例8提供了示例7的方法,其中,所述决策树模型通过以下方式训练获得:
获取训练样本集,所述训练样本集中的每一训练样本包含所述训练样本对应的训练查询记录以及所述训练查询记录对应的标注查询结果质量信息;
对所述训练查询记录进行预处理,获得每一所述训练查询记录对应的查询结果确认信息;
以所述训练查询记录对应的查询结果确认信息为输入,将所述训练查询记录对应的标注查询结果质量信息为目标输出进行模型训练,获得所述决策树模型。
根据本公开的一个或多个实施例,示例9提供了示例7的方法,其中,每一所述查询关键词对应的查询结果质量信息通过质量信息集进行存储,所述方法还包括:
获取用于更新的多个目标查询记录;
对所述多个目标查询记录进行预处理,获得每一所述目标查询记录中的目标关键词和与所述目标关键词对应的查询结果确认信息,所述目标关键词为所述目标查询记录对应的查询内容中的第一个关键词;
根据所述决策树模型和对应于同一目标关键词的查询结果确认信息,确定所述目标关键词对应的查询结果质量信息;
根据所述目标关键词对应的查询结果质量信息对所述质量信息集进行更新。
根据本公开的一个或多个实施例,示例10提供了一种查询结果显示方法,其中,所述方法包括:
向服务器发送接收到的查询内容;
响应于接收到所述服务器发送的目标查询结果,根据所述目标查询结果 指示的推荐词集合对应的显示顺序,确定所述推荐词集合对应的显示位置,其中,所述目标查询结果包括所述推荐词集合和所述显示顺序,以及基于所述查询内容获得的查询结果,所述显示顺序是所述服务器基于所述查询内容对应的查询结果质量信息确定出的,所述查询结果质量信息用于表示所述查询内容与所述查询结果之间的匹配度;
在查询结果界面中的所述显示位置,展示所述查询内容对应推荐词集合。
根据本公开的一个或多个实施例,示例11提供了一种查询结果显示装置,其中,所述装置包括:
接收模块,用于接收查询内容;
第一确定模块,用于确定所述查询内容对应的查询结果质量信息,所述查询结果质量信息用于表示所述查询内容与基于所述查询内容获得的查询结果之间的匹配度;
第二确定模块,用于根据所述查询结果质量信息,确定所述查询内容对应的推荐词集合在所述查询结果中的显示顺序;
处理模块,用于根据所述显示顺序将所述推荐词集合添加至所述查询结果,以获得目标查询结果;
第一发送模块,用于将所述目标查询结果发送至终端,以由所述终端在查询结果界面中所述显示顺序对应的显示位置展示所述推荐词集合。
根据本公开的一个或多个实施例,示例12提供了一种查询结果显示装置,其中,所述装置包括:
第二发送模块,用于向服务器发送接收到的查询内容;
第四确定模块,用于响应于接收到所述服务器发送的目标查询结果,根据所述目标查询结果指示的推荐词集合对应的显示顺序,确定所述推荐词集合对应的显示位置,其中,所述目标查询结果包括所述推荐词集合和所述显示顺序,以及基于所述查询内容获得的查询结果,所述显示顺序是所述服务器基于所述查询内容对应的查询结果质量信息确定出的,所述查询结果质量信息用于表示所述查询内容与所述查询结果之间的匹配度;
展示模块,用于在查询结果界面中的所述显示位置,展示所述查询内容对应推荐词集合。
根据本公开的一个或多个实施例,示例13提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理装置执行时实现示例1-10中任一示例所述方法的步骤。
根据本公开的一个或多个实施例,示例14提供了一种电子设备,其中,包括:
存储装置,其上存储有计算机程序;
处理装置,用于执行所述存储装置中的所述计算机程序,以实现示例1-10中任一示例所述方法的步骤。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。

Claims (14)

  1. 一种查询结果显示方法,其特征在于,所述方法包括:
    接收查询内容;
    确定所述查询内容对应的查询结果质量信息,所述查询结果质量信息用于表示所述查询内容与基于所述查询内容获得的查询结果之间的匹配度;
    根据所述查询结果质量信息,确定所述查询内容对应的推荐词集合在所述查询结果中的显示顺序;
    根据所述显示顺序将所述推荐词集合添加至所述查询结果,以获得目标查询结果;
    将所述目标查询结果发送至终端,以由所述终端在查询结果界面中所述显示顺序对应的显示位置展示所述推荐词集合。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述查询结果质量信息,确定所述查询内容对应的推荐词集合在所述查询结果中的显示顺序,包括:
    确定所述终端的查询结果界面中可显示的目标查询结果的目标数量;
    根据所述查询结果质量信息的质量标准信息与所述查询结果质量信息的差值、和所述目标数量,确定所述显示顺序,其中,所述查询结果质量信息的取值大于或等于零,且所述查询结果质量信息的取值小于或等于所述质量标准信息。
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述查询结果质量信息,确定所述查询内容对应的推荐词集合在所述查询结果中的显示顺序,还包括:
    获取所述推荐词集合的显示顺序的目标范围;
    在确定出的所述显示顺序超出所述目标范围的情况下,根据所述目标范 围对所述显示顺序进行校正以获得校正顺序,并将所述显示顺序更新为所述校正顺序。
  4. 根据权利要求1所述的方法,其特征在于,所述查询内容中包含多个查询关键词;
    所述根据所述查询结果质量信息,确定所述查询内容对应的推荐词集合在所述查询结果中的显示顺序,包括:
    针对每个所述查询关键词,基于该查询关键词对应的查询结果质量信息,确定该查询关键词对应的推荐词显示顺序;
    基于每个所述查询关键词对应的推荐词显示顺序,确定所述查询内容对应的显示顺序。
  5. 根据权利要求4所述的方法,其特征在于,所述多个查询关键词之间为或关系;
    所述基于每个所述查询关键词对应的推荐词显示顺序,确定所述查询内容对应的显示顺序,包括:
    若所述查询关键词对应的推荐词显示顺序不同,将所述每一所述查询关键词对应的推荐词显示顺序均确定为所述查询内容对应的显示顺序,并基于该推荐词显示顺序对应的查询关键词确定该推荐词显示顺序对应的推荐词集合中的推荐词,并将所述推荐词添加至所述目标查询结果中;
    若多个所述查询关键词对应的推荐词显示顺序相同,则将该推荐词显示顺序确定为该多个所述关键词的显示顺序,并根据与该推荐词显示顺序对应的查询关键词的总数量、和所述推荐词集合中可显示推荐词的显示数量,确定该推荐词集合中与该多个查询关键词分别对应的推荐词的数量,以获取该多个查询关键词分别对应的数量的推荐词并添加至所述目标查询结果中。
  6. 根据权利要求4所述的方法,其特征在于,所述基于每个所述查询关键词对应的推荐词显示顺序,确定所述查询内容对应的显示顺序,包括:
    将每个所述查询关键词对应的推荐词显示顺序进行平均取整后所得的顺序确定为所述查询内容对应的显示顺序。
  7. 根据权利要求1-6中任一项所述的方法,其特征在于,所述查询内容对应的查询结果质量信息是基于所述查询内容中包含的查询关键词对应的查询结果质量信息确定的,所述查询关键词对应的查询结果质量信息通过如下方式预先确定:
    获取与所述查询关键词对应的多个历史查询记录;
    对所述多个历史查询记录进行预处理,获得每一所述历史查询记录对应的查询结果确认信息,其中,所述查询结果确认信息用于表征用户基于所述查询关键词完成查询的过程中执行的操作,所述操作包括以下中的至少一者:确认操作、翻页操作、关键词修改操作、浏览操作;
    基于所述多个历史查询记录对应的所述查询结果确认信息和决策树模型,确定所述查询关键词对应的查询结果质量信息。
  8. 根据权利要求7所述的方法,其特征在于,所述决策树模型通过以下方式训练获得:
    获取训练样本集,所述训练样本集中的每一训练样本包含所述训练样本对应的训练查询记录以及所述训练查询记录对应的标注查询结果质量信息;
    对所述训练查询记录进行预处理,获得每一所述训练查询记录对应的查询结果确认信息;
    以所述训练查询记录对应的查询结果确认信息为输入,将所述训练查询 记录对应的标注查询结果质量信息为目标输出进行模型训练,获得所述决策树模型。
  9. 根据权利要求7所述的方法,其特征在于,每一所述查询关键词对应的查询结果质量信息通过质量信息集进行存储,所述方法还包括:
    获取用于更新的多个目标查询记录;
    对所述多个目标查询记录进行预处理,获得每一所述目标查询记录中的目标关键词和与所述目标关键词对应的查询结果确认信息,所述目标关键词为所述目标查询记录对应的查询内容中的第一个关键词;
    根据所述决策树模型和对应于同一目标关键词的查询结果确认信息,确定所述目标关键词对应的查询结果质量信息;
    根据所述目标关键词对应的查询结果质量信息对所述质量信息集进行更新。
  10. 一种查询结果显示方法,其特征在于,所述方法包括:
    向服务器发送接收到的查询内容;
    响应于接收到所述服务器发送的目标查询结果,根据所述目标查询结果指示的推荐词集合对应的显示顺序,确定所述推荐词集合对应的显示位置,其中,所述目标查询结果包括所述推荐词集合和所述显示顺序,以及基于所述查询内容获得的查询结果,所述显示顺序是所述服务器基于所述查询内容对应的查询结果质量信息确定出的,所述查询结果质量信息用于表示所述查询内容与所述查询结果之间的匹配度;
    在查询结果界面中的所述显示位置,展示所述查询内容对应推荐词集合。
  11. 一种查询结果显示装置,其特征在于,所述装置包括:
    接收模块,用于接收查询内容;
    第一确定模块,用于确定所述查询内容对应的查询结果质量信息,所述查询结果质量信息用于表示所述查询内容与基于所述查询内容获得的查询结果之间的匹配度;
    第二确定模块,用于根据所述查询结果质量信息,确定所述查询内容对应的推荐词集合在所述查询结果中的显示顺序;
    处理模块,用于根据所述显示顺序将所述推荐词集合添加至所述查询结果,以获得目标查询结果;
    第一发送模块,用于将所述目标查询结果发送至终端,以由所述终端在查询结果界面中所述显示顺序对应的显示位置展示所述推荐词集合。
  12. 一种查询结果显示装置,其特征在于,所述装置包括:
    第二发送模块,用于向服务器发送接收到的查询内容;
    第四确定模块,用于响应于接收到所述服务器发送的目标查询结果,根据所述目标查询结果指示的推荐词集合对应的显示顺序,确定所述推荐词集合对应的显示位置,其中,所述目标查询结果包括所述推荐词集合和所述显示顺序,以及基于所述查询内容获得的查询结果,所述显示顺序是所述服务器基于所述查询内容对应的查询结果质量信息确定出的,所述查询结果质量信息用于表示所述查询内容与所述查询结果之间的匹配度;
    展示模块,用于在查询结果界面中的所述显示位置,展示所述查询内容对应推荐词集合。
  13. 一种计算机可读介质,其上存储有计算机程序,其特征在于,该程序被处理装置执行时实现权利要求1-10中任一项所述方法的步骤。
  14. 一种电子设备,其特征在于,包括:
    存储装置,其上存储有计算机程序;
    处理装置,用于执行所述存储装置中的所述计算机程序,以实现权利要求1-10中任一项所述方法的步骤。
PCT/CN2022/104090 2021-08-26 2022-07-06 查询结果显示方法、装置、介质和电子设备 WO2023024716A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP22860063.1A EP4322032A1 (en) 2021-08-26 2022-07-06 Query result display method and apparatus, medium, and electronic device
JP2023568193A JP2024517853A (ja) 2021-08-26 2022-07-06 クエリー結果表示方法、装置、媒体及び電子機器
US18/493,646 US20240054167A1 (en) 2021-08-26 2023-10-24 Query result display method and apparatus, medium, and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110991160.7A CN113626715A (zh) 2021-08-26 2021-08-26 查询结果显示方法、装置、介质和电子设备
CN202110991160.7 2021-08-26

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/493,646 Continuation US20240054167A1 (en) 2021-08-26 2023-10-24 Query result display method and apparatus, medium, and electronic device

Publications (1)

Publication Number Publication Date
WO2023024716A1 true WO2023024716A1 (zh) 2023-03-02

Family

ID=78388025

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/104090 WO2023024716A1 (zh) 2021-08-26 2022-07-06 查询结果显示方法、装置、介质和电子设备

Country Status (5)

Country Link
US (1) US20240054167A1 (zh)
EP (1) EP4322032A1 (zh)
JP (1) JP2024517853A (zh)
CN (1) CN113626715A (zh)
WO (1) WO2023024716A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626715A (zh) * 2021-08-26 2021-11-09 北京字跳网络技术有限公司 查询结果显示方法、装置、介质和电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299383A (zh) * 2018-11-02 2019-02-01 北京字节跳动网络技术有限公司 生成推荐词的方法、装置、电子设备及存储介质
CN111782958A (zh) * 2020-07-17 2020-10-16 深圳市欢太科技有限公司 推荐词确定方法、装置、电子装置及存储介质
CN112035727A (zh) * 2019-06-03 2020-12-04 阿里巴巴集团控股有限公司 信息获取方法、装置、设备、***及可读存储介质
US20210209106A1 (en) * 2020-01-03 2021-07-08 International Business Machines Corporation Query adaptation for a search service in a content management system
CN113626715A (zh) * 2021-08-26 2021-11-09 北京字跳网络技术有限公司 查询结果显示方法、装置、介质和电子设备

Family Cites Families (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7627596B2 (en) * 2001-02-22 2009-12-01 International Business Machines Corporation Retrieving handwritten documents using multiple document recognizers and techniques allowing both typed and handwritten queries
CN102567408B (zh) * 2010-12-31 2014-06-04 阿里巴巴集团控股有限公司 推荐搜索关键词的方法和装置
CN102346778B (zh) * 2011-10-11 2013-08-21 北京百度网讯科技有限公司 一种用于提供搜索结果的方法与设备
CN102375885A (zh) * 2011-10-21 2012-03-14 北京百度网讯科技有限公司 一种提供与查询序列相对应的搜索建议的方法与设备
CN103049567A (zh) * 2012-12-31 2013-04-17 威盛电子股份有限公司 检索方法、检索***以及自然语言理解***
KR101354447B1 (ko) * 2013-03-28 2014-01-27 최동식 검색어를 이용한 검색 사이트 사용자 연결 시스템 및 방법
CN104281582B (zh) * 2013-07-02 2017-08-25 阿里巴巴集团控股有限公司 分页显示控制方法和装置
CN103440286B (zh) * 2013-08-14 2017-12-26 北京百度网讯科技有限公司 一种基于搜索结果来提供推荐信息的方法及装置
US10496660B1 (en) * 2013-09-09 2019-12-03 Google Llc Serving content items in content item slots based on a referral query location
CN104090963A (zh) * 2014-07-14 2014-10-08 百度在线网络技术(北京)有限公司 查询信息推荐方法和装置
US9978368B2 (en) * 2014-09-16 2018-05-22 Mitsubishi Electric Corporation Information providing system
CN105488221A (zh) * 2015-12-25 2016-04-13 北京奇虎科技有限公司 一种在搜索界面推荐查询词进行搜索的方法和***
CN107544995A (zh) * 2016-06-27 2018-01-05 百度在线网络技术(北京)有限公司 一种用于提供搜索结果推荐信息的方法与设备
CN107704467B (zh) * 2016-08-09 2021-08-24 百度在线网络技术(北京)有限公司 搜索质量评估方法及装置
US20200159860A1 (en) * 2018-11-15 2020-05-21 Microsoft Technology Licensing, Llc Search engine user interface ai skinning
JP7172571B2 (ja) * 2018-12-21 2022-11-16 富士フイルムビジネスイノベーション株式会社 検索装置及び検索プログラム
CN109697256B (zh) * 2018-12-21 2020-12-22 北京字节跳动网络技术有限公司 确定相关搜索词的方法、装置、存储介质及电子设备
CN111639255B (zh) * 2019-03-01 2023-12-29 北京字节跳动网络技术有限公司 搜索关键词的推荐方法、装置、存储介质及电子设备
US11741191B1 (en) * 2019-04-24 2023-08-29 Google Llc Privacy-sensitive training of user interaction prediction models
CN112130714B (zh) * 2019-06-25 2021-08-20 华为技术有限公司 可进行学习的关键词搜索方法和电子设备
US11423098B2 (en) * 2020-07-29 2022-08-23 Sap Se Method and apparatus to generate a simplified query when searching for catalog items
CN113297468A (zh) * 2020-07-30 2021-08-24 阿里巴巴集团控股有限公司 信息展示、推荐及处理方法、信息推荐***、电子设备
CN113051429A (zh) * 2021-03-25 2021-06-29 百度在线网络技术(北京)有限公司 一种信息推荐方法、装置、电子设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299383A (zh) * 2018-11-02 2019-02-01 北京字节跳动网络技术有限公司 生成推荐词的方法、装置、电子设备及存储介质
CN112035727A (zh) * 2019-06-03 2020-12-04 阿里巴巴集团控股有限公司 信息获取方法、装置、设备、***及可读存储介质
US20210209106A1 (en) * 2020-01-03 2021-07-08 International Business Machines Corporation Query adaptation for a search service in a content management system
CN111782958A (zh) * 2020-07-17 2020-10-16 深圳市欢太科技有限公司 推荐词确定方法、装置、电子装置及存储介质
CN113626715A (zh) * 2021-08-26 2021-11-09 北京字跳网络技术有限公司 查询结果显示方法、装置、介质和电子设备

Also Published As

Publication number Publication date
JP2024517853A (ja) 2024-04-23
US20240054167A1 (en) 2024-02-15
CN113626715A (zh) 2021-11-09
EP4322032A1 (en) 2024-02-14

Similar Documents

Publication Publication Date Title
CN111414498B (zh) 多媒体信息推荐方法、装置及电子设备
CN111368185B (zh) 数据展示方法、装置、存储介质及电子设备
WO2020019563A1 (zh) 搜索排序方法、装置、电子设备和存储介质
US11762931B2 (en) Feedback method and apparatus based on online document comment, and non-transitory computer-readable storage medium
WO2021135626A1 (zh) 菜单项选择方法、装置、可读介质及电子设备
WO2022247562A1 (zh) 多模态数据检索方法、装置、介质及电子设备
WO2023040947A1 (zh) 信息处理方法、装置、终端和存储介质
CN110674400B (zh) 排序方法、装置、电子设备及计算机可读存储介质
WO2023151589A1 (zh) 视频显示方法、装置、电子设备和存储介质
US11714866B2 (en) Method and device for page processing, electronic device, and computer-readable storage medium
CN111444356A (zh) 基于搜索的推荐方法及装置
US20240054167A1 (en) Query result display method and apparatus, medium, and electronic device
WO2023036101A1 (zh) 确定文本情节类型的方法、装置、可读介质及电子设备
CN108600329B (zh) 用于推送信息、展示信息的方法和设备
WO2022233311A1 (zh) 展示方法、装置和电子设备
CN113934938A (zh) 信息展示的方法、装置、可读介质和电子设备
CN110825481A (zh) 页面标签对应的页面信息的展示方法、装置、电子设备
WO2022242302A1 (zh) 文本搜索方法, 装置, 可读介质及电子设备
WO2023001276A1 (zh) 信息展示方法、装置、终端和存储介质
WO2022134968A1 (zh) 模型的训练方法、语音识别方法、装置、介质及设备
WO2023001281A1 (zh) 表格数据处理方法、装置、终端和存储介质
CN110674399A (zh) 确定搜索项目的顺序的方法和装置
WO2022222660A1 (zh) 对象展示方法、装置、电子设备及计算机可读存储介质
CN111782895B (zh) 检索处理方法、装置、可读介质及电子设备
CN111737571A (zh) 搜索方法、装置和电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22860063

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2023568193

Country of ref document: JP

Ref document number: 2022860063

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022860063

Country of ref document: EP

Effective date: 20231106

NENP Non-entry into the national phase

Ref country code: DE