7.00.02 - Feature Template - Aster Analytics

Teradata Aster® Analytics Foundation User GuideUpdate 2

Aster Analytics
Release Number
Release Date
September 2017
Content Type
Programming Reference
User Guide
Publication ID
English (United States)
The feature template file specifies:
  • The characteristics of a token, or word, to use to build the model.

    For example, the template can specify that a word begins with an uppercase letter, that all its letters are uppercase, that it can (or cannot) contain a hyphen or number, and so on.

  • Which nearby tokens to consider when classifying a token.
The feature template has two parts:
  1. Declares the Java classes that the function uses to extract features with which to build the model.

    Seven predefined classes are included with the function (see the following table). You can also create your own classes (see Part 1 of the Example Template File).

  2. Specifies which extractor classes to apply to which tokens to build the model.

The following table lists the predefined extractor classes and describes the features that they extract.

NERTrainer Predefined Extractor Classes and Features
Extractor Class Feature
Defaul_Token The token itself.
Begin_with_Uppercase "T" (true) if the token begins with an uppercase letter, "F" (false) otherwise.
All_Uppercase "T" (true) if all characters of the token are uppercase, "F" (false) otherwise.
Is_Digital "T" (true) if the token represents a digit (for example, 1 or '2'), "F" (false) otherwise.
Has_Hyphen "T" (true) if the token has a hyphen, "F" (false) otherwise.
Prefix_n The first n characters of the token, where n is a positive integer.
Suffix_n The last n characters of the token, where n is a positive integer.

Here is an example of a feature template file, template_1.txt:

#part 1: extractor classes
0: Defaul_Token
1: Begin_with_Uppercase
2: Prefix_2
#part 2: templates