Skip to main content
Version: v6.5.0

Self training extraction

Command Description

Perform self training extraction on a specified individual file, and return the extraction result as a dictionary structure

Command Prototype

jsonRet = Mage.NLPDocumentSinglePageExtract(sPath,config)

Command parameter

parametermandatorytypedefault valueInstructions
sPathTruepath''' C:\Users'''Support self training extraction of individual files, with a file size not exceeding 10M, only supporting. JPEG,. JPG,. png,. Bmp,. tif,. pdf formats
configTrueexpression{}Call configuration of Laiye Intelligent Document Processing (IDP)

Return result

JsonRet, Assign the result of running the command to this variable.

Run instance

/********************************* Self-Training Extraction ***************************************
Command Prototype:
jsonRet = Mage.NLPDocumentSinglePageExtract(sPath, config)
Input Parameters:
sPath -- File path. Note: Supports self-training extraction for a single file. The file size should not exceed 10MB and only supports .jpeg, .jpg, .png, .bmp, .tiff, .pdf formats.
config -- Intelligent Document Processing platform configuration. Note: Configuration for calling the Intelligent Document Processing (IDP) platform.
Output Parameters:
jsonRet -- Variable to store the output of the function call.
Important Notes:
None
********************************************************************************/
Dim jsonRet = ""
jsonRet = Mage.NLPDocumentSinglePageExtract('''C:\Users''',{})
TracePrint(jsonRet)