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_path
strin The path to directory containing the AI model files.document_model
DocumentModelin The AI model to be loaded.processing_unit
ProcessingUnitin 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
modelPath
Stringin The path to directory containing the AI model files.documentModel
DocumentModelin The AI model to be loaded.processingUnit
ProcessingUnitin 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
modelPath
stringin The path to directory containing the AI model files.documentModel
DocumentModelin The AI model to be loaded.processingUnit
ProcessingUnitin 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
modelPath
Stringin The path to directory containing the AI model files.documentModel
DocumentModelin The AI model to be loaded.processingUnit
ProcessingUnitin 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
modelPath
Stringin The path to directory containing the AI model files.documentModel
DocumentModelin The AI model to be loaded.processingUnit
ProcessingUnitin 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
modelPath
const char *in The path to directory containing the AI model files.eDocumentModel
id3DocumentModelin The AI model to be loaded.eProcessingUnit
id3DocumentProcessingUnitin Processing unit to load the model into.
Returns