From bedd0a14cf7b45c082ea81b3dccdf926b066207c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1thory=20P=C3=A9ter?= Date: Mon, 18 Nov 2024 10:05:43 +0100 Subject: [PATCH] Add Hungarian translations for nutrient detection --- robotoff/prediction/ocr/nutrient.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/robotoff/prediction/ocr/nutrient.py b/robotoff/prediction/ocr/nutrient.py index b4515beeb4..acd9338570 100644 --- a/robotoff/prediction/ocr/nutrient.py +++ b/robotoff/prediction/ocr/nutrient.py @@ -25,7 +25,7 @@ ("valeurs? [ée]nerg[ée]tiques?", ["fr"]), ("energy", ["en"]), ("calories", ["fr", "en"]), - ("energia", ["es", "it", "pt"]), + ("energia", ["es", "it", "pt", "hu"]), ("valor energ[ée]tico", ["es"]), ("energi", ["da"]), ], @@ -42,8 +42,12 @@ ("[aá]cidos grasos saturados", ["es"]), ("dos quais saturados", ["pt"]), ("mættede fedtsyrer", ["da"]), + ("amelyb[őö]l? telített zs[íi]rsavak", ["hu"]), + ], + "trans_fat": [ + ("mati[èe]res? grasses? trans", ["fr"]), + ("trans fat", ["en"]), ], - "trans_fat": [("mati[èe]res? grasses? trans", ["fr"]), ("trans fat", ["en"])], "fat": [ ("mati[èe]res? grasses?", ["fr"]), ("graisses?", ["fr"]), @@ -55,6 +59,7 @@ ("grassi", ["it"]), ("l[íi]pidos", ["es", "pt"]), ("fedt", ["da"]), + ("zs[íi]r", ["hu"]), ], "sugar": [ ("sucres?", ["fr"]), @@ -64,6 +69,7 @@ ("zucker", ["de"]), ("az[úu]cares", ["es"]), ("sukkerarter", ["da"]), + ("amelyb[őö]l? cukrok", ["hu"]), ], "carbohydrate": [ ("total carbohydrate", ["en"]), @@ -75,6 +81,7 @@ ("kohlenhydrate", ["de"]), ("hidratos de carbono", ["es", "pt"]), ("kulhydrat", ["da"]), + ("szénhidrát", ["hu"]), ], "protein": [ ("prot[ée]ines?", ["fr"]), @@ -82,6 +89,7 @@ ("eiwitten", ["nl"]), ("eiweiß", ["de"]), ("prote[íi]nas", ["es", "pt"]), + ("fehérje", ["hu"]), ], "salt": [ ("sel", ["fr"]), @@ -90,6 +98,7 @@ ("salz", ["de"]), ("sale", ["it"]), ("sal", ["es", "pt"]), + ("só", ["hu"]), ], "fiber": [ ("fibres?", ["en", "fr", "it"]), @@ -99,6 +108,7 @@ ("ballaststoffe", ["de"]), ("fibra(?: alimentaria)?", ["es"]), ("kostfibre", ["da"]), + ("rost", ["hu"]), ], "nutrition_values": [ ("informations? nutritionnelles?(?: moyennes?)?", ["fr"]), @@ -112,6 +122,8 @@ ("gemiddelde waarden per", ["nl"]), ("nutritionele informatie", ["nl"]), ("(er)?næringsindhold", ["da"]), + ("átlagos tápérték(?:tartalom)?", ["hu"]), + ("tápérték adatok", ["hu"]), ], }