|
Download data/README.md from eduzrh/EvoRM: direct link, hf CLI and curl.
- Browser
- Download file 2.6 kB
-
https://huggingface.co/eduzrh/EvoRM/resolve/main/data/README.md
- Command line
-
hf download hf://eduzrh/EvoRM/data/README.md
-
curl -L -o README.md https://huggingface.co/eduzrh/EvoRM/resolve/main/data/README.md
2.6 kB
Data Preparation Guide
Supported Datasets
EvoRM is validated on the ICEWS-WIKI dataset for entity alignment (EA) tasks.
ICEWS-WIKI (HHEA)
ICEWS-WIKI is a Highly Heterogeneous Knowledge Graph Alignment dataset where:
- KG1 uses ICEWS relation IDs (e.g., 001, 002)
- KG2 uses Wikidata relation IDs (e.g., P31, P17)
- The relation schemas are completely different, making direct rule matching challenging
Data Structure
data/icews_wiki/
βββ ent_ids_1 # KG1 entity ID β name mapping
βββ ent_ids_2 # KG2 entity ID β name mapping
βββ rel_ids_1 # KG1 relation ID β name mapping
βββ rel_ids_2 # KG2 relation ID β name mapping
βββ triples_1 # KG1 triples (h, r, t)
βββ triples_2 # KG2 triples (h, r, t)
βββ ref_pairs # Reference (ground truth) entity pairs
βββ ref_ent_ids # Reference entity IDs
βββ sup_pairs # Supervision pairs (training)
βββ message_pool/
β βββ retriever_outputs.txt # Candidate pairs (KG1βKG2, 5 candidates each)
β βββ important_entities.txt # Subset for LLM processing
β βββ aligned_entities.txt # Output aligned pairs
β βββ alignment_rules.txt # Reference rules (optional)
βββ evorm_state/ # EvoRM persistent state
βββ rules.json # Distilled FOL rules
βββ hyperedges.json # Hypergraph structure
Statistics
| Metric | Value |
|---|---|
| Reference pairs | 3,540 |
| KG1 entities | 3,540 |
| KG2 entities | 15,831 |
| Candidate pairs | 17,700 (5 per KG1 entity) |
| KG1 relations | 256 |
| KG2 relations | 682 |
Adding New Datasets
To run EvoRM on a new dataset, ensure the following files are available:
ent_ids_1/ent_ids_2: Tab-separated entity ID β name mappingrel_ids_1/rel_ids_2: Tab-separated relation ID β name mappingtriples_1/triples_2: Tab-separated triples (head, relation, tail)ref_pairs: Tab-separated ground truth pairsmessage_pool/important_entities.txt: Candidate pairs for LLM processing
Then run:
from LLM1_label_selector import align_entities
aligned_pairs = align_entities(data_dir="./data/your_dataset")
DBP15K Datasets
The paper also evaluates on DBP15K variant datasets (EN-FR, EN-DE, ZH-EN, JA-EN, FR-EN). These datasets follow a similar structure and can be downloaded from: