Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion medcat-v2/medcat/utils/legacy/convert_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def get_val_and_parent_model(old_data: Optional[dict],
logger.warning(
"Optional path '%s' not found in old config. Ignoring",
path)
val = None
break
val = val[cname]
return val, target_model
Expand Down Expand Up @@ -166,7 +167,8 @@ def get_config_from_nested_dict(old_data: dict) -> Config:
# but we now default to regex
cnf.general.nlp.provider = 'spacy'
cnf = _make_changes(cnf, old_data)
if cnf.general.nlp.modelname in ('spacy_model', 'en_core_sci_md'):
if cnf.general.nlp.modelname in ('spacy_model', 'en_core_sci_md',
'en_core_sci_lg'):
logger.info("Fixing spacy model. "
"Moving from '%s' to 'en_core_web_md'!",
cnf.general.nlp.modelname)
Expand Down