Skip to content
Snippets Groups Projects

Parse a tokens yaml instead of hardcoding the tokens

Merged Thibault Lavigne requested to merge parse-tokens into main
Files
4
+ 6
0
@@ -51,6 +51,12 @@ def add_predict_parser(subcommands) -> None:
help="Path to the output folder.",
required=True,
)
parser.add_argument(
"--tokens",
type=pathlib.Path,
required=True,
help="Path to a yaml file containing a mapping between starting tokens and end tokens. Needed for entities.",
)
# Optional arguments.
parser.add_argument(
"--image-extension",
Loading