How to: modify category keywords
All dataset categories have keywords which are used to assign categories to datasets. If these keywords are present in the Title or Description of a dataset, the dataset is assigned that category. A dataset can have multiple categories.
- Locate in
the_od_bods/ODSCategories.json
- Modify the json file to add, edit, remove keywords or key phrases
- These keywords/phrases should be unambigous and near-distinct to the category. There may be some overlap between categories but we discourage it
- Save the .json file
- In terminal, in
/the_od_bods
, runpython merge_data.py
- Check results in
the_od_bods/data/merged_output.json
If there are issues executing locally, check How to: run backend locally
Read more: - Karen @ Medium: Categorisation in Open Data Scotland