1.0 - 8.00 - TextParser Syntax - 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)

Version 1.8

SELECT * FROM TextParser (
  ON { table | view | (query) } [ PARTITION BY expression [,...] ]
  USING
  TextColumn ('text_column')
  [ ToLowerCase ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ]
  [ Stemming ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ]
  [ Delimiter ('delimiter_regular_expression') ]
  [ TotalWordsNum ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ]
  [ Punctuation ('punctuation_regular_expression') ]
  [ Accumulate ({ 'accumulate_column' | accumulate_column_range }[,...]) ]
  [ TokenColumn ('token_column') ]
  [ FrequencyColumn ('frequency_column') ]
  [ TotalColumn ('total_column') ]
  [ RemoveStopWords ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ]
  [ PositionColumn ('position_column') ]
  [ ListPositions ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ]
  [ OutputByWord ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ]
  [ StemmingExceptions ('exception_rule_file') ]
  [ StopWords ('stop_word_file') ]
) AS alias;
If you include the PARTITION BY clause, the function treats all rows in the same partition as a single document. If you omit the PARTITION BY clause, the function treats each row as a single document.