Skip to content

Commit

Permalink
Add Hungarian translations for nutrient detection (#1467)
Browse files Browse the repository at this point in the history
  • Loading branch information
BathoryPeter authored Nov 18, 2024
1 parent 40ecbb2 commit d3cf904
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions robotoff/prediction/ocr/nutrient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]),
],
Expand All @@ -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"]),
Expand All @@ -55,6 +59,7 @@
("grassi", ["it"]),
("l[íi]pidos", ["es", "pt"]),
("fedt", ["da"]),
("zs[íi]r", ["hu"]),
],
"sugar": [
("sucres?", ["fr"]),
Expand All @@ -64,6 +69,7 @@
("zucker", ["de"]),
("az[úu]cares", ["es"]),
("sukkerarter", ["da"]),
("amelyb[őö]l? cukrok", ["hu"]),
],
"carbohydrate": [
("total carbohydrate", ["en"]),
Expand All @@ -75,13 +81,15 @@
("kohlenhydrate", ["de"]),
("hidratos de carbono", ["es", "pt"]),
("kulhydrat", ["da"]),
("szénhidrát", ["hu"]),
],
"protein": [
("prot[ée]ines?", ["fr"]),
("protein", ["en", "da"]),
("eiwitten", ["nl"]),
("eiweiß", ["de"]),
("prote[íi]nas", ["es", "pt"]),
("fehérje", ["hu"]),
],
"salt": [
("sel", ["fr"]),
Expand All @@ -90,6 +98,7 @@
("salz", ["de"]),
("sale", ["it"]),
("sal", ["es", "pt"]),
("só", ["hu"]),
],
"fiber": [
("fibres?", ["en", "fr", "it"]),
Expand All @@ -99,6 +108,7 @@
("ballaststoffe", ["de"]),
("fibra(?: alimentaria)?", ["es"]),
("kostfibre", ["da"]),
("rost", ["hu"]),
],
"nutrition_values": [
("informations? nutritionnelles?(?: moyennes?)?", ["fr"]),
Expand All @@ -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"]),
],
}

Expand Down

0 comments on commit d3cf904

Please sign in to comment.