Skip to content

Commit

Permalink
Added example command for translation
Browse files Browse the repository at this point in the history
  • Loading branch information
RishabhMaheshwary committed Sep 9, 2024
1 parent 417eecb commit 83ebd79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/translate_preference_pairs_gtranslate.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,5 @@ def translate_dataset(dataset, columns_to_translate, target_language, subset_siz
args.output_dir,
args.batch_size,
)
# Example Command:
# python translate_preference_pairs_gtranslate.py --dataset_name allenai/reward-bench --target_language ar --columns_to_translate prompt chosen rejected --output_dir translated_results

0 comments on commit 83ebd79

Please sign in to comment.