Skip to content
Snippets Groups Projects
Commit fceb6242 authored by Yoann Schneider's avatar Yoann Schneider :tennis:
Browse files

Apply 2 suggestion(s) to 2 file(s)


Co-authored-by: default avatarEva Bardou <bardou@teklia.com>
parent adfd2b90
No related branches found
No related tags found
1 merge request!480Evaluate specific sets only
This commit is part of merge request !480. Comments created here will be created in the context of that merge request.
......@@ -84,10 +84,11 @@ def add_evaluate_parser(subcommands) -> None:
type=Path,
)
pretty_splits = map(lambda split: f"`{split}`", SPLIT_NAMES)
parser.add_argument(
"--sets",
dest="set_names",
help="Where to save evaluation results in JSON format.",
help=f"Sets to evaluate. Defaults to {', '.join(pretty_splits)}."
default=SPLIT_NAMES,
nargs="+",
)
......
......@@ -25,7 +25,7 @@ This will, for each evaluated split:
| `--config` | Path to the configuration file. | `pathlib.Path` | |
| `--nerval-threshold` | Distance threshold for the match between gold and predicted entity during Nerval evaluation. `0` would impose perfect matches, `1` would allow completely different strings to be considered as a match. | `float` | `0.3` |
| `--output-json` | Where to save evaluation results in JSON format. | `pathlib.Path` | `None` |
| `--sets` | Which sets should be evaluated. | `str` | `["train", "val", "test"]` |
| `--sets` | Sets to evaluate. Defaults to `train`, `val`, `test`. | `list[str]` | `["train", "val", "test"]` |
## Examples
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment