[go: up one dir, main page]

CN112084376A - Map knowledge based recommendation method and system and electronic device - Google Patents

Map knowledge based recommendation method and system and electronic device Download PDF

Info

Publication number
CN112084376A
CN112084376A CN202010920529.0A CN202010920529A CN112084376A CN 112084376 A CN112084376 A CN 112084376A CN 202010920529 A CN202010920529 A CN 202010920529A CN 112084376 A CN112084376 A CN 112084376A
Authority
CN
China
Prior art keywords
data
user
knowledge
graph
recommendation
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.)
Granted
Application number
CN202010920529.0A
Other languages
Chinese (zh)
Other versions
CN112084376B (en
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 Minglue Zhaohui Technology Co Ltd
Original Assignee
Beijing Minglue Zhaohui 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 Minglue Zhaohui Technology Co Ltd filed Critical Beijing Minglue Zhaohui Technology Co Ltd
Priority to CN202010920529.0A priority Critical patent/CN112084376B/en
Publication of CN112084376A publication Critical patent/CN112084376A/en
Application granted granted Critical
Publication of CN112084376B publication Critical patent/CN112084376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists
    • 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/903Querying
    • G06F16/9032Query formulation
    • G06F16/90332Natural language query formulation or dialogue systems
    • 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/906Clustering; Classification
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种基于图谱知识的推荐方法、推荐系统及电子装置,基于图谱知识的推荐方法包括:步骤S1:获取用户提供的数据并进行数据整理;步骤S2:从整理后的数据中抽取图谱要素并基于图谱要素构建知识图谱数据;步骤S3:根据知识图谱数据进行模型训练;步骤S4:根据实时数据通过训练后的模型获得推荐结果。本发明以关联关系的方式展示前期行为和结果的关联性,可以明确的查看出某些行为和实体的关系比较紧密,后续可以绑定这种紧密的关系在后续的目标优化场景下有针对性的进行相关调整。

Figure 202010920529

The invention discloses a recommendation method, a recommendation system and an electronic device based on graph knowledge. The recommendation method based on graph knowledge includes: step S1: acquiring data provided by a user and sorting the data; step S2: extracting from the sorted data Graph elements and construct knowledge graph data based on the graph elements; step S3: perform model training according to the knowledge graph data; step S4: obtain recommendation results through the trained model according to real-time data. The present invention displays the correlation between the previous behavior and the result in the form of association relationship, and can clearly check that the relationship between some behaviors and entities is relatively close, and the close relationship can be bound in the subsequent target optimization scenarios. make relevant adjustments.

Figure 202010920529

Description

基于图谱知识的推荐方法、推荐系统及电子装置Recommendation method, recommendation system and electronic device based on graph knowledge

技术领域technical field

本发明涉及一种推荐方法、推荐系统及电子装置,具体地说,尤其涉 及一种基于群体用户展示知识图谱解释的推荐方法、推荐系统及电子装置。The present invention relates to a recommendation method, a recommendation system, and an electronic device, and in particular, to a recommendation method, a recommendation system, and an electronic device based on the interpretation of knowledge graphs displayed by group users.

背景技术Background technique

随着网络发展的迅速,信息的迅速膨胀,用户行为节奏的加快,越来 越需求能快速获取用户直接需求或者潜在需求的信息,在这种需求下推荐 系统的应用越来越广泛。With the rapid development of the network, the rapid expansion of information, and the acceleration of user behavior rhythm, there is more and more demand for information that can quickly obtain users' direct or potential needs. Under this demand, the application of recommendation systems is becoming more and more extensive.

客户不仅需求查看推荐位置的各项数据指标,也期望查看推荐过程中 的关联关系。通过知识图谱构建清晰的关联关系展示,查看推荐内容的合 理性,以及通过关联关系的分析得出更深入的洞察结论。Customers not only need to view various data indicators of the recommended location, but also expect to view the relationship in the recommendation process. Build a clear relationship display through the knowledge graph, check the rationality of the recommended content, and draw deeper insights through the analysis of the relationship.

现有技术中,在推荐位对应的数据报告中,展示不同行为(例如曝光、 点击、购买、点赞等)的数据指标。但是,在实际中发现,还是存在以下 缺点:In the prior art, in the data report corresponding to the recommendation position, data indicators of different behaviors (such as exposure, click, purchase, like, etc.) are displayed. However, in practice, there are still the following shortcomings:

1、数据指标的表格必须在时间上完全对应,并且无法展示出行为序列 特征及关联关系。割裂查看行为数据可能对数据现象产生遗漏,或者得出 错误的结论。1. The tables of data indicators must correspond exactly in time, and cannot show the behavior sequence characteristics and relationships. Viewing behavioral data in isolation can leave out data phenomena or draw erroneous conclusions.

2、将用户本身特性及行为转化成标签,展示单个标签或者多个标签的 各维度数据。2. Convert the user's own characteristics and behaviors into tags, and display the data of each dimension of a single tag or multiple tags.

3、标签与标签之间没有时间顺序或者关联关系的展示,并且无法在数 据显示上层层递进,产生从单一维度向下分析的效果。3. There is no time sequence or relationship between tags and tags, and it is impossible to progress in the upper layer of the data display, resulting in the effect of downward analysis from a single dimension.

因此急需开发一种克服上述缺陷的基于图谱知识的推荐方法、推荐系 统及电子装置。Therefore, there is an urgent need to develop a recommendation method, recommendation system and electronic device based on graph knowledge to overcome the above shortcomings.

发明内容SUMMARY OF THE INVENTION

针对上述问题,本发明提供一种基于图谱知识的推荐方法,其中,包 括:In view of the above problems, the present invention provides a kind of recommendation method based on graph knowledge, wherein, including:

步骤S1:获取用户提供的数据并进行数据整理;Step S1: obtain the data provided by the user and organize the data;

步骤S2:从整理后的所述数据中抽取图谱要素并基于所述图谱要素间 的关联关系构建知识图谱数据;Step S2: extracting map elements from the sorted data and constructing knowledge map data based on the association relationship between the map elements;

步骤S3:根据所述知识图谱数据进行模型训练;Step S3: performing model training according to the knowledge graph data;

步骤S4:根据实时数据通过训练后的模型获得推荐结果。Step S4: Obtain recommendation results through the trained model according to the real-time data.

上述的基于图谱知识的推荐方法,其中,还包括:The above-mentioned recommendation method based on graph knowledge, wherein, also includes:

步骤S5:结合用户历史行为及推荐结果输出单个用户关联轨迹。Step S5: output a single user association track in combination with the user's historical behavior and the recommendation result.

上述的基于图谱知识的推荐方法,其中,还包括:The above-mentioned recommendation method based on graph knowledge, wherein, also includes:

步骤S6:抽取各个用户的数据进行汇聚统计并输出统计结果。Step S6: extracting the data of each user for aggregation statistics and outputting the statistical results.

上述的基于图谱知识的推荐方法,其中,所述数据包括:用户数据及 物料数据,所述用户数据包括用户行为及用户特征。In the above-mentioned recommendation method based on graph knowledge, the data includes: user data and material data, and the user data includes user behavior and user characteristics.

上述的基于图谱知识的推荐方法,其中,所述步骤S1中包括,针对所 述数据定义标签结构。In the above-mentioned recommendation method based on graph knowledge, the step S1 includes defining a label structure for the data.

上述的基于图谱知识的推荐方法,其中,所述步骤S2中包括:The above-mentioned recommendation method based on graph knowledge, wherein, the step S2 includes:

步骤S21:通过分词、语义处理对数据进行处理;Step S21: Process the data through word segmentation and semantic processing;

步骤S22:进行实体抽取、关系抽取和事件抽取;Step S22: perform entity extraction, relation extraction and event extraction;

步骤S23:将标签、关联关系与实体进行对应形成知识图谱数据。Step S23: Corresponding labels, associations and entities to form knowledge graph data.

上述的基于图谱知识的推荐方法,其中,所述步骤S5中包括,选取模 型参考的用户的历史行为同时记录出用户不同行为的分类,根据历史行为、 分类及所述推荐结果输出单个用户关联轨迹。In the above-mentioned recommendation method based on graph knowledge, the step S5 includes selecting the historical behavior of the user referenced by the model and recording the classification of different behaviors of the user, and outputting a single user associated track according to the historical behavior, classification and the recommendation result. .

上述的基于图谱知识的推荐方法,其中,所述步骤S6中包括,抽取各 个用户的用户行为及用户特征,以不同的特征为维度进行汇聚统计并输出 所述统计结果。In the above-mentioned recommendation method based on graph knowledge, the step S6 includes: extracting the user behavior and user characteristics of each user, and using different characteristics as dimensions to aggregate statistics and output the statistical results.

本发明还提供一种基于图谱知识的推荐系统,其中,包括:The present invention also provides a recommendation system based on graph knowledge, including:

数据处理单元:获取用户提供的数据并进行数据整理;Data processing unit: obtain the data provided by the user and organize the data;

构建单元:从整理后的所述数据中抽取图谱要素并基于所述图谱要素 间的关联关系构建知识图谱数据;Construction unit: extracting map elements from the sorted data and constructing knowledge map data based on the relationship between the map elements;

训练单元:根据所述知识图谱数据进行模型训练;Training unit: perform model training according to the knowledge map data;

结果输出单元:根据实时数据通过训练后的模型获得推荐结果;Result output unit: Obtain recommendation results through the trained model according to real-time data;

轨迹输出单元:结合用户历史行为及推荐结果输出单个用户关联轨迹;Trajectory output unit: output a single user associated trajectory in combination with the user's historical behavior and recommendation results;

统计结果输出单元:抽取各个用户的数据进行汇聚统计并输出统计结 果。Statistical result output unit: extracts the data of each user for aggregate statistics and outputs the statistical results.

本发明还提供一种电子装置,包括存储器和处理器,其中,所述存储 器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行所 述任一项中所述的基于图谱知识的推荐方法。The present invention also provides an electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the graph-based mapping described in any one of the above by the computer program. Recommended methods of knowledge.

综上所述,本发明相对于现有技术其功效在于:本发明可以运用知识 图谱的实体关系的标记以及拥有强关联关系的结果,汇总单个用户的行为 特征,总结出群体用户的普遍行为轨迹和行为特征,使用图形化展示清晰 的关联关系,便于快速发现数据现象及进行数据分析;同时基于本发明因 为关联关系的多样和复杂性,因此能够有侧重点的展示出关系图结构。To sum up, compared with the prior art, the present invention has the following effects: the present invention can use the markers of entity relationships in the knowledge graph and the results of strong association relationships to summarize the behavioral characteristics of a single user, and summarize the general behavioral trajectory of group users. and behavior characteristics, using graphics to display clear associations, which is convenient for quickly discovering data phenomena and performing data analysis; at the same time, based on the present invention, because of the diversity and complexity of associations, the structure of the relationship graph can be displayed in a focused manner.

本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从 说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其 他优点可通过在说明书、权利要求书以及附图中所指出的结构来实现和获 得。Other features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure pointed out in the description, claims and drawings.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对 实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地, 下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1为本发明的推荐方法的流程图;Fig. 1 is the flow chart of the recommended method of the present invention;

图2为图1中步骤S2的流程图;Fig. 2 is the flow chart of step S2 in Fig. 1;

图3为本发明的推荐方法的应用示意图;Fig. 3 is the application schematic diagram of the recommended method of the present invention;

图4为本发明的推荐方法的展示示例图;FIG. 4 is a diagram showing an example of the recommendation method of the present invention;

图5为本发明的推荐系统的结构示意图;5 is a schematic structural diagram of a recommendation system of the present invention;

图6为本发明的电子装置的硬件结构示意图。FIG. 6 is a schematic diagram of the hardware structure of the electronic device of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本 发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地说 明,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提 下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

本发明的示意性实施例及其说明用于解释本发明,但并不作为对本发 明的限定。另外,在附图及实施方式中所使用相同或类似标号的元件/构件 是用来代表相同或类似部分。The illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention. In addition, elements/members with the same or similar reference numerals used in the drawings and the embodiments are intended to represent the same or similar parts.

关于本文中所使用的“第一”、“第二”、“S1”、“S2”、…等, 并非特别指称次序或顺位的意思,也非用以限定本发明,其仅为了区别以 相同技术用语描述的元件或操作。The terms "first", "second", "S1", "S2", ... etc. used in this document do not specifically refer to the order or order, nor are they used to limit the present invention, and are only used to distinguish between Elements or operations described in the same technical terms.

关于本文中所使用的方向用语,例如:上、下、左、右、前或后等, 仅是参考附图的方向。因此,使用的方向用语是用来说明并非用来限制本 创作。Orientation terms used herein, such as: up, down, left, right, front or rear, etc., refer only to the orientation of the drawings. Therefore, the directional language used is intended to be illustrative and not intended to limit this creation.

关于本文中所使用的“包含”、“包括”、“具有”、“含有”等等, 均为开放性的用语,即意指包含但不限于。As used herein, "comprising," "including," "having," "containing," and the like, are open-ended terms, meaning including but not limited to.

关于本文中所使用的“及/或”,包括所述事物的任一或全部组合。As used herein, "and/or" includes any and all combinations of the stated things.

关于本文中的“多个”包括“两个”及“两个以上”;关于本文中的 “多组”包括“两组”及“两组以上”。As used herein, "plurality" includes "two" and "two or more"; as used herein, "multiple groups" includes "two groups" and "two or more groups."

关于本文中所使用的用语“大致”、“约”等,用以修饰任何可以微 变化的数量或误差,但这些微变化或误差并不会改变其本质。一般而言, 此类用语所修饰的微变化或误差的范围在部分实施例中可为20%,在部分实 施例中可为10%,在部分实施例中可为5%或是其他数值。本领域技术人员 应当了解,前述提及的数值可依实际需求而调整,并不以此为限。As used herein, the terms "approximately", "about" and the like are used to modify any quantity or error which may vary slightly, but which do not alter its essence. In general, the range of slight variation or error modified by such terms can be 20% in some embodiments, 10% in some embodiments, 5% in some embodiments, or other values. Those skilled in the art should understand that the aforementioned values can be adjusted according to actual needs, and are not limited thereto.

某些用以描述本申请的用词将于下或在此说明书的别处讨论,以提供 本领域技术人员在有关本申请的描述上额外的引导。Certain terms used to describe the application are discussed below or elsewhere in this specification to provide those skilled in the art with additional guidance in the description of the application.

知识图谱(Knowledge Graph),在图书情报界称为知识域可视化或知 识领域映射地图,是显示知识发展进程与结构关系的一系列各种不同的图 形,用可视化技术描述知识资源及其载体,挖掘、分析、构建、绘制和显 示知识及它们之间的相互联系。Knowledge Graph (Knowledge Graph), known as knowledge domain visualization or knowledge domain mapping map in the library and information industry, is a series of various graphs showing the knowledge development process and structural relationship. , analyze, construct, map and display knowledge and the interconnections between them.

知识图谱是通过将应用数学、图形学、信息可视化技术、信息科学等 学科的理论与方法与计量学引文分析、共现分析等方法结合,并利用可视 化的图谱形象地展示学科的核心结构、发展历史、前沿领域以及整体知识 架构达到多学科融合目的的现代理论。它能为学科研究提供切实的、有价 值的参考。Knowledge graph is a combination of theories and methods of applied mathematics, graphics, information visualization technology, information science and other disciplines with quantitative citation analysis, co-occurrence analysis and other methods, and uses a visual graph to visualize the core structure and development of the discipline. Modern theories of history, frontier areas, and overall knowledge structures for the purpose of multidisciplinary integration. It can provide practical and valuable reference for disciplinary research.

知识图谱是一种基于图的数据结构,由节点(point)和边(Edge)组 成,每个节点表示一个“实体”,每条边为实体与实体之间的“关系”, 知识图谱本质上是语义网络。实体指的可以是现实世界中的事物,比如人、 地名、公司、电话、动物等;关系则用来表达不同实体之间的某种联系。由 上图,可以看到实体有地名和人;大理属于云南、小明住在大理、小明和 小秦是朋友,这些都是实体与实体之间的关系。通俗定义:知识图谱就是 把所有不同种类的信息连接在一起而得到的一个关系网络,因此知识图谱 提供了从“关系”的角度去分析问题的能力。Knowledge graph is a graph-based data structure, consisting of nodes (points) and edges (Edges), each node represents an "entity", and each edge is a "relationship" between entities and entities. is the semantic web. Entities can refer to things in the real world, such as people, place names, companies, telephones, animals, etc.; relationships are used to express a certain connection between different entities. From the above picture, we can see that entities have place names and people; Dali belongs to Yunnan, Xiaoming lives in Dali, Xiaoming and Xiaoqin are friends, these are the relationship between entities. Popular definition: knowledge graph is a relational network obtained by connecting all different kinds of information, so knowledge graph provides the ability to analyze problems from the perspective of "relationship".

本发明的基于图谱知识的推荐方法,在前期构建知识图谱并训练出可 应用的模型后,能自动结合用户行为数据,输出存储用户行为轨迹,提取 关键维度,针对于关键维度进行汇总统计,同时能够分不同维度展示重点 实体关联关系,并可以圈定不同维度的范围进行细化的查看分析。The recommendation method based on graph knowledge of the present invention, after constructing a knowledge graph in the early stage and training an applicable model, can automatically combine user behavior data, output and store user behavior trajectories, extract key dimensions, and perform summary statistics for key dimensions. It can display the relationship between key entities in different dimensions, and can delineate the scope of different dimensions for detailed viewing and analysis.

其结点代表实体(entity)或者概念(concept),边代表实体/概念 之间的各种语义关系。Its nodes represent entities or concepts, and edges represent various semantic relationships between entities/concepts.

请参照图1,图1为本发明的推荐方法的流程图。如图1所示,本发明 的基于图谱知识的推荐方法包括:Please refer to FIG. 1 , which is a flowchart of a recommended method of the present invention. As shown in Figure 1, the recommended method based on graph knowledge of the present invention includes:

步骤S1:获取用户提供的数据并进行数据整理。其中,所述步骤S1中 包括,针对所述数据定义标签结构。具体地说,所述数据包括:用户数据 及物料数据,所述用户数据包括用户行为及用户特征。根据客户提供的用 户数据和物料数据进行数据整理,如提供的数据中有明确规整的标签则可 以直接使用,如提供的数据中标签不明确则需要重新处理。针对于数据先 定义标签结构:例如确定要区分多少标签,课程可以有讲师、价钱、分类 等标签;例如每个标签的字典值是什么以及是什么范围,如用户的具体年 龄可以以10岁为一个区间范围。Step S1: Acquire the data provided by the user and organize the data. Wherein, the step S1 includes defining a label structure for the data. Specifically, the data includes: user data and material data, and the user data includes user behavior and user characteristics. The data is organized according to the user data and material data provided by the customer. If the provided data has clear and regular labels, it can be used directly. If the provided data is not clear, it needs to be reprocessed. First define the tag structure for the data: for example, determine how many tags to distinguish, and the course can have tags such as lecturer, price, classification, etc.; for example, what is the dictionary value of each tag and what is the range, such as the specific age of the user, which can be 10 years old as an interval range.

步骤S2:从整理后的所述数据中抽取图谱要素并基于所述图谱要素间 的关联关系构建知识图谱数据。Step S2: Extracting graph elements from the sorted data and constructing knowledge graph data based on the association relationship between the graph elements.

请参照图2,图2为图1中步骤S2的流程图。如图2所示,所述步骤 S2中包括:Please refer to FIG. 2 , which is a flowchart of step S2 in FIG. 1 . As shown in Figure 2, the step S2 includes:

步骤S21:通过分词、语义处理对数据进行处理;Step S21: Process the data through word segmentation and semantic processing;

步骤S22:进行实体抽取、关系抽取和事件抽取;Step S22: perform entity extraction, relation extraction and event extraction;

步骤S23:将标签、关联关系与实体进行对应形成知识图谱数据。Step S23: Corresponding labels, associations and entities to form knowledge graph data.

具体地说,在本步骤中,针对于标题、简介等信息,可通过分词、语 义处理等方式,如基本信息存在于链接中可以先通过爬虫获取基本信息, 再进行文本处理,将标签、关联关系等与实体进行对应。Specifically, in this step, for information such as title, introduction, etc., word segmentation, semantic processing, etc. can be used. If basic information exists in the link, the basic information can be obtained through a crawler first, and then text processing is performed to associate tags, associations, etc. Relationships, etc. correspond to entities.

关系抽取:Relation extraction:

定义:自动识别实体之间具有的某种语义关系。根据参与实体的多少 可以分为二元关系抽取(两个实体)和多元关系抽取(三个及以上实体)。Definition: Automatically identify a certain semantic relationship between entities. According to the number of participating entities, it can be divided into binary relation extraction (two entities) and multivariate relation extraction (three or more entities).

通过关注两个实体间的语义关系,可以得到(arg1,relation,arg2) 三元组,其中arg1和arg2表示两个实体,relation表示实体间的语义关 系。(比如通过Hanlp分析工具可以得到句子中各词之间的语义关系)。By focusing on the semantic relationship between two entities, we can get (arg1, relation, arg2) triples, where arg1 and arg2 represent two entities, and relation represents the semantic relationship between entities. (For example, the semantic relationship between the words in the sentence can be obtained through the Hanlp analysis tool).

关系抽取方法:Relation extraction method:

限定域关系抽取方法:Restricted domain relation extraction method:

基于模板的关系抽取方法:通过人工编辑或者学习得到的模板对文本 中的实体关系进行抽取和判别,受限于模板的质量和覆盖度,可扩张性不 强。(自己做的法院文书属于基于模板的抽取)Template-based relationship extraction method: Extract and discriminate entity relationships in text through manually edited or learned templates, which are limited by the quality and coverage of templates, and are not scalable. (Court documents made by yourself belong to template-based extraction)

基于机器学习的关系抽取方法:将关系抽取看成是一个分类问题 其中,基于机器学习的关系抽取方法又可分为有监督和弱监督。Relation extraction method based on machine learning: regard relation extraction as a classification problem Among them, the relation extraction method based on machine learning can be divided into supervised and weakly supervised.

有监督的关系抽取方法:Supervised relation extraction methods:

基于特征工程的方法:需要显示地将关系实例转换成分类器可以接受 的特征向量Approaches based on feature engineering: need to explicitly convert relation instances into feature vectors acceptable to the classifier

基于核函数的方法:直接以结构树为处理对象,在计算关系之间距离 的时候不再使用特征向量的内积而是用核函数Kernel function-based method: directly use the structure tree as the processing object, and instead of using the inner product of the feature vector when calculating the distance between the relationships, use the kernel function

基于神经网络的方法:直接从输入的文本中自动学习有效的特征表示, 端到端Neural Network-Based Methods: Automatically Learn Efficient Feature Representations Directly from Input Text, End-to-End

弱监督的关系抽取方法:不需要人工标注大量数据。Weakly supervised relation extraction methods: do not require manual labeling of large amounts of data.

距离监督:用开放知识图谱自动标注训练样本,不需要人工逐一标注, 属弱监督关系抽取的一种。Distance supervision: Automatic labeling of training samples with an open knowledge graph, which does not require manual labeling one by one, is a type of weakly supervised relationship extraction.

开放域关系抽取方法:Open domain relation extraction method:

不需要预先定义关系类别,使用实体对上下文中的一些词语来描述实 体之间的关系。There is no need to predefine the relationship category, and some words in the entity pair context are used to describe the relationship between entities.

事件抽取及方法:Event extraction and methods:

定义:从描述事件信息的文本中抽取出用户感兴趣的事件并以结构化 的形式呈现出来。Definition: Extract events of interest to users from the text describing event information and present them in a structured form.

步骤:首先识别出事件及其类型,其次要识别出事件所涉及的元素(一 般是实体),最后需要确定每个元素在事件中所扮演的角色。Steps: First identify the event and its type, secondly identify the elements (usually entities) involved in the event, and finally determine the role each element plays in the event.

事件抽取相关概念:Event extraction related concepts:

事件指称:对一个客观发生的具体事件进行的自然语言形式的描述, 通常是一个句子或句群Event reference: a description of an objectively occurring specific event in the form of natural language, usually a sentence or a group of sentences

事件触发词:指一个事件指称中最能代表事件发生的词,是决定事件 类别的重要特征,一般是动词或名词Event trigger word: refers to the word in an event reference that can best represent the occurrence of the event, and is an important feature that determines the category of the event, usually a verb or a noun

事件元素:事件中的参与者,主要由实体、时间和属性值组成Event element: The participants in the event, mainly composed of entity, time and attribute value

元素角色:事件元素在相应的事件中扮演什么角色Element role: What role does the event element play in the corresponding event

事件类别:事件元素和触发词决定了事件的类别(类别又定义了若干 子类别)Event category: The event element and trigger word determine the category of the event (the category defines several subcategories)

限定域事件抽取:在进行抽取之前,预先定义好目标事件的类型及每 种类型的具体结构(包含哪些具体的事件元素),通常会给出一定数量的 标注数据。Restricted domain event extraction: Before extraction, the type of target event and the specific structure of each type (which specific event elements are included) are pre-defined, and a certain amount of labeled data is usually given.

限定域事件抽取方法:Qualified domain event extraction method:

基于模式匹配的方法:对某种类型事件的识别和抽取是在一些模式的 指导下进行的(步骤:模式获取、模式匹配)Method based on pattern matching: The identification and extraction of certain types of events are carried out under the guidance of some patterns (steps: pattern acquisition, pattern matching)

有监督的事件模式匹配:模式的获取完全基于人工标注的语料Supervised Event Pattern Matching: Pattern acquisition is based entirely on human-annotated corpora

弱监督的事件模式匹配:不需要对语料进行完全标注,只需要人工对 语料进行一定的预分类或者制定少量种子模式Weakly supervised event pattern matching: It is not necessary to fully label the corpus, and only need to manually pre-classify the corpus or formulate a small number of seed patterns

基于机器学习的方法machine learning based methods

有监督事件抽取方法:将事件抽取建模成一个多分类问题Supervised Event Extraction Methods: Modeling Event Extraction as a Multi-Classification Problem

基于特征工程的方法:需要显示地将事件实例转换成分类器可以接受 的特征向量,研究重点在于怎样提取具有区分性的特征Method based on feature engineering: It is necessary to explicitly convert event instances into feature vectors acceptable to the classifier, and the research focuses on how to extract discriminative features

基于神经网络的方法:自动从文本中获取特征进而完成事件抽取,避 免使用传统自然语言处理工具带来的误差累积问题Neural network-based method: automatically obtain features from text to complete event extraction, avoiding the error accumulation problem caused by using traditional natural language processing tools

实体抽取:Entity extraction:

实体抽取或者说命名实体识别(NER)在信息抽取中扮演着重要角色, 主要抽取的是文本中的原子信息元素,如人名、组织/机构名、地理位置、 事件/日期、字符值、金额值等。实体抽取任务有两个关键词:find&classify, 找到命名实体,并进行分类。Entity extraction or Named Entity Recognition (NER) plays an important role in information extraction, mainly extracting atomic information elements in text, such as person name, organization/institution name, geographic location, event/date, character value, amount value Wait. The entity extraction task has two keywords: find&classify, find named entities, and classify them.

实体抽取的方法分为3种:基于规则的方法通常需要为目标实体编写模 板,然后在原始语料中进行匹配;基于统计机器学习的方法主要是通过机 器学习的方法对原始语料进行训练,然后再利用训练好的模型去识别实体; 面向开放域的抽取将是面向海量的Web语料。Entity extraction methods are divided into three types: rule-based methods usually need to write templates for target entities, and then match them in the original corpus; statistical machine learning-based methods mainly train the original corpus through machine learning methods, and then Use the trained model to identify entities; open domain-oriented extraction will be oriented to massive Web corpus.

步骤S3:根据所述知识图谱数据进行模型训练。具体地说,使用用户 数据及物料数据输入模型对模型进行训练,得到初始接入的推荐结果。Step S3: Perform model training according to the knowledge graph data. Specifically, the user data and material data input model is used to train the model, and the recommendation result of the initial access is obtained.

步骤S4:根据实时数据通过训练后的模型获得推荐结果。具体地说, 本步骤中实现训练后的模型上线后结合实时用户行为数据进行推荐结果的 输出,即通过不断补充的新用户以及用户的实时数据结合实时用户行为数 据进行推荐结果的输出,例如可根据1小时内用户新搜索了母婴的商品而 给用户推荐母婴相关的商品。Step S4: Obtain recommendation results through the trained model according to the real-time data. Specifically, in this step, after the trained model goes online, the recommendation result is output in combination with real-time user behavior data, that is, the recommendation result is output by continuously supplementing new users and real-time user data combined with real-time user behavior data. According to the user's new search for maternal and infant products within 1 hour, it recommends maternal and infant related products to users.

步骤S5:结合用户历史行为及推荐结果输出单个用户关联轨迹。具体 地说,在本步骤中,由于用户的推荐结果对于客户来说一般是黑盒子,可 将这部分内容转化成可解释的内容,选取模型参考的用户的历史行为,记 录出用户不同行为的分类,例如用户A购买了金融类的课程(扩展此金融 类课程的价钱范围、课程时长范围、讲师信息等),搜索了艺术类的课程 (同样扩展此艺术类课程的价钱范围、课程时长范围、讲师信息等),并 点击了艺术类的课程(标识点击/其他行为是否是给该用户推荐的商品)。Step S5: output a single user association track in combination with the user's historical behavior and the recommendation result. Specifically, in this step, since the user's recommendation result is generally a black box for the customer, this part of the content can be converted into interpretable content, the historical behavior of the user referenced by the model is selected, and the different behaviors of the user can be recorded. Classification, for example, user A purchased a financial course (expand the price range, course duration, instructor information, etc.) of this financial course, and searched for an art course (also expanded the price range and course duration range of this art course) , instructor information, etc.), and clicked on an art course (identifying whether the click/other behavior is a recommended product for the user).

对用户行为轨迹进行分析,研究用户偏好,为“信息寻找用户”的主 动服务模式提供技术支撑。根据用户行为轨迹的分析结果,获取用户偏好 信息,为用户推荐符合自己喜好的内容,实现“信息寻找用户”的主动服 务。根据内容推荐的评价机制,方便收集用户对主动服务的评价,方便后 续行为轨迹分析模型的优化。对轨迹分析模型进行循环优化,并将优化结 果反馈给用户,实现闭环可持续的精准主动服务。Analyze user behavior trajectories, study user preferences, and provide technical support for the active service model of "information seeking users". According to the analysis results of user behavior trajectories, obtain user preference information, recommend content that suits users' preferences, and realize the active service of "information seeking users". According to the evaluation mechanism of content recommendation, it is convenient to collect user evaluations of active services, and to facilitate the optimization of subsequent behavioral trajectory analysis models. Loop optimization of the trajectory analysis model, and feedback the optimization results to users to achieve closed-loop and sustainable accurate and active services.

应用场景为:The application scenarios are:

(1)应用内容推荐。用户在应用过程中发现维度条件太多、经常使用 的维度不是在最前面、条件值每次都要重新选择,操作不方便。通过分析, 发现用户经常使用的只有归属地市、时间和品牌等几个维度。解决措施: 对用户经常使用的维度进行推荐展现,不经常使用维度进行隐藏,推荐的 操作顺序可以根据用户经常操作的维度顺序,自动进行维度展现的排版, 自动推荐填充用户经常选择或者输入的条件值。(1) Application content recommendation. During the application process, users find that there are too many dimension conditions, frequently used dimensions are not at the top, and the condition value must be reselected every time, which is inconvenient to operate. Through analysis, it is found that users often use only a few dimensions such as home city, time and brand. Solution: Recommend and display the dimensions that are frequently used by users, and hide the dimensions that are not frequently used. The recommended operation order can automatically perform the layout of the dimension display according to the order of dimensions frequently operated by the user, and automatically recommend and fill in the conditions that the user often selects or inputs. value.

(2)关注应用推荐。用户在应用过程中发现系统太大,功能节点太多, 每次都必需点击好多层才能找到自己需要使用的功能页,且关注的应用分 散在不同地方,不方便使用。根据用户关注应用模型,分析用户日常工作 经常访问的应用,发现功能节点太过繁多,系统左边的树节点过于庞大, 造成用户使用很不方便,且用户关注的应用分散在不同地方,不方便使用, 而且用户经常使用的仅有几个KPI和即席查询应用。解决措施:将用户经常使用的KPI和即席查询应用主动推荐到用户的个性化办公桌面,或者收 藏夹,或者首页等用户可以直接使用应用的地方,方便用户使用这些应用。(2) Pay attention to application recommendations. During the application process, the user finds that the system is too large and there are too many function nodes. Each time, he has to click many layers to find the function page he needs to use, and the applications concerned are scattered in different places, which is inconvenient to use. According to the user-focused application model, analyze the applications frequently accessed by users in their daily work, and find that there are too many functional nodes, and the tree nodes on the left side of the system are too large, which makes it very inconvenient for users to use, and the applications that users pay attention to are scattered in different places, which is inconvenient to use , and users often use only a few KPIs and ad-hoc query applications. Solution: Actively recommend the frequently used KPIs and ad hoc query applications to the user's personalized desk, or favorites, or the home page and other places where the user can directly use the application, so as to facilitate the user to use these applications.

(3)辅助重点应用保障。用户在应用过程中发现某些重点应用,用户 反馈经常重复查询了好多次,都查不到数据。根据用户关注应用模型和系 统优化模型进行重点应用确认,并分析重点应用的集中访问时间段。解决 措施:后台UTAP根据用户的访问时间要求,进行任务的优先级调整,保 障重点应用优先执行。(3) Auxiliary key application guarantee. Users found some key applications during the application process, and users reported that they often repeated the query many times, but could not find the data. Confirm key applications based on user-focused application models and system optimization models, and analyze the centralized access time period of key applications. Solution: The background UTAP adjusts the priority of tasks according to the user's access time requirements to ensure priority execution of key applications.

步骤S6:抽取各个用户的数据进行汇聚统计并输出统计结果。具体地 说,在本步骤中,抽取各个用户的用户及行为特征,以不同的特征为维度 汇聚统计(例如以地域、类别、价格范围等为主要维度进行汇总数据的查 看),根据步骤S5的结果,补充用户的标签,例如单个用户的行为发生的 地区信息、用户的性别、年龄等人口属性信息、用户的职业等工作信息, 再将用户同行为同标签的数据进行汇总,得出用户标签与被推荐内容的关 联关系,从而得出群体用户推荐原因及推荐效果的情况,可用可视化的方 式展示在界面上供客户了解到自身用户的行为偏好以及推荐效果,可反过 来指导运营策略的制定以及可辅助有针对性的增加推广活动。Step S6: extracting the data of each user for aggregation statistics and outputting the statistical results. Specifically, in this step, the user and behavioral characteristics of each user are extracted, and statistics are aggregated with different characteristics as the dimensions (for example, the summary data is viewed with the main dimensions such as region, category, price range, etc.), according to step S5 As a result, the user's tags are supplemented, such as the region information of a single user's behavior, demographic attribute information such as the user's gender, age, and job information such as the user's occupation, and then the data of the same user's behavior and the same tag are aggregated to obtain the user tag. The relationship between the recommended content and the recommended content, so as to obtain the recommendation reasons and recommendation effects of group users, which can be displayed on the interface in a visual way for customers to understand the behavioral preferences and recommendation effects of their own users, which can in turn guide the formulation of operational strategies And can assist targeted increase in promotional activities.

请参照图3,图3为本发明的推荐方法的应用示意图。如图3所示,本 发明的基于图谱知识的推荐方法在应用时大致为以下流程:Please refer to FIG. 3 , which is a schematic diagram of the application of the recommended method of the present invention. As shown in Figure 3, the recommended method based on graph knowledge of the present invention is roughly the following process when applied:

1、获取客户提供的数据进行数据整理;1. Obtain the data provided by the customer for data processing;

2、进行图谱构建,包括实体抽取、关系抽取和事件抽取等;2. Graph construction, including entity extraction, relation extraction and event extraction, etc.;

3、使用构建好之后的数据进行模型训练;3. Use the constructed data for model training;

4、训练后的模型上线后结合实时用户行为数据进行推荐结果的输出;4. After the trained model goes online, it combines the real-time user behavior data to output the recommendation results;

5、结合用户历史行为及推荐结果输出单个用户关联轨迹;5. Combine the user's historical behavior and recommendation results to output a single user's associated trajectory;

6、抽取各个用户的用户及行为特征,以不同的特征为维度汇聚统计(例 如以地域、类别、价格范围等为主要维度进行汇总数据的查看)。6. Extract the user and behavior characteristics of each user, and aggregate statistics with different characteristics as the dimensions (for example, view the aggregated data with the main dimensions such as region, category, and price range).

请参照图4,图4为本发明的推荐方法的展示示例图。如图4所示,本 发明的推荐方法以关联关系的方式展示前期行为和结果的关联性,可以明 确的查看出某些行为和实体的关系比较紧密。Please refer to FIG. 4 , which is a diagram showing an example of the recommendation method of the present invention. As shown in Fig. 4, the recommendation method of the present invention shows the correlation between previous behaviors and results in the form of association relationship, and it can be clearly seen that some behaviors and entities are closely related.

在本发明的另一实施例中,还可以使用标签的标记方式,多个标签维 度组合查看可能的关联关系。In another embodiment of the present invention, the labeling method of labels can also be used, and the possible association relationships can be viewed by combining multiple label dimensions.

请参照图5,图5为本发明的推荐系统的结构示意图。如图5所示,本 发明的推荐系统包括:Please refer to FIG. 5 , which is a schematic structural diagram of the recommendation system of the present invention. As shown in Figure 5, the recommendation system of the present invention includes:

数据处理单元11:获取用户提供的数据并进行数据整理,其中,数据 处理单元11针对所述数据定义标签结构;Data processing unit 11: obtain the data provided by the user and organize the data, wherein, the data processing unit 11 defines a label structure for the data;

构建单元12:从整理后的所述数据中抽取图谱要素并基于所述图谱要 素间的关联关系构建知识图谱数据;Construction unit 12: extracting map elements from the sorted data and constructing knowledge map data based on the relationship between the map elements;

训练单元13:根据所述知识图谱数据进行模型训练;Training unit 13: perform model training according to the knowledge graph data;

结果输出单元14:根据实时数据通过训练后的模型获得推荐结果;Result output unit 14: obtain recommendation results through the trained model according to real-time data;

轨迹输出单元15:结合用户历史行为及推荐结果输出单个用户关联轨 迹,其中,轨迹输出单元15选取模型参考的用户的历史行为同时记录出用 户不同行为的分类,根据历史行为、分类及所述推荐结果输出单个用户关 联轨迹;Trajectory output unit 15: output a single user associated trajectory in combination with the user's historical behavior and recommendation results, wherein the trajectory output unit 15 selects the historical behavior of the user referenced by the model and records the classification of different user behaviors, according to the historical behavior, classification and the recommendation. The result outputs a single user associated trajectory;

统计结果输出单元16:抽取各个用户的数据进行汇聚统计并输出统计 结果,其中,统计结果输出单元16抽取各个用户的用户行为及用户特征, 以不同的特征为维度进行汇聚统计并输出所述统计结果。Statistical result output unit 16: extracts the data of each user for aggregation statistics and outputs the statistical results, wherein the statistical result output unit 16 extracts the user behavior and user characteristics of each user, and uses different characteristics as dimensions to aggregate statistics and output the statistics result.

其中,所述数据包括:用户数据及物料数据,所述用户数据包括用户 行为及用户特征。Wherein, the data includes: user data and material data, and the user data includes user behavior and user characteristics.

进一步地,构建单元12通过分词、语义处理对数据进行处理后,构建 单元12进行实体抽取、关系抽取和事件抽取;然后构建单元12将标签、 关联关系与实体进行对应形成知识图谱数据。Further, after the construction unit 12 processes the data through word segmentation and semantic processing, the construction unit 12 performs entity extraction, relationship extraction and event extraction; then the construction unit 12 corresponds the tags, associations and entities to form knowledge graph data.

本发明还提供一种计算机可读的存储介质,其中,所述计算机可读的 存储介质包括存储的程序,其中,所述程序运行时执行上述任一项中所述 的基于图谱知识的推荐方法。The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein the program executes the graph knowledge-based recommendation method described in any one of the above when the program runs .

本发明还提供一种电子装置,包括存储器和处理器,其中,所述存储 器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行所 述任一项中所述的基于图谱知识的推荐方法。The present invention also provides an electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the graph-based mapping described in any one of the above by the computer program. Recommended methods of knowledge.

具体地说,结合图1描述的本申请实施例的实体推荐方法可以由电子 装置来实现。图6为本发明的电子装置的硬件结构示意图。Specifically, the entity recommendation method of the embodiment of the present application described in conjunction with FIG. 1 may be implemented by an electronic device. FIG. 6 is a schematic diagram of the hardware structure of the electronic device of the present invention.

电子装置可以包括处理器81以及存储有计算机程序指令的存储器82。The electronic device may include a processor 81 and a memory 82 storing computer program instructions.

具体地,上述处理器81可以包括中央处理器(CPU),或者特定集成 电路(Application Specific Integrated Circuit,简称为ASIC),或者可以被 配置成实施本申请实施例的一个或多个集成电路。Specifically, the above-mentioned processor 81 may include a central processing unit (CPU), or a specific integrated circuit (Application Specific Integrated Circuit, ASIC for short), or may be configured as one or more integrated circuits implementing the embodiments of the present application.

其中,存储器82可以包括用于数据或指令的大容量存储器。举例来说 而非限制,存储器82可包括硬盘驱动器(Hard Disk Drive,简称为HDD)、 软盘驱动器、固态驱动器(Solid State Drive,简称为SSD)、闪存、光盘、 磁光盘、磁带或通用串行总线(UniversalSerial Bus,简称为USB)驱动器 或者两个或更多个以上这些的组合。在合适的情况下,存储器82可包括可 移除或不可移除(或固定)的介质。在合适的情况下,存储器82可在数据处理装置的内部或外部。在特定实施例中,存储器82是非易失性 (Non-Volatile)存储器。在特定实施例中,存储器82包括只读存储器 (Read-Only Memory,简称为ROM)和随机存取存储器(Random Access Memory,简称为RAM)。在合适的情况下,该ROM可以是掩模编程的ROM、可编程ROM(Programmable Read-Only Memory,简称为PROM)、 可擦除PROM(ErasableProgrammable Read-Only Memory,简称为EPROM)、 电可擦除PROM(ElectricallyErasable Programmable Read-Only Memory,简 称为EEPROM)、电可改写ROM(Electrically Alterable Read-Only Memory, 简称为EAROM)或闪存(FLASH)或者两个或更多个以上这些的组合。 在合适的情况下,该RAM可以是静态随机存取存储器(StaticRandom-Access Memory,简称为SRAM)或动态随机存取存储器(Dynamic Random AccessMemory,简称为DRAM),其中,DRAM可以是快速页模 式动态随机存取存储器(Fast PageMode Dynamic Random Access Memory, 简称为FPMDRAM)、扩展数据输出动态随机存取存储器(Extended Date Out Dynamic Random Access Memory,简称为EDODRAM)、同步动态随机存 取内存(Synchronous Dynamic Random-Access Memory,简称SDRAM)等。Among others, memory 82 may include mass storage for data or instructions. By way of example and not limitation, the memory 82 may include a hard disk drive (Hard Disk Drive, abbreviated as HDD), a floppy disk drive, a solid state drive (referred to as SSD), flash memory, optical disk, magneto-optical disk, magnetic tape, or universal serial A bus (UniversalSerial Bus, referred to as USB) drive or a combination of two or more of these. Memory 82 may include removable or non-removable (or fixed) media, as appropriate. Where appropriate, memory 82 may be internal or external to the data processing device. In certain embodiments, memory 82 is a non-volatile (Non-Volatile) memory. In a specific embodiment, the memory 82 includes a read-only memory (Read-Only Memory, ROM for short) and a random access memory (Random Access Memory, RAM for short). In a suitable case, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, referred to as PROM), an erasable PROM (Erasable Programmable Read-Only Memory, referred to as EPROM), an electrically erasable Except PROM (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM for short), Electrically Rewritable ROM (Electrically Alterable Read-Only Memory, referred to as EAROM) or flash memory (FLASH) or a combination of two or more of these. In an appropriate case, the RAM may be Static Random-Access Memory (SRAM for short) or Dynamic Random Access Memory (DRAM for short), wherein the DRAM may be a fast page mode dynamic memory Random access memory (Fast PageMode Dynamic Random Access Memory, referred to as FPMDRAM), Extended Date Out Dynamic Random Access Memory (Extended Date Out Dynamic Random Access Memory, referred to as EDODRAM), Synchronous Dynamic Random Access Memory (Synchronous Dynamic Random-Access Memory) Access Memory, referred to as SDRAM) and so on.

存储器82可以用来存储或者缓存需要处理和/或通信使用的各种数据 文件,以及处理器81所执行的可能的计算机程序指令。Memory 82 may be used to store or cache various data files required for processing and/or communication use, as well as possibly computer program instructions executed by processor 81.

处理器81通过读取并执行存储器82中存储的计算机程序指令,以实 现上述实施例中的任意一种推荐方法。The processor 81 reads and executes the computer program instructions stored in the memory 82 to implement any one of the recommended methods in the above embodiments.

在其中一些实施例中,电子装置还可包括通信接口83和总线80。其中, 如图6所示,处理器81、存储器82、通信接口83通过总线80连接并完成相互 间的通信。In some of these embodiments, the electronic device may also include a communication interface 83 and a bus 80 . Among them, as shown in FIG. 6 , the processor 81, the memory 82, and the communication interface 83 are connected through the bus 80 and complete the mutual communication.

通信接口83用于实现本申请实施例中各模块、装置、单元和/或设备之 间的通信。通信端口83还可以实现与其他部件例如:外接设备、图像/数据 采集设备、数据库、外部存储以及图像/数据处理工作站等之间进行数据通 信。The communication interface 83 is used to implement communication between modules, apparatuses, units and/or devices in the embodiments of the present application. The communication port 83 can also realize data communication with other components such as: external devices, image/data acquisition devices, databases, external storage, and image/data processing workstations.

总线80包括硬件、软件或两者,将电子装置的部件彼此耦接在一起。 总线80包括但不限于以下至少之一:数据总线(Data Bus)、地址总线 (Address Bus)、控制总线(Control Bus)、扩展总线(Expansion Bus)、 局部总线(Local Bus)。举例来说而非限制,总线80可包括图形加速接口 (Accelerated Graphics Port,简称为AGP)或其他图形总线、增强工业标准 架构(Extended Industry Standard Architecture,简称为EISA)总线、前端总 线(Front Side Bus,简称为FSB)、超传输(Hyper Transport,简称为HT) 互连、工业标准架构(Industry Standard Architecture,简称为ISA)总线、 无线带宽(InfiniBand)互连、低引脚数(Low Pin Count,简称为LPC)总 线、存储器总线、微信道架构(MicroChannel Architecture,简称为MCA) 总线、外围组件互连(Peripheral ComponentInterconnect,简称为PCI)总 线、PCI-Express(PCI-X)总线、串行高级技术附件(SerialAdvanced Technology Attachment,简称为SATA)总线、视频电子标准协会局部(VideoElectronics Standards Association Local Bus,简称为VLB)总线或其他合适 的总线或者两个或更多个以上这些的组合。在合适的情况下,总线80可包 括一个或多个总线。尽管本申请实施例描述和示出了特定的总线,但本申 请考虑任何合适的总线或互连。The bus 80 includes hardware, software, or both, coupling the components of the electronic device to each other. The bus 80 includes, but is not limited to, at least one of the following: a data bus (Data Bus), an address bus (Address Bus), a control bus (Control Bus), an expansion bus (Expansion Bus), and a local bus (Local Bus). By way of example and not limitation, the bus 80 may include an Accelerated Graphics Port (AGP) or other graphics buses, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (Front Side Bus) , referred to as FSB), Hyper Transport (Hyper Transport, referred to as HT) interconnect, Industry Standard Architecture (Industry Standard Architecture, referred to as ISA) bus, wireless bandwidth (InfiniBand) interconnect, Low Pin Count (Low Pin Count, LPC bus, memory bus, MicroChannel Architecture (MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology Attachment (Serial Advanced Technology Attachment, SATA for short) bus, Video Electronics Standards Association Local Bus (VLB for short) bus or other suitable bus or a combination of two or more of these. Where appropriate, bus 80 may include one or more buses. Although embodiments herein describe and illustrate a particular bus, this application contemplates any suitable bus or interconnect.

该电子装置可以通过以关联关系的方式展示前期行为和结果的关联性, 从而明确的查看出某些行为和实体的关系比较紧密,后续可以绑定这种紧 密的关系在后续的目标优化场景下有针对性的进行相关调整,由此实现结 合图1描述的推荐方法。The electronic device can display the correlation between the previous behavior and the result in the form of an association relationship, so as to clearly see that some behaviors and entities are relatively closely related, and the close relationship can be bound in the subsequent target optimization scenarios. Relevant adjustments are made in a targeted manner, thereby realizing the recommendation method described in conjunction with FIG. 1 .

综上所述,本发明通过以关联关系的方式展示前期行为和结果的关联 性,可以明确的查看出某些行为和实体的关系比较紧密,后续可以绑定这 种紧密的关系在后续的目标优化场景下有针对性的进行相关调整。To sum up, the present invention can clearly see that some behaviors and entities are relatively closely related by showing the correlation between previous behaviors and results in the form of an association relationship, and this close relationship can be bound in subsequent goals. Targeted adjustments are made in optimized scenarios.

尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术 人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相 应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements to some of the technical features; and these Modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A recommendation method based on atlas knowledge is characterized by comprising the following steps:
step S1: acquiring data provided by a user and performing data arrangement;
step S2: extracting map elements from the sorted data and constructing knowledge map data based on the incidence relation among the map elements;
step S3: performing model training according to the knowledge graph data;
step S4: and obtaining a recommendation result through the trained model according to the real-time data.
2. The graph-knowledge-based recommendation method of claim 1, further comprising:
step S5: and outputting a single user association track by combining the historical behaviors of the users and the recommendation result.
3. The graph-knowledge based recommendation method of claim 2, further comprising:
step S6: and extracting data of each user for aggregation statistics and outputting a statistical result.
4. The graph-knowledge based recommendation method of claim 3, wherein the data comprises: user data and material data, the user data including user behavior and user characteristics.
5. The graph knowledge-based recommendation method according to any one of claims 1-4, wherein said step S1 includes defining a tag structure for said data.
6. The graph knowledge-based recommendation method according to claim 5, wherein the step S2 comprises:
step S21: processing the data through word segmentation and semantic processing;
step S22: performing entity extraction, relationship extraction and event extraction;
step S23: and the labels, the association relation and the entities are corresponded to form knowledge graph data.
7. The method for recommending based on atlas knowledge according to claim 2, wherein the step S5 includes selecting the historical behaviors of the user referenced by the model and recording the classification of different behaviors of the user at the same time, and outputting a single user association track according to the historical behaviors, the classification and the recommendation result.
8. The graph knowledge-based recommendation method according to claim 3, wherein the step S6 comprises extracting user behaviors and user characteristics of each user, performing aggregation statistics with different characteristics as dimensions, and outputting the statistical results.
9. A graph knowledge-based recommendation system, comprising:
a data processing unit: acquiring data provided by a user and performing data arrangement;
a construction unit: extracting map elements from the sorted data and constructing knowledge map data based on the incidence relation among the map elements;
a training unit: performing model training according to the knowledge graph data;
a result output unit: obtaining a recommendation result through the trained model according to the real-time data;
a trajectory output unit: outputting a single user association track by combining the historical behaviors of the users and the recommendation result;
a statistical result output unit: and extracting data of each user for aggregation statistics and outputting a statistical result.
10. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the graph knowledge-based recommendation method according to any one of claims 1 to 8 by the computer program.
CN202010920529.0A 2020-09-04 2020-09-04 Recommendation method, recommendation system and electronic device based on graph knowledge Active CN112084376B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010920529.0A CN112084376B (en) 2020-09-04 2020-09-04 Recommendation method, recommendation system and electronic device based on graph knowledge

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010920529.0A CN112084376B (en) 2020-09-04 2020-09-04 Recommendation method, recommendation system and electronic device based on graph knowledge

Publications (2)

Publication Number Publication Date
CN112084376A true CN112084376A (en) 2020-12-15
CN112084376B CN112084376B (en) 2024-12-27

Family

ID=73731950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010920529.0A Active CN112084376B (en) 2020-09-04 2020-09-04 Recommendation method, recommendation system and electronic device based on graph knowledge

Country Status (1)

Country Link
CN (1) CN112084376B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112632178A (en) * 2021-01-05 2021-04-09 上海明略人工智能(集团)有限公司 Method and system for visualizing treatment data
CN113486189A (en) * 2021-06-08 2021-10-08 广州数说故事信息科技有限公司 Open knowledge graph mining method and system
CN114511385A (en) * 2022-02-15 2022-05-17 北京百度网讯科技有限公司 Article recommendation method and device, electronic equipment and storage medium
CN114692954A (en) * 2022-03-09 2022-07-01 中国科学技术大学 Service optimization method and platform based on user experience knowledge graph database
CN116644172A (en) * 2023-05-30 2023-08-25 中国银行股份有限公司 Knowledge graph-based operation path recommendation method and related products
CN117573883A (en) * 2023-11-15 2024-02-20 广东爱因智能科技有限公司 Quality control system, control methods, models and generation devices for knowledge graphs
CN119622863A (en) * 2024-10-29 2025-03-14 中国交通信息科技集团有限公司 A personalized recommendation system for electronic sandbox in virtual construction system based on GraphRAG

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107665230A (en) * 2017-06-21 2018-02-06 海信集团有限公司 Training method and device for the users' behavior model of Intelligent housing
CN110188208A (en) * 2019-06-04 2019-08-30 河海大学 A method and system for querying and recommending information resources based on knowledge graphs
CN110458641A (en) * 2019-06-28 2019-11-15 苏宁云计算有限公司 A kind of electric business recommended method and system
CN110909176A (en) * 2019-11-20 2020-03-24 腾讯科技(深圳)有限公司 Data recommendation method and device, computer equipment and storage medium
CN111460292A (en) * 2020-03-30 2020-07-28 百度在线网络技术(北京)有限公司 Model evaluation method, apparatus, device, and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107665230A (en) * 2017-06-21 2018-02-06 海信集团有限公司 Training method and device for the users' behavior model of Intelligent housing
CN110188208A (en) * 2019-06-04 2019-08-30 河海大学 A method and system for querying and recommending information resources based on knowledge graphs
CN110458641A (en) * 2019-06-28 2019-11-15 苏宁云计算有限公司 A kind of electric business recommended method and system
CN110909176A (en) * 2019-11-20 2020-03-24 腾讯科技(深圳)有限公司 Data recommendation method and device, computer equipment and storage medium
CN111460292A (en) * 2020-03-30 2020-07-28 百度在线网络技术(北京)有限公司 Model evaluation method, apparatus, device, and medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112632178A (en) * 2021-01-05 2021-04-09 上海明略人工智能(集团)有限公司 Method and system for visualizing treatment data
CN113486189A (en) * 2021-06-08 2021-10-08 广州数说故事信息科技有限公司 Open knowledge graph mining method and system
CN114511385A (en) * 2022-02-15 2022-05-17 北京百度网讯科技有限公司 Article recommendation method and device, electronic equipment and storage medium
CN114692954A (en) * 2022-03-09 2022-07-01 中国科学技术大学 Service optimization method and platform based on user experience knowledge graph database
CN116644172A (en) * 2023-05-30 2023-08-25 中国银行股份有限公司 Knowledge graph-based operation path recommendation method and related products
CN117573883A (en) * 2023-11-15 2024-02-20 广东爱因智能科技有限公司 Quality control system, control methods, models and generation devices for knowledge graphs
CN119622863A (en) * 2024-10-29 2025-03-14 中国交通信息科技集团有限公司 A personalized recommendation system for electronic sandbox in virtual construction system based on GraphRAG

Also Published As

Publication number Publication date
CN112084376B (en) 2024-12-27

Similar Documents

Publication Publication Date Title
CN112084376A (en) Map knowledge based recommendation method and system and electronic device
Liu et al. Analyzing changes in hotel customers’ expectations by trip mode
Ameisen Building machine learning powered applications: Going from idea to product
TWI598755B (en) Data analysis system, data analysis method, computer program product storing data analysis program, and storage medium storing data analysis program
WO2017190610A1 (en) Target user orientation method and device, and computer storage medium
US20190318407A1 (en) Method for product search using the user-weighted, attribute-based, sort-ordering and system thereof
Almgerbi et al. A systematic review of data analytics job requirements and online-courses
CN112307336B (en) Hot spot information mining and previewing method and device, computer equipment and storage medium
Khan et al. Comparative analysis on Facebook post interaction using DNN, ELM and LSTM
CN119228447A (en) Method, device, electronic device and medium for determining behavior plan based on large model
CN118520854A (en) Text generation method, apparatus, computer device, storage medium, and program product
CN114528416B (en) Enterprise public opinion environment monitoring method and system based on big data
Addepalli et al. A proposed framework for measuring customer satisfaction and product recommendation for ecommerce
Ram et al. Fake reviews detection using supervised machine learning
Wang et al. Intelligent Crowdsourced Testing
JP2018067215A (en) Data analysis system, control method thereof, program, and recording medium
JP6026036B1 (en) DATA ANALYSIS SYSTEM, ITS CONTROL METHOD, PROGRAM, AND RECORDING MEDIUM
Ningrum et al. Sentiment Analysis of Twitter Reviews on Google Play Store Using a Combination of Convolutional Neural Network and Long Short-Term Memory Algorithms
JP2018097709A (en) Information processor, information processing method and program
CN109299381B (en) Software defect retrieval and analysis system and method based on semantic concept
Petkar Machine Learning: Techniques and Principles
Rosas-Quezada et al. Predicting consumers engagement on Facebook based on what and how companies write
Gautam et al. Leveraging Text Mining Techniques for Automated Information Analysis
CN116775813B (en) Service searching method, device, electronic equipment and readable storage medium
KR102672951B1 (en) A method of matching and providing negative topics and cautionary ingredients on my cosmetics review profiling screen

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
GR01 Patent grant
GR01 Patent grant