From b1d4c709cb2793745e61d85c337514b9c6c85603 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Tue, 4 Oct 2022 23:58:08 +1100 Subject: Add gen_picked_data.py Add unit test Update READMEs and .gitignore --- backend/hist_data/README.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'backend/hist_data/README.md') diff --git a/backend/hist_data/README.md b/backend/hist_data/README.md index 517259c..3fcb8df 100644 --- a/backend/hist_data/README.md +++ b/backend/hist_data/README.md @@ -68,3 +68,8 @@ Some of the scripts use third-party packages: 1. In enwiki/, run `gen_desc_data.py`, which extracts page descriptions into a database. 1. Run `gen_desc_data.py`, which adds the `descs` table, using data in enwiki/, and the `events` and `images` tables (only adds descriptions for events with images). + +## Optionally Add Extra Event Data +1. Additional events can be described in `picked/events.json`, with images for them put + in `picked` (see the README for details). +1. Can run `gen_picked_data.py` to add those described events to the database. -- cgit v1.2.3