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

Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
8.00
1.0
Published
May 2019
Language
English (United States)
Last Update
2019-11-22
dita:mapPath
blj1506016597986.ditamap
dita:ditavalPath
blj1506016597986.ditaval
dita:id
B700-4003
lifecycle
previous
Product Category
Teradata Vantage™

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
... ... ... ... ...