teradataml 20.0.0.4__py3-none-any.whl → 20.0.0.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of teradataml might be problematic. Click here for more details.
- teradataml/LICENSE-3RD-PARTY.pdf +0 -0
- teradataml/README.md +182 -13
- teradataml/__init__.py +2 -1
- teradataml/_version.py +2 -2
- teradataml/analytics/analytic_function_executor.py +8 -13
- teradataml/analytics/json_parser/analytic_functions_argument.py +4 -0
- teradataml/analytics/sqle/__init__.py +16 -1
- teradataml/analytics/utils.py +60 -1
- teradataml/automl/__init__.py +290 -106
- teradataml/automl/autodataprep/__init__.py +471 -0
- teradataml/automl/data_preparation.py +29 -10
- teradataml/automl/data_transformation.py +11 -0
- teradataml/automl/feature_engineering.py +64 -4
- teradataml/automl/feature_exploration.py +639 -25
- teradataml/automl/model_training.py +1 -1
- teradataml/clients/auth_client.py +12 -8
- teradataml/clients/keycloak_client.py +165 -0
- teradataml/common/constants.py +71 -26
- teradataml/common/exceptions.py +32 -0
- teradataml/common/messagecodes.py +28 -0
- teradataml/common/messages.py +13 -4
- teradataml/common/sqlbundle.py +3 -2
- teradataml/common/utils.py +345 -45
- teradataml/context/context.py +259 -93
- teradataml/data/apriori_example.json +22 -0
- teradataml/data/docs/sqle/docs_17_20/Apriori.py +138 -0
- teradataml/data/docs/sqle/docs_17_20/NERExtractor.py +121 -0
- teradataml/data/docs/sqle/docs_17_20/NGramSplitter.py +3 -3
- teradataml/data/docs/sqle/docs_17_20/SMOTE.py +212 -0
- teradataml/data/docs/sqle/docs_17_20/TextMorph.py +119 -0
- teradataml/data/docs/sqle/docs_17_20/TextParser.py +54 -3
- teradataml/data/docs/uaf/docs_17_20/ACF.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/ArimaEstimate.py +2 -2
- teradataml/data/docs/uaf/docs_17_20/ArimaXEstimate.py +2 -2
- teradataml/data/docs/uaf/docs_17_20/DFFT.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/DFFT2.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/DFFT2Conv.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/DFFTConv.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/FilterFactory1d.py +4 -4
- teradataml/data/docs/uaf/docs_17_20/GenseriesSinusoids.py +2 -2
- teradataml/data/docs/uaf/docs_17_20/GoldfeldQuandt.py +2 -2
- teradataml/data/docs/uaf/docs_17_20/HoltWintersForecaster.py +6 -6
- teradataml/data/docs/uaf/docs_17_20/LineSpec.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/LinearRegr.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/Matrix2Image.py +4 -4
- teradataml/data/docs/uaf/docs_17_20/MultivarRegr.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/PACF.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/PowerSpec.py +2 -2
- teradataml/data/docs/uaf/docs_17_20/PowerTransform.py +3 -3
- teradataml/data/docs/uaf/docs_17_20/Resample.py +5 -5
- teradataml/data/docs/uaf/docs_17_20/SAX.py +3 -3
- teradataml/data/docs/uaf/docs_17_20/SignifPeriodicities.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/SimpleExp.py +1 -1
- teradataml/data/docs/uaf/docs_17_20/Smoothma.py +3 -3
- teradataml/data/docs/uaf/docs_17_20/UNDIFF.py +1 -1
- teradataml/data/jsons/byom/onnxembeddings.json +1 -0
- teradataml/data/jsons/sqle/17.20/NGramSplitter.json +6 -6
- teradataml/data/jsons/sqle/17.20/TD_Apriori.json +181 -0
- teradataml/data/jsons/sqle/17.20/TD_NERExtractor.json +145 -0
- teradataml/data/jsons/sqle/17.20/TD_SMOTE.json +267 -0
- teradataml/data/jsons/sqle/17.20/TD_TextMorph.json +134 -0
- teradataml/data/jsons/sqle/17.20/TD_TextParser.json +114 -9
- teradataml/data/jsons/sqle/20.00/AI_AnalyzeSentiment.json +328 -0
- teradataml/data/jsons/sqle/20.00/AI_AskLLM.json +420 -0
- teradataml/data/jsons/sqle/20.00/AI_DetectLanguage.json +343 -0
- teradataml/data/jsons/sqle/20.00/AI_ExtractKeyPhrases.json +328 -0
- teradataml/data/jsons/sqle/20.00/AI_MaskPII.json +328 -0
- teradataml/data/jsons/sqle/20.00/AI_RecognizeEntities.json +328 -0
- teradataml/data/jsons/sqle/20.00/AI_RecognizePIIEntities.json +328 -0
- teradataml/data/jsons/sqle/20.00/AI_TextClassifier.json +359 -0
- teradataml/data/jsons/sqle/20.00/AI_TextEmbeddings.json +360 -0
- teradataml/data/jsons/sqle/20.00/AI_TextSummarize.json +343 -0
- teradataml/data/jsons/sqle/20.00/AI_TextTranslate.json +343 -0
- teradataml/data/jsons/sqle/20.00/TD_SMOTE.json +2 -2
- teradataml/data/jsons/sqle/20.00/TD_VectorDistance.json +1 -1
- teradataml/data/ner_dict.csv +8 -0
- teradataml/data/ner_input_eng.csv +7 -0
- teradataml/data/ner_rule.csv +5 -0
- teradataml/data/pattern_matching_data.csv +11 -0
- teradataml/data/pos_input.csv +40 -0
- teradataml/data/sdk/modelops/modelops_spec.json +101737 -0
- teradataml/data/tdnerextractor_example.json +14 -0
- teradataml/data/teradataml_example.json +21 -1
- teradataml/data/textmorph_example.json +5 -0
- teradataml/data/to_num_data.csv +4 -0
- teradataml/data/tochar_data.csv +5 -0
- teradataml/data/trans_dense.csv +16 -0
- teradataml/data/trans_sparse.csv +55 -0
- teradataml/data/url_data.csv +10 -9
- teradataml/dataframe/copy_to.py +38 -27
- teradataml/dataframe/data_transfer.py +61 -45
- teradataml/dataframe/dataframe.py +1110 -132
- teradataml/dataframe/dataframe_utils.py +73 -27
- teradataml/dataframe/functions.py +1070 -9
- teradataml/dataframe/sql.py +750 -959
- teradataml/dbutils/dbutils.py +33 -13
- teradataml/dbutils/filemgr.py +14 -10
- teradataml/hyperparameter_tuner/utils.py +4 -2
- teradataml/lib/aed_0_1.dll +0 -0
- teradataml/opensource/_base.py +12 -157
- teradataml/options/configure.py +24 -9
- teradataml/scriptmgmt/UserEnv.py +317 -39
- teradataml/scriptmgmt/lls_utils.py +456 -135
- teradataml/sdk/README.md +79 -0
- teradataml/sdk/__init__.py +4 -0
- teradataml/sdk/_auth_modes.py +422 -0
- teradataml/sdk/_func_params.py +487 -0
- teradataml/sdk/_json_parser.py +453 -0
- teradataml/sdk/_openapi_spec_constants.py +249 -0
- teradataml/sdk/_utils.py +236 -0
- teradataml/sdk/api_client.py +897 -0
- teradataml/sdk/constants.py +62 -0
- teradataml/sdk/modelops/__init__.py +98 -0
- teradataml/sdk/modelops/_client.py +406 -0
- teradataml/sdk/modelops/_constants.py +304 -0
- teradataml/sdk/modelops/models.py +2308 -0
- teradataml/sdk/spinner.py +107 -0
- teradataml/store/__init__.py +1 -1
- teradataml/table_operators/Apply.py +16 -1
- teradataml/table_operators/Script.py +20 -1
- teradataml/table_operators/query_generator.py +4 -21
- teradataml/table_operators/table_operator_util.py +58 -9
- teradataml/utils/dtypes.py +4 -2
- teradataml/utils/internal_buffer.py +22 -2
- teradataml/utils/utils.py +0 -1
- teradataml/utils/validators.py +318 -58
- {teradataml-20.0.0.4.dist-info → teradataml-20.0.0.6.dist-info}/METADATA +188 -14
- {teradataml-20.0.0.4.dist-info → teradataml-20.0.0.6.dist-info}/RECORD +131 -84
- {teradataml-20.0.0.4.dist-info → teradataml-20.0.0.6.dist-info}/WHEEL +0 -0
- {teradataml-20.0.0.4.dist-info → teradataml-20.0.0.6.dist-info}/top_level.txt +0 -0
- {teradataml-20.0.0.4.dist-info → teradataml-20.0.0.6.dist-info}/zip-safe +0 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
{
|
|
2
|
+
"json_schema_major_version": "1",
|
|
3
|
+
"json_schema_minor_version": "1",
|
|
4
|
+
"json_content_version": "1",
|
|
5
|
+
"function_name": "TD_TextMorph",
|
|
6
|
+
"function_version": "1.0",
|
|
7
|
+
"function_type": "fastpath",
|
|
8
|
+
"function_category": "Text Analysis",
|
|
9
|
+
"function_alias_name": "TD_TextMorph",
|
|
10
|
+
"function_r_name": "td.textmorph",
|
|
11
|
+
"short_description": "This function is used to generate morph of given words in the input dataset.",
|
|
12
|
+
"long_description": "This function is used to generate morph of given words in the input dataset.",
|
|
13
|
+
"input_tables": [
|
|
14
|
+
{
|
|
15
|
+
"requiredInputKind": [
|
|
16
|
+
"PartitionByAny"
|
|
17
|
+
],
|
|
18
|
+
"isOrdered": false,
|
|
19
|
+
"partitionByOne": false,
|
|
20
|
+
"name": "InputTable",
|
|
21
|
+
"alternateNames": [],
|
|
22
|
+
"isRequired": true,
|
|
23
|
+
"rDescription": "The table that contains the input dataset.",
|
|
24
|
+
"description": "The table that contains the input dataset.",
|
|
25
|
+
"datatype": "TABLE_ALIAS",
|
|
26
|
+
"allowsLists": false,
|
|
27
|
+
"rName": "data",
|
|
28
|
+
"useInR": true,
|
|
29
|
+
"rOrderNum": 1
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"argument_clauses": [
|
|
33
|
+
{
|
|
34
|
+
"targetTable": [
|
|
35
|
+
"InputTable"
|
|
36
|
+
],
|
|
37
|
+
"checkDuplicate": true,
|
|
38
|
+
"allowedTypes": [],
|
|
39
|
+
"allowedTypeGroups": [
|
|
40
|
+
"STRING"
|
|
41
|
+
],
|
|
42
|
+
"matchLengthOfArgument": "",
|
|
43
|
+
"allowPadding": false,
|
|
44
|
+
"name": "WordColumn",
|
|
45
|
+
"alternateNames": [],
|
|
46
|
+
"isRequired": true,
|
|
47
|
+
"rDescription": "Specify the name of the input column that contains words, for which morphs to be generated.",
|
|
48
|
+
"description": "Specify the name of the input column that contains words, for which morphs to be generated.",
|
|
49
|
+
"datatype": "COLUMNS",
|
|
50
|
+
"allowsLists": false,
|
|
51
|
+
"rName": "word.column",
|
|
52
|
+
"useInR": true,
|
|
53
|
+
"rOrderNum": 2
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"permittedValues": [
|
|
57
|
+
"NOUN",
|
|
58
|
+
"VERB",
|
|
59
|
+
"ADV",
|
|
60
|
+
"ADJ"
|
|
61
|
+
],
|
|
62
|
+
"isOutputColumn": false,
|
|
63
|
+
"matchLengthOfArgument": "",
|
|
64
|
+
"allowPadding": false,
|
|
65
|
+
"name": "POS",
|
|
66
|
+
"alternateNames": [],
|
|
67
|
+
"isRequired": false,
|
|
68
|
+
"rDescription": "Specifies the part of speech to output.",
|
|
69
|
+
"description": "Specifies the part of speech to output.",
|
|
70
|
+
"datatype": "STRING",
|
|
71
|
+
"allowsLists": true,
|
|
72
|
+
"rName": "pos",
|
|
73
|
+
"useInR": true,
|
|
74
|
+
"rOrderNum": 3
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"defaultValue": false,
|
|
78
|
+
"name": "SingleOutput",
|
|
79
|
+
"alternateNames": [],
|
|
80
|
+
"isRequired": false,
|
|
81
|
+
"rDescription": " Specify whether to output only one morph for each word. If user specifies 'false', the function outputs all morphs for each word.",
|
|
82
|
+
"description": " Specify whether to output only one morph for each word. If user specifies 'false', the function outputs all morphs for each word.",
|
|
83
|
+
"datatype": "BOOLEAN",
|
|
84
|
+
"allowsLists": false,
|
|
85
|
+
"rName": "single.output",
|
|
86
|
+
"useInR": true,
|
|
87
|
+
"rOrderNum": 4
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"targetTable": [
|
|
91
|
+
"InputTable"
|
|
92
|
+
],
|
|
93
|
+
"checkDuplicate": true,
|
|
94
|
+
"allowedTypes": [],
|
|
95
|
+
"allowedTypeGroups": [
|
|
96
|
+
"STRING"
|
|
97
|
+
],
|
|
98
|
+
"matchLengthOfArgument": "",
|
|
99
|
+
"allowPadding": false,
|
|
100
|
+
"name": "POSTagColumn",
|
|
101
|
+
"alternateNames": [],
|
|
102
|
+
"isRequired": false,
|
|
103
|
+
"rDescription": "Specify the name of the input table column that contains the part-of-speech (POS) tags of the words, output by the function TD_POSTagger.",
|
|
104
|
+
"description": "Specify the name of the input table column that contains the part-of-speech (POS) tags of the words, output by the function TD_POSTagger.",
|
|
105
|
+
"datatype": "COLUMNS",
|
|
106
|
+
"allowsLists": false,
|
|
107
|
+
"rName": "postag.column",
|
|
108
|
+
"useInR": true,
|
|
109
|
+
"rOrderNum": 5
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"targetTable": [
|
|
113
|
+
"InputTable"
|
|
114
|
+
],
|
|
115
|
+
"checkDuplicate": true,
|
|
116
|
+
"allowedTypes": [],
|
|
117
|
+
"allowedTypeGroups": [
|
|
118
|
+
"ALL"
|
|
119
|
+
],
|
|
120
|
+
"matchLengthOfArgument": "",
|
|
121
|
+
"allowPadding": false,
|
|
122
|
+
"name": "Accumulate",
|
|
123
|
+
"alternateNames": [],
|
|
124
|
+
"isRequired": false,
|
|
125
|
+
"rDescription": "Specifies the names of the input columns to copy to the output table.",
|
|
126
|
+
"description": "Specifies the names of the input columns to copy to the output table.",
|
|
127
|
+
"datatype": "COLUMNS",
|
|
128
|
+
"allowsLists": true,
|
|
129
|
+
"rName": "accumulate",
|
|
130
|
+
"useInR": true,
|
|
131
|
+
"rOrderNum": 6
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
}
|
|
@@ -67,6 +67,23 @@
|
|
|
67
67
|
"useInR": true,
|
|
68
68
|
"rOrderNum": 3
|
|
69
69
|
},
|
|
70
|
+
{
|
|
71
|
+
"defaultValue": false,
|
|
72
|
+
"permittedValues": [],
|
|
73
|
+
"isOutputColumn": false,
|
|
74
|
+
"matchLengthOfArgument": "",
|
|
75
|
+
"allowPadding": false,
|
|
76
|
+
"name": "EnforceTokenLimit",
|
|
77
|
+
"alternateNames": [],
|
|
78
|
+
"isRequired": false,
|
|
79
|
+
"rDescription": "Specifies whether to throw an informative error when finding token larger than 64K/32K or silently discard those tokens larger.",
|
|
80
|
+
"description": "Specifies whether to throw an informative error when finding token larger than 64K/32K or silently discard those tokens larger.",
|
|
81
|
+
"datatype": "BOOLEAN",
|
|
82
|
+
"allowsLists": false,
|
|
83
|
+
"rName": "enforce.token.limit",
|
|
84
|
+
"useInR": true,
|
|
85
|
+
"rOrderNum": 4
|
|
86
|
+
},
|
|
70
87
|
{
|
|
71
88
|
"defaultValue": true,
|
|
72
89
|
"permittedValues": [],
|
|
@@ -82,7 +99,7 @@
|
|
|
82
99
|
"allowsLists": false,
|
|
83
100
|
"rName": "convert.to.lowercase",
|
|
84
101
|
"useInR": true,
|
|
85
|
-
"rOrderNum":
|
|
102
|
+
"rOrderNum": 5
|
|
86
103
|
},
|
|
87
104
|
{
|
|
88
105
|
"defaultValue": false,
|
|
@@ -99,7 +116,7 @@
|
|
|
99
116
|
"allowsLists": false,
|
|
100
117
|
"rName": "stem.tokens",
|
|
101
118
|
"useInR": true,
|
|
102
|
-
"rOrderNum":
|
|
119
|
+
"rOrderNum": 6
|
|
103
120
|
},
|
|
104
121
|
{
|
|
105
122
|
"defaultValue": false,
|
|
@@ -116,7 +133,7 @@
|
|
|
116
133
|
"allowsLists": false,
|
|
117
134
|
"rName": "remove.stopwords",
|
|
118
135
|
"useInR": true,
|
|
119
|
-
"rOrderNum":
|
|
136
|
+
"rOrderNum": 7
|
|
120
137
|
},
|
|
121
138
|
{
|
|
122
139
|
"targetTable": [
|
|
@@ -138,7 +155,7 @@
|
|
|
138
155
|
"allowsLists": true,
|
|
139
156
|
"rName": "accumulate",
|
|
140
157
|
"useInR": true,
|
|
141
|
-
"rOrderNum":
|
|
158
|
+
"rOrderNum": 8
|
|
142
159
|
},
|
|
143
160
|
{
|
|
144
161
|
"defaultValue": " \\t\\n\\f\\r",
|
|
@@ -154,8 +171,23 @@
|
|
|
154
171
|
"allowsLists": false,
|
|
155
172
|
"rName": "delimiter",
|
|
156
173
|
"useInR": true,
|
|
157
|
-
"rOrderNum":
|
|
174
|
+
"rOrderNum": 9
|
|
158
175
|
},
|
|
176
|
+
{
|
|
177
|
+
"isOutputColumn": false,
|
|
178
|
+
"matchLengthOfArgument": "",
|
|
179
|
+
"allowPadding": false,
|
|
180
|
+
"name": "DelimiterRegex",
|
|
181
|
+
"alternateNames": [],
|
|
182
|
+
"isRequired": false,
|
|
183
|
+
"rDescription": "Specifies a PCRE regular expression that represents the word delimiter.",
|
|
184
|
+
"description": "Specifies a PCRE regular expression that represents the word delimiter.",
|
|
185
|
+
"datatype": "STRING",
|
|
186
|
+
"allowsLists": false,
|
|
187
|
+
"rName": "delimiter.regex",
|
|
188
|
+
"useInR": true,
|
|
189
|
+
"rOrderNum": 10
|
|
190
|
+
},
|
|
159
191
|
{
|
|
160
192
|
"defaultValue": "!#$%&()*+,-./:;?@\\^_`{|}~",
|
|
161
193
|
"isOutputColumn": false,
|
|
@@ -170,7 +202,7 @@
|
|
|
170
202
|
"allowsLists": false,
|
|
171
203
|
"rName": "punctuation",
|
|
172
204
|
"useInR": true,
|
|
173
|
-
"rOrderNum":
|
|
205
|
+
"rOrderNum": 11
|
|
174
206
|
},
|
|
175
207
|
{
|
|
176
208
|
"defaultValue": "token",
|
|
@@ -186,7 +218,80 @@
|
|
|
186
218
|
"allowsLists": false,
|
|
187
219
|
"rName": "token.col.name",
|
|
188
220
|
"useInR": true,
|
|
189
|
-
"rOrderNum":
|
|
190
|
-
}
|
|
221
|
+
"rOrderNum": 12
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"targetTable": [
|
|
225
|
+
"InputTable"
|
|
226
|
+
],
|
|
227
|
+
"checkDuplicate": true,
|
|
228
|
+
"allowedTypes": [],
|
|
229
|
+
"allowedTypeGroups": [
|
|
230
|
+
"INTEGER"
|
|
231
|
+
],
|
|
232
|
+
"matchLengthOfArgument": "",
|
|
233
|
+
"allowPadding": false,
|
|
234
|
+
"name": "DocIdColumn",
|
|
235
|
+
"alternateNames": [],
|
|
236
|
+
"isRequired": false,
|
|
237
|
+
"rDescription": "specifies the name of the column that uniquely identifies a row in the input table.",
|
|
238
|
+
"description": "specifies the name of the column that uniquely identifies a row in the input table.",
|
|
239
|
+
"datatype": "COLUMNS",
|
|
240
|
+
"allowsLists": false,
|
|
241
|
+
"rName": "doc.id.column",
|
|
242
|
+
"useInR": true,
|
|
243
|
+
"rOrderNum": 13
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"defaultValue": false,
|
|
247
|
+
"permittedValues": [],
|
|
248
|
+
"isOutputColumn": false,
|
|
249
|
+
"matchLengthOfArgument": "",
|
|
250
|
+
"allowPadding": false,
|
|
251
|
+
"name": "ListPositions",
|
|
252
|
+
"alternateNames": [],
|
|
253
|
+
"isRequired": false,
|
|
254
|
+
"rDescription": "Specifies whether to output the positions of a word in list form.",
|
|
255
|
+
"description": "Specifies whether to output the positions of a word in list form.",
|
|
256
|
+
"datatype": "BOOLEAN",
|
|
257
|
+
"allowsLists": false,
|
|
258
|
+
"rName": "list.positions",
|
|
259
|
+
"useInR": true,
|
|
260
|
+
"rOrderNum": 14
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"defaultValue": false,
|
|
264
|
+
"permittedValues": [],
|
|
265
|
+
"isOutputColumn": false,
|
|
266
|
+
"matchLengthOfArgument": "",
|
|
267
|
+
"allowPadding": false,
|
|
268
|
+
"name": "TokenFrequency",
|
|
269
|
+
"alternateNames": [],
|
|
270
|
+
"isRequired": false,
|
|
271
|
+
"rDescription": "Specifies whether to output the frequency for each token.",
|
|
272
|
+
"description": "Specifies whether to output the frequency for each token.",
|
|
273
|
+
"datatype": "BOOLEAN",
|
|
274
|
+
"allowsLists": false,
|
|
275
|
+
"rName": "token.frequency",
|
|
276
|
+
"useInR": true,
|
|
277
|
+
"rOrderNum": 15
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"defaultValue": true,
|
|
281
|
+
"permittedValues": [],
|
|
282
|
+
"isOutputColumn": false,
|
|
283
|
+
"matchLengthOfArgument": "",
|
|
284
|
+
"allowPadding": false,
|
|
285
|
+
"name": "OutputByWord",
|
|
286
|
+
"alternateNames": [],
|
|
287
|
+
"isRequired": false,
|
|
288
|
+
"rDescription": "Specifies whether to output each token in a separate row or all tokens in one.",
|
|
289
|
+
"description": "Specifies whether to output each token in a separate row or all tokens in one.",
|
|
290
|
+
"datatype": "BOOLEAN",
|
|
291
|
+
"allowsLists": false,
|
|
292
|
+
"rName": "output.by.word",
|
|
293
|
+
"useInR": true,
|
|
294
|
+
"rOrderNum": 16
|
|
295
|
+
}
|
|
191
296
|
]
|
|
192
|
-
}
|
|
297
|
+
}
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
{
|
|
2
|
+
"json_schema_major_version": "1",
|
|
3
|
+
"json_schema_minor_version": "2",
|
|
4
|
+
"json_content_version": "1",
|
|
5
|
+
"function_name": "AI_AnalyzeSentiment",
|
|
6
|
+
"function_version": "1.0",
|
|
7
|
+
"function_type": "fastpath",
|
|
8
|
+
"function_category": "Text Analytics AI",
|
|
9
|
+
"function_alias_name": "AIAnalyzeSentiment",
|
|
10
|
+
"function_r_name": "aa.ai_analyzesentiment",
|
|
11
|
+
"supports_view": false,
|
|
12
|
+
"short_description": "This function is used to analyze the sentiment of the text in the specified column of a Teradata Table based on the text analysis, the sentiment can be positive, negative, or neutral.",
|
|
13
|
+
"long_description": "This function is used to analyze the sentiment of the text in the specified column of a Teradata Table based on the text analysis, the sentiment can be positive, negative, or neutral.",
|
|
14
|
+
"input_tables": [
|
|
15
|
+
{
|
|
16
|
+
"isOrdered": false,
|
|
17
|
+
"partitionByOne": false,
|
|
18
|
+
"name": "InputTable",
|
|
19
|
+
"alternateNames": [],
|
|
20
|
+
"isRequired": true,
|
|
21
|
+
"rDescription": "Specifies the table containing the input data.",
|
|
22
|
+
"description": "Specifies the table containing the input data.",
|
|
23
|
+
"datatype": "TABLE_ALIAS",
|
|
24
|
+
"allowsLists": false,
|
|
25
|
+
"rName": "data",
|
|
26
|
+
"useInR": true,
|
|
27
|
+
"rOrderNum": 1
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"argument_clauses": [
|
|
31
|
+
{
|
|
32
|
+
"name": "ApiBase",
|
|
33
|
+
"alternateNames": [],
|
|
34
|
+
"isRequired": false,
|
|
35
|
+
"rOrderNum": 2,
|
|
36
|
+
"allowNaN": false,
|
|
37
|
+
"description": "Specifies the LLM API base URL for azure.",
|
|
38
|
+
"rDescription": "Specifies the LLM API base URL for azure.",
|
|
39
|
+
"datatype": "STRING",
|
|
40
|
+
"allowsLists": false,
|
|
41
|
+
"allowPadding": true,
|
|
42
|
+
"rName": "api.base",
|
|
43
|
+
"useInR": true,
|
|
44
|
+
"rFormulaUsage": false
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "ApiKey",
|
|
48
|
+
"alternateNames": [],
|
|
49
|
+
"isRequired": false,
|
|
50
|
+
"rOrderNum": 3,
|
|
51
|
+
"allowNaN": false,
|
|
52
|
+
"description": "Specifies the LLM API Key for azure.",
|
|
53
|
+
"rDescription": "Specifies the LLM API Key for azure.",
|
|
54
|
+
"datatype": "STRING",
|
|
55
|
+
"allowsLists": false,
|
|
56
|
+
"allowPadding": true,
|
|
57
|
+
"rName": "api.key",
|
|
58
|
+
"useInR": true,
|
|
59
|
+
"rFormulaUsage": false
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "ApiVersion",
|
|
63
|
+
"alternateNames": [],
|
|
64
|
+
"isRequired": false,
|
|
65
|
+
"rOrderNum": 4,
|
|
66
|
+
"allowNaN": false,
|
|
67
|
+
"description": "Specifies the LLM API version for azure.",
|
|
68
|
+
"rDescription": "Specifies the LLM API version for azure.",
|
|
69
|
+
"datatype": "STRING",
|
|
70
|
+
"allowsLists": false,
|
|
71
|
+
"allowPadding": true,
|
|
72
|
+
"rName": "api.version",
|
|
73
|
+
"useInR": true,
|
|
74
|
+
"rFormulaUsage": false
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "DeploymentId",
|
|
78
|
+
"alternateNames": [],
|
|
79
|
+
"isRequired": false,
|
|
80
|
+
"rOrderNum": 5,
|
|
81
|
+
"allowNaN": false,
|
|
82
|
+
"description": "Specifies the deployment id of the LLM. It takes engine id for azure OpenAI.",
|
|
83
|
+
"rDescription": "Specifies the deployment id of the LLM. It takes engine id for azure OpenAI.",
|
|
84
|
+
"datatype": "STRING",
|
|
85
|
+
"allowsLists": false,
|
|
86
|
+
"allowPadding": true,
|
|
87
|
+
"rName": "deployment.id",
|
|
88
|
+
"useInR": true,
|
|
89
|
+
"rFormulaUsage": false
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "ModelName",
|
|
93
|
+
"alternateNames": [],
|
|
94
|
+
"isRequired": false,
|
|
95
|
+
"rOrderNum": 6,
|
|
96
|
+
"allowNaN": false,
|
|
97
|
+
"description": "Name of the large language model to be used for text analytics tasks.",
|
|
98
|
+
"rDescription": "Name of the large language model to be used for text analytics tasks.",
|
|
99
|
+
"datatype": "STRING",
|
|
100
|
+
"allowsLists": false,
|
|
101
|
+
"allowPadding": true,
|
|
102
|
+
"rName": "model.name",
|
|
103
|
+
"useInR": true,
|
|
104
|
+
"rFormulaUsage": false
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "ModelArgs",
|
|
108
|
+
"alternateNames": [],
|
|
109
|
+
"isRequired": false,
|
|
110
|
+
"rOrderNum": 7,
|
|
111
|
+
"allowNaN": false,
|
|
112
|
+
"description": "JSON string representing the inference parameters for the selected LLM Model.",
|
|
113
|
+
"rDescription": "JSON string representing the inference parameters for the selected LLM Model.",
|
|
114
|
+
"datatype": "STRING",
|
|
115
|
+
"allowsLists": false,
|
|
116
|
+
"allowPadding": true,
|
|
117
|
+
"rName": "model.args",
|
|
118
|
+
"useInR": true,
|
|
119
|
+
"rFormulaUsage": false
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "ApiType",
|
|
123
|
+
"alternateNames": [],
|
|
124
|
+
"isRequired": true,
|
|
125
|
+
"rOrderNum": 8,
|
|
126
|
+
"permittedValues": ["azure","aws","gcp","nim"],
|
|
127
|
+
"allowNaN": false,
|
|
128
|
+
"description": "Identification of the cloud platform.",
|
|
129
|
+
"rDescription": "Identification of the cloud platform.",
|
|
130
|
+
"datatype": "STRING",
|
|
131
|
+
"allowsLists": false,
|
|
132
|
+
"allowPadding": true,
|
|
133
|
+
"rName": "api.type",
|
|
134
|
+
"useInR": true,
|
|
135
|
+
"rFormulaUsage": false,
|
|
136
|
+
"rDefaultValue": null
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "AccessKey",
|
|
140
|
+
"alternateNames": [],
|
|
141
|
+
"isRequired": false,
|
|
142
|
+
"rOrderNum": 9,
|
|
143
|
+
"allowNaN": false,
|
|
144
|
+
"description": "Specifies the AWS Bedrock service access key.",
|
|
145
|
+
"rDescription": "Specifies the AWS Bedrock service access key.",
|
|
146
|
+
"datatype": "STRING",
|
|
147
|
+
"allowsLists": false,
|
|
148
|
+
"allowPadding": true,
|
|
149
|
+
"rName": "access.key",
|
|
150
|
+
"useInR": true,
|
|
151
|
+
"rFormulaUsage": false
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "SecretKey",
|
|
155
|
+
"alternateNames": [],
|
|
156
|
+
"isRequired": false,
|
|
157
|
+
"rOrderNum": 10,
|
|
158
|
+
"allowNaN": false,
|
|
159
|
+
"description": "Specifies the AWS Bedrock service secret key.",
|
|
160
|
+
"rDescription": "Specifies the AWS Bedrock service secret key.",
|
|
161
|
+
"datatype": "STRING",
|
|
162
|
+
"allowsLists": false,
|
|
163
|
+
"allowPadding": true,
|
|
164
|
+
"rName": "secret.key",
|
|
165
|
+
"useInR": true,
|
|
166
|
+
"rFormulaUsage": false
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "SessionKey",
|
|
170
|
+
"alternateNames": [],
|
|
171
|
+
"isRequired": false,
|
|
172
|
+
"rOrderNum": 11,
|
|
173
|
+
"allowNaN": false,
|
|
174
|
+
"description": "Specifies the AWS bedrock service session key.",
|
|
175
|
+
"rDescription": "Specifies the AWS bedrock service session key.",
|
|
176
|
+
"datatype": "STRING",
|
|
177
|
+
"allowsLists": false,
|
|
178
|
+
"allowPadding": true,
|
|
179
|
+
"rName": "session.key",
|
|
180
|
+
"useInR": true,
|
|
181
|
+
"rFormulaUsage": false
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "Region",
|
|
185
|
+
"alternateNames": [],
|
|
186
|
+
"isRequired": false,
|
|
187
|
+
"rOrderNum": 12,
|
|
188
|
+
"allowNaN": false,
|
|
189
|
+
"description": "Specifies the name of the AWS Bedrock service region or Google Cloud service region depending on the api type.",
|
|
190
|
+
"rDescription": "Specifies the name of the AWS Bedrock service region or Google Cloud service region depending on the api type.",
|
|
191
|
+
"datatype": "STRING",
|
|
192
|
+
"allowsLists": false,
|
|
193
|
+
"allowPadding": true,
|
|
194
|
+
"rName": "region",
|
|
195
|
+
"useInR": true,
|
|
196
|
+
"rFormulaUsage": false
|
|
197
|
+
},
|
|
198
|
+
|
|
199
|
+
{
|
|
200
|
+
"name": "AccessToken",
|
|
201
|
+
"alternateNames": [],
|
|
202
|
+
"isRequired": false,
|
|
203
|
+
"rOrderNum": 13,
|
|
204
|
+
"allowNaN": false,
|
|
205
|
+
"description": "Specifies the session token for google cloud.",
|
|
206
|
+
"rDescription": "Specifies the session token for google cloud.",
|
|
207
|
+
"datatype": "STRING",
|
|
208
|
+
"allowsLists": false,
|
|
209
|
+
"allowPadding": true,
|
|
210
|
+
"rName": "access.token",
|
|
211
|
+
"useInR": true,
|
|
212
|
+
"rFormulaUsage": false
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "Project",
|
|
216
|
+
"alternateNames": [],
|
|
217
|
+
"isRequired": false,
|
|
218
|
+
"rOrderNum": 14,
|
|
219
|
+
"allowNaN": false,
|
|
220
|
+
"description": "Specify the name of the gcp project.",
|
|
221
|
+
"rDescription": "Specify the name of the gcp project.",
|
|
222
|
+
"datatype": "STRING",
|
|
223
|
+
"allowsLists": false,
|
|
224
|
+
"allowPadding": true,
|
|
225
|
+
"rName": "project",
|
|
226
|
+
"useInR": true,
|
|
227
|
+
"rFormulaUsage": false
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"name": "EnableSafety",
|
|
231
|
+
"alternateNames": [],
|
|
232
|
+
"isRequired": false,
|
|
233
|
+
"defaultValue": "TRUE",
|
|
234
|
+
"rOrderNum": 15,
|
|
235
|
+
"permittedValues": ["TRUE", "FALSE"],
|
|
236
|
+
"allowNaN": false,
|
|
237
|
+
"description": "Specifies if the safety feature needs to be enabled when api_type is gcp.",
|
|
238
|
+
"rDescription": "Specifies if the safety feature needs to be enabled when api_type is gcp.",
|
|
239
|
+
"datatype": "STRING",
|
|
240
|
+
"allowsLists": false,
|
|
241
|
+
"allowPadding": true,
|
|
242
|
+
"rName": "enable.safety",
|
|
243
|
+
"useInR": true,
|
|
244
|
+
"rFormulaUsage": false
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"targetTable": [
|
|
248
|
+
"InputTable"
|
|
249
|
+
],
|
|
250
|
+
"checkDuplicate": true,
|
|
251
|
+
"allowedTypes": ["VARCHAR"],
|
|
252
|
+
"allowedTypeGroups": [
|
|
253
|
+
"VARCHAR"
|
|
254
|
+
],
|
|
255
|
+
"matchLengthOfArgument": "",
|
|
256
|
+
"allowPadding": false,
|
|
257
|
+
"name": "TextColumn",
|
|
258
|
+
"alternateNames": [],
|
|
259
|
+
"isRequired": true,
|
|
260
|
+
"rDescription": "Specifies the name of the text column to be used as input.",
|
|
261
|
+
"description": "Specifies the name of the text column to be used as input.",
|
|
262
|
+
"datatype": "COLUMNS",
|
|
263
|
+
"allowsLists": false,
|
|
264
|
+
"rName": "text.column",
|
|
265
|
+
"useInR": true,
|
|
266
|
+
"rFormulaUsage": false,
|
|
267
|
+
"rOrderNum": 16
|
|
268
|
+
},
|
|
269
|
+
|
|
270
|
+
{
|
|
271
|
+
"defaultValue": true,
|
|
272
|
+
"permittedValues": [
|
|
273
|
+
"true",
|
|
274
|
+
"false"
|
|
275
|
+
],
|
|
276
|
+
"isOutputColumn": false,
|
|
277
|
+
"name": "isDebug",
|
|
278
|
+
"alternateNames": [],
|
|
279
|
+
"isRequired": false,
|
|
280
|
+
"rDescription": "Specify whether error logging is required.",
|
|
281
|
+
"description": "Specify whether error logging is required.",
|
|
282
|
+
"datatype": "BOOLEAN",
|
|
283
|
+
"allowsLists": false,
|
|
284
|
+
"rName": "isDebug",
|
|
285
|
+
"useInR": true,
|
|
286
|
+
"rOrderNum": 17
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"targetTable": [
|
|
290
|
+
"InputTable"
|
|
291
|
+
],
|
|
292
|
+
"checkDuplicate": true,
|
|
293
|
+
"allowedTypes": [],
|
|
294
|
+
"allowedTypeGroups": [
|
|
295
|
+
"ALL"
|
|
296
|
+
],
|
|
297
|
+
"matchLengthOfArgument": "",
|
|
298
|
+
"allowPadding": false,
|
|
299
|
+
"name": "Accumulate",
|
|
300
|
+
"alternateNames": [],
|
|
301
|
+
"isRequired": false,
|
|
302
|
+
"rDescription": "Specifies the input table columns to copy to the output table. By default, the function doesn't copy any input table columns to the output table.",
|
|
303
|
+
"description": "Specifies the input table columns to copy to the output table. By default, the function doesn't copy any input table columns to the output table.",
|
|
304
|
+
"datatype": "COLUMNS",
|
|
305
|
+
"allowsLists": true,
|
|
306
|
+
"rName": "accumulate",
|
|
307
|
+
"useInR": true,
|
|
308
|
+
"rOrderNum": 18
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "AUTHORIZATION",
|
|
312
|
+
"alternateNames": [],
|
|
313
|
+
"isRequired": false,
|
|
314
|
+
"rOrderNum":19,
|
|
315
|
+
"allowNaN": false,
|
|
316
|
+
"description": "Specifies the authorization object name containing the credentials, optionally prefixed by the database name.",
|
|
317
|
+
"rDescription": "Specifies the authorization object name containing the credentials, optionally prefixed by the database name.",
|
|
318
|
+
"datatype": "STRING",
|
|
319
|
+
"allowsLists": false,
|
|
320
|
+
"allowPadding": true,
|
|
321
|
+
"rName": "authorization",
|
|
322
|
+
"useInR": true,
|
|
323
|
+
"rFormulaUsage": false
|
|
324
|
+
}
|
|
325
|
+
]
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
|