medcat.utils.legacy.identifier

Attributes

EXPECTED_V1_CDB_FILE_NAME

EXPECTED_V2_CDB_FOLDER_NAME

Functions

is_legacy_model_pack(model_pack_path)

Check if the model pack is a legacy model pack.

Module Contents

medcat.utils.legacy.identifier.EXPECTED_V1_CDB_FILE_NAME = 'cdb.dat'
medcat.utils.legacy.identifier.EXPECTED_V2_CDB_FOLDER_NAME = 'cdb'
medcat.utils.legacy.identifier.is_legacy_model_pack(model_pack_path)

Check if the model pack is a legacy model pack.

Parameters:

model_pack_path (str) – The path to the model pack (unzipped).

Returns:

bool – True if the model pack is a legacy model pack, False otherwise.

Return type:

bool