docs: restore accidently deleted comment

This commit is contained in:
Skye Samuels 2025-08-05 23:47:28 +00:00
commit 43953dc8af

View file

@ -144,6 +144,7 @@ class NLPParser(ABCIngredientParser):
food, food_conf = self._extract_food(ingredient) food, food_conf = self._extract_food(ingredient)
note, note_conf = self._extract_note(ingredient) note, note_conf = self._extract_note(ingredient)
# average confidence for components which were parsed
confidences: list[float] = [] confidences: list[float] = []
if qty: if qty:
confidences.append(qty_conf) confidences.append(qty_conf)