AddNew Method of the ExtractionModels Object

This method adds a new entity extraction model at the end of the collection.

Syntax

Visual Basic .NET

Function AddNew( _
  Name As String, _
  Source As FieldDefinition, _
  Language As Language _
) As ExtractionModel
    

C++

HRESULT AddNew(
  BSTR               Name,
  IFieldDefinition*  Source,
  ILanguage*         Language,
  IExtractionModel** Result
);
    

Parameters

Name
[in] The name of the new model.
Source
[in] Refers to the FieldDefinition object that specifies the field from which you want to extract the entities.
Language
[in] Refers to the Language object that specifies the language of the text to be extracted.
Note: If the language of the text is different from the language specified by the parameter, then no fields will be recognized. 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 added model.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.

See also

ExtractionModel

ExtractionModels

15.08.2023 13:19:30

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.