LoadFromFile Method of the ExtractionModels Object
This method allows you to load an NLP model from a .zip file.
Visual Basic .NET
Function LoadFromFile( _ Path As String, _ Source As FieldDefinition, _ Language As Language _ ) As ExtractionModel
HRESULT LoadFromFile( BSTR Path, IFieldDefinition* Source, ILanguage* Language, IExtractionModel** Result );
- [in] The full path to the .zip file where the NLP model is stored.
- [in] Refers to the FieldDefinition object that specifies the field from which you want to extract the entity.
- [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.
- [out, retval] A pointer to the IExtractionModel* variable that receives the interface pointer for the loaded model.
This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.