[go: up one dir, main page]

CN112528144A - Search recommendation method and device, intelligent device, electronic device and storage medium - Google Patents

Search recommendation method and device, intelligent device, electronic device and storage medium Download PDF

Info

Publication number
CN112528144A
CN112528144A CN202011423807.8A CN202011423807A CN112528144A CN 112528144 A CN112528144 A CN 112528144A CN 202011423807 A CN202011423807 A CN 202011423807A CN 112528144 A CN112528144 A CN 112528144A
Authority
CN
China
Prior art keywords
category
search
association
relationship
target object
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202011423807.8A
Other languages
Chinese (zh)
Inventor
胡文皓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202011423807.8A priority Critical patent/CN112528144A/en
Publication of CN112528144A publication Critical patent/CN112528144A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0631Recommending goods or services

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a search recommendation method and device, an intelligent device, an electronic device and a storage medium, which can be applied to artificial intelligence, cloud computing, big data, computer data, intelligent search, information flow and a knowledge graph. The specific implementation scheme is as follows: acquiring a search task of a user, determining a search target object according to the search task, determining a category of the search target object, determining an association category having an association relationship with the category, and generating and outputting recommendation information according to the search target object and the association category, wherein the recommendation information comprises: the target object and the object belonging to the associated category are searched, and the object belonging to the associated category is recommended in combination, so that the problem of large limitation of search recommendation in the related technology is solved, the technical effects of flexibility, diversity, richness and reliability of search recommendation are improved, and the search experience of a user is enhanced.

Description

搜索推荐方法、装置、智能设备、电子设备及存储介质Search and recommend methods, devices, smart devices, electronic devices and storage media

技术领域technical field

本申请涉及计算机和数据处理技术,尤其涉及一种搜索推荐方法、装置、智能设备、电子设备及存储介质,可应用于人工智能、云计算、大数据、计算机数据、智能搜索、信息流、以及知识图谱。This application relates to computer and data processing technologies, and in particular to a search recommendation method, device, smart device, electronic device and storage medium, which can be applied to artificial intelligence, cloud computing, big data, computer data, intelligent search, information flow, and Knowledge Graph.

背景技术Background technique

随着互联网技术的发展以及信息量的增加,如何提高为用户推荐信息的全面性成了亟待解决的问题。With the development of Internet technology and the increase in the amount of information, how to improve the comprehensiveness of recommended information for users has become an urgent problem to be solved.

在现有技术中,通常采用的方法为:确定与搜索目标对象相似度较高的对象,并根据搜索目标对象、以及确定出的相似度较高的对象,生成并输出推荐信息,例如,搜索目标对象为XX型号的手机,确定出的相似度较高的对象可以为外观与XX型号的手机接近的YY型号的手机,则根据XX型号的手机和YY型号的手机,生成并输出推荐信息。In the prior art, a commonly used method is: determine an object with a high similarity to the search target object, and generate and output recommendation information according to the search target object and the determined object with a high similarity, for example, search The target object is a mobile phone of model XX, and the determined object with high similarity can be a mobile phone of model YY that is similar in appearance to the mobile phone of model XX, and the recommendation information is generated and output according to the mobile phone of model XX and the mobile phone of model YY.

然而,通过相似度生成推荐信息,局限性相对较大,无法满足用户较为宽泛的需求。However, generating recommendation information through similarity has relatively large limitations and cannot meet the broader needs of users.

发明内容SUMMARY OF THE INVENTION

本申请提供了一种用于提高推荐的全面性的搜索推荐方法、装置、智能设备、电子设备及存储介质。The present application provides a search recommendation method, apparatus, smart device, electronic device and storage medium for improving the comprehensiveness of recommendation.

根据本申请的第一方面,提供了一种搜索推荐方法,包括:According to the first aspect of the present application, a search recommendation method is provided, including:

获取用户的搜索任务,并根据所述搜索任务确定搜索目标对象;Obtain the search task of the user, and determine the search target object according to the search task;

确定所述搜索目标对象的所属类别,并确定与所述所属类别存在关联关系的关联类别;Determine the category to which the search target object belongs, and determine the associated category that has an associated relationship with the category;

根据所述搜索目标对象和所述关联类别,生成并输出推荐信息;其中,所述推荐信息中包括:所述搜索目标对象、以及归属于所述关联类别的对象。According to the search target object and the associated category, recommendation information is generated and output; wherein, the recommendation information includes: the search target object and objects belonging to the associated category.

通过本申请实施例提供的搜索推荐方法,实现了提高推荐的样性和灵活性的技术效果。Through the search recommendation method provided by the embodiment of the present application, the technical effect of improving the style and flexibility of the recommendation is achieved.

根据本申请的第二方面,提供了一种搜索推荐装置,包括:According to a second aspect of the present application, a search recommendation device is provided, comprising:

第一获取模块,用于获取用户的搜索任务,并根据所述搜索任务确定搜索目标对象;The first acquisition module is used to acquire the search task of the user, and determine the search target object according to the search task;

第一确定模块,用于确定所述搜索目标对象的所属类别,并确定与所述所属类别存在关联关系的关联类别;a first determining module, configured to determine the category to which the search target object belongs, and determine the associated category that has an associated relationship with the category;

生成模块,用于根据所述搜索目标对象和所述关联类别,生成推荐信息;其中,所述推荐信息中包括:所述搜索目标对象、以及归属于所述关联类别的对象;a generating module, configured to generate recommendation information according to the search target object and the association category; wherein the recommendation information includes: the search target object and objects belonging to the association category;

输出模块,用于输出所述推荐信息。An output module, configured to output the recommended information.

根据本申请的第三方面,提供了一种电子设备,包括:According to a third aspect of the present application, an electronic device is provided, comprising:

至少一个处理器;以及at least one processor; and

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如第一方面所述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of the first aspect.

根据本申请的第四方面,提供了一种智能设备,包括:According to a fourth aspect of the present application, a smart device is provided, comprising:

输出器、至少一个处理器、以及与所述至少一个处理器通信连接的存储器;其中,所述输出器与所述至少一个处理器连接;an exporter, at least one processor, and a memory communicatively coupled to the at least one processor; wherein the exporter is coupled to the at least one processor;

所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如第一方面所述的方法;the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of the first aspect;

所述输出器用于输出所述推荐信息。The outputter is used for outputting the recommendation information.

根据本申请的第五方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,所述计算机指令用于使所述计算机执行如第一方面所述的方法。According to a fifth aspect of the present application, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method of the first aspect.

根据本申请的第六方面,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如上第一方面所述的方法。According to a sixth aspect of the present application, there is provided a computer program product, comprising a computer program that, when executed by a processor, implements the method described in the first aspect above.

应当理解,本部分所描述的内容并非旨在标识本申请的实施例的关键或重要特征,也不用于限制本申请的范围。本申请的其它特征将通过以下的说明书而变得容易理解。It should be understood that the content described in this section is not intended to identify key or critical features of the embodiments of the application, nor is it intended to limit the scope of the application. Other features of the present application will become readily understood from the following description.

附图说明Description of drawings

附图用于更好地理解本方案,不构成对本申请的限定。其中:The accompanying drawings are used for better understanding of the present solution, and do not constitute a limitation to the present application. in:

图1是根据本申请实施例的应用场景的示意图;1 is a schematic diagram of an application scenario according to an embodiment of the present application;

图2是根据本申请一个实施例的示意图;2 is a schematic diagram according to an embodiment of the present application;

图3是根据本申请又一实施例的示意图;3 is a schematic diagram according to another embodiment of the present application;

图4是根据本申请一个实施例的可视化图表的示意图;4 is a schematic diagram of a visualization chart according to an embodiment of the present application;

图5是根据本申请另一实施例的可视化图表的示意图;5 is a schematic diagram of a visualization chart according to another embodiment of the present application;

图6是根据本申请另一实施例的可视化图表的示意图;6 is a schematic diagram of a visualization chart according to another embodiment of the present application;

图7是根据本申请又一实施例的示意图;7 is a schematic diagram according to another embodiment of the present application;

图8是根据本申请又一实施例的示意图;8 is a schematic diagram according to another embodiment of the present application;

图9是根据本申请又一实施例的示意图;9 is a schematic diagram according to another embodiment of the present application;

图10是根据本申请又一实施例的示意图;10 is a schematic diagram according to another embodiment of the present application;

图11是根据本申请又一实施例的示意图。FIG. 11 is a schematic diagram according to yet another embodiment of the present application.

具体实施方式Detailed ways

以下结合附图对本申请的示范性实施例做出说明,其中包括本申请实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本申请的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present application are described below with reference to the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.

一个示例中,本申请实施例提供的搜索推荐方法,可以应用于物品推荐(如商品推荐)的应用场景。例如,服务器向用户推荐家具、电器、以及书籍等。In an example, the search recommendation method provided by the embodiment of the present application can be applied to an application scenario of item recommendation (eg, product recommendation). For example, the server recommends furniture, electrical appliances, and books to the user.

另一个示例中,本申请实施例提供的搜索推荐方法,可以应用于资讯推荐(如新闻推荐)的应用场景。例如,服务器向用户推荐最新新闻、天气信息、以及路况信息等。In another example, the search recommendation method provided by the embodiment of the present application may be applied to an application scenario of information recommendation (eg, news recommendation). For example, the server recommends the latest news, weather information, and road condition information to the user.

再一个示例中,本申请实施例提供的搜索推荐方法,可以应用于人机交互的应用场景。例如,服务器基于用户发起的交互信息,向交互机器人推荐与交互信息相关的话题题材以及相关内容等。In another example, the search recommendation method provided by the embodiment of the present application can be applied to an application scenario of human-computer interaction. For example, based on the interaction information initiated by the user, the server recommends topics and related content related to the interaction information to the interaction robot.

值得说明地是,上述示例只是用于示范性地说明,本申请实施例的搜索推荐方法可以适用的应用场景,而不能理解为对本申请实施例的搜索推荐方法的应用场景的限定。It is worth noting that the above examples are only used to illustrate the applicable application scenarios of the search recommendation method of the embodiment of the present application, and should not be understood as a limitation of the application scenario of the search recommendation method of the embodiment of the present application.

为加深读者对本申请实施例的搜索推荐方法的应用场景地理解,现以物品推荐(如商品推荐)为例,且结合图1(图1是根据本申请实施例的应用场景的示意图)对本申请实施例的搜索推荐方法的应用场景进行详细阐述如下。In order to deepen the reader's understanding of the application scenario of the search recommendation method of the embodiment of the present application, item recommendation (such as product recommendation) is now taken as an example, and the present application is described with reference to FIG. The application scenarios of the search recommendation method of the embodiment are described in detail as follows.

在如图1所示的应用场景中,当用户101有搜索需求,如购买商品的需求时,可以基于用户终端102向服务器103发送搜索请求。In the application scenario shown in FIG. 1 , when the user 101 has a search demand, such as a demand for purchasing commodities, a search request may be sent to the server 103 based on the user terminal 102 .

例如,如图1所示,用户101可以在用户终端102的显示界面上输入“XX空调”,并通过用户终端102的显示界面的虚拟按钮“搜索”向服务器103发送搜索请求。For example, as shown in FIG. 1 , the user 101 may input “XX air conditioner” on the display interface of the user terminal 102 , and send a search request to the server 103 through the virtual button “Search” on the display interface of the user terminal 102 .

服务器103接收由用户终端102发送的用于搜索“XX空调”的搜索请求,生成并向用户终端102反馈包括“XX空调”的推荐信息。The server 103 receives the search request sent by the user terminal 102 for searching for "XX air conditioner", and generates and feeds back recommendation information including "XX air conditioner" to the user terminal 102 .

用户终端102可以对包括“XX空调”的推荐信息进行显示。The user terminal 102 may display recommendation information including "XX air conditioner".

在相关技术中,为了提高用户的购物体验,服务器103可以确定与“XX空调”相似度较高的“YY空调”,生成并向用户终端102反馈包括“XX空调”和“YY空调”推荐信息。In the related art, in order to improve the user's shopping experience, the server 103 may determine a "YY air conditioner" with a high similarity to "XX air conditioner", generate and feed back recommendation information including "XX air conditioner" and "YY air conditioner" to the user terminal 102 .

其中,相似度较高可以表征,性能的相似度较高,也可以表征外观的相似度较高。Among them, the higher similarity can be represented, the performance similarity is higher, and the appearance similarity is higher.

也就是说,在相关技术中,服务器在向用户推荐用户搜索的商品的同时,还可以向用户推荐与用户搜索的商品相关的商品。That is to say, in the related art, while recommending the commodity searched by the user to the user, the server may also recommend commodities related to the commodity searched by the user to the user.

然而,采用相似度推荐的方式为用户推荐商品,可能造成推荐的局限性较大,无法满足用户的较为宽泛的需求的技术问题,即采用相关技术中的方法为用户推荐相关信息,可能存在推荐的灵活性和全面性偏低的问题。However, using the similarity recommendation method to recommend products to users may result in a technical problem that the recommendation has greater limitations and cannot meet the broader needs of users. flexibility and comprehensiveness.

本申请的发明人经过创造性地劳动,得到了本申请的发明构思:确定待推荐的对象(如物品等)的所属类别,并确定与该所属类别存在关联关系的关联类别,并基于待推荐的对象、以及关联类别生成推荐信息,从而实现推荐的灵活性和全面性的技术效果。Through creative work, the inventor of the present application has obtained the inventive concept of the present application: determine the category of the object to be recommended (such as an item, etc.) Objects, and associated categories generate recommendation information, so as to achieve flexible and comprehensive technical effects of recommendation.

下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本申请的实施例进行描述。The technical solutions of the present application and how the technical solutions of the present application solve the above-mentioned technical problems will be described in detail below with specific examples. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.

本申请提供一种搜索推荐方法、装置、智能设备、电子设备及存储介质,应用于计算机和数据处理技术领域中的人工智能、云计算、大数据、计算机视觉、智能搜索、以及知识图谱,以达到搜索推荐的灵活性和全面性的技术效果。The present application provides a search recommendation method, device, intelligent device, electronic device and storage medium, which are applied to artificial intelligence, cloud computing, big data, computer vision, intelligent search, and knowledge graph in the field of computer and data processing technology, to The technical effect of achieving the flexibility and comprehensiveness of search recommendation.

图2是根据本申请一个实施例的示意图,如图2所示,本申请实施例的搜索推荐方法可以包括:FIG. 2 is a schematic diagram according to an embodiment of the present application. As shown in FIG. 2 , the search recommendation method in the embodiment of the present application may include:

S201:获取用户的搜索任务,并根据搜索任务确定搜索目标对象。S201: Acquire a user's search task, and determine a search target object according to the search task.

示例性地,本实施例的执行主体可以搜索推荐装置,且搜索推荐装置可以为服务器(包括云端服务器和本地服务器)、计算机、终端设备、处理器、以及芯片等。Exemplarily, the execution body of this embodiment may search for a recommendation device, and the search and recommendation device may be a server (including a cloud server and a local server), a computer, a terminal device, a processor, a chip, and the like.

例如,当本实施例的搜索推荐方法应用于如图1所示的应用场景时,搜索推荐装置可以为如图1中所示的服务器。For example, when the search recommendation method of this embodiment is applied to the application scenario shown in FIG. 1 , the search recommendation apparatus may be a server as shown in FIG. 1 .

一个示例中,搜索任务可以为用户主动触发的。例如,当用户有搜索需求时,基于用户设备(如移动终端等)向搜索推荐装置发起的搜索任务。In one example, the search task may be actively triggered by the user. For example, when a user has a search requirement, a search task initiated by the user equipment (such as a mobile terminal, etc.) to the search recommendation apparatus is used.

在本实施例中,搜索目标对象可以为用户此次搜索的对象。In this embodiment, the search target object may be the object searched by the user this time.

例如,结合如图1所示的应用场景,当用户基于用户设备向搜索推荐装置发起“XX空调”的搜索任务时,搜索推荐装置将“XX空调”确定为搜索目标对象。For example, in combination with the application scenario shown in FIG. 1 , when the user initiates a search task of "XX air conditioner" to the search recommendation device based on the user equipment, the search recommendation device determines "XX air conditioner" as the search target object.

另一个示例中,搜索任务可以为搜索推荐装置基于用户的历史搜索纪录生成的。例如,搜索推荐装置基于时间间隔,且基于用户的历史搜索纪录,生成搜索任务。In another example, the search task may be generated by the search recommendation apparatus based on the user's historical search records. For example, the search recommendation device generates search tasks based on time intervals and based on the user's historical search records.

在本实施例中,搜索目标对象可以为用户的历史搜索的对象。In this embodiment, the search target object may be the object searched by the user's history.

例如,用户在近段时间(如一周内),搜索了“XX空调”,但是一直未下单购买,则搜索推荐装置可以主动生成搜索任务,生成并向用户设备发送推荐信息。For example, if a user searches for "XX air conditioner" in a recent period (such as within a week), but has not placed an order for purchase, the search recommendation device can actively generate a search task, generate and send recommendation information to the user equipment.

且在搜索推荐装置主动生成搜索任务的基础上,搜索推荐装置可以在搜索目标对象的相关信息发生变化时,如价格信息等,生成并向用户设备发送推荐信息。And on the basis that the search recommendation device actively generates the search task, the search recommendation device can generate and send recommendation information to the user equipment when the relevant information of the search target object changes, such as price information.

应该理解地是,上述示例只是用于示范性地说明,触发搜索任务的部分情况,而不能理解为对触发搜索任务、以及搜索任务的限定。It should be understood that the above examples are only used to illustrate some situations of triggering a search task, and should not be construed as a limitation on the triggering of the search task and the search task.

S202:确定搜索目标对象的所属类别,并确定与所属类别存在关联关系的关联类别。S202: Determine the category to which the search target object belongs, and determine the associated category that has an associated relationship with the category.

值得说明地是,本实施例中的类别可以为基于行业分类标准确定的类别,如家装为一个类别,汽车为另一个类别;也可以为基于需求、历史记录、以及经验等设置的,如门窗是一个类别,家电是另一个类别。It is worth noting that the categories in this embodiment may be categories determined based on industry classification standards, such as home improvement as one category and automobiles as another category; it may also be set based on requirements, historical records, and experience, such as doors and windows is one category, appliances are another.

而在本实施例中,当类别为基于行业分类标准的类别时,可以使得本实施例的搜索推荐方法的灵活性和全面性性相对偏高。However, in this embodiment, when the category is a category based on an industry classification standard, the flexibility and comprehensiveness of the search recommendation method in this embodiment can be relatively high.

结合上述示例和图1所示的应用场景,所示搜索目标对象为“XX空调”,则可以确定出搜索目标对象的所属类别为家装。Combining the above example and the application scenario shown in FIG. 1 , if the search target object shown is "XX air conditioner", it can be determined that the category of the search target object is home decoration.

相应地,在确定出所属类别之后,可以继续确定与所属类别存在关联关系的关联类别。也就是说,所属类别与关联类别之间存在关联,如家装和汽车等。Correspondingly, after the belonging category is determined, it is possible to continue to determine the associated category that has an associated relationship with the belonging category. That is, there is an association between the owning category and related categories, such as home improvement and automobiles.

S203:根据搜索目标对象和关联类别,生成并输出推荐信息。S203: Generate and output recommendation information according to the search target object and the associated category.

其中,推荐信息中包括:搜索目标对象、以及归属于关联类别的对象。The recommendation information includes: the search target object and the objects belonging to the associated category.

在本实施例中,推荐信息中可以包括两个维度的内容,一个维度的内容为搜索目标对象,另一个维度的内容为归属于关联类别的对象。In this embodiment, the recommendation information may include contents of two dimensions, the contents of one dimension are the search target objects, and the contents of the other dimension are the objects belonging to the associated category.

结合上述示例,若搜索目标对象为“XX空调”,关联类别为汽车,则推荐信息中包括:“XX空调”、以及归属于汽车的对象(如“XX汽车”)。In combination with the above example, if the search target object is "XX air conditioner" and the associated category is automobile, the recommended information includes: "XX air conditioner" and objects belonging to automobiles (such as "XX automobile").

示例性地,搜索推荐装置可以通过交互界面输出推荐信息。例如,结合如图1所示的应用场景,搜索推荐装置可以将推荐信息发送给用户终端,并通过用户终端的交互界面(即显示界面)输出推荐信息。Exemplarily, the search recommendation apparatus may output recommendation information through an interactive interface. For example, in combination with the application scenario shown in FIG. 1 , the search and recommendation apparatus may send recommendation information to a user terminal, and output the recommendation information through an interactive interface (ie, a display interface) of the user terminal.

值得说明地是,在本实施例中,引入了确定搜索目标对象的所属类别,并确定与所属类别存在关联关系的关联类别的特征,而通过引入该特征,可以生成包括搜索目标对象和归属于关联类别的对象的推荐信息,从而可以实现推荐信息中包括更多的推荐元素,进而实现推荐的全面性、灵活性、以及可靠性的技术效果。It is worth noting that, in this embodiment, the feature of determining the category of the search target object and determining the associated category that has an associated relationship with the category is introduced. The recommendation information of the objects of the associated category can be implemented, so that the recommendation information can include more recommendation elements, thereby achieving the technical effects of comprehensiveness, flexibility, and reliability of the recommendation.

图3是根据本申请又一实施例的示意图,如图3所示,本申请实施例的搜索推荐方法可以包括:FIG. 3 is a schematic diagram according to another embodiment of the present application. As shown in FIG. 3 , the search recommendation method in the embodiment of the present application may include:

S301:针对每一类别的文本数据,对每一类别的文本数据进行对象提取处理,并基于对象提取处理得到的对象构建包括各类别的可视化图表。S301: For each category of text data, perform object extraction processing on each category of text data, and construct a visual chart including various categories based on the objects obtained through the object extraction processing.

示例性地,可以基于类别获取文本数据,且每一类别的文本数据可以包括:文本的内容、文本的标题、文本中关于对象的评论、以及文本中关于对象的描述,等等。Exemplarily, text data may be obtained based on categories, and the text data of each category may include: the content of the text, the title of the text, a comment about the object in the text, and a description about the object in the text, and the like.

对象提取处理可以基于命名实体识别等技术实现,比如名词、地名、机构名、商品标签名等,可以作为对象事物的对象词,比如汽车之间里汽车的品牌名,各大旅游景点名,各部门名称,等等。Object extraction processing can be implemented based on technologies such as named entity recognition, such as nouns, place names, institution names, commodity label names, etc., which can be used as object words for object things, such as the brand name of the car in the car, the names of major tourist attractions, and the department name, etc.

在本实施例中,不同的对象可以构成可视化图表,且可视化图表中的每一类别下均可包括多个不同的对象。即,可视化图表中包括多个类别,每一类别下包括多个不同的对象。In this embodiment, different objects may constitute a visual chart, and each category in the visual chart may include multiple different objects. That is, the visualization chart includes multiple categories, and each category includes multiple different objects.

在一些实施例中,可视化图表的对象与可视化图表的类别之间具有所属关系,即可视化图表的对象归属于可视化图表的类别,且可以基于第二边连接关系表征所属关系。In some embodiments, the objects of the visualization chart have an belonging relationship with the categories of the visualization chart, that is, the objects of the visualization chart belong to the category of the visualization chart, and the belonging relationship can be characterized based on the second edge connection relationship.

图4是根据本申请一个实施例的可视化图表的示意图,如图4所示,可视化图表中可以包括两个类别,分别为家装和汽车,“XX空调”、“无框木门窗”为可视化图表的对象,且均归属于家装类别;“A汽车”、“B汽车”也为可视化图表的对象,且均归属于汽车类别。FIG. 4 is a schematic diagram of a visualization chart according to an embodiment of the present application. As shown in FIG. 4 , the visualization chart may include two categories, namely home improvement and automobile, and “XX air conditioner” and “frameless wooden doors and windows” are the visualization charts , and they all belong to the home improvement category; "A car" and "B car" are also objects of the visualization chart, and both belong to the car category.

图5是根据本申请另一实施例的可视化图表的示意图,如图5所示,在如图4所示的可视化图表的基础上,一些实施例中,针对每一类别,可以确定每一类别下的子分类。如家装类别下的子分类包括:门窗和家电;汽车类别下的子分类包括:燃油车和新能源车。FIG. 5 is a schematic diagram of a visualization chart according to another embodiment of the present application. As shown in FIG. 5 , on the basis of the visualization chart shown in FIG. 4 , in some embodiments, for each category, each category can be determined subcategories below. For example, the sub-categories under the home improvement category include: doors, windows and home appliances; the sub-categories under the automobile category include: fuel vehicles and new energy vehicles.

且如图5所示,子分类门窗下可以包括:“无框木门窗”对象和“有框木门窗”对象;子分类家电下可以包括:“XX空调”对象和“XX冰箱对象”;子分类燃油车下可以包括:“C汽车”和“D汽车”;子分类新能源车下可以包括“A汽车”和“B汽车”。And as shown in Figure 5, the sub-category doors and windows can include: "frameless wooden doors and windows" objects and "framed wooden doors and windows" objects; sub-category home appliances can include: "XX air conditioner" objects and "XX refrigerator objects"; The category of fuel vehicles can include: "C car" and "D car"; the sub-category of new energy vehicles can include "A car" and "B car".

同理,子分类可以基于行业标准确定,也可以基于需求、历史记录、以及试验等确定。Similarly, sub-categories can be determined based on industry standards, or based on requirements, historical records, and experiments.

S302:基于获取到的历史搜索记录,确定每一类别的共现频次。S302: Determine the co-occurrence frequency of each category based on the acquired historical search records.

其中,共现频次表征,在历史搜索记录中,不同类别在相邻搜索记录中出现的频次。Among them, the co-occurrence frequency represents the frequency of occurrence of different categories in adjacent search records in historical search records.

示例性地,历史搜索记录可以预设时间段内的历史搜索记录,如半年内的历史搜索记录。Exemplarily, the historical search records may be historical search records within a preset time period, such as historical search records within half a year.

频次可以表征,在历史搜索记录中,不同类别在相邻搜索记录中反复出现的次数。Frequency can represent, in historical search records, the number of times that different categories appear repeatedly in adjacent search records.

例如,对象“XX空调”归属于家装类别,“A汽车”归属于汽车类别,在半年的历史搜索记录中,“XX空调”与“A汽车”为相邻搜索记录的次数为n(n为大于或等于1的整数)次,则家装类别与汽车类别的共现频次为n次。For example, the object "XX air conditioner" belongs to the home improvement category, and "A car" belongs to the automobile category. In the historical search records of half a year, the number of adjacent search records for "XX air conditioner" and "A car" is n (n is an integer greater than or equal to 1) times, the co-occurrence frequency of the home improvement category and the automobile category is n times.

S303:根据共现频次确定各类别的第一边连接关系,并基于各类别的第一连接关系更新可视化图表。S303: Determine the first edge connection relationship of each category according to the co-occurrence frequency, and update the visualization chart based on the first connection relationship of each category.

其中,第一边连接关系表征关联关系。Among them, the first edge connection relationship represents the association relationship.

示例性地,本实施例可以理解为,可以基于共现频次确定两个类别之间是否具有关联关系,且当两个类别之间具有关联关系时,可以在可视化图表中,基于第一边连接关系进行表示。Exemplarily, in this embodiment, it can be understood that whether there is an association relationship between two categories can be determined based on the co-occurrence frequency, and when there is an association relationship between the two categories, it can be connected based on the first edge in the visual graph. relationship is represented.

结合上述示例,若基于共现频次确定家装类别与汽车类别之间存在关联关系,则如图6(图6是根据本申请另一实施例的可视化图表的示意图)所示,可以在如图5所示的基础上,在可视化图表中,增加家装类别与汽车类别之间的第一边连接关系,Combining the above example, if it is determined based on the co-occurrence frequency that there is an association between the home improvement category and the automobile category, as shown in FIG. On the basis shown, in the visual chart, add the first edge connection relationship between the home improvement category and the car category,

应该理解地是,上述示例只是以两个类别为例进行示范性地说明,而不能理解为对类别的数量的限定。It should be understood that, the above example is only taken as an example of two categories to illustrate, and should not be construed as a limitation on the number of categories.

值得说明地是,在本实施例中,通过基于共现频次确定各类别之间的关联关系,可以提高确定出的各类别之间的关联关系的准确性和可靠性,进而可以实现当基于具有关联关系的可视化图表确定推荐信息时,增加推荐信息的内容维度,提高推荐的灵活性、全面性、以及可靠性的技术效果,增强用户的体验。It is worth noting that, in this embodiment, by determining the association relationship between categories based on the co-occurrence frequency, the accuracy and reliability of the determined association relationship between When the visual chart of the association relationship determines the recommended information, the content dimension of the recommended information is increased, the technical effect of the flexibility, comprehensiveness, and reliability of the recommendation is improved, and the user experience is enhanced.

S304:获取用户的搜索任务,并根据搜索任务确定搜索目标对象。S304: Acquire the search task of the user, and determine the search target object according to the search task.

示例性地,关于S304地描述,可以参见S201,此次不再赘述。Exemplarily, for the description of S304, reference may be made to S201, which will not be repeated this time.

S305:根据可视化图表,确定与搜索目标对象存在第二边连接关系的所属类别。S305: Determine, according to the visual chart, the category to which the search target object has a second edge connection relationship.

结合上述示例可知,可视化图表的对象与可视化图表的类别之间具有第二边连接关系,第二边连接关系表征对象与类别之间的所属关系,在本实施例中,当搜索推荐装置基于搜索任务确定出搜索目标对象时,可以基于搜索目标对象,从可视化图表中确定,与搜索目标对象存在第二边连接关系的所属类别。Combining the above examples, it can be seen that there is a second edge connection relationship between the object of the visualization chart and the category of the visualization chart, and the second edge connection relationship represents the belonging relationship between the object and the category. In this embodiment, when the search recommendation device is based on the search When the task determines the search target object, the category to which the search target object has a second edge connection relationship can be determined from the visual chart based on the search target object.

例如,结合如图6所示的可视化图表,若搜索目标对象为“XX空调”,则与“XX空调”可以为家装类别。且如图6所示,搜索推荐装置可以基于“XX空调”确定其归属的家电子分类,并基于家电子分类确定其归属的家装类别。For example, in combination with the visual chart shown in FIG. 6 , if the search target object is "XX air conditioner", then "XX air conditioner" can be a home improvement category. And as shown in FIG. 6 , the search recommendation device may determine the home electronics category to which it belongs based on “XX air conditioner”, and determine the home improvement category to which it belongs based on the home electronics category.

值得说明地是,在本实施例中,通过从可视化图表中确定,与搜索目标对象存在第二边连接关系的所属类别,可以提高确定搜索目标对象的所属类别的效率和可靠性的技术效果。It is worth noting that, in this embodiment, by determining the category that has a second edge connection relationship with the search target object from the visual chart, the technical effect of determining the category to which the search target object belongs can be improved and the technical effect of reliability can be improved.

S306:根据可视化图表,确定与所属类别存在第一边连接关系的关联类别。S306: Determine an association category that has a first edge connection relationship with the category to which it belongs, according to the visual chart.

结合上述示例可知,可视化图表的类别与类别之间具有第一边连接关系,第一边连接关系表征类别与类别之间的关联关系,在本实施例中,当搜索推荐装置基于可视化图表确定出搜索目标对象的所属类别时,可以基于所属类别,从可视化图表中确定,与所属类别存在第一边连接关系的关联类别,即从可视化图表中确定,与所属类别存在关联关系的关联类别。Combining the above examples, it can be seen that the categories of the visual chart have a first edge connection relationship between the categories, and the first edge connection relationship represents the association relationship between the categories and the categories. In this embodiment, when the search recommendation device determines based on the visual chart When searching for the category to which the target object belongs, it can be determined from the visual chart based on the category to which it belongs, the associated category that has a first edge connection relationship with the category to which it belongs, that is, the associated category that has an associated relationship with the category to be determined from the visual chart.

例如,结合如图6所示的可视化图表,若所属类别为家装,则搜索推荐装置可以基于家装类别与汽车类别之间的第一边连接关系,确定关联类别即为汽车。For example, with reference to the visual chart shown in FIG. 6 , if the category is home decoration, the search recommendation device may determine that the associated category is automobile based on the first edge connection relationship between the home decoration category and the automobile category.

同理,通过从可视化图表中确定,与所属类别存在第一边连接关系的关联类别,可以提高确定关联类别的效率和可靠性的技术效果,且当结合关联类别生成推荐信息时,可以提高基于推荐信息为用户推荐的灵活性和全面性的技术效果。In the same way, by determining from the visual chart, the association category that has the first edge connection relationship with the category to which it belongs can improve the technical effect of determining the efficiency and reliability of the association category. The recommendation information is the technical effect of the flexibility and comprehensiveness of user recommendation.

S307:根据可视化图表,确定与关联类别存在第二边连接关系的对象。S307: Determine an object that has a second edge connection relationship with the associated category according to the visual chart.

结合上述示例和图6,若关联类别为汽车,则与汽车存在第二边连接关系的对象可以为“A汽车”、“B汽车”、“C汽车”、以及“D汽车”中的一种或多种。Combining the above example and Fig. 6, if the association class is car, the object with the second edge connection relationship with the car can be one of "A car", "B car", "C car", and "D car" or more.

S308:根据与关联类别存在第二边连接关系的对象、以及搜索目标对象,生成并输出推荐信息。S308: Generate and output recommendation information according to the object that has a second edge connection relationship with the association category and the search target object.

其中,推荐信息中包括:搜索目标对象、以及归属于关联类别的对象。The recommendation information includes: the search target object and the objects belonging to the associated category.

结合上述示例和图6,若与关联类别存在第二边连接关系的对象为“A汽车”、“B汽车”、“C汽车”、以及“D汽车”,搜索目标对象为“XX空调”,则推荐信息中可能包括:“XX空调”和“A汽车”,也可能包括:“XX空调”和“B汽车”,也可以包括:“XX空调”、“A汽车”、“B汽车”、“C汽车”,等等。Combining the above example and Figure 6, if the objects with the second edge connection relationship with the associated category are "A car", "B car", "C car", and "D car", the search target object is "XX air conditioner", The recommended information may include: "XX air conditioner" and "A car", may also include: "XX air conditioner" and "B car", or may include: "XX air conditioner", "A car", "B car", "C car", etc.

值得说明地是,在本实施例中,通过确定与关联类别存在第二边连接关系的对象,并基于该对象、以及搜索目标对象,生成并输出推荐信息,可以增加推荐信息的内容维度,从而满足用户较为宽泛的搜索需求,且通过基于关联类别为用户做推荐,可以使得推荐信息与用户的搜索需求高度贴合,从而挺高推荐的可靠性和准确性的技术效果。It is worth noting that, in this embodiment, by determining an object that has a second edge connection relationship with the associated category, and generating and outputting recommendation information based on the object and the search target object, the content dimension of the recommendation information can be increased, thereby increasing the content dimension of the recommendation information. It can meet the user's relatively broad search needs, and by making recommendations for users based on related categories, the recommended information can be highly matched with the user's search needs, so that the technical effect of the reliability and accuracy of the recommendation is high.

图7是根据本申请又一实施例的示意图,如图7所示,本申请实施例的搜索推荐方法可以包括:FIG. 7 is a schematic diagram according to another embodiment of the present application. As shown in FIG. 7 , the search recommendation method in the embodiment of the present application may include:

S701:获取历史搜索记录,基于历史搜索记录确定各类别的共现频次,并基于共现频次构建映射关系。S701: Obtain historical search records, determine co-occurrence frequencies of various categories based on the historical search records, and construct a mapping relationship based on the co-occurrence frequencies.

其中,共现频次表征,在历史搜索记录中,不同类别在相邻搜索记录中出现的频次。映射关系表征类别之间的关联关系。Among them, the co-occurrence frequency represents the frequency of occurrence of different categories in adjacent search records in historical search records. The mapping relationship represents the association between categories.

示例性地,关于共现频次地描述,可以参见上述示例中共现频次地描述,此次不再赘述。Exemplarily, for the description of the co-occurrence frequency, reference may be made to the description of the co-occurrence frequency in the above example, which will not be repeated here.

在本实施例中,可以基于共现频次构建,用于表征类别之间的关联关系的映射关系。在一些实施例中,可以通过链表的方式展现映射关系。In this embodiment, a mapping relationship for representing the association relationship between categories may be constructed based on the co-occurrence frequency. In some embodiments, the mapping relationship can be represented by a linked list.

值得说明地是,在本实施例中,通过基于历史搜索记录确定共现频次,并基于共现频次构建映射关系,可以实现映射关系较为准确地表达各类别之间的关联关系,从而实现当基于映射关系确定推荐信息时,提高推荐信息的准确性和可靠性的技术效果。It is worth noting that, in this embodiment, by determining the co-occurrence frequency based on the historical search records, and constructing the mapping relationship based on the co-occurrence frequency, the mapping relationship can more accurately express the association relationship between the categories, so that the The technical effect of improving the accuracy and reliability of the recommended information when the mapping relationship is used to determine the recommended information.

在一些实施例中,基于共现频次构建映射关系,可以包括如下步骤:In some embodiments, constructing the mapping relationship based on the co-occurrence frequency may include the following steps:

步骤1:根据共现频次确定各类别之间的关联性概率。Step 1: Determine the correlation probability between categories according to the co-occurrence frequency.

其中,关联性概率表征,在历史搜索记录中,第一类别被搜索后,继续搜索第二类别的概率。Among them, the correlation probability represents the probability of continuing to search for the second category after the first category is searched in the historical search records.

也就是说,在本实施例中,具有关联关系的类别之间具有指向性。That is to say, in this embodiment, the categories with the associated relationship have directivity.

结合上述示例和图6,家装类别和汽车类别的共现频次为n次,在历史搜索记录中,搜索家装类别之后,继续搜索汽车类别的次数为m次,则家装类别与汽车类别之间的关联性概率=m/n,相应地,汽车类别与家装类别之间的关联性概率=(n-m)/n。Combining the above example and Figure 6, the co-occurrence frequency of the home improvement category and the car category is n times. In the historical search records, after searching for the home improvement category, the number of times to continue searching for the automobile category is m times, then the number of times between the home improvement category and the automobile category is m. Correlation probability=m/n, correspondingly, the correlation probability between the automobile category and the home improvement category=(n-m)/n.

步骤2:根据关联性概率构建映射关系。Step 2: Build a mapping relationship according to the association probability.

搜索推荐装置在确定出关联性概率之后,可以基于关联性概率构建映射关系。例如,可以预先设置关联性概率阈值,若确定出的类别之间的关联性概率大于关联性概率阈值,则构建类别之间的映射关系。After determining the relevance probability, the search recommendation apparatus may construct a mapping relationship based on the relevance probability. For example, a correlation probability threshold may be preset, and if the determined correlation probability between categories is greater than the correlation probability threshold, a mapping relationship between categories is constructed.

具体地,结合上述示例,若m/n大于关联性概率阈值,则构建包括家装类别与汽车类别之间的关联关系的映射关系,且在映射关系中,家装类别与汽车类别之间具有指向性,即当确定出归属类别为家装时,可以确定与家装类别具有关联关系的为汽车类别。Specifically, in combination with the above example, if m/n is greater than the correlation probability threshold, a mapping relationship including the correlation between the home improvement category and the car category is constructed, and in the mapping relationship, there is a directivity between the home improvement category and the automobile category , that is, when it is determined that the attribution category is home improvement, it can be determined that the category associated with the home improvement category is the automobile category.

示例性地,关联性概率阈值可以基于需求、历史记录、以及试验等进行设置。Illustratively, the relevance probability threshold may be set based on requirements, history, and experimentation, among others.

值得说明地是,在本实施例中,通过基于关联性概率确定类别之间的关联关系,可以提高确定出的关联关系的可靠性和准确性,使得关联关系与用户搜索需求高度贴合,从而实现为用户推荐的信息中的对象,为满足用户搜索需求的对象,从而提高推荐的灵活性和可靠性的技术效果。It is worth noting that, in this embodiment, by determining the association relationship between categories based on the association probability, the reliability and accuracy of the determined association relationship can be improved, so that the association relationship is highly suitable for the user's search needs, thereby The technical effect of realizing the object in the information recommended for the user is the object that meets the user's search requirements, thereby improving the flexibility and reliability of the recommendation.

S702:获取用户的搜索任务,并根据搜索任务确定搜索目标对象。S702: Acquire a search task of the user, and determine a search target object according to the search task.

示例性地,关于S702地描述,可以参见S101,此次不再赘述。Exemplarily, for the description of S702, reference may be made to S101, which will not be repeated this time.

S703:基于映射关系,确定与所属类别存在关联关系的关联类别。S703: Based on the mapping relationship, determine an association category that has an association relationship with the category to which it belongs.

值得说明地是,各不同的类别之间存在关联关系,而通过基于映射关系确定所属类别存在关联关系的关联类别,可以提高确定关联类别的效率的技术效果。It is worth noting that there is an association relationship between different categories, and by determining an association category whose category has an association relationship based on the mapping relationship, the technical effect of determining the efficiency of the association category can be improved.

S704:获取基于搜索目标对象的二次搜索记录。S704: Acquire a secondary search record based on the search target object.

其中,二次搜索记录表征,在搜索了搜索目标对象之后,继续搜索对象的记录。Among them, the secondary search record represents that after searching the search target object, the record of the object is continued to be searched.

同理,二次搜索记录为预设时间段内的搜索记录,如一个月内的搜索记录,具体可以基于需求、历史记录、以及试验等进行设置,本实施例不做限定。Similarly, the secondary search records are search records within a preset time period, such as search records within a month, which may be specifically set based on requirements, historical records, and experiments, which are not limited in this embodiment.

S705:基于关联类别,从二次搜索记录中选择归属于关联类别的对象。S705: Based on the associated category, select objects belonging to the associated category from the secondary search records.

例如,若搜索目标对象为“XX空调”,所属类别为家装,与家装类别具有关联关系的关联类别为汽车,二次搜索记录中包括“XX床垫”、“XX瓷砖”、以及“A汽车”等,则搜索推荐装置可以将“A汽车”确定为归属于关联类别的对象。For example, if the search target object is "XX air conditioner", the category it belongs to is home improvement, and the associated category with the home improvement category is automobile, the secondary search records include "XX mattress", "XX tile", and "A car" ”, etc., the search recommendation device may determine “A car” as an object belonging to the associated category.

在一些实施例中,搜索推荐装置可以基于如图6所示的可视化图表,从二次搜索记录中选择归属于关联类别的对象。In some embodiments, the search recommendation apparatus may select objects belonging to the associated category from the secondary search records based on the visual chart as shown in FIG. 6 .

值得说明地是,在本实施例中,通过从二次搜索记录中,选择归属于关联类别的对象,可以使得当基于归属于关联类别的对象生成推荐信息时,提高推荐信息的准确性和可靠性,使得推荐信息与用户的搜索需求存在高度贴合的可能性的技术效果。It is worth noting that, in this embodiment, by selecting objects belonging to the associated category from the secondary search records, it is possible to improve the accuracy and reliability of the recommended information when the recommendation information is generated based on the objects belonging to the associated category. It has the technical effect of making the recommended information highly fit to the user's search needs.

在一些实施例中,S705可以包括如下步骤:In some embodiments, S705 may include the following steps:

步骤1:从二次搜索记录中,选择归属于关联类别的搜索次数最多的对象。Step 1: From the secondary search records, select the object with the most searches belonging to the associated category.

步骤2:将搜索次数最多的对象确定为归属于关联类别的对象。Step 2: Determine the object with the most searches as the object belonging to the associated category.

结合上述示例,若关联类别为汽车,且二次搜索记录中包括归属于汽车类别的“A汽车”、“B汽车”、以及“C汽车”,则搜索推荐装置可以确定“A汽车”、“B汽车”、以及“C汽车”的搜索次数,如“A汽车”的搜索次数为a次,“B汽车”的搜索次数为b次,“C汽车”的搜索次数为c次,且确定a、b、以及c中最大的为a,则搜索推荐装置可以选择的对象为“A汽车”。Combining the above example, if the associated category is automobile, and the secondary search records include "A car", "B car", and "C car" belonging to the car category, the search recommendation device can determine "A car", "C car" The number of searches for "B car" and "C car", for example, "A car" is searched for a times, "B car" is searched for b times, and "C car" is searched for c times, and it is determined that a The largest of , b, and c is a, and the object that can be selected by the search recommendation device is "A car".

相应地,在搜索推荐装置确定出归属于关联类别的搜索次数最多的为a时,则可以将“A汽车”确定为归属于关联类别的对象。Correspondingly, when the search recommending device determines that the most frequently searched times belonging to the associated category are a, then "A car" may be determined as an object belonging to the associated category.

值得说明地是,在本实施例中,通过将归属于关联类别的搜索次数最多的对象,确定为归属于关联类别的对象,可以提高归属于关联类别的对象、与搜索目标对象之间的高度关联性,使得生成的推荐信息与用户的搜索需求高度关联,提高了推荐的准确性和可靠性的技术效果。It is worth noting that, in this embodiment, by determining the object belonging to the association category with the most searches as the object belonging to the association category, the height between the object belonging to the association category and the search target object can be improved. Relevance, so that the generated recommendation information is highly related to the user's search needs, which improves the technical effect of the accuracy and reliability of the recommendation.

值得说明地是,确定归属于关联类别的对象的方法还可以为,购买次数最多的归属于关联类别的对象;还可以为,成交量最多的归属于关联类别的对象;还可以为,评价最优的归属于关联类别的对象,等等,本实施例不做限定。It is worth noting that the method for determining the object belonging to the associated category can also be: the object with the most purchases belongs to the associated category; it can also be the object with the most transaction volume belonging to the associated category; it can also be the object with the most evaluation. The preferred objects belonging to the association category, etc., are not limited in this embodiment.

S706:基于搜索目标对象和归属于关联类别的对象,生成并输出推荐信息。S706: Generate and output recommendation information based on the search target object and the objects belonging to the associated category.

结合上述示例,搜索推荐可以基于搜索目标对象“XX空调”、以及归属于关联类别的对象“A汽车”,生成输出推荐信息。Combining the above examples, the search recommendation may generate output recommendation information based on the search target object "XX air conditioner" and the object "A car" belonging to the associated category.

值得说明地是,在相关技术中,搜索推荐装置输出的推荐信息中仅包括搜索目标对象“XX空调”,或者与搜索目标对象“XX空调”功能相似(或者外观相似)的其他空调,而在本实施例中,推荐信息中还包括归属于关联类别的对象“A汽车”,从而可以避免相关技术中推荐的局限性,提高了推荐的灵活性和全面性的技术效果。It is worth noting that, in the related art, the recommendation information output by the search recommendation device only includes the search target object "XX air conditioner", or other air conditioners with similar functions (or similar appearances) to the search target object "XX air conditioner", while in In this embodiment, the recommendation information further includes the object "A car" belonging to the associated category, so that the limitation of recommendation in the related art can be avoided, and the flexibility and comprehensive technical effect of the recommendation can be improved.

图8是根据本申请又一实施例的示意图,如图8所示,本申请实施例的搜索推荐装置800可以包括:FIG. 8 is a schematic diagram according to another embodiment of the present application. As shown in FIG. 8 , the search recommendation apparatus 800 in the embodiment of the present application may include:

第一获取模块801,用于获取用户的搜索任务,并根据所述搜索任务确定搜索目标对象。The first obtaining module 801 is configured to obtain a user's search task, and determine a search target object according to the search task.

第一确定模块802,用于确定所述搜索目标对象的所属类别,并确定与所述所属类别存在关联关系的关联类别。The first determining module 802 is configured to determine the category to which the search target object belongs, and determine the associated category that has an associated relationship with the category.

生成模块803,用于根据所述搜索目标对象和所述关联类别,生成推荐信息;其中,所述推荐信息中包括:所述搜索目标对象、以及归属于所述关联类别的对象。The generating module 803 is configured to generate recommendation information according to the search target object and the association category; wherein the recommendation information includes: the search target object and objects belonging to the association category.

输出模块804,用于输出所述推荐信息。The output module 804 is configured to output the recommendation information.

在一些实施例中,各不同的类别之间存在关联关系;所述第一确定模块802用于,基于预先设置的映射关系,确定与所述所属类别存在关联关系的关联类别,其中,所述映射关系表征类别之间的关联关系。In some embodiments, an association relationship exists between different categories; the first determining module 802 is configured to, based on a preset mapping relationship, determine an association category that has an association relationship with the category to which it belongs, wherein the The mapping relationship represents the association between categories.

图9是根据本申请又一实施例的示意图,如图9所示,在如图8所示的实施例的基础上,本申请实施例的搜索推荐装置可以包括:FIG. 9 is a schematic diagram according to another embodiment of the present application. As shown in FIG. 9 , on the basis of the embodiment shown in FIG. 8 , the search recommendation apparatus in the embodiment of the present application may include:

第二获取模块805,用于获取历史搜索记录。The second obtaining module 805 is used for obtaining historical search records.

第二确定模块806,用于基于所述历史搜索记录确定各类别的共现频次;其中,所述共现频次表征,在所述历史搜索记录中,不同类别在相邻搜索记录中出现的频次。The second determining module 806 is configured to determine the co-occurrence frequencies of various categories based on the historical search records; wherein, the co-occurrence frequencies represent, in the historical search records, the frequency of occurrence of different categories in adjacent search records .

第一构建模块807,用于基于所述共现频次构建所述映射关系。The first building module 807 is configured to build the mapping relationship based on the co-occurrence frequency.

在一些实施例中,所述第一构建模块806用于,根据所述共现频次确定所述各类别之间的关联性概率,并根据所述关联性概率构建所述映射关系;其中,所述关联性概率表征,在所述历史搜索记录中,第一类别被搜索后,继续搜索第二类别的概率。In some embodiments, the first construction module 806 is configured to determine the correlation probability between the categories according to the co-occurrence frequency, and construct the mapping relationship according to the correlation probability; wherein, the The probability representation of the relevance, in the historical search record, after the first category is searched, the probability of continuing to search for the second category.

在一些实施例中,不同的类别构成可视化图表,所述可视化图表中的不同的类别之间具有第一边连接关系,所述第一边连接关系表征关联关系;所述第一确定模块802用于,根据所述可视化图表,确定与所述所属类别存在第一边连接关系的所述关联类别。In some embodiments, different categories constitute a visual chart, and different categories in the visual chart have a first edge connection relationship, and the first edge connection relationship represents an association relationship; the first determination module 802 uses and determining, according to the visual graph, the association category that has a first edge connection relationship with the category to which it belongs.

图10是根据本申请又一实施例的示意图,如图10所示,在如图9所示的实施例的基础上,本申请实施例的搜索推荐装置可以包括:FIG. 10 is a schematic diagram according to another embodiment of the present application. As shown in FIG. 10 , on the basis of the embodiment shown in FIG. 9 , the search recommendation apparatus in the embodiment of the present application may include:

提取模块808,用于针对每一类别的文本数据,对每一类别的文本数据进行对象提取处理;The extraction module 808 is configured to perform object extraction processing on the text data of each category with respect to the text data of each category;

第二构建模块809用于,基于对象提取处理得到的对象构建包括各类别的可视化图表;The second construction module 809 is configured to construct a visual chart including various categories based on the objects obtained by the object extraction process;

第三确定模块810,用于基于获取到的历史搜索记录,确定所述每一类别的共现频次,并根据所述共现频次确定各类别的第一边连接关系;其中,所述共现频次表征,在所述历史搜索记录中,不同类别在相邻搜索记录中出现的频次;The third determining module 810 is configured to determine the co-occurrence frequency of each category based on the acquired historical search records, and determine the first edge connection relationship of each category according to the co-occurrence frequency; wherein, the co-occurrence frequency Frequency representation, in the historical search records, the frequency of occurrence of different categories in adjacent search records;

更新模块811,用于基于所述各类别的第一连接关系更新所述可视化图表。The updating module 811 is configured to update the visualization chart based on the first connection relationship of each category.

在一些实施例中,不同的对象构成可视化图表,所述可视化图表中的类别下具有多个不同的对象,所述可视化图表的对象与所述可视化图表的类别之间具有第二边连接关系,所述第二边连接关系表征对象与类别之间的所属关系;所述第一确定模块802用于,根据所述可视化图表,确定与所述搜索目标对象存在第二边连接关系的所述所属类别。In some embodiments, different objects constitute a visual chart, and there are multiple different objects under categories in the visual chart, and a second edge connection relationship exists between the objects of the visual chart and the categories of the visual chart, The second edge connection relationship represents the belonging relationship between the object and the category; the first determining module 802 is configured to, according to the visual chart, determine the belonging relationship with the search target object that has a second edge connection relationship category.

在一些实施例中,所述生成模块803用于,根据所述可视化图表,确定与所述关联类别存在第二边连接关系的对象,并根据与所述关联类别存在第二边连接关系的对象、以及所述搜索目标对象,生成所述推荐信息。In some embodiments, the generating module 803 is configured to, according to the visual chart, determine the objects that have a second edge connection relationship with the association category, and, according to the objects that have a second edge connection relationship with the association category , and the search target object to generate the recommendation information.

在一些实施例中,所述生成模块803用于,获取基于所述搜索目标对象的二次搜索记录;其中,所述二次搜索记录表征,在搜索了所述搜索目标对象之后,继续搜索对象的记录,并基于所述关联类别,从所述二次搜索记录中选择归属于所述关联类别的对象,并基于所述搜索目标对象和所述归属于所述关联类别的对象,生成所述推荐信息。In some embodiments, the generating module 803 is configured to obtain a secondary search record based on the search target object; wherein, the secondary search record represents that after searching for the search target object, continue searching for an object and based on the association category, select objects belonging to the association category from the secondary search records, and generate the object based on the search target object and the objects belonging to the association category Recommended information.

在一些实施例中,所述生成模块803用于,从所述二次搜索记录中,选择归属于所述关联类别的搜索次数最多的对象,并将搜索次数最多的对象确定为归属于所述关联类别的对象。In some embodiments, the generating module 803 is configured to, from the secondary search records, select the object with the most searches belonging to the associated category, and determine the object with the most searches as belonging to the associated category An object of the associated class.

根据本申请的实施例,本申请还提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如上第一方面所述的方法,例如,实现如图2、图3以及图7中任一实施例所示的表情预测模型的训练方法According to an embodiment of the present application, the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements the method described in the first aspect above, for example, implements FIG. 2 , FIG. 3 , and The training method of the expression prediction model shown in any embodiment in FIG. 7

根据本申请的实施例,本申请还提供了一种电子设备和一种可读存储介质。According to the embodiments of the present application, the present application further provides an electronic device and a readable storage medium.

电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.

图11是根据本申请又一实施例的示意图,如图11所示,该电子设备1100包括计算单元1101,其可以根据存储在只读存储器(ROM)1102中的计算机程序或者从存储单元1108加载到随机访问存储器(RAM)1103中的计算机程序,来执行各种适当的动作和处理。在RAM1103中,还可存储设备1100操作所需的各种程序和数据。计算单元1101、ROM 1102以及RAM1103通过总线1104彼此相连。输入/输出(I/O)接口1105也连接至总线1104。FIG. 11 is a schematic diagram according to still another embodiment of the present application. As shown in FIG. 11 , the electronic device 1100 includes a computing unit 1101 , which can be loaded according to a computer program stored in a read only memory (ROM) 1102 or from a storage unit 1108 into a computer program in random access memory (RAM) 1103 to perform various appropriate actions and processes. In the RAM 1103, various programs and data necessary for the operation of the device 1100 can also be stored. The computing unit 1101 , the ROM 1102 , and the RAM 1103 are connected to each other through a bus 1104 . An input/output (I/O) interface 1105 is also connected to the bus 1104 .

设备1100中的多个部件连接至I/O接口1105,包括:输入单元1106,例如键盘、鼠标等;输出单元1107,例如各种类型的显示器、扬声器等;存储单元1108,例如磁盘、光盘等;以及通信单元1109,例如网卡、调制解调器、无线通信收发机等。通信单元1109允许设备1100通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Various components in the device 1100 are connected to the I/O interface 1105, including: an input unit 1106, such as a keyboard, mouse, etc.; an output unit 1107, such as various types of displays, speakers, etc.; a storage unit 1108, such as a magnetic disk, an optical disk, etc. ; and a communication unit 1109, such as a network card, a modem, a wireless communication transceiver, and the like. The communication unit 1109 allows the device 1100 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.

计算单元1101可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元1101的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元1101执行上文所描述的各个方法和处理,例如搜索推荐方法。例如,在一些实施例中,搜索推荐方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元1108。在一些实施例中,计算机程序的部分或者全部可以经由ROM 1102和/或通信单元1109而被载入和/或安装到设备1100上。当计算机程序加载到RAM 1103并由计算单元1101执行时,可以执行上文描述的搜索推荐方法的一个或多个步骤。备选地,在其他实施例中,计算单元1101可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行搜索推荐方法。Computing unit 1101 may be various general-purpose and/or special-purpose processing components with processing and computing capabilities. Some examples of computing units 1101 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various specialized artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1101 executes the various methods and processes described above, such as a search recommendation method. For example, in some embodiments, the search recommendation method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 1108 . In some embodiments, part or all of the computer program may be loaded and/or installed on device 1100 via ROM 1102 and/or communication unit 1109 . When the computer program is loaded into the RAM 1103 and executed by the computing unit 1101, one or more steps of the search recommendation method described above may be performed. Alternatively, in other embodiments, the computing unit 1101 may be configured to perform the search recommendation method by any other suitable means (eg, by means of firmware).

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein above may be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips system (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.

用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer or other programmable data processing apparatus, such that the program code, when executed by the processor or controller, performs the functions/functions specified in the flowcharts and/or block diagrams. Action is implemented. The program code may execute entirely on the machine, partly on the machine, partly on the machine and partly on a remote machine as a stand-alone software package or entirely on the remote machine or server.

在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.

为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、区块链服务网络(Block-chain-based Service Network,BSN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Blockchain-based Service Networks (BSNs), Wide Area Networks (WANs), and the Internet.

计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与虚拟专用服务器(VPS,Virtual Private Server)服务中,存在的管理难度大,业务扩展性弱的缺陷。服务器也可以为分布式系统的服务器,或者是结合了区块链的服务器A computer system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or a cloud host. It is a host product in the cloud computing service system to solve the problems existing in traditional physical host and virtual private server (VPS, Virtual Private Server) services. The management is difficult and the business expansion is weak. The server can also be a distributed system server, or a server combined with a blockchain

根据本申请实施例的另一个方面,本申请实施例还提供了一种智能设备,包括:According to another aspect of the embodiments of the present application, the embodiments of the present application further provide a smart device, including:

输出器、至少一个处理器、以及与所述至少一个处理器通信连接的存储器;其中,所述输出器与所述至少一个处理器连接;an exporter, at least one processor, and a memory communicatively coupled to the at least one processor; wherein the exporter is coupled to the at least one processor;

所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如上任一实施例中任一实施例所述的方法;The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform as described in any of the above embodiments the method described;

所述输出器用于输出所述推荐信息。The outputter is used for outputting the recommendation information.

在一些实施例中,所述智能设备还包括:接收器;In some embodiments, the smart device further includes: a receiver;

所述接收器用于接收搜索请求,所述搜索请求用于请求搜索所述搜索目标对象;The receiver is used for receiving a search request, and the search request is used for requesting to search for the search target object;

或者,所述接收器用于接收点击请求,所述点击请求用于请求打开应用程序。Alternatively, the receiver is used to receive a click request, and the click request is used to request to open an application.

在一些实施例中,所述接收器为以下的任意一种:麦克风、智能屏、以及用户接口。In some embodiments, the receiver is any of the following: a microphone, a smart screen, and a user interface.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发申请中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本申请公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, the steps described in the present application can be performed in parallel, sequentially or in different orders, and as long as the desired results of the technical solutions disclosed in the present application can be achieved, no limitation is imposed herein.

上述具体实施方式,并不构成对本申请保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本申请的精神和原则之内所作的修改、等同替换和改进等,均应包含在本申请保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of this application shall be included within the protection scope of this application.

Claims (26)

1.一种搜索推荐方法,包括:1. A search recommendation method, comprising: 获取用户的搜索任务,并根据所述搜索任务确定搜索目标对象;Obtain the search task of the user, and determine the search target object according to the search task; 确定所述搜索目标对象的所属类别,并确定与所述所属类别存在关联关系的关联类别;Determine the category to which the search target object belongs, and determine the associated category that has an associated relationship with the category; 根据所述搜索目标对象和所述关联类别,生成并输出推荐信息;其中,所述推荐信息中包括:所述搜索目标对象、以及归属于所述关联类别的对象。According to the search target object and the associated category, recommendation information is generated and output; wherein, the recommendation information includes: the search target object and objects belonging to the associated category. 2.根据权利要求1所述的方法,其中,各不同的类别之间存在关联关系;确定与所述所属类别存在关联关系的关联类别,包括:2. The method according to claim 1, wherein an association relationship exists between different categories; determining an association category that has an association relationship with the belonging category, comprising: 基于预先设置的映射关系,确定与所述所属类别存在关联关系的关联类别,其中,所述映射关系表征类别之间的关联关系。Based on a preset mapping relationship, an association category having an association relationship with the belonging category is determined, wherein the mapping relationship represents an association relationship between categories. 3.根据权利要求2所述的方法,在基于预先设置的映射关系,确定与所述所属类别存在关联关系的关联类别之前,所述方法还包括:3. The method according to claim 2, before determining an association category having an association relationship with the belonging category based on a preset mapping relationship, the method further comprises: 获取历史搜索记录,基于所述历史搜索记录确定各类别的共现频次,并基于所述共现频次构建所述映射关系;其中,所述共现频次表征,在所述历史搜索记录中,不同类别在相邻搜索记录中出现的频次。Obtain historical search records, determine co-occurrence frequencies of various categories based on the historical search records, and construct the mapping relationship based on the co-occurrence frequencies; wherein, the co-occurrence frequency representations, in the historical search records, are different How often the category appears in adjacent search records. 4.根据权利要求3所述的方法,其中,基于所述共现频次构建所述映射关系,包括:4. The method according to claim 3, wherein constructing the mapping relationship based on the co-occurrence frequency comprises: 根据所述共现频次确定所述各类别之间的关联性概率,并根据所述关联性概率构建所述映射关系;其中,所述关联性概率表征,在所述历史搜索记录中,第一类别被搜索后,继续搜索第二类别的概率。The correlation probability between the categories is determined according to the co-occurrence frequency, and the mapping relationship is constructed according to the correlation probability; wherein, the correlation probability represents, in the historical search record, the first After the category has been searched, continue searching for the probability of the second category. 5.根据权利要求1所述的方法,其中,不同的类别构成可视化图表,所述可视化图表中的不同的类别之间具有第一边连接关系,所述第一边连接关系表征关联关系;确定与所述所属类别存在关联关系的关联类别,包括:5. The method according to claim 1, wherein different categories constitute a visual chart, and different categories in the visual chart have a first edge connection relationship, and the first edge connection relationship represents an association relationship; determining Associated categories that have an associated relationship with the category to which they belong, including: 根据所述可视化图表,确定与所述所属类别存在第一边连接关系的所述关联类别。According to the visual chart, determine the association category that has a first edge connection relationship with the category to which it belongs. 6.根据权利要求5所述的方法,在根据所述可视化图表,确定与所述所属类别存在第一边连接关系的所述关联类别之前,所述方法还包括:6. The method according to claim 5, before determining, according to the visual chart, the association category that has a first edge connection relationship with the category to which it belongs, the method further comprises: 针对每一类别的文本数据,对每一类别的文本数据进行对象提取处理,并基于对象提取处理得到的对象构建包括各类别的可视化图表;For each category of text data, perform object extraction processing on each category of text data, and construct visual charts including various categories based on the objects obtained by the object extraction processing; 基于获取到的历史搜索记录,确定所述每一类别的共现频次,并根据所述共现频次确定各类别的第一边连接关系,并基于所述各类别的第一连接关系更新所述可视化图表;其中,所述共现频次表征,在所述历史搜索记录中,不同类别在相邻搜索记录中出现的频次。Based on the acquired historical search records, the co-occurrence frequency of each category is determined, the first edge connection relationship of each category is determined according to the co-occurrence frequency, and the first edge connection relationship of each category is updated based on the A visualization chart; wherein the co-occurrence frequency represents, in the historical search records, the frequency of occurrence of different categories in adjacent search records. 7.根据权利要求1至6中任一项所述的方法,其中,不同的对象构成可视化图表,所述可视化图表中的类别下具有多个不同的对象,所述可视化图表的对象与所述可视化图表的类别之间具有第二边连接关系,所述第二边连接关系表征对象与类别之间的所属关系;确定所述搜索目标对象的所属类别,包括:7. The method according to any one of claims 1 to 6, wherein different objects constitute a visual chart, and there are multiple different objects under categories in the visual chart, and the objects of the visual chart are the same as the ones in the visual chart. The categories of the visual chart have a second edge connection relationship, and the second edge connection relationship represents the belonging relationship between the object and the category; determining the category to which the search target object belongs, including: 根据所述可视化图表,确定与所述搜索目标对象存在第二边连接关系的所述所属类别。According to the visual graph, the category to which the search target object has a second edge connection relationship is determined. 8.根据权利要求7所述的方法,其中,根据所述搜索目标对象和所述关联类别,生成并输出推荐信息,包括:8. The method according to claim 7, wherein generating and outputting recommendation information according to the search target object and the associated category, comprising: 根据所述可视化图表,确定与所述关联类别存在第二边连接关系的对象;According to the visual graph, determine the object that has a second edge connection relationship with the association category; 根据与所述关联类别存在第二边连接关系的对象、以及所述搜索目标对象,生成并输出所述推荐信息。The recommendation information is generated and output according to the object that has a second edge connection relationship with the association category and the search target object. 9.根据权利要求1至6中任一项所述的方法,其中,根据所述搜索目标对象和所述关联类别,生成并输出推荐信息,包括:9. The method according to any one of claims 1 to 6, wherein, according to the search target object and the association category, generating and outputting recommendation information, comprising: 获取基于所述搜索目标对象的二次搜索记录;其中,所述二次搜索记录表征,在搜索了所述搜索目标对象之后,继续搜索对象的记录;Acquiring a secondary search record based on the search target object; wherein, the secondary search record represents that after the search target object is searched, the record of the object is continued to be searched; 基于所述关联类别,从所述二次搜索记录中选择归属于所述关联类别的对象,并基于所述搜索目标对象和所述归属于所述关联类别的对象,生成并输出所述推荐信息。Selecting objects belonging to the associated category from the secondary search records based on the associated category, and generating and outputting the recommendation information based on the search target object and the objects belonging to the associated category . 10.根据权利要求9所述的方法,其中,基于所述关联类别,从所述二次搜索记录中选择归属于所述关联类别的对象,包括:10. The method of claim 9, wherein, based on the association category, selecting objects belonging to the association category from the secondary search records comprises: 从所述二次搜索记录中,选择归属于所述关联类别的搜索次数最多的对象,并将搜索次数最多的对象确定为归属于所述关联类别的对象。From the secondary search records, the object with the most searches belonging to the associated category is selected, and the object with the most searches is determined as the object belonging to the associated category. 11.一种搜索推荐装置,包括:11. A search recommendation device, comprising: 第一获取模块,用于获取用户的搜索任务,并根据所述搜索任务确定搜索目标对象;The first acquisition module is used to acquire the search task of the user, and determine the search target object according to the search task; 第一确定模块,用于确定所述搜索目标对象的所属类别,并确定与所述所属类别存在关联关系的关联类别;a first determining module, configured to determine the category to which the search target object belongs, and determine the associated category that has an associated relationship with the category; 生成模块,用于根据所述搜索目标对象和所述关联类别,生成推荐信息;其中,所述推荐信息中包括:所述搜索目标对象、以及归属于所述关联类别的对象;a generating module, configured to generate recommendation information according to the search target object and the association category; wherein the recommendation information includes: the search target object and objects belonging to the association category; 输出模块,用于输出所述推荐信息。An output module, configured to output the recommended information. 12.根据权利要求11所述的装置,其中,各不同的类别之间存在关联关系;所述第一确定模块用于,基于预先设置的映射关系,确定与所述所属类别存在关联关系的关联类别,其中,所述映射关系表征类别之间的关联关系。12 . The apparatus according to claim 11 , wherein an association relationship exists between different categories; the first determining module is configured to, based on a preset mapping relationship, determine an association that has an association relationship with the category to which it belongs. 13 . categories, wherein the mapping relationship represents an association relationship between categories. 13.根据权利要求12所述的装置,所述装置还包括:13. The apparatus of claim 12, further comprising: 第二获取模块,用于获取历史搜索记录;The second acquisition module is used to acquire historical search records; 第二确定模块,用于基于所述历史搜索记录确定各类别的共现频次;其中,所述共现频次表征,在所述历史搜索记录中,不同类别在相邻搜索记录中出现的频次;The second determining module is configured to determine the co-occurrence frequencies of various categories based on the historical search records; wherein, the co-occurrence frequencies represent the frequencies of occurrences of different categories in adjacent search records in the historical search records; 第一构建模块,用于基于所述共现频次构建所述映射关系。The first building module is configured to build the mapping relationship based on the co-occurrence frequency. 14.根据权利要求13所述的装置,其中,所述第一构建模块用于,根据所述共现频次确定所述各类别之间的关联性概率,并根据所述关联性概率构建所述映射关系;其中,所述关联性概率表征,在所述历史搜索记录中,第一类别被搜索后,继续搜索第二类别的概率。14. The apparatus according to claim 13, wherein the first building module is configured to determine the correlation probability between the categories according to the co-occurrence frequency, and construct the correlation probability according to the correlation probability A mapping relationship; wherein the correlation probability represents, in the historical search record, the probability of continuing to search for the second category after the first category is searched. 15.根据权利要求11所述的装置,其中,不同的类别构成可视化图表,所述可视化图表中的不同的类别之间具有第一边连接关系,所述第一边连接关系表征关联关系;所述第一确定模块用于,根据所述可视化图表,确定与所述所属类别存在第一边连接关系的所述关联类别。15. The apparatus according to claim 11, wherein different categories constitute a visual chart, and different categories in the visual chart have a first edge connection relationship, and the first edge connection relationship represents an association relationship; the The first determining module is configured to, according to the visual chart, determine the association category that has a first edge connection relationship with the category to which it belongs. 16.根据权利要求15所述的装置,所述装置还包括:16. The apparatus of claim 15, further comprising: 提取模块,用于针对每一类别的文本数据,对每一类别的文本数据进行对象提取处理;The extraction module is used to perform object extraction processing on the text data of each category according to the text data of each category; 第二构建模块用于,基于对象提取处理得到的对象构建包括各类别的可视化图表;The second building module is used to construct a visual chart including various categories based on the object obtained by the object extraction process; 第三确定模块,用于基于获取到的历史搜索记录,确定所述每一类别的共现频次,并根据所述共现频次确定各类别的第一边连接关系;其中,所述共现频次表征,在所述历史搜索记录中,不同类别在相邻搜索记录中出现的频次;The third determining module is configured to determine the co-occurrence frequency of each category based on the acquired historical search records, and determine the first edge connection relationship of each category according to the co-occurrence frequency; wherein the co-occurrence frequency Characterization, in the historical search records, the frequency of different categories appearing in adjacent search records; 更新模块,用于基于所述各类别的第一连接关系更新所述可视化图表。An update module, configured to update the visualization chart based on the first connection relationship of each category. 17.根据权利要求11至16中任一项所述的装置,其中,不同的对象构成可视化图表,所述可视化图表中的类别下具有多个不同的对象,所述可视化图表的对象与所述可视化图表的类别之间具有第二边连接关系,所述第二边连接关系表征对象与类别之间的所属关系;所述第一确定模块用于,根据所述可视化图表,确定与所述搜索目标对象存在第二边连接关系的所述所属类别。17. The device according to any one of claims 11 to 16, wherein different objects constitute a visual chart, and there are multiple different objects under categories in the visual chart, and the objects of the visual chart are the same as those of the visual chart. The categories of the visual chart have a second edge connection relationship, and the second edge connection relationship represents the belonging relationship between the object and the category; the first determination module is used for, according to the visual chart, determine and the search The target object has the category of the second edge connection relationship. 18.根据权利要求17所述的装置,其中,所述生成模块用于,根据所述可视化图表,确定与所述关联类别存在第二边连接关系的对象,并根据与所述关联类别存在第二边连接关系的对象、以及所述搜索目标对象,生成所述推荐信息。18. The apparatus according to claim 17, wherein the generating module is configured to, according to the visual graph, determine an object that has a second edge connection relationship with the association category, and according to the object that has a first edge connection with the association category The object of the two-sided connection relationship and the search target object generate the recommendation information. 19.根据权利要求11至16中任一项所述的装置,其中,所述生成模块用于,获取基于所述搜索目标对象的二次搜索记录;其中,所述二次搜索记录表征,在搜索了所述搜索目标对象之后,继续搜索对象的记录,并基于所述关联类别,从所述二次搜索记录中选择归属于所述关联类别的对象,并基于所述搜索目标对象和所述归属于所述关联类别的对象,生成所述推荐信息。19. The apparatus according to any one of claims 11 to 16, wherein the generating module is used to obtain a secondary search record based on the search target object; wherein, the secondary search record is characterized in After searching for the search target object, continue to search the records of the object, and based on the associated category, select objects belonging to the associated category from the secondary search records, and based on the search target object and the The recommendation information is generated for the objects belonging to the association category. 20.根据权利要求19所述的装置,其中,所述生成模块用于,从所述二次搜索记录中,选择归属于所述关联类别的搜索次数最多的对象,并将搜索次数最多的对象确定为归属于所述关联类别的对象。20. The apparatus according to claim 19, wherein the generating module is configured to, from the secondary search records, select the object with the most searches belonging to the associated category, and select the object with the most searches Objects identified as belonging to the association class. 21.一种电子设备,包括:21. An electronic device comprising: 至少一个处理器;以及at least one processor; and 与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-10中任一项所述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the execution of any of claims 1-10 Methods. 22.一种智能设备,包括:22. A smart device comprising: 输出器、至少一个处理器、以及与所述至少一个处理器通信连接的存储器;其中,所述输出器与所述至少一个处理器连接;an exporter, at least one processor, and a memory communicatively coupled to the at least one processor; wherein the exporter is coupled to the at least one processor; 所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-10中任一项所述的方法;The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the execution of any of claims 1-10 Methods; 所述输出器用于输出所述推荐信息。The outputter is used for outputting the recommendation information. 23.根据权利要求22所述的智能设备,所述智能设备还包括:接收器;23. The smart device of claim 22, further comprising: a receiver; 所述接收器用于接收搜索请求,所述搜索请求用于请求搜索所述搜索目标对象;The receiver is used for receiving a search request, and the search request is used for requesting to search for the search target object; 或者,所述接收器用于接收点击请求,所述点击请求用于请求打开应用程序。Alternatively, the receiver is used to receive a click request, and the click request is used to request to open an application. 24.根据权利要求23所述的智能设备,所述接收器为以下的任意一种:麦克风、智能屏、以及用户接口。24. The smart device of claim 23, wherein the receiver is any one of the following: a microphone, a smart screen, and a user interface. 25.一种存储有计算机指令的非瞬时计算机可读存储介质,所述计算机指令用于使所述计算机执行权利要求1-10中任一项所述的方法。25. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any of claims 1-10. 26.一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现权利要求1-10中任一项所述的方法。26. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of claims 1-10.
CN202011423807.8A 2020-12-08 2020-12-08 Search recommendation method and device, intelligent device, electronic device and storage medium Pending CN112528144A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011423807.8A CN112528144A (en) 2020-12-08 2020-12-08 Search recommendation method and device, intelligent device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011423807.8A CN112528144A (en) 2020-12-08 2020-12-08 Search recommendation method and device, intelligent device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN112528144A true CN112528144A (en) 2021-03-19

Family

ID=74998217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011423807.8A Pending CN112528144A (en) 2020-12-08 2020-12-08 Search recommendation method and device, intelligent device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN112528144A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113175940A (en) * 2021-04-26 2021-07-27 北京百度网讯科技有限公司 Data processing method, device, equipment and storage medium
CN113190749A (en) * 2021-05-06 2021-07-30 北京百度网讯科技有限公司 Method and device for determining object attribute, electronic equipment and medium
CN113190718A (en) * 2021-04-28 2021-07-30 百度在线网络技术(北京)有限公司 Data processing method and device for graph database, electronic equipment and storage medium
CN114065008A (en) * 2021-11-23 2022-02-18 北京百度网讯科技有限公司 Method, apparatus, device and storage medium for object identification based on search
CN114595403A (en) * 2022-03-07 2022-06-07 北京字节跳动网络技术有限公司 Search result display method and device, computer equipment and storage medium
WO2023197872A1 (en) * 2022-04-15 2023-10-19 北京字节跳动网络技术有限公司 Book searching method and apparatus, and device and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070276857A1 (en) * 2006-05-24 2007-11-29 Hitachi, Ltd. Search apparatus
US8126881B1 (en) * 2007-12-12 2012-02-28 Vast.com, Inc. Predictive conversion systems and methods
WO2013098830A1 (en) * 2011-12-30 2013-07-04 Yogesh Chunical Rathod A system and method for dynamic, portable, customize, contextual, unified and integrated network(s).
WO2014107488A1 (en) * 2013-01-04 2014-07-10 24/7 Customer, Inc. Determining product categories by mining chat transcripts
CN104281699A (en) * 2014-10-15 2015-01-14 百度在线网络技术(北京)有限公司 Search recommending method and device
US20150081709A1 (en) * 2012-07-27 2015-03-19 Rakuten, Inc. Processing device, processing method, program, and recording medium
CN110807138A (en) * 2019-09-10 2020-02-18 国网电子商务有限公司 Method and device for determining search object category
CN111310011A (en) * 2020-01-20 2020-06-19 北京字节跳动网络技术有限公司 Information pushing method and device, electronic equipment and storage medium
CN111382364A (en) * 2020-03-19 2020-07-07 北京字节跳动网络技术有限公司 Method and device for processing information
CN111475725A (en) * 2020-04-01 2020-07-31 百度在线网络技术(北京)有限公司 Method, apparatus, device, and computer-readable storage medium for searching content
CN111753049A (en) * 2020-06-15 2020-10-09 广东美的厨房电器制造有限公司 Recipe recommendation method, device, home appliance and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070276857A1 (en) * 2006-05-24 2007-11-29 Hitachi, Ltd. Search apparatus
US8126881B1 (en) * 2007-12-12 2012-02-28 Vast.com, Inc. Predictive conversion systems and methods
WO2013098830A1 (en) * 2011-12-30 2013-07-04 Yogesh Chunical Rathod A system and method for dynamic, portable, customize, contextual, unified and integrated network(s).
US20150081709A1 (en) * 2012-07-27 2015-03-19 Rakuten, Inc. Processing device, processing method, program, and recording medium
WO2014107488A1 (en) * 2013-01-04 2014-07-10 24/7 Customer, Inc. Determining product categories by mining chat transcripts
US20140195562A1 (en) * 2013-01-04 2014-07-10 24/7 Customer, Inc. Determining product categories by mining interaction data in chat transcripts
CN104281699A (en) * 2014-10-15 2015-01-14 百度在线网络技术(北京)有限公司 Search recommending method and device
CN110807138A (en) * 2019-09-10 2020-02-18 国网电子商务有限公司 Method and device for determining search object category
CN111310011A (en) * 2020-01-20 2020-06-19 北京字节跳动网络技术有限公司 Information pushing method and device, electronic equipment and storage medium
CN111382364A (en) * 2020-03-19 2020-07-07 北京字节跳动网络技术有限公司 Method and device for processing information
CN111475725A (en) * 2020-04-01 2020-07-31 百度在线网络技术(北京)有限公司 Method, apparatus, device, and computer-readable storage medium for searching content
CN111753049A (en) * 2020-06-15 2020-10-09 广东美的厨房电器制造有限公司 Recipe recommendation method, device, home appliance and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄源 等: "《大数据技术与应用[M]》", 31 May 2020, 北京:机械工业出版社, pages: 136 - 138 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113175940A (en) * 2021-04-26 2021-07-27 北京百度网讯科技有限公司 Data processing method, device, equipment and storage medium
CN113175940B (en) * 2021-04-26 2024-04-30 北京百度网讯科技有限公司 Data processing method, device, equipment and storage medium
CN113190718A (en) * 2021-04-28 2021-07-30 百度在线网络技术(北京)有限公司 Data processing method and device for graph database, electronic equipment and storage medium
CN113190749A (en) * 2021-05-06 2021-07-30 北京百度网讯科技有限公司 Method and device for determining object attribute, electronic equipment and medium
CN113190749B (en) * 2021-05-06 2023-10-31 北京百度网讯科技有限公司 Methods and devices, electronic equipment and media for determining object properties
CN114065008A (en) * 2021-11-23 2022-02-18 北京百度网讯科技有限公司 Method, apparatus, device and storage medium for object identification based on search
CN114595403A (en) * 2022-03-07 2022-06-07 北京字节跳动网络技术有限公司 Search result display method and device, computer equipment and storage medium
WO2023197872A1 (en) * 2022-04-15 2023-10-19 北京字节跳动网络技术有限公司 Book searching method and apparatus, and device and storage medium

Similar Documents

Publication Publication Date Title
CN112528144A (en) Search recommendation method and device, intelligent device, electronic device and storage medium
CN112749344A (en) Information recommendation method and device, electronic equipment, storage medium and program product
CN103678304A (en) Method and device for pushing specific content for predetermined webpage
CN109241403A (en) Item recommendation method, device, machinery equipment and computer readable storage medium
CN113205189B (en) Method for training prediction model, prediction method and device
CN114428902B (en) Information search method, device, electronic equipment and storage medium
CN113722593B (en) Event data processing methods, devices, electronic equipment and media
CN112784591A (en) Data processing method and device, electronic equipment and storage medium
CN115168732A (en) Resource recommendation method, apparatus, device and storage medium
CN115357793A (en) Information recommendation method and device, electronic equipment and storage medium
CN113312432A (en) Associated information processing method and device, computer storage medium and electronic equipment
WO2021196470A1 (en) Information pushing method and apparatus, device, and storage medium
CN115994534A (en) Method, device, equipment and storage medium for mining hot words in government affairs scene
CN114861059A (en) Resource recommendation method and device, electronic equipment and storage medium
CN114048315A (en) Method, apparatus, electronic device and storage medium for determining a document label
CN113239273A (en) Method, device, equipment and storage medium for generating text
CN114064728A (en) A data query method, device, electronic device, medium and product
CN117474598B (en) Advertisement searching method, model training method and device
CN114722299A (en) Search recommended methods, devices and electronic equipment
CN113763005B (en) Picture advertisement pushing method, electronic equipment and computer readable storage medium
CN114443935A (en) Content searching method and device and electronic equipment
CN114528489A (en) User tag determination method, device, electronic equipment and program product
CN114417862A (en) Text matching method, training method and device for text matching model
CN114565402A (en) Information recommendation method and device and electronic equipment
CN114048376A (en) Advertisement service information mining method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination