Teradata Scoring SDK Text Tagger Additional Notes - Teradata Vantage

Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
9.02
9.01
2.0
1.3
Published
February 2022
Language
English (United States)
Last Update
2022-02-10
dita:mapPath
rnn1580259159235.ditamap
dita:ditavalPath
ybt1582220416951.ditaval
dita:id
B700-4003
lifecycle
previous
Product Category
Teradata Vantageā„¢

Specify rules with either Request parameters or a database table in the ModelTable syntax element of AMLGenerator. Specify the dictionary with the InstalledFile and InstalledFileTag syntax elements of AMLGenerator.

When a rule uses a dictionary file, you must first install the dictionary file on ML Engine and then specify its name in the InstalledFile clause when you invoke AMLGenerator with InstalledFileTag DICT.

The following examples show different usage of rules and the dictionary.

Example 1: No Model File, Request Parameter Specifies TaggingRules

RequestArgName1 ('TaggingRules')
RequestArgVal1 ('contain(content, "floods", 1, ) OR
                 contain(content, "tsunamis", 1,) AS Natural-Disaster')

Example 2: Rules Table is Database Table, No Dictionary File

ModelTable ('rules')

or

ModelTable ('rules')
ModelTableTag ('PREDICT')

Example 3: Request Parameters Specify TaggingRules and Two Dictionary Files

InstalledFile ('file1')
InstalledFileTag ('DICT')
InstalledFile2 ('file2')
InstalledFile2Tag ('DICT')
RequestArgName1 ('TaggingRules')
RequestArgVal1 ('tag1, DICT(content,"file1",1, )', 'tag2, DICT(content,"file2",1, )')

Example 4: ModelTable Syntax Element Specifies Both Rules Table and Dictionary

The rules in the rule table, 'rules', can contain references to the dictionary files, 'file1' and 'file2'.

ModelTable ('rules')
ModelTableTag ('PREDICT')
InstalledFile ('file1')
InstalledFileTag ('DICT')
InstalledFile2 ('file2')
InstalledFile2Tag ('DICT')