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
parameter | mandatory | type | default value | Instructions |
---|---|---|---|---|
extractor | True | expression | {} | Select extractor for Information Extraction |
template_name | True | string | "" | Select a template for Information Extraction |
time | True | number | thirty thousand | Specify 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)