aboutsummaryrefslogtreecommitdiff
path: root/backend/hist_data/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'backend/hist_data/README.md')
-rw-r--r--backend/hist_data/README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/hist_data/README.md b/backend/hist_data/README.md
index 73b7a36..4baf0b1 100644
--- a/backend/hist_data/README.md
+++ b/backend/hist_data/README.md
@@ -47,7 +47,8 @@ This directory holds files used to generate the history database data.db.
## Generate Event Data
1. Obtain a Wikidata JSON dump in wikidata/, as specified in it's README.
1. Run `gen_events_data.py`, which creates `data.db`, and adds the `events` table.
- You might want to set WIKIDATA_FILE in the script to the dump file's name.
+ It needs to be run as a module, by using `python -m hist_data.gen_events_data` in hist_data/.
+ Also, you might want to check that WIKIDATA_FILE in the script matches the dump file's name.
## Generate Popularity Data
1. Obtain an enwiki dump and 'page view files' in enwiki/, as specified in the README.