7.00.02 - Part 2 of the Example Template File - Aster Analytics

Teradata Aster® Analytics Foundation User GuideUpdate 2

Product
Aster Analytics
Release Number
7.00.02
Release Date
September 2017
Content Type
Programming Reference
User Guide
Publication ID
B700-1022-700K
Language
English (United States)

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