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 b9af992 commit b331440Copy full SHA for b331440
ingredient_parser/en/postprocess.py
@@ -510,7 +510,9 @@ def _convert_name_indices_to_object(
510
# If we need to merge the previous name, do it now.
511
ing_text = IngredientText(
512
text=merge_with_next.text + " " + ing_text.text,
513
- confidence=(merge_with_next.confidence + ing_text.confidence) / 2,
+ confidence=round(
514
+ (merge_with_next.confidence + ing_text.confidence) / 2, 6
515
+ ),
516
starting_index=min(
517
[merge_with_next.starting_index, ing_text.starting_index]
518
),
0 commit comments