NGramSplitter

Tokenizes the specified column and returns each unique n-gram with its associated count.

Options

Accumulate
The names of the columns to return for each n-gram. These columns cannot have the same names as those specified by the arguments NGramColName, NumGramsColum, and TotalCountColName. By default, the function returns all input columns for each n-gram.
ConvertToLowerCase
A Boolean value that specifies whether the function converts all letters in the input text to lowercase. The default value is 'true'.
Delimiter
A character or string that separates words in the input text. The default value is the set of all whitespace characters which includes the characters for space, tab, newline, carriage return and some others.
FrequencyColName
The name of the column that is to contain the count of each unique n-gram (that is, the number of times that each unique n-gram appears in the document). The default value is 'frequency'.
GramLengthColName
The name of the column that is to contain the length of n-gram (in words). The default value is 'n'.
Grams
A list of integers or ranges of integers that specify the length, in words, of each ngram (that is, the value of n). A range_of_values has the syntax integer1- integer2, where integer1 <= integer2. The values of n, integer1, and integer2 must be positive.
NGramColName
The name of the column that is to contain the generated n-grams. The default value is 'ngram'.
OutputTotalGramCount
A Boolean value that specifies whether the function returns the total number of ngrams in the document (that is, in the row). The default value is 'false'. If you specify 'true', then the name of the returned column is specified by the TotalCountColName argument. Note: The total number of n-grams is not necessarily the number of unique ngrams.
OverLapping
A Boolean value that specifies whether the function allows overlapping n-grams. When this value is 'true' (the default), each word in each sentence starts an n-gram,if enough words follow it (in the same sentence) to form a whole n-gram of the specified size. For information on sentences, see the description of the Reset argument
Punctuation
A string that specifies the punctuation characters for the function to remove before evaluating the input text. The default characters to remove are: `~#^&*()-
Reset
A string expression that specifies the character or string that ends a sentence. The default sentence-ending characters are: .,?! At the end of a sentence, the function discards any partial n-grams and searches for the next n-gram at the beginning of the next sentence. An n-gram cannot span two sentences.
Output Schema
Output Schema, if Volatile is true then use user login as the schema.
Output Table
Output Table
VAL Location
VAL Location
Volatile
Specifies whether the table should be a VOLATILE table. If true, then the table is automatically deleted, otherwise it is users responsibility to remove or clean it up for space.
TextColumn
The name of the column that contains the input text. Input columns must contain string SQL types.
TotalCountColName
The name of the column to return if the value of the OutputTotalGramCount argument is 'true'. The default value is 'totalcnt'.

Input Ports

Icon
Connection to a Teradata Database Instance
Icon
Each row of the input table contains a document to be tokenized. The input table can have additional rows, some or all of which the function returns in the output table.

Output Ports

Icon
output of NGramSplitter

Nodes

Extensions

Links