hezar.utils.file_utils module

hezar.utils.file_utils.gunzip(src_path, dest_path)[source]

Unzip a .gz file from src_path and extract to dest_path :param src_path: Path to .gz file :param dest_path: Path to the destination file

Returns:

hezar.utils.file_utils.load_json_config(path: str | os.PathLike)[source]

Load json config file

hezar.utils.file_utils.load_yaml_config(path: str | os.PathLike)[source]

Load yaml file using omegaconf