csa_config.load_config
- csa_config.load_config(config_path)[source]
Read a JSON configuration file and return an ExtractionConfig instance.
- Parameters:
config_path (Union[str, Path]) – Path to the JSON configuration file.
- Returns:
Dataclass instance loaded from the “extraction” section.
- Return type:
- Raises:
FileNotFoundError – If the file does not exist.
KeyError – If the “extraction” section is missing.
json.JSONDecodeError – If the file contains invalid JSON.