glazing.cli.download¶
Download command implementation.
download
¶
Download commands for the glazing CLI.
This module provides CLI commands for downloading linguistic datasets from their official sources with progress tracking and error handling.
Commands
download Download specific or all datasets.
Examples:
Download VerbNet: $ glazing download --dataset verbnet
Download all datasets: $ glazing download --dataset all
Download to specific directory: $ glazing download --dataset propbank --output-dir /path/to/data
List available datasets: $ glazing download --list
| FUNCTION | DESCRIPTION |
|---|---|
dataset_command |
Download a specific dataset or all datasets. |
dataset_info |
Get detailed information about a dataset. |
download |
Download datasets from official sources. |
list_datasets |
List available datasets for download. |
Classes¶
Functions¶
dataset_command(dataset: str, output_dir: str | Path, force: bool) -> None
¶
Download a specific dataset or all datasets.
Downloads the specified dataset(s) to the output directory.
| PARAMETER | DESCRIPTION |
|---|---|
dataset
|
Dataset name to download ('all' for all datasets).
TYPE:
|
output_dir
|
Output directory for downloaded datasets.
TYPE:
|
force
|
Force re-download even if dataset already exists.
TYPE:
|
Examples:
Download VerbNet: glazing download dataset --dataset verbnet
Download all datasets: glazing download dataset --dataset all --output-dir /data
Download with force: glazing download dataset --dataset framenet --force
Source code in src/glazing/cli/download.py
dataset_info(dataset: str) -> None
¶
Get detailed information about a dataset.
Shows version, download method, and other metadata for the specified dataset.
Examples: glazing download info verbnet glazing download info framenet
Source code in src/glazing/cli/download.py
download() -> None
¶
Download datasets from official sources.
Downloads linguistic datasets including VerbNet, PropBank, WordNet, and FrameNet (manual download required) from their official sources.
Source code in src/glazing/cli/download.py
list_datasets() -> None
¶
List available datasets for download.
Shows all supported datasets with their versions and download status.