SentimentExtractor Syntax Elements - Teradata Vantage

Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
9.02
9.01
2.0
1.3
Published
February 2022
Language
English (United States)
Last Update
2022-02-10
dita:mapPath
rnn1580259159235.ditamap
dita:ditavalPath
ybt1582220416951.ditaval
dita:id
B700-4003
lifecycle
previous
Product Category
Teradata Vantage™
TextColumn
Specify the name of the input column that contains text from which to extract sentiments.
InputLanguage
[Optional] Specify the language of the input text:
Option Description
'en' (Default) English
'zh_CN' Simplified Chinese
'zh_TW' Traditional Chinese
InputModelFile
[Optional] Specify the model type and file. The default model type is dictionary.
If you specify both Dict and dict_file, then whenever words in the internal dictionary file and Dict conflict, Dict has higher priority—but only if InputModelFile specifies the internal dictionary file (default or custom) explicitly. The function does not use the internal dictionary by default.
InputLanguage Default Internal Dictionary
'en' (English) default_sentiment_lexicon.txt
'zh_CN' (Simplified Chinese) default_sentiment_lexicon_zh_cn.txt
'zh_TW' (Traditional Chinese) default_sentiment_lexicon_zh_tw.txt
The dict_file must be a text file in which each line contains only a sentiment word, a space, and the opinion score of the sentiment word.
If you specify classification input_model_file, then input_model_file must be the name of a model file created and installed on ML Engine by the function SentimentTrainer (ML Engine).
Accumulate
[Optional] Specify the names of the input columns to copy to the output table.
AnalysisType
[Optional] Specify the level of analysis—whether to analyze each document (the default) or each sentence.
Priority
[Optional] Specify the highest priority when returning results:
Option Description
'NONE' (Default) Give all results same priority.
'NEGATIVE_RECALL' Give highest priority to negative results, including those with lower-confidence sentiment classifications (maximizes number of negative results returned).
'NEGATIVE_PRECISION' Give highest priority to negative results with high-confidence sentiment classifications.
'POSITIVE_RECALL' Give highest priority to positive results, including those with lower-confidence sentiment classifications (maximizes number of positive results returned).
'POSITIVE_PRECISION' Give highest priority to positive results with high-confidence sentiment classifications.
OutputType
[Optional] Specify the kind of results to return:
Option Description
'ALL' (Default) Return all results.
'POSITIVE' Return only results with positive sentiments.
'NEGATIVE' Return only results with negative sentiments.
Punctuation
[Optional] Specify a regular expression that describes the punctuation characters to remove from the input text.