From 5fd08123e5833c22d119648621567027916218ad Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 17 Feb 2021 13:10:57 +0000 Subject: [PATCH] update to readme --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index cad0698..822206f 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ This README aims to document functionality of backend as well as required steps - [COOP and Managing User Data Load](#coop-and-managing-user-data-load) - [Product Data Load](#product-data-load) - [GeoIP Setup](#geoip-setup) +- [Tags](#tags) - [Development Utils](#development-utils) - [Fake product data generation](#fake-product-data-generation) @@ -257,6 +258,22 @@ Optional: `sudo apt install libmaxminddb0 libmaxminddb-dev mmdb-bin` +## Tags + +Both `Company` and `Product` models make use of tags. + +### Load shopping taxonomy + +To create the initial set of tags, we can use the `addtaxonomy` management command. +Reads the data from `datasets/shop-taxonomy.es-ES.txt` which is from google shopping + + +### Top-level tags + +In order to extract the top level tags for use as categories, we can use the `extractparenttas` management command. +It saves the results to `datasets/top_tags.txt` + + ## Development Utils ### Fake product data generation