NGramSplitter Function Example | Teradata Vantage - Example: Specify Accumulate - Analytics Database

Database Analytic Functions

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-04-06
dita:mapPath
gjn1627595495337.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
jmh1512506877710
Product Category
Teradata Vantageā„¢

NGramSplitter SQL Call

SELECT * FROM NGramSplitter (
  ON paragraphs_input
  USING
  TextColumn ('paratext')
  Grams ('4-6')
  OutputTotalGramCount ('true')
  Accumulate ('[0:1]')
) AS dt;

NGramSplitter Output

paraid paratopic paratext ngram n frequency totalcnt
1 Decision Trees Decision tree lear... a decision tree as 4 1 73
2 Simple Regression In statistics, simp... a linear regression model 4 1 55
1 Decision Trees Decision tree lear... a decision tree as 5 1 66
2 Simple Regression In statistics, simp.. a linear regression model with 5 1 52
1 Decision Trees Decision tree lear... a decision tree as a predictive 6 1 60
2 Simple Regression In statistics, simp... a linear regression model with a 6 1 49
1 Decision Trees Decision tree lear... a finite set of 4 1 73
1 Simple Regression In statistics, simp... a single explantory variable 4 1 55
... ...   ... ... ... ...