Skip to content
3 changes: 3 additions & 0 deletions medcat-v2/medcat/components/addons/meta_cat/meta_cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ def deserialise_from(cls, folder_path: str, **init_kwargs
cnf = init_kwargs['cnf']
else:
config_path = os.path.join(folder_path, "meta_cat", "config")
if not os.path.exists(config_path):
# load legacy config (assuming it exists)
config_path += ".dat"
logger.info(
"Was not provide a config when loading a meta cat from '%s'. "
"Inferring config from file at '%s'", folder_path,
Expand Down