Skip to content

Commit 6874359

Browse files
fix(medcat): CU-869azdc7x: Dynamic imports for legacy conversion (#205)
fixup! feat(medcat): CU-869azdc7x: Dynamic imports for legacy conversion (#198)
1 parent b29f69e commit 6874359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

medcat-v2/medcat/utils/legacy/conversion_all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def convert(self) -> CAT:
118118
from medcat.utils.legacy.convert_deid import get_trf_ner_from_old
119119
trf_ners = [
120120
get_trf_ner_from_old(subfolder, cat.pipe.tokenizer)
121-
for subfolder in os.listdir(self.old_model_folder)
121+
for subfolder in trf_folders
122122
]
123123
if len(trf_ners) > 1:
124124
raise ValueError("Cannot use more than 1 tranformers NER. "

0 commit comments

Comments
 (0)