A data scientist uses PROC TEXTMINE to perform sentiment analysis on customer reviews. Which statement or option enables the built-in SAS sentiment analysis capability?
Select an answer to reveal the explanation.
Short Explanation
Here's the deal — you enable built-in sentiment scoring in PROC TEXTMINE with the SENTIMENT statement, and OUTSENTIMENT= tells SAS where to write document-level scores. You don't need a separate step or a made-up option.
Full Explanation
The correct choice is the SENTIMENT statement in PROC TEXTMINE with OUTSENTIMENT= to specify the output dataset, because PROC TEXTMINE includes a SENTIMENT statement that activates the built-in sentiment scoring engine, with OUTSENTIMENT= specifying where to write the document-level sentiment scores (positive, negative, neutral probabilities). The OPTION SENTIMENT=YES in the PROC TEXTMINE statement is wrong because OPTION SENTIMENT=YES is not valid PROC TEXTMINE syntax. The PARSE statement with SENTIMENT=POSITIVE option is wrong because the PARSE statement handles tokenization, not sentiment scoring, and SENTIMENT=POSITIVE is not a valid PARSE option. A separate PROC SENTIMENT step after PROC TEXTMINE completes parsing is wrong because there is no separate PROC SENTIMENT — sentiment is built into PROC TEXTMINE.