Wiki Entity Summarization Benchmark (WikES)
收藏资源简介:
该数据集利用wiki-entity-summarization-preprocessor项目构建基于给定节点集的实体摘要图,通过随机游走采样和深度K从种子节点开始,维护Wikidata知识图谱的结构,并添加摘要边到结果中。最终生成一个包含种子节点、摘要边、种子节点的1至K跳邻居及其边以及确保图连通性添加的任何中间节点的异构图。每个节点和边都通过Wikidata、Wikipedia和谓词信息进行元数据丰富,提供实体及其关系的额外上下文和详细信息。
This dataset is constructed using the wiki-entity-summarization-preprocessor project to build an entity summary graph based on a given set of nodes. It employs random walk sampling and depth K starting from seed nodes to maintain the structure of the Wikidata knowledge graph, while adding summary edges to the results. Ultimately, it generates a heterogeneous graph that includes seed nodes, summary edges, 1-to-K hop neighbors of the seed nodes and their edges, as well as any intermediate nodes added to ensure graph connectivity. Each node and edge is enriched with metadata from Wikidata, Wikipedia, and predicate information, providing additional context and detailed information about the entities and their relationships.
Wiki Entity Summarization Benchmark (WikES) 数据集概述
数据集构建方法
1. 构建摘要图
- 从给定节点集构建实体摘要图。
- 通过随机游走采样(深度为
K)从种子节点开始,添加摘要边。
2. 扩展摘要图
- 从种子节点进行随机游走,模拟Wikidata图结构。
- 根据种子节点的度数调整游走次数。
- 从随机游走结果中添加新边。
3. 连接组件
- 检查扩展图是否为单一弱连接组件。
- 若非,使用最短路径迭代连接小组件,直至形成单一组件。
4. 添加元数据
- 为图中的每个节点和边添加来自Wikidata、Wikipedia和谓词信息的元数据。
数据集加载
使用wikes-toolkit
- 通过Python包
wikes-toolkit下载、加载、处理和评估48个Wiki-Entity-Summarization数据集。
使用mlcroissant
- 通过
mlcroissant库加载WikES数据集,使用预先生成的JSON元数据文件。
预处理数据库
- 使用Wikipedia和Wikidata的XML转储文件将en-wikidata项及其摘要导入Neo4j数据库。
- 相关元数据导入Postgres数据库。
预生成数据集
- 使用“A Brief History of Human Time project”生成的数据集,包含不同的人类艺术和职业分类的种子节点。
数据集详情
| 数据集名称 | #roots | #summaries | #nodes | #edges | #labels | 种子类别分布 | 运行时间(秒) |
|---|---|---|---|---|---|---|---|
| WikiLitArt-s | 494 | 10416 | 85346 | 136950 | 547 | 详见文本 | 91.934 |
| WikiLitArt-s-train | 346 | 7234 | 61885 | 96497 | 508 | 详见文本 | 66.023 |
| WikiLitArt-s-val | 74 | 1572 | 14763 | 20795 | 340 | 详见文本 | 14.364 |
| WikiLitArt-s-test | 74 | 1626 | 15861 | 22029 | 350 | 详见文本 | 14.6 |
| ...(其他数据集详情类似,具体数据略) | ... | ... | ... | ... | ... | ... | ... |
这些数据集提供了丰富的实体关系和元数据,适用于多种研究和应用场景。




