fairlens.sensitive.load_config¶
-
load_config
(config_path='./configs/config_engb.json')[source]¶ Changes the configuration that creates the underlying synonym and possible value dictionaries on which the shallow and deep search algorithms for sensitive attributes are based.
- Parameters
config_path (Union[str, pathlib.Path], optional) – The path of the JSON file containing the configuration. Defaults to fairlens/sensitive/configs/config_engb.json.
- Returns
Returns a tuple containing the synonym and value dictionaries in a format readable by the main detection function.
- Return type
Tuple[Any, Any]