Skip to main content
Version: v6.5.0

Get a list of field names

Command Description

Get the field list of the Information Extraction template in the extractor from the Laiye Intelligent Document Processing interface

Command Prototype

arrayRet = Mage.GetTextExtractFieldList(extractor,template_name,time)

Command parameter

parametermandatorytypedefault valueInstructions
extractorTrueexpression{}Select extractor for Information Extraction
template_nameTruestring""Select a template for Information Extraction
timeTruenumberthirty thousandSpecify the waiting time (in milliseconds), and if it exceeds this time, an exception will be raised. Default 30000 milliseconds (30 seconds)

Return result

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

Run instance

/*********************************Get Field Name List***************************************
Command Prototype:
arrayRet = Mage.GetTextExtractFieldList({},"",30000)
Input Parameters:
extractor -- Extractor. Note: Select the extractor for information extraction (includes: Pubkey, Secret, Url, where Pubkey and Secret need to be obtained from the specified model in Mage). Type: Dict
template_name -- Template name. Note: Select the template for information extraction
time -- Timeout (milliseconds). Note: Specify the wait time (in milliseconds). If this time is exceeded, an exception will be thrown. Default is 30000 ms (30 seconds)
Output Parameter:
arrayRet -- The variable where the output of the function call will be saved
Notes:
1. To use Mage, ensure network connectivity is available
2. The model and corresponding configuration information must be pre-configured in Mage
********************************************************************************/
Dim arrayRet = ""
arrayRet = Mage.GetTextExtractFieldList({"Pubkey":Pubkey,"Secret":Secret,"Url":"https://mage.uibot.com.cn"},"Year-over-Year Decrease",30000)
TracePrint(arrayRet)