7.00.02 - NaiveBayesTextClassifierTrainer Syntax - Aster Analytics

Teradata Aster® Analytics Foundation User GuideUpdate 2

Product
Aster Analytics
Release Number
7.00.02
Release Date
September 2017
Content Type
Programming Reference
User Guide
Publication ID
B700-1022-700K
Language
English (United States)
Version 1.1
SELECT * FROM NaiveBayesTextClassifierTrainer (
  ON (SELECT * FROM NaiveBayesTextClassifierInternal (
    ON token_table AS tokens PARTITION BY category 
    [ ON categories_table AS categories DIMENSION ]
    [ ON stop_words_table AS stop_words DIMENSION ]
    TokenColumn ('token_column')
    [ ModelType ({ 'Multinomial' | 'Bernoulli' }) ]
    [ DocIDColumns ({ 'doc_id_column' | 'doc_id_column_range' }[,...])]
    DocCategoryColumn ('doc_category_column')
    [ CategoryColumn ('category_column') |
      Categories ('category' [,...]) ]
    [ StopWordsColumn ('stop_words_column') |
      StopWords ('word' [,...]) ]
    ) PARTITION BY 1
);