Line 146:
Line 146:
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/main/taxonomies/food/ingredients.txt Ingredients taxonomy] - this file contains all the normal ingredients;
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/main/taxonomies/food/ingredients.txt Ingredients taxonomy] - this file contains all the normal ingredients;
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/main/taxonomies/additives.txt Additives] - the file with all the additives;
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/main/taxonomies/additives.txt Additives] - the file with all the additives;
−
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/master/taxonomies/allergens.txt Allergens] - the allergens required by legislation;
+
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/main/taxonomies/allergens.txt Allergens] - the allergens required by legislation;
−
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/master/taxonomies/amino_acids.txt Amino-acids] - the amino acids, required for infant products;
+
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/main/taxonomies/amino_acids.txt Amino-acids] - the amino acids, required for infant products;
−
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/master/taxonomies/minerals.txt Minerals] - the minerals required by legislation;
+
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/main/taxonomies/minerals.txt Minerals] - the minerals required by legislation;
−
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/master/taxonomies/nucleotides.txt Nucleotides] - the nucleotides required by legislation;
+
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/main/taxonomies/nucleotides.txt Nucleotides] - the nucleotides required by legislation;
−
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/master/taxonomies/other_nutritional_substances.txt Other nutritional substances] - also legislation;
+
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/main/taxonomies/other_nutritional_substances.txt Other nutritional substances] - also legislation;
−
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/master/taxonomies/vitamins.txt Vitamins] - legislation issue;
+
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/main/taxonomies/vitamins.txt Vitamins] - legislation issue;
You will noticed that many ingredients are combined with an adjective either in front or after the ingredient. As many adjectives will occur often, it is not necessary to add all variants to the ingredient taxonomy. This will make the taxonomy smaller and makes processing faster. Several different types of adjectives are identified:
You will noticed that many ingredients are combined with an adjective either in front or after the ingredient. As many adjectives will occur often, it is not necessary to add all variants to the ingredient taxonomy. This will make the taxonomy smaller and makes processing faster. Several different types of adjectives are identified:
−
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/master/taxonomies/ingredients_processing.txt Processes] - describe what has be done to an ingredient (roasted, rehydrated, etc.);
+
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/main/taxonomies/ingredients_processing.txt Processes] - describe what has be done to an ingredient (roasted, rehydrated, etc.);
−
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/master/taxonomies/labels.txt Labels] - describe the nature (?) of the ingredient, i.e. organic, fair trade, etc;
+
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/main/taxonomies/labels.txt Labels] - describe the nature (?) of the ingredient, i.e. organic, fair trade, etc;
−
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/master/taxonomies/additives_classes.txt Additive classes] - each additive can be assigned to one or more additive class, which describes the role of the additive in the product;
+
* [https://github.com/openfoodfacts/openfoodfacts-server/blob/main/taxonomies/additives_classes.txt Additive classes] - each additive can be assigned to one or more additive class, which describes the role of the additive in the product;
== Maintenance ==
== Maintenance ==
Line 168:
Line 168:
=== Finetuning ===
=== Finetuning ===
Finetuing allows you to tell the system, where the ingredients start and end, which words should not be taken into account, etc. You might regularly return to this task, as the system analyses more and more ingredient lists.
Finetuing allows you to tell the system, where the ingredients start and end, which words should not be taken into account, etc. You might regularly return to this task, as the system analyses more and more ingredient lists.
−
* Adapt file [https://github.com/openfoodfacts/openfoodfacts-server/blob/master/lib/ProductOpener/Ingredients.pm ingredients.pm] - this file contains various elements, which are used to analyse the ingredients of a product (in the order they appear in the file):
+
* Adapt file [https://github.com/openfoodfacts/openfoodfacts-server/blob/main/lib/ProductOpener/Ingredients.pm ingredients.pm] - this file contains various elements, which are used to analyse the ingredients of a product (in the order they appear in the file):
** Traces (''%may_contain_regexps'') - is the start of a phrase that introduces traces;
** Traces (''%may_contain_regexps'') - is the start of a phrase that introduces traces;
** Allergens (''%contains_regexps'') - appears after an ingredient, to indicate an allergen;
** Allergens (''%contains_regexps'') - appears after an ingredient, to indicate an allergen;