Changes

Jump to navigation Jump to search
Line 24: Line 24:  
== Implementation ==
 
== Implementation ==
 
== Examples ==
 
== Examples ==
* [https://world.openfoodfacts.org/product/5281026016014 Thyme cashews]
+
Some example to illustrate which words refer to what part of the raw ingredients extraction.
 +
=== [https://world.openfoodfacts.org/product/5281026016014 Thyme cashews] ===
 
So if we take this product as example, go to edit, ingredient, extract text:
 
So if we take this product as example, go to edit, ingredient, extract text:
** text start after "Ingredients:" -> nothing to add in %phrases_before_ingredients_list
+
* text start after "Ingredients:" -> nothing to add in %phrases_before_ingredients_list
** text does not stop! It continues with French ingredients list. We would like to add "Packed in a modified atmosphere" in %phrases_after_ingredients_list to ignore "Packed in a modified atmosphere" and everything after
+
* text does not stop! It continues with French ingredients list. We would like to add "Packed in a modified atmosphere" in %phrases_after_ingredients_list to ignore "Packed in a modified atmosphere" and everything after
** %may_contain_regexps, it looks good. "May also contain" is recognized and when you click on "Details of the analysis of the ingredients" in the product page https://world.openfoodfacts.org/product/5281026016014, the text "May also contain soy, peanuts, sesame seeds, milk" is not there [One allergen (milk products) is unknown in the taxonomy, it appears as unknown ingredients. But this is another topic].
+
* %may_contain_regexps, it looks good. "May also contain" is recognized and when you click on "Details of the analysis of the ingredients" in the product page https://world.openfoodfacts.org/product/5281026016014, the text "May also contain soy, peanuts, sesame seeds, milk" is not there [One allergen (milk products) is unknown in the taxonomy, it appears as unknown ingredients. But this is another topic].
** %ignore_regexps, "For allergens see ingredients in bold." in the ingredients list does not appear in "Details of the analysis of the ingredients". This mean that "For allergens see ingredients in bold." is already known as ignore_regexps. All good there as well.
+
* %ignore_regexps, "For allergens see ingredients in bold." in the ingredients list does not appear in "Details of the analysis of the ingredients". This mean that "For allergens see ingredients in bold." is already known as ignore_regexps. All good there as well.
 
+
* Packed in a modified atmosphere.  
I can write the following in this thread:
  −
Packed in a modified atmosphere.  
   
%phrases_after_ingredients_list
 
%phrases_after_ingredients_list
 
https://world.openfoodfacts.org/product/5281026016014/thyme-cashews-alrifai
 
https://world.openfoodfacts.org/product/5281026016014/thyme-cashews-alrifai
   −
* [https://hr.openfoodfacts.org/product/8606106174564 pear cider] Serbian (sr)
+
=== [https://hr.openfoodfacts.org/product/8606106174564 pear cider] ===
** Proizvodi i puni
+
* Serbian (sr)
 +
* Proizvodi i puni
 
** %phrases_after_ingredients_list
 
** %phrases_after_ingredients_list
**
+
*
 
+
=== [https://hr.openfoodfacts.org/product/3858890478358 Boom Box Chocolate Granola ] ===
 
* Croatian (hr)
 
* Croatian (hr)
** Priprema obroka
+
* Priprema obroka
**%phrases_after_ingredients_list
+
*%phrases_after_ingredients_list
** https://hr.openfoodfacts.org/product/3858890478358
      
French (fr)
 
French (fr)
Line 55: Line 54:  
%phrases_after_ingredients_list
 
%phrases_after_ingredients_list
 
https://fr.openfoodfacts.org/produit/3272932000336/terrine-de-campagne
 
https://fr.openfoodfacts.org/produit/3272932000336/terrine-de-campagne
:+1:
  −
1
      
Benoit (benbenben)
 
Benoit (benbenben)
3,393

edits

Navigation menu