medcat.utils.legacy.identifier
Functions:
-
is_legacy_model_pack–Check if the model pack is a legacy model pack.
Attributes:
EXPECTED_V1_CDB_FILE_NAME
module-attribute
EXPECTED_V1_CDB_FILE_NAME = 'cdb.dat'
EXPECTED_V2_CDB_FOLDER_NAME
module-attribute
EXPECTED_V2_CDB_FOLDER_NAME = 'cdb'
is_legacy_model_pack
is_legacy_model_pack(model_pack_path: str) -> bool
Check if the model pack is a legacy model pack.
Parameters:
-
(model_pack_pathstr) –The path to the model pack (unzipped).
Returns:
-
bool(bool) –True if the model pack is a legacy model pack, False otherwise.
Source code in medcat-v2/medcat/utils/legacy/identifier.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | |