WO2020093289A1 - Resource recommendation method and apparatus, electronic device and storage medium - Google Patents

Resource recommendation method and apparatus, electronic device and storage medium Download PDF

Info

Publication number
WO2020093289A1
WO2020093289A1 PCT/CN2018/114441 CN2018114441W WO2020093289A1 WO 2020093289 A1 WO2020093289 A1 WO 2020093289A1 CN 2018114441 W CN2018114441 W CN 2018114441W WO 2020093289 A1 WO2020093289 A1 WO 2020093289A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
information
keyword
network
network query
Prior art date
Application number
PCT/CN2018/114441
Other languages
French (fr)
Chinese (zh)
Inventor
罗月
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2018/114441 priority Critical patent/WO2020093289A1/en
Priority to CN201880098765.XA priority patent/CN112868004B/en
Publication of WO2020093289A1 publication Critical patent/WO2020093289A1/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/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/3332Query translation
    • G06F16/3338Query expansion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Definitions

  • This application relates to the field of Internet technology, and more specifically, to a resource recommendation method, device, electronic device, and storage medium.
  • network products provide services to users, they can provide services such as applications, pictures, songs, videos and other forms of resources.
  • services such as applications, pictures, songs, videos and other forms of resources.
  • the server that provides the resource will provide the resource recommendation service, but the accuracy of the current resource recommendation method is insufficient.
  • the present application proposes a resource recommendation method, device, electronic device, and computer-readable storage medium to improve the accuracy of resource recommendation.
  • an embodiment of the present application provides a resource recommendation method.
  • the method includes: acquiring a search request sent by a user terminal, where the search request includes at least one keyword; in response to the search request, acquiring the keyword Corresponding target resource, the resource information of the target resource matches the keyword and the network query information of the keyword, and the network query information includes information matching the keyword obtained from a network platform;
  • the target resource generates resource recommendation information, and sends the resource recommendation information to the user terminal.
  • an embodiment of the present application provides a resource recommendation apparatus.
  • the apparatus includes a request acquisition module, a request response module, and an information generation module, where the request acquisition module is used to acquire a search request sent by a user terminal,
  • the search request includes at least one keyword;
  • the request response module is used to obtain a target resource corresponding to the keyword, resource information of the target resource, the keyword, and the keyword in response to the search request Matching network query information, the network query information includes information obtained from a network platform that matches the keyword;
  • the information generation module is used to generate resource recommendation information based on the target resource, and the resource recommendation information Sent to the user terminal.
  • an embodiment of the present application provides an electronic device, including: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and Is configured to be executed by the one or more processors, and the one or more programs are configured to execute the resource recommendation method provided in the first aspect described above.
  • an embodiment of the present application provides a computer-readable storage medium in which program code is stored, and the program code can be called by a processor to execute the resources provided in the first aspect Recommended method.
  • the solution provided by this application receives the search request sent by the user terminal, responds to the search request, obtains the target resource corresponding to the keyword in the search request, and finally generates resource recommendation information according to the target resource, and sends the resource recommendation information to the user terminal. Since the resource information of the target resource matches the keyword and the network query information of the keyword, and the network query information includes the information matched with the keyword obtained from the network platform, the target resource obtained above is highly correlated with the keyword To improve the accuracy of resource recommendations.
  • FIG. 1 shows a schematic diagram of an application scenario according to an embodiment of the present application.
  • FIG. 2 shows a flowchart of a resource recommendation method according to an embodiment of the present application.
  • FIG. 3 shows a flowchart of a resource recommendation method according to another embodiment of the present application.
  • FIG. 4 shows a flowchart of step S220 in the resource recommendation method according to an embodiment of the present application.
  • FIG. 5 shows a flowchart of step S230 in the resource recommendation method according to an embodiment of the present application.
  • step S260 shows a flowchart of step S260 in the resource recommendation method according to an embodiment of the present application
  • FIG. 7 shows a block diagram of a resource recommendation apparatus according to an embodiment of the present application.
  • FIG. 8 shows a block diagram of a request response module in the resource recommendation device according to an embodiment of the present application.
  • FIG. 9 shows a block diagram of a first resource acquisition unit in a resource recommendation device according to an embodiment of the present application.
  • FIG. 10 shows a block diagram of an information generation module in a resource recommendation device according to an embodiment of the present application.
  • FIG. 11 is a block diagram of an electronic device for performing a resource recommendation method according to an embodiment of the present application.
  • 12 is a storage unit for storing or carrying program code for implementing the resource recommendation method according to an embodiment of the present application.
  • network products can provide services of various resources, such as online or offline services of various forms of network resources such as applications, pictures, songs, and videos.
  • the amount of data provided by the network resource server is too large. To find the network resources of interest from this massive data will consume a lot of time and traffic. Therefore, at present, many servers that provide resources will provide resources. Recommended features. Generally, when a user needs to obtain a desired resource, they can search through some keywords, and the server that provides the resource can recommend the resource to the user terminal according to the keyword. However, this method of resource recommendation usually requires accurate keywords to match. When the obtained keywords are not accurate, the accuracy of resource recommendation will be low.
  • the inventor has made a long-term research and proposed the resource recommendation method, device, electronic device, and computer-readable storage medium provided by the embodiments of the present application.
  • the acquired target resources By acquiring the target resources corresponding to the keywords, the acquired target resources
  • the resource information matches the keyword and the network query information of the keyword, and the network query information includes information obtained from the network platform that matches the keyword, so that the keyword is highly related to the target resource, thereby improving the accuracy of resource recommendation .
  • FIG. 1 illustrates a schematic diagram of an application scenario of the resource recommendation method provided by an embodiment of the present application.
  • the application scenario includes an interaction system 10.
  • the interactive system 10 includes: an electronic device 100 and a user terminal 200. Among them, there is a communication connection between the electronic device 100 and the user terminal 200 to implement data or instruction interaction, and the number of the user terminal 200 is at least one.
  • the electronic device 100 is used to provide or recommend resources and other information.
  • the electronic device 100 may be a server, and the server may be a cloud server or a traditional server.
  • the specific server type is not in this embodiment of the present application.
  • the user terminal 200 is used to obtain resource information from the server in response to user operations.
  • the user terminal 200 may be a device capable of running an application program such as a smart phone, tablet computer, e-book, etc.
  • the specific type of user terminal is not used in the embodiment of the present application limited.
  • an embodiment of the present application provides a resource recommendation method, which can be applied to electronic devices.
  • the resource recommendation method may include:
  • Step S110 Acquire a search request sent by the user terminal, where the search request includes at least one keyword.
  • the user terminal may send a search request to the electronic device to obtain the resource from the electronic device.
  • the search request sent by the user terminal includes at least one keyword.
  • the keywords are the words submitted by the user through the user terminal for obtaining the required resources.
  • the number of keywords in the search request may not be limited, and may be one or more.
  • the way for the user terminal to obtain keywords can be for the user to enter the keyword through the input interface of the user terminal, or for converting the voice input by the user through the microphone into a keyword through voice recognition technology.
  • the application examples are not intended to be limiting.
  • the electronic device may receive the search request including at least one keyword sent by the user terminal, so that the search request sent by the user terminal for acquiring resources may be obtained.
  • Step S120 In response to the search request, obtain a target resource corresponding to the keyword, the resource information of the target resource matches the keyword and the network query information of the keyword, and the network query information includes the slave network Information obtained by the platform that matches the keyword.
  • the electronic device may respond to the search request to obtain related resources according to the search request, and return resource recommendation information to the user terminal.
  • the electronic device may obtain the target resource corresponding to the keyword in the search request according to the search request sent by the user terminal. Specifically, the electronic device may obtain resources matching the keywords and the network query information of the keywords according to the keywords to obtain the target resources corresponding to the keywords.
  • the network query information of the keyword is the information obtained from the network platform that matches the keyword. For example, when the keyword is the video name A, the corresponding network query information may be "A exclusive broadcast on application a", and For example, when the keyword is music B, the corresponding network query information may be "the application c exists in music B".
  • the above network query information is only an example, and does not represent the limitation of the network query information in the embodiments of the present application.
  • the online query information can be determined by the network platform and keywords.
  • the resource information represents the basic information of the resource, and may include information such as the title, introduction, type, classification, label, description, and comment of the resource.
  • the specific basic information may not be limited in the embodiments of the present application.
  • the above resources may include application resources, picture resources, text resources, video resources, and music resources. Specific resources may not be limited in the embodiments of the present application.
  • the electronic device can determine the resources that match the keywords and the network query information of the keywords according to the matching degree of the resource information of the resources and the keywords, and the matching degree of the resource information of the resources and the network query information of the keywords To get the target resource corresponding to the keyword.
  • the resource and resource information of the resource can be stored in the electronic device, and the electronic device can read the resource information of the resource to perform the above matching to obtain the target resource.
  • the resource and the resource information of the resource can also be stored in other devices, and the electronic device can obtain the resource information of the resource from the other device to perform the above matching to obtain the target resource.
  • a method of determining a resource matching the keyword and the network query information of the keyword may be used in the embodiment of the present application Not limited, for example, when the matching degree of the resource information of the resource and the keyword, and the matching degree of the resource information of the resource and the network query information are greater than the set matching degree, the network with the keyword and the keyword can be determined Query information matching resources.
  • the method of acquiring resources matching the keywords and the network query information of the keywords may not be limited, and may also be other methods. For example, you can also obtain resource information that matches the keyword, and then from the resource information that matches the keyword, obtain the resource information that matches the keyword's network query information, and determine the resource that matches the keyword's network query information. Resources corresponding to the information, thereby obtaining resources matching the keywords and the network query information of the keywords.
  • the target resource corresponding to the keyword since the target resource corresponding to the keyword is obtained, not only the resource information of the resource is matched with the keyword, but also the resource information of the resource is matched with the network query information of the keyword obtained from the network platform to match
  • the obtained target resource introduces the reference of the network query information, thereby improving the relevance of the keyword and the target resource, that is, obtaining the target resource with high relevance to the keyword.
  • Step S130 Generate resource recommendation information according to the target resource, and send the resource recommendation information to the user terminal.
  • the recommendation information after acquiring the target resource corresponding to the keyword, the recommendation information may be generated according to the target resource, and the generated resource recommendation information may be sent to the user terminal to recommend the target resource to the user terminal.
  • the resource recommendation information including at least the link of the target resource may be generated according to the target resource.
  • the link of the target resource is used by the user to obtain the target resource, that is, after the resource recommendation information is recommended to the user terminal, the user terminal enters the target resource page according to the link to obtain the target resource.
  • the resource recommendation information generated according to the target resource may also include an introduction text of the target resource, and the introduction text of the target resource may include the target resource The name, resource description, resource type, resource classification information, and resource label information.
  • the introduction text is used to introduce the target resource so that users can understand the target resource.
  • the resource recommendation method provided in the embodiment of the present application obtains target resources matching the network query information of the keywords and the keywords obtained from the network platform according to the keywords in the request sent by the user terminal, and then generates resource recommendation information according to the target resources. And send the resource recommendation information to the user terminal to complete the resource recommendation to the user.
  • the acquired target resources not only the resource information matches the keywords, but also the resource information matches the keyword's network query information, which improves the relevance of the keywords and the target resources, thereby making the resource recommendation more accurate.
  • the resource recommendation method may include:
  • Step S210 Acquire a search request sent by the user terminal, where the search request includes at least one keyword.
  • step S210 may refer to the content in the foregoing embodiment, and details are not described herein again.
  • Step S220 In response to the search request, obtain a first resource whose resource information matches the keyword from the resource library.
  • the first resource whose resource information matches the keyword may be acquired from the resource library.
  • the resource library is a database for storing resources, and the resource library may be stored in the above electronic device or other devices.
  • the resource library can also store resource-related information, for example, resource information of resources, etc.
  • the information specifically stored in the resource library may not be limited in the embodiments of the present application.
  • obtaining the first resource whose resource information matches the keyword from the resource library may include:
  • Step S221 Match the resource information of each resource in the resource library with the keyword to obtain a first degree of matching between the resource information of each resource and the keyword.
  • the resource information includes: a resource title At least one of information, resource introduction information, update description information, comment information, resource classification information, and resource label information.
  • resource information of each resource in the above resource library may be obtained.
  • the resource information may include at least one of resource title information, resource introduction information, update description information, comment information, resource classification information, and resource label information.
  • resource title information can be the text information composed of the resource title or name
  • the resource introduction information can be the text information introducing the resource
  • the update description information can be the text information used to explain the updated content after the resource update
  • Comment text on resources
  • resource classification information can represent resource category information, which can include multi-level classifications, such as first-level classification, second-level classification, etc .
  • resource label information can include resource labels.
  • the resource information of each resource in the above resource library can be matched with the keyword in the search request to obtain the first matching degree of the resource information of each resource and the keyword.
  • the resource information can be matched with the keywords to obtain a matching degree between the resource information and the keywords.
  • Step S222 Acquire the first resource whose first matching degree is greater than a first preset threshold from the resource library according to the first matching degree of the resource information of each resource and the keyword.
  • the first matching degree can be selected from the resource library according to the first matching degree of the resource information of each resource and the keyword
  • the first resource greater than the first preset threshold that is, the filtered first resource, the first matching degree of the resource information and the keyword is greater than the first preset threshold.
  • the first matching degree greater than the first preset threshold can be filtered out, and then the first matching degree greater than the first preset threshold can be obtained Corresponding resources to obtain the above-mentioned first resources.
  • the specific first preset threshold may not be limited in the embodiment of the present application, for example, the first preset threshold may be 80% to 90%, or 90% to 95%, depending on the actual situation and user needs. set up.
  • the first resource can be obtained, and the matching degree of the resource information of the first resource and the keyword is greater than the first preset threshold, that is, the first resource whose resource information matches the keyword is obtained.
  • Step S230 Obtain the network query information of the keyword from a network platform.
  • the network platform includes: at least one of an online social platform, an online search platform, an online public platform, and a knowledge service platform.
  • network query information matching keywords can be obtained from a network platform for screening resources.
  • the network platform may include an online social platform, an online search platform, an online public platform, and a knowledge service platform.
  • the network social platform is a network platform for users to socialize.
  • the web search platform is a web platform for users to search for content or information.
  • the online public platform provides information distribution services for enterprises or users, and can achieve interactions in the form of text, pictures, audio, video, location, and mixed text and picture messages.
  • the knowledge service platform is a platform that concentrates knowledge of various industries, and users can obtain relevant knowledge or submit relevant knowledge from the knowledge scope platform.
  • the specific network platform may not be limited in the embodiments of the present application.
  • obtaining network query information of keywords from a network platform may include:
  • Step S231 Obtain the first network query information matching the keyword from the network platform.
  • the first network query information matching the keyword can be obtained from the above-mentioned network platform through the keyword, so as to obtain the network query information of the keyword.
  • obtaining the first network query information matching the keyword from the network platform may include:
  • the second popularity value of the network platform to be crawled is greater than that of other network platforms in the plurality of network platforms
  • a second heat value, the second heat value includes: at least one of accessing heat value, evaluating heat value, and downloading heat value; using an information crawling tool, crawling the web platform according to the keyword, and obtaining the The first network query information with keyword matching.
  • the network platform to be obtained network query information can be determined from the above network platform.
  • the second heat value of each network platform in the plurality of network platforms may be obtained from, wherein the second heat value may include: accessing the heat value, evaluating the heat value, and downloading the heat value At least one.
  • the access heat value may be a heat value generated based on the user's visits to the network platform
  • the evaluation heat value may be a heat value generated based on the user's comments on the network platform
  • the download heat value may be based on the user's application on the network platform The heat value generated by the downloads of.
  • the second heat values of all network platforms may be sorted from high to low to obtain a ranking result of the second heat value.
  • the network platform corresponding to the preset number of second heat values can be obtained, that is, the determined second heat value of the network platform is greater than the second heat value of other network platforms .
  • the preset number of network platforms obtained above may be used as the network platform to be crawled, that is, the network platform to obtain network query information. It can be understood that, since the determined second hotness value of the network platform to be obtained the network query information is greater than the second hotness value of other network platforms, the credibility of the network query information acquired subsequently can be made higher.
  • an information crawling tool may be used to crawl the network platform to be crawled according to the keywords in the search request to obtain first network query information that matches the keywords.
  • the information crawling tool is a web crawler tool that realizes network data extraction.
  • Network data extraction refers to obtaining data from the Internet and converting the obtained unstructured data into structured data.
  • the first network query information matching the keywords and obtained from the above network platform can be obtained.
  • Step S232 Obtain the second network query information from the first network query information to obtain the network query information of the keyword.
  • the first popularity value of the second network query information is greater than that of other network query information.
  • Heat value, the other network query information is network query information other than the second network query information in the first network query information, and the first heat value includes at least: an evaluation heat value.
  • the second network query information may be filtered out from the first network query information to obtain the network query of the keyword information.
  • the first popularity value of each first network query information in all first network query information may be obtained.
  • the first heat value includes at least an evaluation heat value.
  • the specific first heat value may not be limited in the embodiments of the present application, and may also include other heat values, such as access heat values.
  • Sort the first popularity values of all the first network query information to obtain a sorting result.
  • the first network query information corresponding to the first target number of the first popularity value may be obtained to obtain the second network query information, that is, the determined second network query information
  • the first popularity value is greater than the first popularity value of other network query information, and the other network query information is all the first network query information except the second network query information.
  • the second network query information obtained above may be used as the network query information of the keyword to obtain subsequent network query information for matching resources. It can be understood that the network query information with the higher first popularity value is acquired as the network query information for matching resources. It can improve the credibility of keyword query information on the Internet for subsequent acquisition.
  • the second network query information may be filtered according to the time of the network query information. Therefore, acquiring the second network query information from the first network query information to obtain the keyword network query information may include: acquiring the second network query information from the first network query information, and the second network query information
  • the first heat value is greater than the first heat value of other network query information.
  • the other network query information is the network query information in the first network query information except the second network query information.
  • the first heat value includes at least: the evaluation heat value;
  • the second network query information within a preset time range in the second network query information is used as the keyword network query information.
  • the second network query information within a preset time range can be acquired according to the time stamp of the network query information as the network query information as a keyword.
  • the preset time range may be a time range within a preset time period before the current time, so that newer network query information may be obtained in order to improve the accuracy of subsequent matching resources.
  • the specific preset time range may not be limited in the embodiments of the present application.
  • Step S240 Acquire a second resource in the first resource whose resource information matches the network query information as a target resource.
  • the resource information of the first resource and the network query information can be matched to obtain the second resource that matches the resource information and the network query information.
  • obtaining the second resource in the first resource that matches the resource information with the network query information may include:
  • the acquired network query information there may be resources.
  • the resource present in the network query information is application a. Therefore, the existing resource can be obtained from the network query information. If the resource also exists in the first resource, it indicates that the resource information of the resource also matches the network query information, and the resource can be used as the target resource.
  • acquiring the second resource of the first resource that matches the resource information with the network query information may include:
  • obtaining the second resource that matches the above-mentioned resource information existing in the first resource with the network query information may also be a resource that matches the resource information existing in the network query information with each resource in the first resource.
  • the information is matched to obtain a second matching degree between the resource information present in the network query information and the resource information of each resource. According to all the second matching degrees, the second resources whose second matching degree is greater than the first preset threshold can be obtained from the first resources, that is, the second resources in which the resource information matches the network query information in the first resources are obtained.
  • the resource information in the network query information and the resource information of the resource in the first resource may be matched to obtain the resource information and the resource information in the network query information Matching resources, thereby obtaining a second resource.
  • the resource information since the resource information includes resource title information, resource introduction information, update description information, comment information, resource classification information, and resource tag information, etc., there may be various types of information in the existing resource information, for example, There may be resource title information and resource introduction information at the same time.
  • matching may be performed according to different information in the resource information.
  • obtaining the second degree of matching between the existing resource information and the resource information of each resource in the first resource may include:
  • each type of information in the existing resource information may be matched with each type of information in each resource in the first resource to obtain a third matching degree corresponding to each type of information.
  • different weights are set to improve the accuracy of the second matching degree between the existing resource information and the resource information of each resource in the first resource.
  • the specific preset weight may not be limited in the embodiments of the present application, and may be set according to actual conditions and needs.
  • the third matching degree corresponding to the resource title information is a1
  • the third matching degree corresponding to the resource introduction information is a2
  • the third matching degree corresponding to the update description information is a2
  • the third matching degree corresponding to the update description information is a3
  • the third matching degree corresponding to the comment information is a4
  • the third matching degree corresponding to the resource classification information is a5
  • the third matching degree corresponding to the resource tag information is a6, and the weights corresponding to the above resource information can be set to 0.4, 0.2, 0.1, 0.1, 0.1, and 0.1 respectively, then the third matching degree can be (0.4 * a1 + 0.2 * a2 + 0.1 * a3 + 0.1 * a4 + 0.1 * a5 + 0.1 * a6), so that the second matching degree between the existing resource information and the resource information of the first resource can be obtained.
  • the demand for the importance of different information can be satisfied, so as to obtain the target resource that meets the demand.
  • the above two implementation manners can also be combined to obtain the second resource.
  • the second implementation method can be used to acquire the second resource, which does not exist in the network query information
  • the latter implementation mode is used to obtain the second resource.
  • Step S250 Generate a recommended sentence of the target resource according to the network query information corresponding to the target resource and the keyword.
  • resource recommendation information can be generated according to the target resource to recommend the target resource to the user.
  • the recommended sentence of the target resource may be generated according to the network query information and the keyword corresponding to the target resource, so as to subsequently recommend the related recommended sentence to the user.
  • the recommended sentence is a sentence used to show the relevance of resources and keywords to the user.
  • the network query information corresponding to the target resource is the information obtained from the network platform corresponding to the above keyword.
  • the correlation of keywords has a better explanatory. Therefore, generating recommendation sentences based on network query information and keywords can make the resource recommendation information recommended to the user more convincing.
  • the sentence containing the keyword and the name of the target resource can be obtained from the network query information of the keyword, and the sentence containing the keyword and the name of the target resource is used as the recommended sentence of the target resource.
  • Step S260 Generate resource recommendation information according to the target resource and the recommendation sentence.
  • the resource recommendation information may be generated according to the target resource and the recommendation sentence.
  • the target resources correspond to the recommended sentences one-to-one.
  • the resource recommendation information including at least the link of the target resource and the recommended sentence can be generated according to the target resource and the recommended sentence, or the resource recommendation information including at least the target resource and the recommended sentence can be generated so that subsequent users can view the resource recommendation information Based on the recommended sentence, you can choose the target resource you need and increase the convincing power of the target resource.
  • step S260 may include:
  • Step S261 Sort the target resources according to a third heat value to obtain a sorting result, where the third heat value includes: downloading the heat value, evaluating the heat value, or accessing the heat value.
  • the target resources can be sorted according to the third heat value of the target resources, for example, the target resources are sorted in the order of the third heat value from high to low for subsequent generation
  • the user can see the target resources sorted by the third popularity value.
  • the third heating value may include: downloading the heating value, evaluating the heating value, or accessing the heating value.
  • the specific third heating value may not be limited in the embodiments of the present application.
  • Step S262 Generate resource recommendation information based on the sorting result and the recommendation sentence.
  • the resource recommendation information may be generated based on the sorting result and the recommendation sentence, that is, the content of the target resource in the generated resource recommendation information and its content
  • the sorting of the recommended sentences corresponds to the sorting result described above, so that the user can see the results sorted by the third popularity value.
  • the resource recommendation method may further include: acquiring the historically downloaded resources of the user; and marking the same resources in the sorting result as the historically downloaded resources.
  • the same resource in the sorting result as the historical downloaded resource can be marked according to the historical data of the resource downloaded by the user, that is, the resource downloaded by the user.
  • the resource recommendation information is generated according to the recommended sentence and the marked sorting result, so that when the user views the resource recommendation information generated according to the sorting result and the recommended sentence, the user learns the resources that have been downloaded.
  • the resource recommendation method may further include: acquiring the historical download amount of each target resource in the target resource; and removing the target resource according to the historical download amount of each target resource The target resource whose download volume in the history is lower than the preset download volume.
  • the historical download data of each target resource can be rooted to filter the target resources. Specifically, a target resource whose historical download volume is lower than the preset download volume may be obtained, and then the target resource whose historical download volume is lower than the preset download volume is removed from a plurality of target resources.
  • the preset download amount may not be limited in the embodiment of the present application, for example, it may be 100 times or 1000 times, and the specific value may be set according to requirements. Then, resource recommendation information is generated according to the target resource after removing the resource whose historical download volume is lower than the preset download volume, and the recommendation sentence, which can avoid recommending resources with low download volume to the user.
  • Step S270 Send the resource recommendation information to the user terminal.
  • the resource recommendation information generated according to the target resource and the recommended sentence may be sent to the user terminal for the user terminal to display the resource recommendation letter information.
  • the resource recommendation method may further include:
  • the resource recommendation information Store the correspondence between the resource recommendation information and the keyword; when a search request including the keyword is obtained within a preset time range, according to the correspondence, the resource recommendation corresponding to the keyword is obtained Information, and send the resource recommendation information to the user terminal.
  • the stored correspondence relationship can be used to obtain directly The resource recommendation information corresponding to the keyword, and send the resource recommendation information to the user terminal.
  • the specific preset time range may not be limited in the embodiments of the present application.
  • the preset time range may be within a day or a month, and the specific preset time range may be based on actual needs. set up. In this way, the calculation amount of the electronic device can be reduced, and the feedback time of resource recommendation information can be reduced.
  • the resource recommendation method provided in this embodiment of the present application obtains a target resource whose resource information matches the keyword and the network query information of the keyword from the resource library according to the keyword in the search request sent by the user terminal, and then corresponds to the target resource
  • the network query information and keywords are used to generate the recommended sentence of the target resource, and finally, the resource recommendation information is generated according to the target resource and the recommended sentence, and the resource recommendation information is sent to the user terminal.
  • the generated resource recommendation information includes recommended sentences generated based on network query information and keywords, which can increase the convincing power of the target resource recommended to the user.
  • the resource recommendation device 400 includes a request acquisition module 410, a request response module 420, and an information generation module 430.
  • the request obtaining module 410 is used to obtain the search request sent by the user terminal, the search request includes at least one keyword;
  • the request response module 420 is used to obtain the target corresponding to the keyword in response to the search request Resource, the resource information of the target resource matches the keyword and the network query information of the keyword, the network query information includes information obtained from a network platform that matches the keyword;
  • the information generation module 430 is used to generate resource recommendation information according to the target resource, and send the resource recommendation information to the user terminal.
  • the request response module 420 may include: a first resource acquisition unit 421, a network query information acquisition unit 422, and a second resource acquisition unit 423.
  • the first resource acquisition unit 421 is used to acquire the first resource whose resource information matches the keyword from the resource library;
  • the network query information acquisition unit 422 is used to acquire the network of the keyword from a network platform
  • the network platform includes: at least one of a network social platform, a network search platform, a network public platform, and a knowledge service platform;
  • the second resource obtaining unit 423 is configured to obtain resource information and The second resource matching the network query information is used as the target resource.
  • the first resource acquisition unit 421 includes: a matching degree acquisition subunit 4211 and a resource screening subunit 4212.
  • the matching degree obtaining subunit 4211 is used to match the resource information of each resource in the resource library with the keyword to obtain the first matching degree of the resource information of each resource and the keyword
  • the resource information includes: at least one of resource title information, resource introduction information, update description information, comment information, resource classification information, and resource label information;
  • the resource screening subunit 4212 is configured to The first matching degree of the resource information of the keyword and the keyword, and obtaining the first resource whose first matching degree is greater than a first preset threshold from the resource library.
  • the second resource acquisition unit 423 may be specifically configured to: acquire resources present in the network query information; acquire second resources identical to those present in the network query information from the first resources .
  • the second resource acquisition unit 423 may be specifically configured to: acquire resource information existing in the network query information; acquire the resource information existing and the resource information of each resource in the first resource A second matching degree; obtaining a second resource whose second matching degree is greater than a second preset threshold from the first resources.
  • the second resource acquiring unit 423 acquiring the second matching degree between the existing resource information and the resource information of each resource in the first resource may include: acquiring multiple types of information in the existing resource information and Multiple third matching degrees of multiple information in resource information of each resource in the first resource, multiple information in the existing resource information corresponds to multiple information in resource information of each resource ; Weighting and summing the plurality of third matching degrees according to preset weights to obtain a second matching degree of the existing resource information and the resource information of each resource in the first resource.
  • the network query information acquiring unit 422 may be specifically configured to: acquire the first network query information matching the keyword from the network platform; and acquire the second network query from the first network query information Information, the network query information of the keyword is obtained, the first popularity value of the second network query information is greater than the first popularity value of other network query information, and the other network query information is included in the first network query information
  • the first heat value includes at least: an evaluation heat value.
  • the network query information acquiring unit 422 acquires second network query information from the first network query information to obtain the network query information of the keyword, which may include: acquiring from the first network query information Second network query information, the first popularity value of the second network query information is greater than the first popularity value of other network query information, the other network query information is the first network query information except the second network
  • the first popularity value includes at least: an evaluation fever value; using the second network query information within a preset time range in the second network query information as the network query for the keyword information.
  • the network query information acquiring unit 422 acquiring the first network query information matching the keyword from the network platform may include: using an information crawling tool to crawl the network platform according to the keyword to obtain The first network query information matching the keyword.
  • the resource recommendation device 400 may further include: a network platform acquisition module.
  • the network platform obtaining module is used to obtain a preset number of network platforms from the plurality of network platforms as a network platform to be crawled, and the second heat value of the network platform to be crawled is greater than the plurality of networks Second heat values of other network platforms in the platform, the second heat values include: at least one of access heat values, evaluation heat values, and download heat values.
  • the information generation module 430 may include: a recommendation sentence generation unit 431 and a recommendation information generation unit 432.
  • the recommended sentence generating unit 431 is used to generate a recommended sentence of the target resource based on the network query information corresponding to the target resource and the keyword; the recommended information generating unit is used 432 to generate the recommended sentence based on the target resource and the recommended sentence Generate resource recommendation information.
  • the recommendation information generating unit 432 may be specifically configured to sort the target resources according to a third heat value to obtain a sorting result.
  • the third heat value includes: download heat value, evaluation heat value, or access heat value ; Generate resource recommendation information based on the sorting result and the recommended sentence.
  • the resource recommendation device 400 may further include: a historical resource acquisition module and a resource marking module.
  • the historical resource obtaining module is used to obtain the historical downloaded resources of the user; the resource marking module is used to mark the same resources in the sorting result as the historical downloaded resources.
  • the resource recommendation device 400 may further include: a download quantity acquisition module and a resource removal module.
  • the download amount obtaining module is used to obtain the historical download amount of each target resource in the target resource;
  • the resource removal module is used to remove the historical download amount of the target resource from the target resource according to the historical download amount of each target resource Set download target resources.
  • the resource recommendation device 400 may further include: a correspondence storage module and a recommendation information sending module.
  • the correspondence storage module is used to store the correspondence between the resource recommendation information and the keyword;
  • the recommendation information sending module is used to obtain a search request including the keyword within a preset time range, according to the For the correspondence, obtain resource recommendation information corresponding to the keyword, and send the resource recommendation information to the user terminal.
  • the coupling between the modules may be electrical, mechanical, or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above integrated modules may be implemented in the form of hardware or software function modules.
  • the solution provided by this application receives the search request sent by the user terminal, responds to the search request, obtains the target resource corresponding to the keyword in the search request, and finally generates resource recommendation information based on the target resource Send to user terminal. Since the resource information of the target resource matches the keyword and the network query information of the keyword, and the network query information includes the information matched with the keyword obtained from the network platform, the target resource obtained above is highly correlated with the keyword To improve the accuracy of resource recommendations.
  • FIG. 11 shows a structural block diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, a Bluetooth module 130, and one or more application programs, where one or more application programs may be stored in the memory 120 and be It is configured to be executed by one or more processors 110, and one or more programs are configured to perform the method as described in the foregoing method embodiments.
  • the processor 110 may include one or more processing cores.
  • the processor 110 connects various parts of the entire electronic device 100 by using various interfaces and lines, executes or executes instructions, programs, code sets or instruction sets stored in the memory 120, and calls data stored in the memory 120 to execute Various functions and processing data of the electronic device 100.
  • the processor 110 may use at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA field programmable gate array
  • PLA programmable logic array
  • the processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processing unit (Graphics Processing Unit, GPU), and a modem.
  • CPU mainly deals with operating system, user interface and application program, etc .
  • GPU is used for rendering and rendering of display content
  • modem is used for handling wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 110, and may be implemented by a communication chip alone.
  • the memory 120 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 120 may be used to store instructions, programs, codes, code sets, or instruction sets.
  • the memory 120 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , Instructions for implementing the following method embodiments.
  • the storage data area may also store data created by the terminal 100 in use (such as a phone book, audio and video data, and chat history data).
  • the Bluetooth module 130 is used to realize the Bluetooth connection between the electronic device and the two Bluetooth headsets, and the data interaction between the two Bluetooth headsets.
  • the number of the Bluetooth module 130 may be one or multiple integrated together , Not limited here. Specifically, it can communicate with Bluetooth devices via Bluetooth protocol 5.0 / 4.2 / 4.1 / 2.1 / 2.0, Bluetooth low energy technology (Bluetooh Low Energy, BLE), Bluetooth enhanced rate technology (Enhanced Data Rate, EDR) or Bluetooth basic rate (Base, Rate, BR) etc.
  • the basic circuit configuration is similar to the WiFi module, and can also be composed of a power amplifier, a wireless transceiver, a transceiver switch, a low-noise amplifier and an antenna.
  • the Bluetooth module 130 may use a first communication frequency band, where the first communication frequency band may be 2.4 GHz.
  • FIG. 12 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer readable medium 800 stores program codes, and the program codes can be called by a processor to execute the method described in the above method embodiments.
  • the computer-readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 800 has a storage space for the program code 810 that performs any of the method steps described above. These program codes can be read from or written into one or more computer program products.
  • the program code 810 may be compressed in an appropriate form, for example.

Abstract

Disclosed are a resource recommendation method and apparatus, an electronic device and a storage medium. The resource recommendation method comprises: acquiring a search request sent by a user terminal, wherein the search request comprises at least one keyword; in response to the search request, acquiring a target resource corresponding to the keyword, wherein resource information of the target resource matches the keyword and network query information of the keyword, and the network query information comprises information acquired from a network platform that matches the keyword; and generating resource recommendation information according to the target resource, and sending the resource recommendation information to the user terminal. This method can improve the accuracy of resource recommendation.

Description

资源推荐方法、装置、电子设备及存储介质Resource recommendation method, device, electronic equipment and storage medium 技术领域Technical field
本申请涉及互联网技术领域,更具体地,涉及一种资源推荐方法、装置、电子设备及存储介质。This application relates to the field of Internet technology, and more specifically, to a resource recommendation method, device, electronic device, and storage medium.
背景技术Background technique
随着互联网技术的快速发展,网络产品所能够提供的服务功能越来越多。网络产品在为用户提供服务时,可以提供如应用、图片、歌曲、视频等多种形式的资源的服务。通常提供资源的服务器会提供资源推荐的服务,但是目前的资源推荐的方法的准确性不足。With the rapid development of Internet technology, more and more service functions can be provided by network products. When network products provide services to users, they can provide services such as applications, pictures, songs, videos and other forms of resources. Usually the server that provides the resource will provide the resource recommendation service, but the accuracy of the current resource recommendation method is insufficient.
发明内容Summary of the invention
鉴于上述问题,本申请提出了一种资源推荐方法、装置、电子设备及计算机可读取存储介质,以提升资源推荐的准确性。In view of the above problems, the present application proposes a resource recommendation method, device, electronic device, and computer-readable storage medium to improve the accuracy of resource recommendation.
第一方面,本申请实施例提供了一种资源推荐方法,所述方法包括:获取用户终端发送的搜索请求,所述搜索请求包括至少一个关键词;响应所述搜索请求,获取所述关键词对应的目标资源,所述目标资源的资源信息与所述关键词以及所述关键词的网络查询信息匹配,所述网络查询信息包括从网络平台获取的与所述关键词匹配的信息;根据所述目标资源生成资源推荐信息,并将所述资源推荐信息发送至所述用户终端。In a first aspect, an embodiment of the present application provides a resource recommendation method. The method includes: acquiring a search request sent by a user terminal, where the search request includes at least one keyword; in response to the search request, acquiring the keyword Corresponding target resource, the resource information of the target resource matches the keyword and the network query information of the keyword, and the network query information includes information matching the keyword obtained from a network platform; The target resource generates resource recommendation information, and sends the resource recommendation information to the user terminal.
第二方面,本申请实施例提供了一种资源推荐装置,所述装置包括:请求获取模块、请求响应模块以及信息生成模块,其中,所述请求获取模块用于获取用户终端发送的搜索请求,所述搜索请求包括至少一个关键词;所述请求响应模块用于响应所述搜索请求,获取所述关键词对应的目标资源,所述目标资源的资源信息与所述关键词以及所述关键词的网络查询信息匹配,所述网络查询信息包括从网络平台获取的与所述关键词匹配的信息;所述信息生成模块用于根据所述目标资源生成资源推荐信息,并将所述资源推荐信息发送至所述用户终端。In a second aspect, an embodiment of the present application provides a resource recommendation apparatus. The apparatus includes a request acquisition module, a request response module, and an information generation module, where the request acquisition module is used to acquire a search request sent by a user terminal, The search request includes at least one keyword; the request response module is used to obtain a target resource corresponding to the keyword, resource information of the target resource, the keyword, and the keyword in response to the search request Matching network query information, the network query information includes information obtained from a network platform that matches the keyword; the information generation module is used to generate resource recommendation information based on the target resource, and the resource recommendation information Sent to the user terminal.
第三方面,本申请实施例提供了一种电子设备,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述第一方面提供的资源推荐方法。In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and Is configured to be executed by the one or more processors, and the one or more programs are configured to execute the resource recommendation method provided in the first aspect described above.
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述第一方面提供的资源推荐方法。According to a fourth aspect, an embodiment of the present application provides a computer-readable storage medium in which program code is stored, and the program code can be called by a processor to execute the resources provided in the first aspect Recommended method.
本申请提供的方案,通过接收用户终端发送的搜索请求,响应该搜索请求,获取搜索请求中关键词对应的目标资源,最后根据目标资源生成资源推荐信息,并将资源推荐信息发送至用户终端。由于目标资源的资源信 息与关键词以及关键词的网络查询信息匹配,且该网络查询信息包括从网络平台获取的与关键词匹配的信息,从而使上述获取的目标资源与关键词的关联性高,提升资源推荐的准确性。The solution provided by this application receives the search request sent by the user terminal, responds to the search request, obtains the target resource corresponding to the keyword in the search request, and finally generates resource recommendation information according to the target resource, and sends the resource recommendation information to the user terminal. Since the resource information of the target resource matches the keyword and the network query information of the keyword, and the network query information includes the information matched with the keyword obtained from the network platform, the target resource obtained above is highly correlated with the keyword To improve the accuracy of resource recommendations.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application For those skilled in the art, without paying any creative work, other drawings can be obtained based on these drawings.
图1示出了根据本申请一个实施例的应用场景示意图。FIG. 1 shows a schematic diagram of an application scenario according to an embodiment of the present application.
图2示出了根据本申请一个实施例的资源推荐方法流程图。FIG. 2 shows a flowchart of a resource recommendation method according to an embodiment of the present application.
图3示出了根据本申请另一个实施例的资源推荐方法流程图。FIG. 3 shows a flowchart of a resource recommendation method according to another embodiment of the present application.
图4示出了根据本申请实施例的资源推荐方法中步骤S220的流程图。FIG. 4 shows a flowchart of step S220 in the resource recommendation method according to an embodiment of the present application.
图5示出了根据本申请实施例的资源推荐方法中步骤S230的流程图。FIG. 5 shows a flowchart of step S230 in the resource recommendation method according to an embodiment of the present application.
图6示出了根据本申请实施例的资源推荐方法中步骤S260的流程图6 shows a flowchart of step S260 in the resource recommendation method according to an embodiment of the present application
图7示出了根据本申请一个实施例的资源推荐装置的框图。7 shows a block diagram of a resource recommendation apparatus according to an embodiment of the present application.
图8示出了根据本申请实施例的资源推荐装置中请求响应模块的框图。FIG. 8 shows a block diagram of a request response module in the resource recommendation device according to an embodiment of the present application.
图9示出了根据本申请实施例的资源推荐装置中第一资源获取单元的框图。9 shows a block diagram of a first resource acquisition unit in a resource recommendation device according to an embodiment of the present application.
图10示出了根据本申请实施例的资源推荐装置中信息生成模块的框图。10 shows a block diagram of an information generation module in a resource recommendation device according to an embodiment of the present application.
图11是本申请实施例的用于执行根据本申请实施例的资源推荐方法的电子设备的框图。11 is a block diagram of an electronic device for performing a resource recommendation method according to an embodiment of the present application.
图12是本申请实施例的用于保存或者携带实现根据本申请实施例的资源推荐方法的程序代码的存储单元。12 is a storage unit for storing or carrying program code for implementing the resource recommendation method according to an embodiment of the present application.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solution of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the drawings in the embodiments of the present application.
随着互联网技术的快速发展,网络产品的功能越来越丰富,网络产品所能够提供的服务也越来越多。网络产品在为用户提供服务时,可以提供各种资源的服务,如应用程序、图片、歌曲、视频等多种形式的网络资源等的在线或离线服务。With the rapid development of Internet technology, the functions of network products are becoming more and more abundant, and the services that network products can provide are also increasing. When providing services to users, network products can provide services of various resources, such as online or offline services of various forms of network resources such as applications, pictures, songs, and videos.
对于用户来说,网络资源服务器所提供的数据量过于庞大,要想从这海量数据中找到自己感兴趣的网络资源,会耗费很多时间和流量,因此,目前,很多提供资源的服务器会提供资源推荐的功能。通常,用户在需要获取想要的资源时,可以通过一些关键词进行搜索,提供资源的服务器可以根据关键词向用户终端推荐资源。但这种资源推荐的方法,通常需要精准的关键词进行匹配,在获取的关键词不准确时,会导致资源推荐的准确 性较低。For users, the amount of data provided by the network resource server is too large. To find the network resources of interest from this massive data will consume a lot of time and traffic. Therefore, at present, many servers that provide resources will provide resources. Recommended features. Generally, when a user needs to obtain a desired resource, they can search through some keywords, and the server that provides the resource can recommend the resource to the user terminal according to the keyword. However, this method of resource recommendation usually requires accurate keywords to match. When the obtained keywords are not accurate, the accuracy of resource recommendation will be low.
针对上述问题,发明人经过长时间的研究并提出了本申请实施例提供的资源推荐方法、装置、电子设备以及计算机可读取存储介质,通过获取关键词对应的目标资源,由于获取的目标资源的资源信息与关键词以及关键词的网络查询信息匹配,且网络查询信息包括从网络平台获取的与关键词匹配的信息,使关键词与目标资源的关联性高,从而提升资源推荐的准确性。In response to the above problems, the inventor has made a long-term research and proposed the resource recommendation method, device, electronic device, and computer-readable storage medium provided by the embodiments of the present application. By acquiring the target resources corresponding to the keywords, the acquired target resources The resource information matches the keyword and the network query information of the keyword, and the network query information includes information obtained from the network platform that matches the keyword, so that the keyword is highly related to the target resource, thereby improving the accuracy of resource recommendation .
下面对本申请实施例的资源推荐方法的应用场景进行介绍。The application scenarios of the resource recommendation method in the embodiments of the present application are introduced below.
请参见图1,示出了本申请实施例提供的资源推荐方法的应用场景的示意图,该应用场景包括交互系统10。该交互系统10包括:电子设备100以及用户终端200。其中,电子设备100与用户终端200之间通信连接,以实现数据或者指令的交互,用户终端200的数量为至少一个。Please refer to FIG. 1, which illustrates a schematic diagram of an application scenario of the resource recommendation method provided by an embodiment of the present application. The application scenario includes an interaction system 10. The interactive system 10 includes: an electronic device 100 and a user terminal 200. Among them, there is a communication connection between the electronic device 100 and the user terminal 200 to implement data or instruction interaction, and the number of the user terminal 200 is at least one.
在本申请实施例中,电子设备100用于提供或推荐资源等信息,电子设备100可以为服务器,服务器可以是云服务器,也可以是传统服务器,具体的服务器的类型在本申请实施例中不作为限定。用户终端200用于响应用户操作向服务器获取资源信息,用户终端200可以是智能手机、平板电脑、电子书等能够运行应用程序的设备,具体的用户终端的类型在本申请实施例中并不作为限定。In the embodiment of the present application, the electronic device 100 is used to provide or recommend resources and other information. The electronic device 100 may be a server, and the server may be a cloud server or a traditional server. The specific server type is not in this embodiment of the present application. As a limitation. The user terminal 200 is used to obtain resource information from the server in response to user operations. The user terminal 200 may be a device capable of running an application program such as a smart phone, tablet computer, e-book, etc. The specific type of user terminal is not used in the embodiment of the present application limited.
下面对本申请实施例的资源推荐方法进行详细介绍。The resource recommendation method of the embodiment of the present application is described in detail below.
请参阅图2,本申请实施例提供了一种资源推荐方法,可应用于电子设备,该资源推荐方法可以包括:Referring to FIG. 2, an embodiment of the present application provides a resource recommendation method, which can be applied to electronic devices. The resource recommendation method may include:
步骤S110:获取用户终端发送的搜索请求,所述搜索请求包括至少一个关键词。Step S110: Acquire a search request sent by the user terminal, where the search request includes at least one keyword.
在本申请实施例中,在用户需要获取需求的资源时,可以通过用户终端向电子设备发送搜索请求,以从电子设备获取资源,用户终端发送的搜索请求包括至少一个关键词。其中,关键词为用户通过用户终端提交的用于获取需求的资源的词,搜索请求中关键词的数量可以不作为限定,可以为一个,也可以为多个。用户终端获取关键词的方式,可以为用户通过用户终端的输入界面输入关键词,也可以为通过语音识别技术将用户通过麦克风输入的语音转换为关键词,用户终端获取关键词的具体方式在本申请实施例中并不作为限定。In the embodiment of the present application, when the user needs to obtain the required resource, the user terminal may send a search request to the electronic device to obtain the resource from the electronic device. The search request sent by the user terminal includes at least one keyword. Among them, the keywords are the words submitted by the user through the user terminal for obtaining the required resources. The number of keywords in the search request may not be limited, and may be one or more. The way for the user terminal to obtain keywords can be for the user to enter the keyword through the input interface of the user terminal, or for converting the voice input by the user through the microphone into a keyword through voice recognition technology. The application examples are not intended to be limiting.
对应的,电子设备可以接收到用户终端发送的包括至少一个关键词的搜索请求,从而可以获取到用户终端发送的用于获取资源的搜索请求。Correspondingly, the electronic device may receive the search request including at least one keyword sent by the user terminal, so that the search request sent by the user terminal for acquiring resources may be obtained.
步骤S120:响应所述搜索请求,获取所述关键词对应的目标资源,所述目标资源的资源信息与所述关键词以及所述关键词的网络查询信息匹配,所述网络查询信息包括从网络平台获取的与所述关键词匹配的信息。Step S120: In response to the search request, obtain a target resource corresponding to the keyword, the resource information of the target resource matches the keyword and the network query information of the keyword, and the network query information includes the slave network Information obtained by the platform that matches the keyword.
电子设备在获取到用户终端的搜索请求后,可以响应该搜索请求,以根据搜索请求获取相关资源,返回资源推荐信息至用户终端。After acquiring the search request of the user terminal, the electronic device may respond to the search request to obtain related resources according to the search request, and return resource recommendation information to the user terminal.
在本申请实施例中,电子设备根据用户终端发送的搜索请求,可以获 取搜索请求中关键词对应的目标资源。具体的,电子设备可以根据关键词,获取与关键词以及关键词的网络查询信息匹配的资源,得到关键词对应的目标资源。其中,关键词的网络查询信息为从网络平台获取的与关键词匹配的信息,例如,关键词为视频名称A时,其对应的网络查询信息可以为“A于应用a独家播出”,又例如,关键词为音乐B时,其对应的网络查询信息可以是“应用c存在音乐B”,当然,以上网络查询信息仅为举例,并不代表对本申请实施例中网络查询信息的限定,具体的网络查询信息可由网络平台以及关键词决定。资源信息表征资源的基本信息,可以包括资源的标题、介绍、类型、分类、标签、说明及评论等信息,当然,具体的基本信息可以在本申请实施例中不作为限定。上述资源可以包括应用资源、图片资源、文本资源、视频资源以及音乐资源,具体的资源在本申请实施例中可以不作为限定。In the embodiment of the present application, the electronic device may obtain the target resource corresponding to the keyword in the search request according to the search request sent by the user terminal. Specifically, the electronic device may obtain resources matching the keywords and the network query information of the keywords according to the keywords to obtain the target resources corresponding to the keywords. Among them, the network query information of the keyword is the information obtained from the network platform that matches the keyword. For example, when the keyword is the video name A, the corresponding network query information may be "A exclusive broadcast on application a", and For example, when the keyword is music B, the corresponding network query information may be "the application c exists in music B". Of course, the above network query information is only an example, and does not represent the limitation of the network query information in the embodiments of the present application. The online query information can be determined by the network platform and keywords. The resource information represents the basic information of the resource, and may include information such as the title, introduction, type, classification, label, description, and comment of the resource. Of course, the specific basic information may not be limited in the embodiments of the present application. The above resources may include application resources, picture resources, text resources, video resources, and music resources. Specific resources may not be limited in the embodiments of the present application.
作为一种方式,电子设备可以根据资源的资源信息与关键词的匹配度,以及资源的资源信息与关键词的网络查询信息的匹配度,确定与关键词以及关键词的网络查询信息匹配的资源,从而得到关键词对应的目标资源。其中,资源以及资源的资源信息可以存储于电子设备中,电子设备可以读取资源的资源信息进行上述匹配,以得到目标资源。当然,资源以及资源的资源信息也可以存储于其他设备中,电子设备可以从其他设备获取资源的资源信息进行上述匹配,以得到目标资源。具体根据资源的资源信息与关键词的匹配度,以及资源的资源信息与网络查询信息的匹配度,确定与关键词以及关键词的网络查询信息匹配的资源的方式,在本申请实施例中可以不作为限定,例如,可以在资源的资源信息与关键词的匹配度,以及资源的资源信息与网络查询信息的匹配度均大于设定的匹配度时,确定出与关键词以及关键词的网络查询信息匹配的资源。As a way, the electronic device can determine the resources that match the keywords and the network query information of the keywords according to the matching degree of the resource information of the resources and the keywords, and the matching degree of the resource information of the resources and the network query information of the keywords To get the target resource corresponding to the keyword. The resource and resource information of the resource can be stored in the electronic device, and the electronic device can read the resource information of the resource to perform the above matching to obtain the target resource. Of course, the resource and the resource information of the resource can also be stored in other devices, and the electronic device can obtain the resource information of the resource from the other device to perform the above matching to obtain the target resource. Specifically, according to the matching degree of the resource information of the resource and the keyword, and the matching degree of the resource information of the resource and the network query information, a method of determining a resource matching the keyword and the network query information of the keyword may be used in the embodiment of the present application Not limited, for example, when the matching degree of the resource information of the resource and the keyword, and the matching degree of the resource information of the resource and the network query information are greater than the set matching degree, the network with the keyword and the keyword can be determined Query information matching resources.
在本申请实施例中,获取与关键词以及关键词的网络查询信息匹配的资源的方式可以不作为限定,也可以为其他方式。例如,也可以获取与关键词匹配的资源信息后,再从与关键词匹配的资源信息中,获取与关键词的网络查询信息匹配的资源信息,确定出与关键词的网络查询信息匹配的资源信息所对应的资源,从而得到与关键词以及关键词的网络查询信息匹配的资源。In the embodiment of the present application, the method of acquiring resources matching the keywords and the network query information of the keywords may not be limited, and may also be other methods. For example, you can also obtain resource information that matches the keyword, and then from the resource information that matches the keyword, obtain the resource information that matches the keyword's network query information, and determine the resource that matches the keyword's network query information. Resources corresponding to the information, thereby obtaining resources matching the keywords and the network query information of the keywords.
在本申请实施例中,由于获取关键词对应的目标资源时,不仅将资源的资源信息与关键词匹配,还将资源的资源信息与从网络平台获取的关键词的网络查询信息匹配,使匹配得到的目标资源引入了网络查询信息的参考,从而使得关键词与目标资源的关联性提升,即得到了与关键词的关联性高的目标资源。In the embodiment of the present application, since the target resource corresponding to the keyword is obtained, not only the resource information of the resource is matched with the keyword, but also the resource information of the resource is matched with the network query information of the keyword obtained from the network platform to match The obtained target resource introduces the reference of the network query information, thereby improving the relevance of the keyword and the target resource, that is, obtaining the target resource with high relevance to the keyword.
步骤S130:根据所述目标资源生成资源推荐信息,并将所述资源推荐信息发送至所述用户终端。Step S130: Generate resource recommendation information according to the target resource, and send the resource recommendation information to the user terminal.
在本申请实施例中,在获取到关键词对应的目标资源后,可以根据目标资源生成推荐信息,并且将生成的资源推荐信息发送至上述用户终端, 以将目标资源推荐至上述用户终端。作为一种方式,可以根据目标资源生成至少包括目标资源的链接的资源推荐信息。其中,目标资源的链接用于用户获取目标资源,也就是说,用于在将上述资源推荐信息推荐至用户终端后,用户终端根据该链接进入目标资源的页面,以便获取目标资源。作为另一种方式,也可以根据目标资源生成至少包括目标资源的资源推荐信息,也就是说,在将上述资源推荐信息推荐至用户终端后,用户终端可以获取到该目标资源,实现将关键词对应的目标资源推荐至用户。当然,具体生成资源推荐信息的具体方式在本申请实施例中并不作为限定,例如,根据目标资源生成的资源推荐信息也还可以包括目标资源的介绍文本,目标资源的介绍文本可以包括目标资源的名称、资源介绍说明、资源类型、资源分类信息以及资源标签信息,介绍文本用于介绍目标资源,以便用户了解该目标资源。In the embodiment of the present application, after acquiring the target resource corresponding to the keyword, the recommendation information may be generated according to the target resource, and the generated resource recommendation information may be sent to the user terminal to recommend the target resource to the user terminal. As a way, the resource recommendation information including at least the link of the target resource may be generated according to the target resource. The link of the target resource is used by the user to obtain the target resource, that is, after the resource recommendation information is recommended to the user terminal, the user terminal enters the target resource page according to the link to obtain the target resource. As another way, it is also possible to generate resource recommendation information including at least the target resource according to the target resource, that is, after recommending the above resource recommendation information to the user terminal, the user terminal can obtain the target resource to realize the keyword The corresponding target resource is recommended to the user. Of course, the specific method for generating the resource recommendation information is not limited in the embodiments of the present application. For example, the resource recommendation information generated according to the target resource may also include an introduction text of the target resource, and the introduction text of the target resource may include the target resource The name, resource description, resource type, resource classification information, and resource label information. The introduction text is used to introduce the target resource so that users can understand the target resource.
本申请实施例提供的资源推荐方法,根据用户终端发送请求中的关键词,获取与关键词以及从网络平台获取的关键词的网络查询信息匹配的目标资源,然后根据目标资源生成资源推荐信息,并将资源推荐信息发送至用户终端,完成对用户的资源推荐。由于获取的目标资源,不仅其资源信息与关键词匹配,其资源信息还与关键词的网络查询信息匹配,使得关键词与目标资源的关联性提升,从而使资源推荐更加准确。The resource recommendation method provided in the embodiment of the present application obtains target resources matching the network query information of the keywords and the keywords obtained from the network platform according to the keywords in the request sent by the user terminal, and then generates resource recommendation information according to the target resources. And send the resource recommendation information to the user terminal to complete the resource recommendation to the user. As the acquired target resources, not only the resource information matches the keywords, but also the resource information matches the keyword's network query information, which improves the relevance of the keywords and the target resources, thereby making the resource recommendation more accurate.
请参阅图3,本申请另一个实施例提供了一种资源推荐方法,可应用于电子设备,该资源推荐方法可以包括:Referring to FIG. 3, another embodiment of the present application provides a resource recommendation method, which can be applied to electronic devices. The resource recommendation method may include:
步骤S210:获取用户终端发送的搜索请求,所述搜索请求包括至少一个关键词。Step S210: Acquire a search request sent by the user terminal, where the search request includes at least one keyword.
在本申请实施例中,步骤S210可以参阅上述实施例中的内容,在此不再赘述。In the embodiment of the present application, step S210 may refer to the content in the foregoing embodiment, and details are not described herein again.
步骤S220:响应所述搜索请求,从资源库中获取资源信息与所述关键词匹配的第一资源。Step S220: In response to the search request, obtain a first resource whose resource information matches the keyword from the resource library.
在本申请实施例中,在响应用户终端的搜索请求,获取关键词对应的目标资源时,可以从资源库中获取资源信息与关键词匹配的第一资源。其中,资源库为存储资源的数据库,资源库可以为存储于上述电子设备中,也可以存储其他设备中。资源库除存储资源外,还可以存储资源的相关信息,例如,资源的资源信息等,当然资源库中具体存储的信息在本申请实施例中可以不作为限定。In the embodiment of the present application, when acquiring the target resource corresponding to the keyword in response to the search request of the user terminal, the first resource whose resource information matches the keyword may be acquired from the resource library. Wherein, the resource library is a database for storing resources, and the resource library may be stored in the above electronic device or other devices. In addition to storing resources, the resource library can also store resource-related information, for example, resource information of resources, etc. Of course, the information specifically stored in the resource library may not be limited in the embodiments of the present application.
进一步的,请参见图4,从资源库中获取资源信息与关键词匹配的第一资源,可以包括:Further, referring to FIG. 4, obtaining the first resource whose resource information matches the keyword from the resource library may include:
步骤S221:将资源库中的每个资源的资源信息与所述关键词进行匹配,得到所述每个资源的资源信息与所述关键词的第一匹配度,所述资源信息包括:资源标题信息、资源介绍信息、更新说明信息、评论信息、资源分类信息以及资源标签信息中的至少一种。Step S221: Match the resource information of each resource in the resource library with the keyword to obtain a first degree of matching between the resource information of each resource and the keyword. The resource information includes: a resource title At least one of information, resource introduction information, update description information, comment information, resource classification information, and resource label information.
在本申请实施例中,可以获取上述资源库中的每个资源的资源信息。 其中,资源信息可以包括:资源标题信息、资源介绍信息、更新说明信息、评论信息、资源分类信息以及资源标签信息中的至少一种,当然,具体的资源信息在本申请实施例中可以不作为限定。上述资源标题信息可以为资源的标题或者名称构成的文字信息;资源介绍信息可以为介绍资源的文字信息;更新说明信息可以为资源更新后,用于说明更新内容的文字信息;评论信息可以为用户对资源的评论文字;资源分类信息可以表示资源的类别信息,可以包括多级分类,例如一级分类、二级分类等;资源标签信息可以包括资源的标签。In the embodiment of the present application, resource information of each resource in the above resource library may be obtained. The resource information may include at least one of resource title information, resource introduction information, update description information, comment information, resource classification information, and resource label information. Of course, specific resource information may not be used in this embodiment of the present application limited. The above resource title information can be the text information composed of the resource title or name; the resource introduction information can be the text information introducing the resource; the update description information can be the text information used to explain the updated content after the resource update; Comment text on resources; resource classification information can represent resource category information, which can include multi-level classifications, such as first-level classification, second-level classification, etc .; resource label information can include resource labels.
进一步的,可以将上述资源库中每个资源的资源信息,与搜索请求中的关键词进行匹配,得到每个资源的资源信息与关键词的第一匹配度。具体的,可以将资源信息与关键词进行文字匹配,从而得到资源信息与关键词的匹配度。Further, the resource information of each resource in the above resource library can be matched with the keyword in the search request to obtain the first matching degree of the resource information of each resource and the keyword. Specifically, the resource information can be matched with the keywords to obtain a matching degree between the resource information and the keywords.
步骤S222:根据所述每个资源的资源信息与所述关键词的第一匹配度,从所述资源库中获取所述第一匹配度大于第一预设阈值的第一资源。Step S222: Acquire the first resource whose first matching degree is greater than a first preset threshold from the resource library according to the first matching degree of the resource information of each resource and the keyword.
在得到资源库中每个资源的资源信息与关键词的第一匹配度之后,则可以根据每个资源的资源信息与关键词的第一匹配度,从资源库中,筛选出第一匹配度大于第一预设阈值的第一资源,即筛选出的第一资源,其资源信息与关键词的第一匹配度大于第一预设阈值。作为一种方式,可以根据每个资源的资源信息与关键词的第一匹配度,筛选出大于第一预设阈值的第一匹配度,然后获取大于第一预设阈值的第一匹配度所对应的资源,从而得到上述第一资源。上述具体的第一预设阈值在本申请实施例中可以不作为限定,例如第一预设阈值可以为80%~90%,也可以为90%~95%,具体可以根据实际情况及用户需求设定。After obtaining the first matching degree of the resource information of each resource in the resource library and the keyword, the first matching degree can be selected from the resource library according to the first matching degree of the resource information of each resource and the keyword The first resource greater than the first preset threshold, that is, the filtered first resource, the first matching degree of the resource information and the keyword is greater than the first preset threshold. As a way, according to the first matching degree of the resource information of each resource and the keyword, the first matching degree greater than the first preset threshold can be filtered out, and then the first matching degree greater than the first preset threshold can be obtained Corresponding resources to obtain the above-mentioned first resources. The specific first preset threshold may not be limited in the embodiment of the present application, for example, the first preset threshold may be 80% to 90%, or 90% to 95%, depending on the actual situation and user needs. set up.
从而,可以获取到上述第一资源,且第一资源的资源信息与关键词的匹配度大于第一预设阈值,即得到了资源信息与关键词匹配的第一资源。Therefore, the first resource can be obtained, and the matching degree of the resource information of the first resource and the keyword is greater than the first preset threshold, that is, the first resource whose resource information matches the keyword is obtained.
步骤S230:从网络平台获取所述关键词的网络查询信息,所述网络平台包括:网络社交平台、网络搜索平台、网络公众平台以及知识服务平台中的至少一种。Step S230: Obtain the network query information of the keyword from a network platform. The network platform includes: at least one of an online social platform, an online search platform, an online public platform, and a knowledge service platform.
在本申请实施例中,可以从网络平台获取与关键词匹配的网络查询信息,以用于对资源进行筛选。其中,网络平台可以包括网络社交平台、网络搜索平台、网络公众平台以及知识服务平台。网络社交平台为用于用户进行社交的网络平台。网络搜索平台为用户进行内容或信息搜索的网络平台。网络公众平台为企业或者用户提供信息下发服务,可以实现包含文字、图片、音频、视频、位置和图文混排消息等形式的交互。知识服务平台为集中各行业的知识的平台,用户可以从知识范围平台获取相关知识或者提交相关知识。当然,具体的网络平台在本申请实施例中可以不作为限定。In the embodiment of the present application, network query information matching keywords can be obtained from a network platform for screening resources. Among them, the network platform may include an online social platform, an online search platform, an online public platform, and a knowledge service platform. The network social platform is a network platform for users to socialize. The web search platform is a web platform for users to search for content or information. The online public platform provides information distribution services for enterprises or users, and can achieve interactions in the form of text, pictures, audio, video, location, and mixed text and picture messages. The knowledge service platform is a platform that concentrates knowledge of various industries, and users can obtain relevant knowledge or submit relevant knowledge from the knowledge scope platform. Of course, the specific network platform may not be limited in the embodiments of the present application.
在本申请实施例中,请参见图5,从网络平台获取关键词的网络查询信息,可以包括:In the embodiment of the present application, please refer to FIG. 5, obtaining network query information of keywords from a network platform may include:
步骤S231:从网络平台获取与所述关键词匹配的第一网络查询信息。Step S231: Obtain the first network query information matching the keyword from the network platform.
在本申请实施例中,可以通过关键词,从上述网络平台获取与关键词匹配的第一网络查询信息,以便获取关键词的网络查询信息。作为一种方式,从网络平台获取与关键词匹配的第一网络查询信息可以包括:In the embodiment of the present application, the first network query information matching the keyword can be obtained from the above-mentioned network platform through the keyword, so as to obtain the network query information of the keyword. As a way, obtaining the first network query information matching the keyword from the network platform may include:
从所述多个网络平台中获取预设个数的网络平台,作为待爬取的网络平台,所述待爬取的网络平台的第二热度值大于所述多个网络平台中其他网络平台的第二热度值,所述第二热度值包括:访问热度值、评价热度值以及下载热度值中的至少一种;利用信息爬取工具,根据所述关键词爬取网络平台,得到与所述关键词匹配的第一网络查询信息。Obtaining a preset number of network platforms from the plurality of network platforms as a network platform to be crawled, the second popularity value of the network platform to be crawled is greater than that of other network platforms in the plurality of network platforms A second heat value, the second heat value includes: at least one of accessing heat value, evaluating heat value, and downloading heat value; using an information crawling tool, crawling the web platform according to the keyword, and obtaining the The first network query information with keyword matching.
在本申请实施例中,可以从上述网络平台中,确定待获取网络查询信息的网络平台。在一种可选的实施方式中,可以从获取多个网络平台中每个网络平台的第二热度值,其中,第二热度值可以包括:访问热度值、评价热度值以及下载热度值中的至少一种。其中,访问热度值可以为根据用户访问网络平台的访问量生成的热度值,评价热度值可以为根据用户对网络平台的评论量生成的热度值,下载热度值为根据用户对网络平台的应用程序的下载量生成的热度值。在得到每个网络平台的第二热度值之后,可以对所有网络平台的第二热度值进行从高到低的排序,得到第二热度值的排序结果。根据第二热度值的排序结果,可以获取排名前预设个数的第二热度值对应的网络平台,也就是说,确定出的网络平台的第二热度值大于其他网络平台的第二热度值。可以将上述获取到的预设个数的网络平台,作为待爬取的网络平台,即待获取网络查询信息的网络平台。可以理解的是,由于确定的待获取网络查询信息的网络平台的第二热度值大于其他网络平台的第二热度值,可以使后续获取的网络查询信息的可信度较高。In the embodiment of the present application, the network platform to be obtained network query information can be determined from the above network platform. In an optional embodiment, the second heat value of each network platform in the plurality of network platforms may be obtained from, wherein the second heat value may include: accessing the heat value, evaluating the heat value, and downloading the heat value At least one. Among them, the access heat value may be a heat value generated based on the user's visits to the network platform, the evaluation heat value may be a heat value generated based on the user's comments on the network platform, and the download heat value may be based on the user's application on the network platform The heat value generated by the downloads of. After the second heat value of each network platform is obtained, the second heat values of all network platforms may be sorted from high to low to obtain a ranking result of the second heat value. According to the ranking result of the second heat value, the network platform corresponding to the preset number of second heat values can be obtained, that is, the determined second heat value of the network platform is greater than the second heat value of other network platforms . The preset number of network platforms obtained above may be used as the network platform to be crawled, that is, the network platform to obtain network query information. It can be understood that, since the determined second hotness value of the network platform to be obtained the network query information is greater than the second hotness value of other network platforms, the credibility of the network query information acquired subsequently can be made higher.
在得到待爬取的网络平台之后,可以利用信息爬取工具,根据上述搜索请求中的关键词爬取上述待爬取的网络平台,得到与上述关键词匹配的第一网络查询信息。其中,信息爬取工具是实现网络数据提取的网络爬虫工具,网络数据提取是指从网上获取数据,并将获取到的非结构化数据转化为结构化的数据。After obtaining the network platform to be crawled, an information crawling tool may be used to crawl the network platform to be crawled according to the keywords in the search request to obtain first network query information that matches the keywords. Among them, the information crawling tool is a web crawler tool that realizes network data extraction. Network data extraction refers to obtaining data from the Internet and converting the obtained unstructured data into structured data.
从而,可以得到从上述网络平台获取的与关键词匹配的第一网络查询信息。Thus, the first network query information matching the keywords and obtained from the above network platform can be obtained.
步骤S232:从所述第一网络查询信息中,获取第二网络查询信息,得到所述关键词的网络查询信息,所述第二网络查询信息的第一热度值大于其他网络查询信息的第一热度值,所述其他网络查询信息为所述第一网络查询信息中除所述第二网络查询信息以外的网络查询信息,所述第一热度值至少包括:评价热度值。Step S232: Obtain the second network query information from the first network query information to obtain the network query information of the keyword. The first popularity value of the second network query information is greater than that of other network query information. Heat value, the other network query information is network query information other than the second network query information in the first network query information, and the first heat value includes at least: an evaluation heat value.
在本申请实施例中,在从上述网络平台获取到与关键词匹配的第一网络查询信息之后,可以从第一网络查询信息中,筛选出第二网络查询信息,以得到关键词的网络查询信息。In the embodiment of the present application, after obtaining the first network query information matching the keyword from the above network platform, the second network query information may be filtered out from the first network query information to obtain the network query of the keyword information.
作为一种可选的方式,可以获取所有第一网络查询信息中每个第一网络查询信息的第一热度值。第一热度值至少包括:评价热度值,当然,具 体的第一热度值在本申请实施例中可以不作为限定,也还可以包括其他热度值,例如访问热度值等。将所有第一网络查询信息的第一热度值进行排序,得到排序结果。根据第一热度值的排序结果,可以获取排名前目标个数的第一热度值所对应的第一网络查询信息,得到第二网络查询信息,也就是说,确定出的第二网络查询信息的第一热度值,大于其他网络查询信息的第一热度值,其他网络查询信息为所有第一网络查询信息中除第二网络查询信息以外的网络查询信息。可以将上述获取到的第二网络查询信息,作为上述关键词的网络查询信息,即得到后续用于匹配资源的网络查询信息。可以理解的是,获取第一热度值较高的网络查询信息,作为用于匹配资源的网络查询信息。可以提升关键词的网络查询信息的可信度,以便后续获取。As an optional manner, the first popularity value of each first network query information in all first network query information may be obtained. The first heat value includes at least an evaluation heat value. Of course, the specific first heat value may not be limited in the embodiments of the present application, and may also include other heat values, such as access heat values. Sort the first popularity values of all the first network query information to obtain a sorting result. According to the sorting result of the first popularity value, the first network query information corresponding to the first target number of the first popularity value may be obtained to obtain the second network query information, that is, the determined second network query information The first popularity value is greater than the first popularity value of other network query information, and the other network query information is all the first network query information except the second network query information. The second network query information obtained above may be used as the network query information of the keyword to obtain subsequent network query information for matching resources. It can be understood that the network query information with the higher first popularity value is acquired as the network query information for matching resources. It can improve the credibility of keyword query information on the Internet for subsequent acquisition.
在本申请实施例中,可以在得到上述第二网络查询信息之后,还可以根据网络查询信息的时间,对第二网络查询信息进行筛选。因此,从第一网络查询信息中,获取第二网络查询信息,得到关键词的网络查询信息,可以包括:从第一网络查询信息中,获取第二网络查询信息,第二网络查询信息的第一热度值大于其他网络查询信息的第一热度值,其他网络查询信息为第一网络查询信息中除第二网络查询信息以外的网络查询信息,第一热度值至少包括:评价热度值;将第二网络查询信息中预设时间范围内的第二网络查询信息,作为关键词的网络查询信息。In the embodiment of the present application, after the second network query information is obtained, the second network query information may be filtered according to the time of the network query information. Therefore, acquiring the second network query information from the first network query information to obtain the keyword network query information may include: acquiring the second network query information from the first network query information, and the second network query information The first heat value is greater than the first heat value of other network query information. The other network query information is the network query information in the first network query information except the second network query information. The first heat value includes at least: the evaluation heat value; The second network query information within a preset time range in the second network query information is used as the keyword network query information.
可以理解的是,在得到上述的第二网络查询信息之后,可以根据网络查询信息的时间戳,获取在预设时间范围内的第二网络查询信息,作为关键词的网络查询信息。可选的,预设时间范围可以是当前时间前预设时间段内的时间范围,从而可以获取到较新的网络查询信息,以便提高后续匹配的资源的准确性。当然,具体的预设时间范围在本申请实施例中可以不作为限定。It can be understood that, after obtaining the above-mentioned second network query information, the second network query information within a preset time range can be acquired according to the time stamp of the network query information as the network query information as a keyword. Optionally, the preset time range may be a time range within a preset time period before the current time, so that newer network query information may be obtained in order to improve the accuracy of subsequent matching resources. Of course, the specific preset time range may not be limited in the embodiments of the present application.
在本申请实施例中,上述步骤S220与步骤S230的执行顺序在本申请实施例中,可以不作为限定。In the embodiment of the present application, the execution order of the above steps S220 and S230 is in the embodiment of the present application, and may not be limited.
步骤S240:获取所述第一资源中资源信息与所述网络查询信息匹配的第二资源,作为目标资源。Step S240: Acquire a second resource in the first resource whose resource information matches the network query information as a target resource.
在得到搜索请求中关键词的网络查询信息之后,则可以获取将第一资源的资源信息与网络查询信息进行匹配,得到资源信息与网络查询信息匹配的第二资源。After obtaining the network query information of the keywords in the search request, the resource information of the first resource and the network query information can be matched to obtain the second resource that matches the resource information and the network query information.
作为一种方式,获取第一资源中资源信息与网络查询信息匹配的第二资源,可以包括:As a way, obtaining the second resource in the first resource that matches the resource information with the network query information may include:
获取所述网络查询信息中存在的资源;从所述第一资源中获取与所述网络查询信息中存在的资源相同的第二资源。Acquiring resources present in the network query information; acquiring second resources identical to those present in the network query information from the first resources.
可以理解的是,在获取到的网络查询信息中,可能存在资源,例如,获取到的网络查询信息为“A于应用a独家播出”,则网络查询信息中存在的资源为应用a。因此,可以从网络查询信息中获取存在的资源,如果第 一资源中同时也存在该资源,则表示该资源的资源信息与网络查询信息也匹配,可以将该资源作为目标资源。可选的,可以判断第一资源中是否存在网络查询信息中存在的资源,如果存在网络查询信息中存在的资源,则得到第二资源。在将所有网络查询信息中存在的资源,与第一资源进行上述比对之后,则可以得到所有的第二资源。It can be understood that, in the acquired network query information, there may be resources. For example, if the acquired network query information is “A exclusively broadcasted by application a”, then the resource present in the network query information is application a. Therefore, the existing resource can be obtained from the network query information. If the resource also exists in the first resource, it indicates that the resource information of the resource also matches the network query information, and the resource can be used as the target resource. Optionally, it can be judged whether the resource present in the network query information exists in the first resource, and if the resource present in the network query information exists, the second resource is obtained. After comparing all the resources present in the network query information with the first resources, all the second resources can be obtained.
作为另一种方式,获取第一资源中资源信息与网络查询信息匹配的第二资源,可以包括:As another way, acquiring the second resource of the first resource that matches the resource information with the network query information may include:
获取所述网络查询信息中存在的资源信息;获取所述存在的资源信息与所述第一资源中每个资源的资源信息的第二匹配度;从所述第一资源中获取所述第二匹配度大于第二预设阈值的第二资源。Acquiring resource information existing in the network query information; acquiring a second degree of matching between the existing resource information and resource information of each resource in the first resource; acquiring the second from the first resource The second resource whose matching degree is greater than the second preset threshold.
在本申请实施例中,获取第一资源中上述存在的资源信息与网络查询信息匹配的第二资源,也可以是将网络查询信息中存在的资源信息,与第一资源中每个资源的资源信息进行匹配,得到网络查询信息中存在的资源信息与每个资源的资源信息的第二匹配度。根据所有第二匹配度,从第一资源中可以获取第二匹配度大于第一预设阈值的第二资源,即得到第一资源中资源信息与网络查询信息匹配的第二资源。可以理解的是,网络查询信息中可能存在资源信息,因此,可以将网络查询信息中的资源信息与第一资源中的资源的资源信息进行匹配,以得到资源信息与网络查询信息中的资源信息匹配的资源,从而得到第二资源。In the embodiment of the present application, obtaining the second resource that matches the above-mentioned resource information existing in the first resource with the network query information may also be a resource that matches the resource information existing in the network query information with each resource in the first resource The information is matched to obtain a second matching degree between the resource information present in the network query information and the resource information of each resource. According to all the second matching degrees, the second resources whose second matching degree is greater than the first preset threshold can be obtained from the first resources, that is, the second resources in which the resource information matches the network query information in the first resources are obtained. It can be understood that there may be resource information in the network query information, therefore, the resource information in the network query information and the resource information of the resource in the first resource may be matched to obtain the resource information and the resource information in the network query information Matching resources, thereby obtaining a second resource.
在上述实施方式中,由于资源信息包括资源标题信息、资源介绍信息、更新说明信息、评论信息、资源分类信息以及资源标签信息等,因此上述存在的资源信息中,可能存在多种信息,例如,可能同时存在资源标题信息和资源介绍信息等。在获取存在的资源信息与每个资源的资源信息的匹配度时,可以根据资源信息中不同的信息进行匹配。作为一种方式,获取所述存在的资源信息与所述第一资源中每个资源的资源信息的第二匹配度,可以包括:In the above embodiment, since the resource information includes resource title information, resource introduction information, update description information, comment information, resource classification information, and resource tag information, etc., there may be various types of information in the existing resource information, for example, There may be resource title information and resource introduction information at the same time. When obtaining the matching degree between the existing resource information and the resource information of each resource, matching may be performed according to different information in the resource information. As a way, obtaining the second degree of matching between the existing resource information and the resource information of each resource in the first resource may include:
获取所述存在的资源信息中多种信息与所述第一资源中每个资源的资源信息中多种信息的多个第三匹配度,所述存在的资源信息中多种信息与所述每个资源的资源信息中多种信息一一对应;根据预设权重,对所述多个第三匹配度进行加权求和,得到所述存在的资源信息与所述第一资源中每个资源的资源信息的第二匹配度。Acquiring a plurality of third matching degrees between the plurality of types of information in the existing resource information and the plurality of types of information in the resource information of each resource in the first resource, the plurality of information in the existing resource information and the There is a one-to-one correspondence between various information in the resource information of each resource; according to preset weights, the multiple third matching degrees are weighted and summed to obtain the existing resource information and each resource in the first resource The second matching degree of resource information.
可以理解的是,可以将上述存在的资源信息中的每种信息与第一资源中每个资源的每种信息进行匹配,得到每种信息对应的第三匹配度。根据不同的信息的重要性,设置不同的权重,以提升存在的资源信息与第一资源中每个资源的资源信息的第二匹配度的准确性。具体的预设权重在本申请实施例中可以不作为限定,可以根据实际情况和需求进行设定。例如,在资源信息包括资源标题信息、资源介绍信息、更新说明信息、评论信息、资源分类信息以及资源标签信息时,资源标题信息对应的第三匹配度为a1,资源介绍信息对应的第三匹配度为a2,更新说明信息对应的第三匹配度为 a2,更新说明信息对应的第三匹配度为a3,评论信息对应的第三匹配度为a4,资源分类信息对应的第三匹配度为a5,资源标签信息对应的第三匹配度为a6,可设置上述的资源信息对应的权重分别为0.4、0.2、0.1、0.1、0.1以及0.1,则第三匹配度可以为(0.4*a1+0.2*a2+0.1*a3+0.1*a4+0.1*a5+0.1*a6),从而可以得到存在的资源信息与第一资源中资源的资源信息的第二匹配度。It can be understood that, each type of information in the existing resource information may be matched with each type of information in each resource in the first resource to obtain a third matching degree corresponding to each type of information. According to the importance of different information, different weights are set to improve the accuracy of the second matching degree between the existing resource information and the resource information of each resource in the first resource. The specific preset weight may not be limited in the embodiments of the present application, and may be set according to actual conditions and needs. For example, when the resource information includes resource title information, resource introduction information, update description information, comment information, resource classification information, and resource label information, the third matching degree corresponding to the resource title information is a1, and the third matching corresponding to the resource introduction information The degree is a2, the third matching degree corresponding to the update description information is a2, the third matching degree corresponding to the update description information is a3, the third matching degree corresponding to the comment information is a4, and the third matching degree corresponding to the resource classification information is a5 , The third matching degree corresponding to the resource tag information is a6, and the weights corresponding to the above resource information can be set to 0.4, 0.2, 0.1, 0.1, 0.1, and 0.1 respectively, then the third matching degree can be (0.4 * a1 + 0.2 * a2 + 0.1 * a3 + 0.1 * a4 + 0.1 * a5 + 0.1 * a6), so that the second matching degree between the existing resource information and the resource information of the first resource can be obtained.
通过上述设置不同信息对应的第三匹配度的权重,获取第二匹配度的方式,可以满足对于不同信息的重要性的需求,以便得到满足需求的目标资源。By setting the weight of the third matching degree corresponding to different information and obtaining the second matching degree, the demand for the importance of different information can be satisfied, so as to obtain the target resource that meets the demand.
在本申请实施例中,上述两种实施方式也可以结合获取第二资源,例如,可以在网络查询信息中存在资源时,采用前一种实施方式获取第二资源,在网络查询信息中不存在资源时,采用后一种实施方式获取第二资源。In the embodiment of the present application, the above two implementation manners can also be combined to obtain the second resource. For example, when the resource exists in the network query information, the second implementation method can be used to acquire the second resource, which does not exist in the network query information In the case of resources, the latter implementation mode is used to obtain the second resource.
步骤S250:根据所述目标资源对应的网络查询信息以及所述关键词,生成所述目标资源的推荐语句。Step S250: Generate a recommended sentence of the target resource according to the network query information corresponding to the target resource and the keyword.
在根据搜索请求的关键词,获取到目标资源后,可以根据目标资源生成资源推荐信息,以将目标资源推荐至用户。After acquiring the target resource according to the keywords of the search request, resource recommendation information can be generated according to the target resource to recommend the target resource to the user.
在本申请实施例中,可以根据目标资源对应的网络查询信息以及关键词,生成目标资源的推荐语句,以便后续将相关推荐语句推荐至用户。其中,推荐语句为用于向用户展示资源与关键词的相关性的语句,可以理解的,目标资源对应的网络查询信息,为上述关键词对应的从网络平台获取的信息,其对于目标资源与关键词的关联有较好的解释性。因此根据网络查询信息以及关键词生成推荐语句,可以使推荐至用户的资源推荐信息有较好的信服力。作为一种方式,可以从关键词的网络查询信息中,获取包含关键词以及目标资源的名称的语句,将包含关键词以及目标资源的名称的语句作为目标资源的推荐语句。作为另一种方式,可以从关键词的网络查询信息中,获取第一热度值最高的网络查询信息,然后获取第一热度值最高的网络查询信息中的语句,最后利用语义生成规则,根据获取的语句以及关键词,生成目标资源的推荐语句。In the embodiment of the present application, the recommended sentence of the target resource may be generated according to the network query information and the keyword corresponding to the target resource, so as to subsequently recommend the related recommended sentence to the user. Among them, the recommended sentence is a sentence used to show the relevance of resources and keywords to the user. Understandably, the network query information corresponding to the target resource is the information obtained from the network platform corresponding to the above keyword. The correlation of keywords has a better explanatory. Therefore, generating recommendation sentences based on network query information and keywords can make the resource recommendation information recommended to the user more convincing. As a way, the sentence containing the keyword and the name of the target resource can be obtained from the network query information of the keyword, and the sentence containing the keyword and the name of the target resource is used as the recommended sentence of the target resource. As another way, you can obtain the web query information with the highest first popularity value from the web query information of keywords, and then obtain the sentences in the web query information with the highest first popularity value, and finally use semantic generation rules to Words and keywords to generate recommended sentences for target resources.
步骤S260:根据所述目标资源以及所述推荐语句,生成资源推荐信息。Step S260: Generate resource recommendation information according to the target resource and the recommendation sentence.
在本申请实施例中,在根据目标资源的网络查询信息以及关键词,生成推荐语句之后,则可以根据目标资源以及推荐语句,生成资源推荐信息。在目标资源为多个时,则推荐语句也为多个,并且目标资源与推荐语句一一对应。可以理解的,可以根据目标资源以及推荐语句,生成至少包括目标资源的链接以及推荐语句的资源推荐信息,或者生成至少包括目标资源以及推荐语句的资源推荐信息,以使后续用户察看资源推荐信息时,可以根据推荐语句,选择需求的目标资源,增加目标资源的信服力。In the embodiment of the present application, after the recommendation sentence is generated according to the network query information and keywords of the target resource, the resource recommendation information may be generated according to the target resource and the recommendation sentence. When there are multiple target resources, there are also multiple recommended sentences, and the target resources correspond to the recommended sentences one-to-one. Understandably, the resource recommendation information including at least the link of the target resource and the recommended sentence can be generated according to the target resource and the recommended sentence, or the resource recommendation information including at least the target resource and the recommended sentence can be generated so that subsequent users can view the resource recommendation information Based on the recommended sentence, you can choose the target resource you need and increase the convincing power of the target resource.
在本申请实施例中,在根据目标资源以及推荐语句,生成资源推荐信息时,还可以对目标资源进行相应整理后,生成资源推荐信息。因此,请参见图6,步骤S260可以包括:In the embodiment of the present application, when the resource recommendation information is generated according to the target resource and the recommended sentence, the target resource may also be sorted accordingly to generate the resource recommendation information. Therefore, referring to FIG. 6, step S260 may include:
步骤S261:将所述目标资源根据第三热度值进行排序,得到排序结果,所述第三热度值包括:下载热度值、评价热度值、或者访问热度值。Step S261: Sort the target resources according to a third heat value to obtain a sorting result, where the third heat value includes: downloading the heat value, evaluating the heat value, or accessing the heat value.
可以理解的,在目标资源为多个时,可以根据目标资源的第三热度值,对目标资源进行排序,例如以第三热度值从高到低的顺序,对目标资源进行排序,以便后续生成的资源推荐信息中,用户可以察看到以第三热度值进行排序的目标资源。其中,第三热度值可以包括:下载热度值、评价热度值、或者访问热度值,当然具体的第三热度值在本申请实施例中可以不作为限定。It is understandable that when there are multiple target resources, the target resources can be sorted according to the third heat value of the target resources, for example, the target resources are sorted in the order of the third heat value from high to low for subsequent generation In the resource recommendation information of the user, the user can see the target resources sorted by the third popularity value. The third heating value may include: downloading the heating value, evaluating the heating value, or accessing the heating value. Of course, the specific third heating value may not be limited in the embodiments of the present application.
步骤S262:基于所述排序结果以及所述推荐语句,生成资源推荐信息。Step S262: Generate resource recommendation information based on the sorting result and the recommendation sentence.
在本申请实施例中,在得到目标资源根据第三热度值排序后的排序结果之后,则可以基于排序结果以及推荐语句,生成资源推荐信息,即生成的资源推荐信息中目标资源的内容及其推荐语句的排序,与上述排序结果对应,以便用户可以察看到以第三热度值进行排序后的结果。In the embodiment of the present application, after obtaining the sorting result of the target resources sorted according to the third popularity value, the resource recommendation information may be generated based on the sorting result and the recommendation sentence, that is, the content of the target resource in the generated resource recommendation information and its content The sorting of the recommended sentences corresponds to the sorting result described above, so that the user can see the results sorted by the third popularity value.
在本申请实施例中,在基于排序结果以及推荐语句,生成资源推荐信息时,还可以在得到排序结果后,对相关目标资源进行标记。因此,该资源推荐方法还可以包括:获取所述用户的历史下载的资源;将所述排序结果中与所述历史下载的资源中相同的资源进行标记。In the embodiment of the present application, when the resource recommendation information is generated based on the sorting result and the recommended sentence, the relevant target resource may be marked after the sorting result is obtained. Therefore, the resource recommendation method may further include: acquiring the historically downloaded resources of the user; and marking the same resources in the sorting result as the historically downloaded resources.
可以理解的是,在上述排序结果中,可以根据用户下载资源的历史数据,对排序结果中与历史下载的资源中相同的资源进行标记,即对用户下载过的资源进行标记。在对排序结果进行上述标记之后,再根据推荐语句以及标记后的排序结果,生成资源推荐信息,以便用户在察看根据排序结果以及推荐语句生成的资源推荐信息时,了解到其曾经下载的资源。It can be understood that, in the above sorting result, the same resource in the sorting result as the historical downloaded resource can be marked according to the historical data of the resource downloaded by the user, that is, the resource downloaded by the user. After marking the sorting result as described above, the resource recommendation information is generated according to the recommended sentence and the marked sorting result, so that when the user views the resource recommendation information generated according to the sorting result and the recommended sentence, the user learns the resources that have been downloaded.
在本申请实施例中,在上述根据目标资源以及推荐语句,生成资源推荐信息之前,还可以对获取的关键词对应的目标资源进行筛选。因此,在根据生成资源推荐信息之前,该资源推荐方法还可以包括:获取所述目标资源中每个目标资源的历史下载量;根据所述每个目标资源的历史下载量,去除所述目标资源中历史下载量低于预设下载量的目标资源。In the embodiment of the present application, before the resource recommendation information is generated according to the target resource and the recommended sentence, the target resource corresponding to the acquired keyword may also be filtered. Therefore, before generating resource recommendation information, the resource recommendation method may further include: acquiring the historical download amount of each target resource in the target resource; and removing the target resource according to the historical download amount of each target resource The target resource whose download volume in the history is lower than the preset download volume.
可以理解的,在目标资源为多个时,可以根获取每个目标资源的历史下载数据,对目标资源进行筛选。具体可以获取历史下载量低于预设下载量的目标资源,然后从多个目标资源中,去除获取的历史下载量低于预设下载量的目标资源。其中,预设下载量在本申请实施例中可以不作为限定,例如,可以是100次,也可以是1000次,具体数值可以根据需求而设定。然后再根据去除历史下载量低于预设下载量的资源后的目标资源,以及推荐语句,生成资源推荐信息,可以避免向用户推荐下载量低的资源。It is understandable that when there are multiple target resources, the historical download data of each target resource can be rooted to filter the target resources. Specifically, a target resource whose historical download volume is lower than the preset download volume may be obtained, and then the target resource whose historical download volume is lower than the preset download volume is removed from a plurality of target resources. The preset download amount may not be limited in the embodiment of the present application, for example, it may be 100 times or 1000 times, and the specific value may be set according to requirements. Then, resource recommendation information is generated according to the target resource after removing the resource whose historical download volume is lower than the preset download volume, and the recommendation sentence, which can avoid recommending resources with low download volume to the user.
步骤S270:将所述资源推荐信息发送至所述用户终端。Step S270: Send the resource recommendation information to the user terminal.
在生成资源推荐信息之后,则可以将上述根据目标资源以及推荐语句生成的资源推荐信息,发送至用户终端,以用于用户终端对资源推荐信信息进行展示。After the resource recommendation information is generated, the resource recommendation information generated according to the target resource and the recommended sentence may be sent to the user terminal for the user terminal to display the resource recommendation letter information.
在本申请实施例中,还可以对上述生成的资源推荐信息与关键词的对 应关系进行存储,以便后续的使用。因此,该资源推荐方法还可以包括:In the embodiment of the present application, the correspondence relationship between the resource recommendation information and the keywords generated above may also be stored for subsequent use. Therefore, the resource recommendation method may further include:
将所述资源推荐信息与所述关键词的对应关系进行存储;在预设时间范围内获取到包括所述关键词的搜索请求时,根据所述对应关系,获取所述关键词对应的资源推荐信息,并将所述资源推荐信息发送至用户终端。Store the correspondence between the resource recommendation information and the keyword; when a search request including the keyword is obtained within a preset time range, according to the correspondence, the resource recommendation corresponding to the keyword is obtained Information, and send the resource recommendation information to the user terminal.
可以理解的是,在将上述资源推荐信息与关键词的对应关系进行存储之后,可以在后续预设时间范围内接收到包括相同的关键词的搜索请求时,利用存储的该对应关系,直接获取关键词对应的资源推荐信息,并将资源推荐信息发送至用户终端。其中,具体的预设时间范围在本申请实施例中可以不作为限定,例如,预设时间范围可以是后续一天内,也可以是后续一个月内,具体的预设时间范围可以根据实际需求而设定。通过上述方式,可以降低电子设备的运算量,减少资源推荐信息的反馈时间。It can be understood that, after the correspondence relationship between the above resource recommendation information and keywords is stored, when a search request including the same keyword is received within a subsequent preset time range, the stored correspondence relationship can be used to obtain directly The resource recommendation information corresponding to the keyword, and send the resource recommendation information to the user terminal. The specific preset time range may not be limited in the embodiments of the present application. For example, the preset time range may be within a day or a month, and the specific preset time range may be based on actual needs. set up. In this way, the calculation amount of the electronic device can be reduced, and the feedback time of resource recommendation information can be reduced.
本申请实施例提供的资源推荐方法,通过根据用户终端发送的搜索请求中的关键词,从资源库中获取资源信息与关键词以及关键词的网络查询信息匹配的目标资源,然后根据目标资源对应的网络查询信息以及关键词,生成目标资源的推荐语句,最后根据目标资源以及推荐语句,生成资源推荐信息,并将资源推荐信息发送至用户终端。由于获取的目标资源,不仅其资源信息与关键词匹配,其资源信息还与关键词的网络查询信息匹配,使得关键词与目标资源的关联性提升,从而使资源推荐更加准确。另外,生成的资源推荐信息中包括有根据网络查询信息以及关键词生成的推荐语句,可以增加推荐至用户的目标资源的信服力。The resource recommendation method provided in this embodiment of the present application obtains a target resource whose resource information matches the keyword and the network query information of the keyword from the resource library according to the keyword in the search request sent by the user terminal, and then corresponds to the target resource The network query information and keywords are used to generate the recommended sentence of the target resource, and finally, the resource recommendation information is generated according to the target resource and the recommended sentence, and the resource recommendation information is sent to the user terminal. As the acquired target resources, not only the resource information matches the keywords, but also the resource information matches the keyword's network query information, which improves the relevance of the keywords and the target resources, thereby making the resource recommendation more accurate. In addition, the generated resource recommendation information includes recommended sentences generated based on network query information and keywords, which can increase the convincing power of the target resource recommended to the user.
请参阅图7,其示出了本申请实施例提供的一种资源推荐装置的结构框图,所述资源推荐装置400包括:请求获取模块410、请求响应模块420以及信息生成模块430。其中,所述请求获取模块410用于获取用户终端发送的搜索请求,所述搜索请求包括至少一个关键词;所述请求响应模块420用于响应所述搜索请求,获取所述关键词对应的目标资源,所述目标资源的资源信息与所述关键词以及所述关键词的网络查询信息匹配,所述网络查询信息包括从网络平台获取的与所述关键词匹配的信息;所述信息生成模块430用于根据所述目标资源生成资源推荐信息,并将所述资源推荐信息发送至所述用户终端。Please refer to FIG. 7, which shows a structural block diagram of a resource recommendation device provided by an embodiment of the present application. The resource recommendation device 400 includes a request acquisition module 410, a request response module 420, and an information generation module 430. Wherein, the request obtaining module 410 is used to obtain the search request sent by the user terminal, the search request includes at least one keyword; the request response module 420 is used to obtain the target corresponding to the keyword in response to the search request Resource, the resource information of the target resource matches the keyword and the network query information of the keyword, the network query information includes information obtained from a network platform that matches the keyword; the information generation module 430 is used to generate resource recommendation information according to the target resource, and send the resource recommendation information to the user terminal.
在本申请实施例中,请参见图8,请求响应模块420可以包括:第一资源获取单元421、网络查询信息获取单元422以及第二资源获取单元423。其中,所述第一资源获取单元421用于从资源库中获取资源信息与所述关键词匹配的第一资源;所述网络查询信息获取单元422用于从网络平台获取所述关键词的网络查询信息,所述网络平台包括:网络社交平台、网络搜索平台、网络公众平台以及知识服务平台中的至少一种;所述第二资源获取单元423用于获取所述第一资源中资源信息与所述网络查询信息匹配的第二资源,作为目标资源。In an embodiment of the present application, referring to FIG. 8, the request response module 420 may include: a first resource acquisition unit 421, a network query information acquisition unit 422, and a second resource acquisition unit 423. The first resource acquisition unit 421 is used to acquire the first resource whose resource information matches the keyword from the resource library; the network query information acquisition unit 422 is used to acquire the network of the keyword from a network platform For querying information, the network platform includes: at least one of a network social platform, a network search platform, a network public platform, and a knowledge service platform; the second resource obtaining unit 423 is configured to obtain resource information and The second resource matching the network query information is used as the target resource.
在本申请实施例中,请参见图9,所述第一资源获取单元421包括:匹配度获取子单元4211以及资源筛选子单元4212。其中,所述匹配度获 取子单元4211用于将资源库中的每个资源的资源信息与所述关键词进行匹配,得到所述每个资源的资源信息与所述关键词的第一匹配度,所述资源信息包括:资源标题信息、资源介绍信息、更新说明信息、评论信息、资源分类信息以及资源标签信息中的至少一种;所述资源筛选子单元4212用于根据所述每个资源的资源信息与所述关键词的第一匹配度,从所述资源库中获取所述第一匹配度大于第一预设阈值的第一资源。In the embodiment of the present application, referring to FIG. 9, the first resource acquisition unit 421 includes: a matching degree acquisition subunit 4211 and a resource screening subunit 4212. Wherein, the matching degree obtaining subunit 4211 is used to match the resource information of each resource in the resource library with the keyword to obtain the first matching degree of the resource information of each resource and the keyword , The resource information includes: at least one of resource title information, resource introduction information, update description information, comment information, resource classification information, and resource label information; the resource screening subunit 4212 is configured to The first matching degree of the resource information of the keyword and the keyword, and obtaining the first resource whose first matching degree is greater than a first preset threshold from the resource library.
作为一种方式,第二资源获取单元423可以具体用于:获取所述网络查询信息中存在的资源;从所述第一资源中获取与所述网络查询信息中存在的资源相同的第二资源。As a way, the second resource acquisition unit 423 may be specifically configured to: acquire resources present in the network query information; acquire second resources identical to those present in the network query information from the first resources .
作为另一种方式,第二资源获取单元423可以具体用于:获取所述网络查询信息中存在的资源信息;获取所述存在的资源信息与所述第一资源中每个资源的资源信息的第二匹配度;从所述第一资源中获取所述第二匹配度大于第二预设阈值的第二资源。As another way, the second resource acquisition unit 423 may be specifically configured to: acquire resource information existing in the network query information; acquire the resource information existing and the resource information of each resource in the first resource A second matching degree; obtaining a second resource whose second matching degree is greater than a second preset threshold from the first resources.
进一步的,第二资源获取单元423获取所述存在的资源信息与所述第一资源中每个资源的资源信息的第二匹配度,可以包括:获取所述存在的资源信息中多种信息与所述第一资源中每个资源的资源信息中多种信息的多个第三匹配度,所述存在的资源信息中多种信息与所述每个资源的资源信息中多种信息一一对应;根据预设权重,对所述多个第三匹配度进行加权求和,得到所述存在的资源信息与所述第一资源中每个资源的资源信息的第二匹配度。Further, the second resource acquiring unit 423 acquiring the second matching degree between the existing resource information and the resource information of each resource in the first resource may include: acquiring multiple types of information in the existing resource information and Multiple third matching degrees of multiple information in resource information of each resource in the first resource, multiple information in the existing resource information corresponds to multiple information in resource information of each resource ; Weighting and summing the plurality of third matching degrees according to preset weights to obtain a second matching degree of the existing resource information and the resource information of each resource in the first resource.
在本申请实施例中,网络查询信息获取单元422可以具体用于:从网络平台获取与所述关键词匹配的第一网络查询信息;从所述第一网络查询信息中,获取第二网络查询信息,得到所述关键词的网络查询信息,所述第二网络查询信息的第一热度值大于其他网络查询信息的第一热度值,所述其他网络查询信息为所述第一网络查询信息中除所述第二网络查询信息以外的网络查询信息,所述第一热度值至少包括:评价热度值。In the embodiment of the present application, the network query information acquiring unit 422 may be specifically configured to: acquire the first network query information matching the keyword from the network platform; and acquire the second network query from the first network query information Information, the network query information of the keyword is obtained, the first popularity value of the second network query information is greater than the first popularity value of other network query information, and the other network query information is included in the first network query information In addition to the network query information other than the second network query information, the first heat value includes at least: an evaluation heat value.
进一步的,网络查询信息获取单元422从所述第一网络查询信息中,获取第二网络查询信息,得到所述关键词的网络查询信息,可以包括:从所述第一网络查询信息中,获取第二网络查询信息,所述第二网络查询信息的第一热度值大于其他网络查询信息的第一热度值,所述其他网络查询信息为所述第一网络查询信息中除所述第二网络查询信息以外的网络查询信息,所述第一热度值至少包括:评价热度值;将所述第二网络查询信息中预设时间范围内的第二网络查询信息,作为所述关键词的网络查询信息。Further, the network query information acquiring unit 422 acquires second network query information from the first network query information to obtain the network query information of the keyword, which may include: acquiring from the first network query information Second network query information, the first popularity value of the second network query information is greater than the first popularity value of other network query information, the other network query information is the first network query information except the second network For network query information other than query information, the first popularity value includes at least: an evaluation fever value; using the second network query information within a preset time range in the second network query information as the network query for the keyword information.
在本申请实施例中,网络查询信息获取单元422从网络平台获取与所述关键词匹配的第一网络查询信息,可以包括:利用信息爬取工具,根据所述关键词爬取网络平台,得到与所述关键词匹配的第一网络查询信息。In the embodiment of the present application, the network query information acquiring unit 422 acquiring the first network query information matching the keyword from the network platform may include: using an information crawling tool to crawl the network platform according to the keyword to obtain The first network query information matching the keyword.
在本申请实施例中,该资源推荐装置400还可以包括:网络平台获取模块。网络平台获取模块用于从所述多个网络平台中获取预设个数的网络平台,作为待爬取的网络平台,所述待爬取的网络平台的第二热度值大于 所述多个网络平台中其他网络平台的第二热度值,所述第二热度值包括:访问热度值、评价热度值以及下载热度值中的至少一种。In the embodiment of the present application, the resource recommendation device 400 may further include: a network platform acquisition module. The network platform obtaining module is used to obtain a preset number of network platforms from the plurality of network platforms as a network platform to be crawled, and the second heat value of the network platform to be crawled is greater than the plurality of networks Second heat values of other network platforms in the platform, the second heat values include: at least one of access heat values, evaluation heat values, and download heat values.
在本申请实施例中,请参见图10,信息生成模块430可以包括:推荐语句生成单元431以及推荐信息生成单元432。推荐语句生成单元431用于根据所述目标资源对应的网络查询信息以及所述关键词,生成所述目标资源的推荐语句;推荐信息生成单元用432于根据所述目标资源以及所述推荐语句,生成资源推荐信息。In the embodiment of the present application, referring to FIG. 10, the information generation module 430 may include: a recommendation sentence generation unit 431 and a recommendation information generation unit 432. The recommended sentence generating unit 431 is used to generate a recommended sentence of the target resource based on the network query information corresponding to the target resource and the keyword; the recommended information generating unit is used 432 to generate the recommended sentence based on the target resource and the recommended sentence Generate resource recommendation information.
进一步的,推荐信息生成单元432可以具体用于:将所述目标资源根据第三热度值进行排序,得到排序结果,所述第三热度值包括:下载热度值、评价热度值、或者访问热度值;基于所述排序结果以及所述推荐语句,生成资源推荐信息。Further, the recommendation information generating unit 432 may be specifically configured to sort the target resources according to a third heat value to obtain a sorting result. The third heat value includes: download heat value, evaluation heat value, or access heat value ; Generate resource recommendation information based on the sorting result and the recommended sentence.
在本申请实施例中,该资源推荐装置400还可以包括:历史资源获取模块以及资源标记模块。历史资源获取模块用于获取所述用户的历史下载的资源;资源标记模块用于将所述排序结果中与所述历史下载的资源中相同的资源进行标记。In the embodiment of the present application, the resource recommendation device 400 may further include: a historical resource acquisition module and a resource marking module. The historical resource obtaining module is used to obtain the historical downloaded resources of the user; the resource marking module is used to mark the same resources in the sorting result as the historical downloaded resources.
在本申请实施例中,该资源推荐装置400还可以包括:下载量获取模块以及资源去除模块。下载量获取模块用于获取所述目标资源中每个目标资源的历史下载量;资源去除模块用于根据所述每个目标资源的历史下载量,去除所述目标资源中历史下载量低于预设下载量的目标资源。In the embodiment of the present application, the resource recommendation device 400 may further include: a download quantity acquisition module and a resource removal module. The download amount obtaining module is used to obtain the historical download amount of each target resource in the target resource; the resource removal module is used to remove the historical download amount of the target resource from the target resource according to the historical download amount of each target resource Set download target resources.
在本申请实施例中,该资源推荐装置400还可以包括:对应关系存储模块以及推荐信息发送模块。对应关系存储模块用于将所述资源推荐信息与所述关键词的对应关系进行存储;推荐信息发送模块用于在预设时间范围内获取到包括所述关键词的搜索请求时,根据所述对应关系,获取所述关键词对应的资源推荐信息,并将所述资源推荐信息发送至用户终端。In the embodiment of the present application, the resource recommendation device 400 may further include: a correspondence storage module and a recommendation information sending module. The correspondence storage module is used to store the correspondence between the resource recommendation information and the keyword; the recommendation information sending module is used to obtain a search request including the keyword within a preset time range, according to the For the correspondence, obtain resource recommendation information corresponding to the keyword, and send the resource recommendation information to the user terminal.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and conciseness of the description, the specific working processes of the above-described device and module can be referred to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In the several embodiments provided in this application, the coupling between the modules may be electrical, mechanical, or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The above integrated modules may be implemented in the form of hardware or software function modules.
综上所述,本申请提供的方案,通过接收用户终端发送的搜索请求,响应该搜索请求,获取搜索请求中关键词对应的目标资源,最后根据目标资源生成资源推荐信息,并将资源推荐信息发送至用户终端。由于目标资源的资源信息与关键词以及关键词的网络查询信息匹配,且该网络查询信息包括从网络平台获取的与关键词匹配的信息,从而使上述获取的目标资源与关键词的关联性高,提升资源推荐的准确性。In summary, the solution provided by this application receives the search request sent by the user terminal, responds to the search request, obtains the target resource corresponding to the keyword in the search request, and finally generates resource recommendation information based on the target resource Send to user terminal. Since the resource information of the target resource matches the keyword and the network query information of the keyword, and the network query information includes the information matched with the keyword obtained from the network platform, the target resource obtained above is highly correlated with the keyword To improve the accuracy of resource recommendations.
请参考图11,其示出了本申请实施例提供的一种电子设备的结构框图。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120、蓝牙模块130以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 11, which shows a structural block diagram of an electronic device provided by an embodiment of the present application. The electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, a Bluetooth module 130, and one or more application programs, where one or more application programs may be stored in the memory 120 and be It is configured to be executed by one or more processors 110, and one or more programs are configured to perform the method as described in the foregoing method embodiments.
处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。The processor 110 may include one or more processing cores. The processor 110 connects various parts of the entire electronic device 100 by using various interfaces and lines, executes or executes instructions, programs, code sets or instruction sets stored in the memory 120, and calls data stored in the memory 120 to execute Various functions and processing data of the electronic device 100. Alternatively, the processor 110 may use at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). Various hardware forms. The processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processing unit (Graphics Processing Unit, GPU), and a modem. Among them, CPU mainly deals with operating system, user interface and application program, etc .; GPU is used for rendering and rendering of display content; modem is used for handling wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 110, and may be implemented by a communication chip alone.
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 120 may include random access memory (RAM) or read-only memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 120 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , Instructions for implementing the following method embodiments. The storage data area may also store data created by the terminal 100 in use (such as a phone book, audio and video data, and chat history data).
蓝牙模块130用于实现电子设备与两个蓝牙耳机之间的蓝牙连接,以及与两个蓝牙耳机之间的数据交互,其中,蓝牙模块130的数量可以为一个,也可以为多个集成在一起,在此不做限定。具体地,可以与蓝牙设备通过蓝牙协议5.0/4.2/4.1/2.1/2.0,也可以通过蓝牙低能耗技术(Bluetooh Low Energy,BLE)、蓝牙增强速率技术(Enhanced Data Rate,EDR)或者蓝牙基本速率(Base Rate,BR)等。其基本电路构成与WiFi模块类似,也可以由功率放大器、无线收发器、收发切换器、低噪声放大器以及天线等组成。该蓝牙模块130可以使用第一通信频段,其中,该第一通信频段可以是2.4GHZ。The Bluetooth module 130 is used to realize the Bluetooth connection between the electronic device and the two Bluetooth headsets, and the data interaction between the two Bluetooth headsets. Among them, the number of the Bluetooth module 130 may be one or multiple integrated together , Not limited here. Specifically, it can communicate with Bluetooth devices via Bluetooth protocol 5.0 / 4.2 / 4.1 / 2.1 / 2.0, Bluetooth low energy technology (Bluetooh Low Energy, BLE), Bluetooth enhanced rate technology (Enhanced Data Rate, EDR) or Bluetooth basic rate (Base, Rate, BR) etc. The basic circuit configuration is similar to the WiFi module, and can also be composed of a power amplifier, a wireless transceiver, a transceiver switch, a low-noise amplifier and an antenna. The Bluetooth module 130 may use a first communication frequency band, where the first communication frequency band may be 2.4 GHz.
请参考图12,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 12, which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer readable medium 800 stores program codes, and the program codes can be called by a processor to execute the method described in the above method embodiments.
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地, 计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。The computer-readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 800 has a storage space for the program code 810 that performs any of the method steps described above. These program codes can be read from or written into one or more computer program products. The program code 810 may be compressed in an appropriate form, for example.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still Modifications to the technical solutions described in the foregoing embodiments, or equivalent replacements to some of the technical features therein; and these modifications or replacements do not drive the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

  1. 一种资源推荐方法,其特征在于,所述方法包括:A resource recommendation method, characterized in that the method includes:
    获取用户终端发送的搜索请求,所述搜索请求包括至少一个关键词;Obtain a search request sent by a user terminal, where the search request includes at least one keyword;
    响应所述搜索请求,获取所述关键词对应的目标资源,所述目标资源的资源信息与所述关键词以及所述关键词的网络查询信息匹配,所述网络查询信息包括从网络平台获取的与所述关键词匹配的信息;In response to the search request, acquiring a target resource corresponding to the keyword, the resource information of the target resource matches the keyword and the network query information of the keyword, the network query information includes the Information matching the keywords;
    根据所述目标资源生成资源推荐信息,并将所述资源推荐信息发送至所述用户终端。Generate resource recommendation information according to the target resource, and send the resource recommendation information to the user terminal.
  2. 根据权利要求1所述的方法,其特征在于,所述获取所述关键词对应的目标资源,包括:The method according to claim 1, wherein the acquiring the target resource corresponding to the keyword comprises:
    从资源库中获取资源信息与所述关键词匹配的第一资源;Obtaining a first resource whose resource information matches the keyword from the resource library;
    从网络平台获取所述关键词的网络查询信息,所述网络平台包括:网络社交平台、网络搜索平台、网络公众平台以及知识服务平台中的至少一种;Acquiring network query information of the keyword from a network platform, the network platform includes: at least one of an online social platform, an online search platform, an online public platform, and a knowledge service platform;
    获取所述第一资源中资源信息与所述网络查询信息匹配的第二资源,作为目标资源。Acquire a second resource in the first resource whose resource information matches the network query information as a target resource.
  3. 根据权利要求2所述的方法,其特征在于,所述从资源库中获取资源信息与所述关键词匹配的第一资源,包括:The method according to claim 2, wherein the acquiring the first resource whose resource information matches the keyword includes:
    将资源库中的每个资源的资源信息与所述关键词进行匹配,得到所述每个资源的资源信息与所述关键词的第一匹配度,所述资源信息包括:资源标题信息、资源介绍信息、更新说明信息、评论信息、资源分类信息以及资源标签信息中的至少一种;Matching the resource information of each resource in the resource library with the keyword to obtain a first degree of matching between the resource information of each resource and the keyword, the resource information includes: resource title information, resources At least one of introduction information, update description information, comment information, resource classification information, and resource label information;
    根据所述每个资源的资源信息与所述关键词的第一匹配度,从所述资源库中获取所述第一匹配度大于第一预设阈值的第一资源。According to the first matching degree of the resource information of each resource and the keyword, a first resource whose first matching degree is greater than a first preset threshold is obtained from the resource library.
  4. 根据权利要求2所述的方法,其特征在于,所述获取所述第一资源中资源信息与所述网络查询信息匹配的第二资源,包括:The method according to claim 2, wherein the acquiring a second resource in which the resource information in the first resource matches the network query information includes:
    获取所述网络查询信息中存在的资源;Obtaining resources present in the network query information;
    从所述第一资源中获取与所述网络查询信息中存在的资源相同的第二资源。Acquiring a second resource that is the same as the resource existing in the network query information from the first resource.
  5. 根据权利要求2所述的方法,其特征在于,所述获取所述第一资源中资源信息与所述网络查询信息匹配的第二资源,包括:The method according to claim 2, wherein the acquiring a second resource in which the resource information in the first resource matches the network query information includes:
    获取所述网络查询信息中存在的资源信息;Obtaining resource information existing in the network query information;
    获取所述存在的资源信息与所述第一资源中每个资源的资源信息的第二匹配度;Acquiring a second matching degree between the existing resource information and the resource information of each resource in the first resource;
    从所述第一资源中获取所述第二匹配度大于第二预设阈值的第二资源。Obtain from the first resource a second resource whose second matching degree is greater than a second preset threshold.
  6. 根据权利要求5所述的方法,其特征在于,所述获取所述存在的资源信息与所述第一资源中每个资源的资源信息的第二匹配度,包括:The method according to claim 5, wherein the second degree of matching between the existing resource information and the resource information of each resource in the first resource comprises:
    获取所述存在的资源信息中多种信息与所述第一资源中每个资源的资源信息中多种信息的多个第三匹配度,所述存在的资源信息中多种信息与所述每个资源的资源信息中多种信息一一对应;Acquiring a plurality of third matching degrees between the plurality of types of information in the existing resource information and the plurality of types of information in the resource information of each resource in the first resource, the plurality of information in the existing resource information and the There is a one-to-one correspondence between various information in the resource information of each resource;
    根据预设权重,对所述多个第三匹配度进行加权求和,得到所述存在的资源信息与所述第一资源中每个资源的资源信息的第二匹配度。Weighting and summing the plurality of third matching degrees according to preset weights to obtain a second matching degree of the existing resource information and the resource information of each resource in the first resource.
  7. 根据权利要求2所述的方法,其特征在于,所述从网络平台获取所述关键词的网络查询信息,包括:The method according to claim 2, wherein the acquiring network query information of the keyword from a network platform includes:
    从网络平台获取与所述关键词匹配的第一网络查询信息;Obtain the first network query information matching the keyword from the network platform;
    从所述第一网络查询信息中,获取第二网络查询信息,得到所述关键词的网络查询信息,所述第二网络查询信息的第一热度值大于其他网络查询信息的第一热度值,所述其他网络查询信息为所述第一网络查询信息中除所述第二网络查询信息以外的网络查询信息,所述第一热度值至少包括:评价热度值。Acquiring second network query information from the first network query information to obtain network query information of the keyword, the first popularity value of the second network query information is greater than the first popularity value of other network query information, The other network query information is network query information other than the second network query information in the first network query information, and the first heat value includes at least: an evaluation heat value.
  8. 根据权利要求7所述的方法,其特征在于,所述从所述第一网络查询信息中,获取第二网络查询信息,得到所述关键词的网络查询信息,包括:The method according to claim 7, wherein the acquiring second network query information from the first network query information to obtain the network query information of the keyword includes:
    从所述第一网络查询信息中,获取第二网络查询信息,所述第二网络查询信息的第一热度值大于其他网络查询信息的第一热度值,所述其他网络查询信息为所述第一网络查询信息中除所述第二网络查询信息以外的网络查询信息,所述第一热度值至少包括:评价热度值;Acquiring second network query information from the first network query information, the first popularity value of the second network query information is greater than the first popularity value of other network query information, the other network query information is the first In network query information other than the second network query information, the first heat value includes at least: an evaluation heat value;
    将所述第二网络查询信息中预设时间范围内的第二网络查询信息,作为所述关键词的网络查询信息。Use the second network query information within a preset time range in the second network query information as the network query information of the keyword.
  9. 根据权利要求7所述的方法,其特征在于,所述从网络平台获取与所述关键词匹配的第一网络查询信息,包括:The method according to claim 7, wherein the acquiring first network query information that matches the keyword from the network platform includes:
    利用信息爬取工具,根据所述关键词爬取网络平台,得到与所述关键词匹配的第一网络查询信息。Use the information crawling tool to crawl the network platform according to the keywords to obtain the first network query information that matches the keywords.
  10. 根据权利要求9所述的方法,其特征在于,在所述利用信息爬取工具,根据所述关键词爬取网络平台,得到与所述关键词匹配的第一网络查询信息之前,所述方法还包括:The method according to claim 9, characterized in that the method uses the information crawling tool to crawl the network platform according to the keywords before obtaining the first network query information matching the keywords, the method Also includes:
    从所述多个网络平台中获取预设个数的网络平台,作为待爬取的网络平台,所述待爬取的网络平台的第二热度值大于所述多个网络平台中其他网络平台的第二热度值,所述第二热度值包括:访问热度值、评价热度值以及下载热度值中的至少一种。Obtaining a preset number of network platforms from the plurality of network platforms as a network platform to be crawled, the second popularity value of the network platform to be crawled is greater than that of other network platforms in the plurality of network platforms A second heat value, the second heat value includes at least one of an access heat value, an evaluation heat value, and a download heat value.
  11. 根据权利1-10任一项所述的方法,其特征在于,所述根据所述目标资源生成资源推荐信息,包括:The method according to any one of claims 1-10, wherein the generating resource recommendation information according to the target resource includes:
    根据所述目标资源对应的网络查询信息以及所述关键词,生成所述目标资源的推荐语句;Generate a recommended sentence of the target resource according to the network query information corresponding to the target resource and the keyword;
    根据所述目标资源以及所述推荐语句,生成资源推荐信息。According to the target resource and the recommendation sentence, resource recommendation information is generated.
  12. 根据权利要求11所述的方法,其特征在于,所述根据所述目标资 源以及所述推荐语句,生成资源推荐信息,包括:The method according to claim 11, wherein the generating resource recommendation information according to the target resource and the recommendation sentence includes:
    将所述目标资源根据第三热度值进行排序,得到排序结果,所述第三热度值包括:下载热度值、评价热度值、或者访问热度值;Sorting the target resources according to a third heat value to obtain a sorting result, where the third heat value includes: downloading the heat value, evaluating the heat value, or accessing the heat value;
    基于所述排序结果以及所述推荐语句,生成资源推荐信息。Based on the sorting result and the recommendation sentence, resource recommendation information is generated.
  13. 根据权利要求12所述的方法,其特征在于,在所述将所述目标资源根据第三热度值进行排序,得到排序结果之后,包括:The method according to claim 12, wherein after sorting the target resources according to the third popularity value and obtaining a sorting result, the method includes:
    获取所述用户的历史下载的资源;Obtain the resource of historical download of the user;
    将所述排序结果中与所述历史下载的资源中相同的资源进行标记。Mark the same resource in the sorting result as the resource downloaded from the history.
  14. 根据权利要求11所述的方法,其特征在于,在所述根据所述目标资源以及所述推荐语句,生成资源推荐信息之前,所述方法还包括:The method according to claim 11, wherein before the generating resource recommendation information according to the target resource and the recommendation sentence, the method further comprises:
    获取所述目标资源中每个目标资源的历史下载量;Obtaining the historical download volume of each target resource in the target resources;
    根据所述每个目标资源的历史下载量,去除所述目标资源中历史下载量低于预设下载量的目标资源。According to the historical download amount of each target resource, the target resource whose historical download amount is lower than the preset download amount in the target resource is removed.
  15. 根据权利要求1-10任一项所述的方法,其特征在于,在所述根据所述目标资源生成资源推荐信息,并将所述资源推荐信息发送至所述用户的用户终端之后,所述方法还包括:The method according to any one of claims 1-10, wherein after the resource recommendation information is generated according to the target resource and sent to the user terminal of the user, the The method also includes:
    将所述资源推荐信息与所述关键词的对应关系进行存储;Store the correspondence between the resource recommendation information and the keywords;
    在预设时间范围内获取到包括所述关键词的搜索请求时,根据所述对应关系,获取所述关键词对应的资源推荐信息,并将所述资源推荐信息发送至用户终端。When a search request including the keyword is acquired within a preset time range, resource recommendation information corresponding to the keyword is acquired according to the correspondence relationship, and the resource recommendation information is sent to the user terminal.
  16. 一种资源推荐装置,其特征在于,所述装置包括:请求获取模块、请求响应模块以及信息生成模块,其中,A resource recommendation device, characterized in that the device includes: a request acquisition module, a request response module and an information generation module, wherein,
    所述请求获取模块用于获取用户终端发送的搜索请求,所述搜索请求包括至少一个关键词;The request obtaining module is used to obtain a search request sent by a user terminal, where the search request includes at least one keyword;
    所述请求响应模块用于响应所述搜索请求,获取所述关键词对应的目标资源,所述目标资源的资源信息与所述关键词以及所述关键词的网络查询信息匹配,所述网络查询信息包括从网络平台获取的与所述关键词匹配的信息;The request response module is used to obtain the target resource corresponding to the keyword in response to the search request, the resource information of the target resource matches the keyword and the network query information of the keyword, and the network query The information includes information obtained from the network platform that matches the keywords;
    所述信息生成模块用于根据所述目标资源生成资源推荐信息,并将所述资源推荐信息发送至所述用户终端。The information generating module is configured to generate resource recommendation information according to the target resource, and send the resource recommendation information to the user terminal.
  17. 根据权利要求16所述的装置,其特征在于,所述请求响应模块包括:第一资源获取单元、网络查询信息获取单元以及第二资源获取单元,其中,The apparatus according to claim 16, wherein the request response module comprises: a first resource acquisition unit, a network query information acquisition unit, and a second resource acquisition unit, wherein,
    所述第一资源获取单元用于从资源库中获取资源信息与所述关键词匹配的第一资源;The first resource obtaining unit is configured to obtain a first resource whose resource information matches the keyword from a resource library;
    所述网络查询信息获取单元用于从网络平台获取所述关键词的网络查询信息,所述网络平台包括:网络社交平台、网络搜索平台、网络公众平台以及知识服务平台中的至少一种;The network query information obtaining unit is used to obtain network query information of the keyword from a network platform, the network platform includes: at least one of a network social platform, a network search platform, a network public platform and a knowledge service platform;
    所述第二资源获取单元用于获取所述第一资源中资源信息与所述网络 查询信息匹配的第二资源,作为目标资源。The second resource acquisition unit is used to acquire a second resource in the first resource whose resource information matches the network query information as a target resource.
  18. 根据权利要求17所述的装置,其特征在于,所述第一资源获取单元包括:匹配度获取子单元以及资源筛选子单元,其中,The apparatus according to claim 17, wherein the first resource acquisition unit comprises: a matching degree acquisition subunit and a resource screening subunit, wherein,
    所述匹配度获取子单元用于将资源库中的每个资源的资源信息与所述关键词进行匹配,得到所述每个资源的资源信息与所述关键词的第一匹配度,所述资源信息包括:资源标题信息、资源介绍信息、更新说明信息、评论信息、资源分类信息以及资源标签信息中的至少一种;The matching degree obtaining subunit is used to match the resource information of each resource in the resource library with the keyword, to obtain the first matching degree of the resource information of each resource and the keyword, the The resource information includes: at least one of resource title information, resource introduction information, update description information, comment information, resource classification information, and resource label information;
    所述资源筛选子单元用于根据所述每个资源的资源信息与所述关键词的第一匹配度,从所述资源库中获取所述第一匹配度大于第一预设阈值的第一资源。The resource screening sub-unit is configured to obtain the first matching degree greater than the first preset threshold from the resource library according to the first matching degree of the resource information of each resource and the keyword Resources.
  19. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it includes:
    一个或多个处理器;One or more processors;
    存储器;Memory
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-15任一项所述的方法。One or more application programs, wherein the one or more application programs are stored in the memory and are configured to be executed by the one or more processors, the one or more programs are configured to execute as The method of any one of claims 1-15.
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-15任一项所述的方法。A computer readable storage medium, characterized in that the computer readable storage medium stores program code, and the program code can be called by a processor to execute the method according to any one of claims 1-15 .
PCT/CN2018/114441 2018-11-07 2018-11-07 Resource recommendation method and apparatus, electronic device and storage medium WO2020093289A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/114441 WO2020093289A1 (en) 2018-11-07 2018-11-07 Resource recommendation method and apparatus, electronic device and storage medium
CN201880098765.XA CN112868004B (en) 2018-11-07 2018-11-07 Resource recommendation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/114441 WO2020093289A1 (en) 2018-11-07 2018-11-07 Resource recommendation method and apparatus, electronic device and storage medium

Publications (1)

Publication Number Publication Date
WO2020093289A1 true WO2020093289A1 (en) 2020-05-14

Family

ID=70611648

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/114441 WO2020093289A1 (en) 2018-11-07 2018-11-07 Resource recommendation method and apparatus, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN112868004B (en)
WO (1) WO2020093289A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111931040A (en) * 2020-06-30 2020-11-13 深圳市世强元件网络有限公司 Recommendation method for service entry of service entity in network platform
CN112288246A (en) * 2020-10-20 2021-01-29 中建科技集团有限公司 Resource allocation method, terminal and storage medium
CN113297457A (en) * 2021-05-24 2021-08-24 陕西合友网络科技有限公司 High-precision intelligent information resource pushing system and pushing method
CN113468441A (en) * 2021-06-29 2021-10-01 平安信托有限责任公司 Search sorting method, device, equipment and storage medium based on weight adjustment
CN113722498A (en) * 2021-06-17 2021-11-30 武汉理工数字传播工程有限公司 Method, device, equipment and storage medium for digital resource management
CN114637927A (en) * 2022-05-09 2022-06-17 北京达佳互联信息技术有限公司 Content recommendation method and device, electronic equipment and storage medium
CN114662520A (en) * 2022-05-24 2022-06-24 广东鑫兴科技有限公司 Mobile phone accessory matching method and device, electronic equipment and storage medium
CN116401460A (en) * 2023-04-23 2023-07-07 中航信移动科技有限公司 Method for improving information push accuracy, storage medium and electronic equipment
CN117435817A (en) * 2023-12-20 2024-01-23 泰安北航科技园信息科技有限公司 BI intelligent center system based on industry big data

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113468373B (en) * 2021-05-31 2022-09-02 北京达佳互联信息技术有限公司 Information acquisition method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309886A (en) * 2012-03-13 2013-09-18 阿里巴巴集团控股有限公司 Trading-platform-based structural information searching method and device
US20140032561A1 (en) * 2006-07-18 2014-01-30 Aol Inc. Searching for transient streaming multimedia resources
CN104462575A (en) * 2014-12-29 2015-03-25 北京奇虎科技有限公司 Method and device for achieving music comprehensive searching
US20150193457A1 (en) * 2014-01-08 2015-07-09 International Business Machines Corporation Integrating and searching electronic communications received from a plurality of different communication platforms
CN107918616A (en) * 2016-10-09 2018-04-17 阿里巴巴集团控股有限公司 Search system, page display method and client

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077294A (en) * 2013-03-27 2014-10-01 腾讯科技(深圳)有限公司 Information recommendation method, information recommendation device and information resource recommendation system
CN103530376B (en) * 2013-10-15 2016-03-16 北京百度网讯科技有限公司 Screening conditions supplying method, device and searching method, device
CN106294730A (en) * 2016-08-09 2017-01-04 百度在线网络技术(北京)有限公司 The recommendation method and device of information
CN108345610A (en) * 2017-01-24 2018-07-31 北京搜狗科技发展有限公司 It is a kind of to obtain the method and apparatus of data resource, the device for obtaining data resource

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140032561A1 (en) * 2006-07-18 2014-01-30 Aol Inc. Searching for transient streaming multimedia resources
CN103309886A (en) * 2012-03-13 2013-09-18 阿里巴巴集团控股有限公司 Trading-platform-based structural information searching method and device
US20150193457A1 (en) * 2014-01-08 2015-07-09 International Business Machines Corporation Integrating and searching electronic communications received from a plurality of different communication platforms
CN104462575A (en) * 2014-12-29 2015-03-25 北京奇虎科技有限公司 Method and device for achieving music comprehensive searching
CN107918616A (en) * 2016-10-09 2018-04-17 阿里巴巴集团控股有限公司 Search system, page display method and client

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111931040A (en) * 2020-06-30 2020-11-13 深圳市世强元件网络有限公司 Recommendation method for service entry of service entity in network platform
CN111931040B (en) * 2020-06-30 2024-01-12 深圳市世强元件网络有限公司 Recommendation method for service entry of service entity in network platform
CN112288246A (en) * 2020-10-20 2021-01-29 中建科技集团有限公司 Resource allocation method, terminal and storage medium
CN113297457A (en) * 2021-05-24 2021-08-24 陕西合友网络科技有限公司 High-precision intelligent information resource pushing system and pushing method
CN113722498A (en) * 2021-06-17 2021-11-30 武汉理工数字传播工程有限公司 Method, device, equipment and storage medium for digital resource management
CN113468441A (en) * 2021-06-29 2021-10-01 平安信托有限责任公司 Search sorting method, device, equipment and storage medium based on weight adjustment
CN114637927A (en) * 2022-05-09 2022-06-17 北京达佳互联信息技术有限公司 Content recommendation method and device, electronic equipment and storage medium
CN114662520A (en) * 2022-05-24 2022-06-24 广东鑫兴科技有限公司 Mobile phone accessory matching method and device, electronic equipment and storage medium
CN116401460A (en) * 2023-04-23 2023-07-07 中航信移动科技有限公司 Method for improving information push accuracy, storage medium and electronic equipment
CN116401460B (en) * 2023-04-23 2024-04-05 中航信移动科技有限公司 Method for improving information push accuracy, storage medium and electronic equipment
CN117435817A (en) * 2023-12-20 2024-01-23 泰安北航科技园信息科技有限公司 BI intelligent center system based on industry big data
CN117435817B (en) * 2023-12-20 2024-03-15 泰安北航科技园信息科技有限公司 BI intelligent center system based on industry big data

Also Published As

Publication number Publication date
CN112868004B (en) 2022-10-28
CN112868004A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
WO2020093289A1 (en) Resource recommendation method and apparatus, electronic device and storage medium
US20170368683A1 (en) User portrait based skill package recommendation device and method
CN108280115B (en) Method and device for identifying user relationship
CN110598157B (en) Target information identification method, device, equipment and storage medium
US20140282493A1 (en) System for replicating apps from an existing device to a new device
CN111163072B (en) Method and device for determining characteristic value in machine learning model and electronic equipment
CN109471978B (en) Electronic resource recommendation method and device
US20200118033A1 (en) Method for approximate k-nearest-neighbor search on parallel hardware accelerators
WO2020151548A1 (en) Method and device for sorting followed pages
JP2023017921A (en) Content recommendation and sorting model training method, apparatus, and device and computer program
WO2021142719A1 (en) Portrait generation method and apparatus, server and storage medium
CN112256772A (en) Data service method, device and readable storage medium
CN109408714A (en) A kind of recommender system and method for multi-model fusion
US20210357553A1 (en) Apparatus and method for option data object performance prediction and modeling
CN112650946B (en) Product information recommendation method, device, system and storage medium
US10555148B2 (en) Mobile ghosting
CN114119123A (en) Information pushing method and device
CN106651410B (en) Application management method and device
CN114491093B (en) Multimedia resource recommendation and object representation network generation method and device
WO2022143505A1 (en) Group type identification method and apparatus, computer device, and medium
JP2023554210A (en) Sort model training method and apparatus for intelligent recommendation, intelligent recommendation method and apparatus, electronic equipment, storage medium, and computer program
CN112199571A (en) Artificial intelligence information processing system, method and readable storage medium
CN111898033A (en) Content pushing method and device and electronic equipment
CN110770778B (en) Information processing method and related product
CN114139031B (en) Data classification method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 23.09.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18939595

Country of ref document: EP

Kind code of ref document: A1