Skip to content

Commit

Permalink
[!143][GENDER] Add version printing to gender scripts
Browse files Browse the repository at this point in the history
# Why is the change needed?

The version of our scripts for computing gender scores is currently only included into script comments.
To make it more evident to users which version of the scripts they are using, we can print the version.

# What changes does the patch introduce?

Prints the version of each gender evaluation script.

# How was this patch tested?

manual test
  • Loading branch information
mgaido91 committed Oct 18, 2023
1 parent 35dc97b commit 74dc0fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/speech_to_text/scripts/gender/INES_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def print_acc_scores(out_scores):
Version: 1.0
"""
print("INES_eval v1.0")
parser = argparse.ArgumentParser()
parser.add_argument('--input', required=True, type=str, metavar='FILE',
help='Input file to be used to compute scores (it must be tokenized).')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def print_scores(category_scores: Dict[str, MuSTSheScores], print_latex: bool =
Version: 1.1
"""
print("mustshe_gender_accuracy v1.1")
parser = argparse.ArgumentParser()
parser.add_argument('--input', required=True, type=str, metavar='FILE',
help='Input file to be used to compute accuracies (it must be tokenized).')
Expand Down

0 comments on commit 74dc0fb

Please sign in to comment.