We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db0933c commit a5ee708Copy full SHA for a5ee708
ingredient_parser/en/_foundationfoods.py
@@ -34,13 +34,6 @@
34
"Dairy and Egg Products",
35
"foundation_food",
36
),
37
- ("cucumber",): FoundationFood(
38
- "Cucumber, with peel, raw",
39
- 1,
40
- 2346406,
41
- "Vegetables and Vegetable Products",
42
- "foundation_food",
43
- ),
44
("garlic",): FoundationFood(
45
"Garlic, raw",
46
1,
@@ -510,7 +503,7 @@ def _select_best_match(
510
503
511
504
# Find other matches with score within 10% of best
512
505
alternatives = [
513
- match for match in matches if (match.score - best_score) / best_score <= 0.1
506
+ match for match in matches if (match.score - best_score) / best_score <= 0.2
514
507
]
515
508
for data_type in PREFERRED_DATATYPES:
516
509
# Note that these will be sorted in order of best score first because the
0 commit comments