idoco commited on
Commit
583b29b
·
verified ·
1 Parent(s): 7d16fe6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +23 -0
README.md CHANGED
@@ -62,3 +62,26 @@ The dataset consists of:
62
  | `s_uri`, `r_uri`, `a_uri` | Wikidata URIs for subject, relation, and answer |
63
  | `attribute`, `a_type` | Answer string and attribute types (e.g., "language") |
64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  | `s_uri`, `r_uri`, `a_uri` | Wikidata URIs for subject, relation, and answer |
63
  | `attribute`, `a_type` | Answer string and attribute types (e.g., "language") |
64
 
65
+ ## 🏗️ Reproducing the `questions.csv` File
66
+
67
+ To regenerate the `questions.csv` file used in this dataset, you can use the provided script in the `scripts/` directory.
68
+
69
+ ### 📂 Required Structure
70
+
71
+ Before running the script, make sure your working directory contains:
72
+
73
+ - A **base dataframe** CSV with at least the following columns:
74
+ - `s_uri`: Wikidata URI of the entity
75
+ - `type`: Category of the entity (e.g., `celebs`, `logos`, etc.)
76
+ - A folder called `relation_templates/`, which should include files named like:
77
+ - `relation_templates_celebs.csv`
78
+ - `relation_templates_logos.csv`
79
+ - etc.
80
+ - Refer to the existing files for reference and structure.
81
+
82
+ ### 🧪 Generating the Questions
83
+
84
+ To build the dataset, run:
85
+
86
+ ```bash
87
+ python scripts/build_dataset.py --base-df path/to/base_entities.csv