Part 2 of the Example Template File - 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ā„¢

In Part 2 of the feature template file, each row is a rule that indicates which nearby token to examine and which extractor class to apply to that token. The function applies each rule to each token in the input text. Based on the results of applying the rules, and the tagged entities in the training data set, the function builds a model.

The row format is %x[j,k] where j indicates the relative position from the current token (0 is the current token, -1 is the previous token, 1 is the next token, and so on) and k is the serial number of the extractor class to apply (from Part 1 of the feature template file).

For example, if the input text is "More restaurants open in San Diego." and the current token is "San", then the following table shows the selected feature for each template.

Selected Features for Templates in NERTrainer Example Template File
Template Selected Feature
%x[0,0] San
%x[0,1] T
%x[0,2] n
%x[-1,0] in
%x[1,0] Diego
%x[-1,1]%x[0,1] F T