Category document
Command Description
Perform document Category on the specified single file, and the returned Category result is a dictionary structure
Command Prototype
jsonRet = Mage.NLPDocumentClassificationExtract(sPath,config)
Command parameter
parameter | mandatory | type | default value | Instructions |
---|---|---|---|---|
sPath | True | path | ''' C:\Users''' | It supports document Category of a single file, and the file size does not exceed 10M. Only the. jpeg,. jpg,. png,. bmp,. tiff,. pdf formats are supported |
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
/********************************* Classify Document ****************************************
Command Prototype:
jsonRet = Mage.NLPDocumentClassificationExtract(sPath, config)
Input Parameters:
sPath -- File path. Note: Supports document classification 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.NLPDocumentClassificationExtract('''C:\Users''',{})
TracePrint(jsonRet)