mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-07 13:44:55 +03:00
better help message
This commit is contained in:
parent
35893b187c
commit
506e5f55ef
|
@ -76,7 +76,7 @@ def apply_cli(
|
||||||
data_path: Path = Arg(..., help=path_help, exists=True),
|
data_path: Path = Arg(..., help=path_help, exists=True),
|
||||||
output_file: Path = Arg(..., help=out_help, dir_okay=False),
|
output_file: Path = Arg(..., help=out_help, dir_okay=False),
|
||||||
code_path: Optional[Path] = Opt(None, "--code", "-c", help=code_help),
|
code_path: Optional[Path] = Opt(None, "--code", "-c", help=code_help),
|
||||||
text_key: str = Opt("text", "--text-key", "-tk", help="Field to grab from .jsonl"),
|
text_key: str = Opt("text", "--text-key", "-tk", help="Key containing text string for JSONL"),
|
||||||
force_overwrite: bool = Opt(False, "--force", "-F", help="Force overwriting the output file"),
|
force_overwrite: bool = Opt(False, "--force", "-F", help="Force overwriting the output file"),
|
||||||
use_gpu: int = Opt(-1, "--gpu-id", "-g", help="GPU ID or -1 for CPU."),
|
use_gpu: int = Opt(-1, "--gpu-id", "-g", help="GPU ID or -1 for CPU."),
|
||||||
batch_size: int = Opt(1, "--batch-size", "-b", help="Batch size."),
|
batch_size: int = Opt(1, "--batch-size", "-b", help="Batch size."),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user