Skip to content

Commit

Permalink
Refactor translation card testing logic and remove unused dataset loa…
Browse files Browse the repository at this point in the history
…ding

Signed-off-by: elronbandel <[email protected]>
  • Loading branch information
elronbandel committed Jan 30, 2025
1 parent 412e90b commit f6e5388
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions prepare/cards/translation/flores101.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,17 +150,8 @@
task="tasks.translation.directed",
templates="templates.translation.directed.all",
)

test_card(card, demos_taken_from="test")
if pair == pairs[0]:
test_card(card, demos_taken_from="test")
add_to_catalog(
card, f"cards.mt.flores_101.{pair['src']}_{pair['tgt']}", overwrite=True
)

if __name__ == "__main__":
from unitxt import load_dataset

ds = load_dataset(
"card=cards.mt.flores_101.eng_deu,template_card_index=0",
)

ds["test"][0]

0 comments on commit f6e5388

Please sign in to comment.