File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
medcat/1_create_model/create_modelpack Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 33from medcat .vocab import Vocab
44from medcat .cdb import CDB
55from medcat .cat import CAT
6- from medcat .storage .serialisers import deserialise
76
87# relative to file path
98_FILE_DIR = os .path .dirname (__file__ )
@@ -42,7 +41,7 @@ def load_cdb_and_save_modelpack(cdb_path: str,
4241 # Load cdb
4342 cdb : CDB
4443 try :
45- cdb = deserialise (cdb_path )
44+ cdb = CDB . load (cdb_path )
4645 except NotADirectoryError :
4746 from medcat .utils .legacy .convert_cdb import get_cdb_from_old
4847 cdb = get_cdb_from_old (cdb_path )
@@ -61,7 +60,7 @@ def load_cdb_and_save_modelpack(cdb_path: str,
6160 # Load vocab
6261 vocab : Vocab
6362 try :
64- vocab = deserialise (vocab_path )
63+ vocab = Vocab . load (vocab_path )
6564 except NotADirectoryError :
6665 from medcat .utils .legacy .convert_vocab import get_vocab_from_old
6766 vocab = get_vocab_from_old (vocab_path )
You can’t perform that action at this time.
0 commit comments