LoadFromFile Method of the ExtractionModels Object
This method allows you to load an NLP model from a .zip file.
Syntax
Visual Basic .NET
Function LoadFromFile( _ Path As String, _ Source As FieldDefinition, _ Language As Language _ ) As ExtractionModel
C++
HRESULT LoadFromFile( BSTR Path, IFieldDefinition* Source, ILanguage* Language, IExtractionModel** Result );
Parameters
- Path
- [in] The full path to the .zip file where the NLP model is stored.
- Source
- [in] Refers to the FieldDefinition object that specifies the field from which you want to extract the entity.
- Language
- [in] Refers to the Language object that specifies the language of the text to be extracted.
Note: If you specify a language other than the language in which a model was trained, no fields will be recognized when using the model. In this case, you will need to change the language using the Language property of the ExtractionModel object. - Result
- [out, retval] A pointer to the IExtractionModel* variable that receives the interface pointer for the loaded model.
Return values
This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.
See also
8/15/2023 1:19:30 PM