These parameters are supported when 'api_type' is set to aws, azure, gcp, or nim.
| Name | Required or Optional | Description | Type | Default Value | Permitted Values |
|---|---|---|---|---|---|
| column | Required | Specifies the column of the teradataml DataFrame. | string | N/A | N/A |
| data | Required | Specifies the teradataml DataFrame containing the column specified in "column". | teradataml DataFrame | N/A | N/A |
| labels | Required | Specifies the set of labels used to categorize the text. It can take either a list of labels or a list of multiple labels for classification. | string or list of strings | N/A | N/A |
| persist | Optional | Specifies whether to persist the output or not. When set to True, results are stored in permanent tables, otherwise in volatile tables. | boolean | False | True, False |
| accumulate | Optional | Specifies the names of input teradataml DataFrame columns to copy to the output. By default, the method copies no input teradataml DataFrame columns to the output. | string or list of strings | All columns | Valid column from 'data' DataFrame. |
| data_partition_column | Optional | Specifies the column used to partition the the 'data' for processing. | string | Non | Valid column from 'data' DataFrame. |
| is_debug | Optional | Specifies whether to enable error logging. | boolean | False | True/False |
| multi_label | Optional | Specifies whether the classification is multi-label or not. When set to True, multi-label classification is performed on the text; otherwise, multi-class classification is performed. | boolean | False | True, False |
| show_num_tokens | Optional | Specifies whether to display token information in the query output. If set to True, it includes input and output token counts in the result. | boolean | False | True/False |
| refresh_credential_time | Optional | Specifies the refresh interval, in seconds, for credentials used by AWS and Azure VMs when connecting to AWS Bedrock and Azure AI without requiring external credentials. Applicable only if "api_type" is 'azure' or 'aws'. | integer | 0 |
These parameters are supported when 'api_type' is set to hugging_face.
| Name | Required or Optional | Description | Type | Default Value | Permitted Values |
|---|---|---|---|---|---|
| column | Required | Specifies the column of the teradataml DataFrame. | string | N/A | N/A |
| data | Required | Specifies the teradataml DataFrame containing the column specified in "column". | teradataml DataFrame | N/A | N/A |
| labels | Required | Specifies the set of labels used to categorize the text. It can take either a list of labels or a list of multiple labels for classification. The following command line arguments should be handled by the user-defined script when "api_type" is 'hugging_face':
|
string or list of strings | N/A | N/A |
| persist | Optional | Specifies whether to persist the output or not. When set to True, results are stored in permanent tables, otherwise in volatile tables. | bool | False | True, False |
| returns | Optional |
|
dictionary | N/A | N/A |
| script | Optional | Specifies the user defined script for inferencing. Use this argument to configure the model to process the input and output. The sample script uses the following mechanism to load and use the model:
|
string | N/A | N/A |
| output_labels | Optional |
|
dictionary | N/A | N/A |
| delimiter | Optional | Specifies a delimiter to use when reading columns from a row and writing result columns. Delimiter must be a valid Unicode code point.
|
string | comma (,) | N/A |
| quotechar | Optional | Specifies the character used to quote all input and output values for the script. "quotechar" value cannot be the same as "delimiter".
|
string | double quote (") | N/A |
| task | Optional |
|
string | N/A | N/A |
| libs | Optional | Specifies the add-on Python library names to be installed. | string or list of strings | N/A | N/A |