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
parameter | mandatory | type | default value | Instructions |
---|---|---|---|---|
sPath | True | path | ''' 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 |
config | True | expression | {} | 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)