1.0 - 8.00 - NGrams Example 2: Overlapping ('false'), TotalGramCount ('false') - Teradata Vantage

Teradata® Vantage Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
1.0
8.00
Release Date
May 2019
Content Type
Programming Reference
Publication ID
B700-4003-098K
Language
English (United States)

Input

SQL Call

SELECT * FROM NGrams (
  ON paragraphs_input
  USING
  TextColumn ('paratext')
  Delimiter (' ')
  Grams ('4-6')
  OverLapping ('false')
  ToLowerCase ('true')
  TotalGramCount ('false')
  Accumulate ('paraid', 'paratopic')
) AS dt ORDER BY paraid, paratopic, ngram;

Output

paraid paratopic ngram n frequency
1 Decision Trees decision tree learning uses 4 1
1 Decision Trees a decision tree as 4 1
1 Decision Trees a predictive model which 4 1
1 Decision Trees maps observations about an 4 1
1 Decision Trees item to conclusions about 4 1
1 Decision Trees the items target value 4 1
1 Decision Trees decision tree learning uses a 5 1
1 Decision Trees decision tree as a predictive 5 1
1 Decision Trees model which maps observations about 5 1
1 Decision Trees an item to conclusions about 5 1
1 Decision Trees decision tree learning uses a decision 6 1
1 Decision Trees tree as a predictive model which 6 1
1 Decision Trees maps observations about an item to 6 1
1 Decision Trees conclusions about the items target value 6 1
... ... ... ... ...