gliner.utils module¶
- gliner.utils.load_config_as_namespace(config_file)[source]¶
Load YAML/JSON config file as nested Namespace.
- Parameters:
config_file (str | Path) – Path to config file
- Returns:
Nested argparse.Namespace
- Return type:
Namespace
Example
>>> config = load_config_as_namespace("config.yaml") >>> print(config.model.model_name) >>> print(config.training.lr_encoder)