Skip to content

Commit 6f73dfb

Browse files
committed
include full parameter names into options
1 parent d349708 commit 6f73dfb

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

score.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,27 @@ def score(gold_file: str, pred_file: str) -> dict:
6868
def main(
6969
predictions_file: Annotated[
7070
str,
71-
typer.Option(help="Path to the prediction file."),
71+
typer.Option(
72+
"-p",
73+
"--predictions_file",
74+
help="Path to the prediction file.",
75+
),
7276
],
7377
goldstandard_folder: Annotated[
7478
str,
7579
typer.Option(
80+
"-g",
81+
"--goldstandard_folder",
7682
help="Path to the folder containing the goldstandard file.",
7783
),
7884
],
7985
output_file: Annotated[
8086
str,
81-
typer.Option(help="Path to save/update the results JSON file."),
87+
typer.Option(
88+
"-o",
89+
"--output_file",
90+
help="Path to save the results JSON file.",
91+
),
8292
] = "results.json",
8393
):
8494
"""

validate.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,27 @@ def validate(gold_file: str, pred_file: str) -> list[str]:
8787
def main(
8888
predictions_file: Annotated[
8989
str,
90-
typer.Option("-p", help="Path to the prediction file."),
90+
typer.Option(
91+
"-p",
92+
"--predictions_file",
93+
help="Path to the prediction file.",
94+
),
9195
],
9296
goldstandard_folder: Annotated[
9397
str,
9498
typer.Option(
95-
"-g", help="Path to the folder containing the goldstandard file.",
99+
"-g",
100+
"--goldstandard_folder",
101+
help="Path to the folder containing the goldstandard file.",
96102
),
97103
],
98104
output_file: Annotated[
99105
str,
100-
typer.Option("-o", help="Path to save the results JSON file."),
106+
typer.Option(
107+
"-o",
108+
"--output_file",
109+
help="Path to save the results JSON file.",
110+
),
101111
] = "results.json",
102112
):
103113
"""Validates the predictions file in preparation for evaluation."""

0 commit comments

Comments
 (0)