7.00.02 - SQL-MapReduce Call - 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)
SELECT * FROM  NaiveBayesTextClassifierPredict  (
  ON (SELECT doc_id, lower(token) AS token
    FROM  TextTokenizer  (
      ON  complaints_test  PARTITION BY ANY
      TextColumn ('text_data')
      OutputByWord ('true')
      Accumulate ('doc_id')
    )
  ) AS predicts PARTITION BY doc_id
  ON  complaints_tokens_model  AS "model" DIMENSION
  InputTokenColumn ('token')
  ModelType ('Bernoulli')
  DocIDColumns ('doc_id')
  TopK ('1')
) ORDER BY doc_id;