DocumentLibrary.loadModel Method¶
Module: DocumentLibrary
Definition¶
Loads a model into memory from the specified directory.
@staticmethod
load_model(model_path: str, document_model: DocumentModel, processing_unit: ProcessingUnit) -> None
Parameters
model_pathstrin The path to directory containing the AI model files.document_modelDocumentModelin The AI model to be loaded.processing_unitProcessingUnitin Processing unit to load the model into.
Exceptions
An error has occurred during Document Library execution.
static void loadModel(String? modelPath, DocumentModel documentModel, ProcessingUnit processingUnit)
Parameters
modelPathStringin The path to directory containing the AI model files.documentModelDocumentModelin The AI model to be loaded.processingUnitProcessingUnitin Processing unit to load the model into.
Exceptions
An error has occurred during Document Library execution.
public static void LoadModel(string modelPath, DocumentModel documentModel, ProcessingUnit processingUnit)
Parameters
modelPathstringin The path to directory containing the AI model files.documentModelDocumentModelin The AI model to be loaded.processingUnitProcessingUnitin Processing unit to load the model into.
Exceptions
An error has occurred during Document Library execution.
public static void loadModel(String modelPath, DocumentModel documentModel, ProcessingUnit processingUnit) throws DocumentException
Parameters
modelPathStringin The path to directory containing the AI model files.documentModelDocumentModelin The AI model to be loaded.processingUnitProcessingUnitin Processing unit to load the model into.
Exceptions
An error has occurred during Document Library execution.
public static func loadModel(modelPath: String, documentModel: DocumentModel, processingUnit: ProcessingUnit) throws
Parameters
modelPathStringin The path to directory containing the AI model files.documentModelDocumentModelin The AI model to be loaded.processingUnitProcessingUnitin Processing unit to load the model into.
Exceptions
An error has occurred during Document Library execution.
int id3DocumentLibrary_LoadModel (
const char * modelPath,
id3DocumentModel eDocumentModel,
id3DocumentProcessingUnit eProcessingUnit)
Parameters
modelPathconst char *in The path to directory containing the AI model files.eDocumentModelid3DocumentModelin The AI model to be loaded.eProcessingUnitid3DocumentProcessingUnitin Processing unit to load the model into.
Returns