-
-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial support for specific ingredients parsing #6242
- Loading branch information
1 parent
1116cad
commit ddfed6a
Showing
7 changed files
with
716 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
t/expected_test_results/ingredients/en-specific-ingredients.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"ingredients" : [ | ||
{ | ||
"id" : "en:milk", | ||
"percent_estimate" : 66.6666666666667, | ||
"percent_max" : 100, | ||
"percent_min" : 33.3333333333333, | ||
"text" : "Milk", | ||
"vegan" : "no", | ||
"vegetarian" : "yes" | ||
}, | ||
{ | ||
"id" : "en:cream", | ||
"percent_estimate" : 16.6666666666667, | ||
"percent_max" : 50, | ||
"percent_min" : 0, | ||
"text" : "cream", | ||
"vegan" : "no", | ||
"vegetarian" : "yes" | ||
}, | ||
{ | ||
"id" : "en:sugar", | ||
"percent_estimate" : 16.6666666666667, | ||
"percent_max" : 33.3333333333333, | ||
"percent_min" : 0, | ||
"text" : "sugar", | ||
"vegan" : "yes", | ||
"vegetarian" : "yes" | ||
} | ||
], | ||
"ingredients_analysis_tags" : [ | ||
"en:palm-oil-free", | ||
"en:non-vegan", | ||
"en:vegetarian" | ||
], | ||
"ingredients_hierarchy" : [ | ||
"en:milk", | ||
"en:dairy", | ||
"en:cream", | ||
"en:sugar", | ||
"en:added-sugar", | ||
"en:disaccharide" | ||
], | ||
"ingredients_n" : 3, | ||
"ingredients_n_tags" : [ | ||
"3", | ||
"1-10" | ||
], | ||
"ingredients_original_tags" : [ | ||
"en:milk", | ||
"en:cream", | ||
"en:sugar" | ||
], | ||
"ingredients_percent_analysis" : 1, | ||
"ingredients_tags" : [ | ||
"en:milk", | ||
"en:dairy", | ||
"en:cream", | ||
"en:sugar", | ||
"en:added-sugar", | ||
"en:disaccharide" | ||
], | ||
"ingredients_text" : "Milk, cream, sugar. Sugar content: 3 %. Total milk content: 75.2g", | ||
"ingredients_with_specified_percent_n" : 0, | ||
"ingredients_with_specified_percent_sum" : 0, | ||
"ingredients_with_unspecified_percent_n" : 3, | ||
"ingredients_with_unspecified_percent_sum" : 100, | ||
"known_ingredients_n" : 6, | ||
"lc" : "en", | ||
"nutriments" : { | ||
"fruits-vegetables-nuts-estimate-from-ingredients_100g" : 0, | ||
"fruits-vegetables-nuts-estimate-from-ingredients_serving" : 0 | ||
}, | ||
"specific_ingredients" : { | ||
"en:milk" : { | ||
"ingredient" : "milk", | ||
"percent" : "75.2", | ||
"text" : " Total milk content: 75.2g" | ||
}, | ||
"en:sugar" : { | ||
"ingredient" : "Sugar", | ||
"percent" : "3", | ||
"text" : " Sugar content: 3 %." | ||
} | ||
}, | ||
"unknown_ingredients_n" : 0 | ||
} |
Oops, something went wrong.