Which function would you use to determine the sentiment of a customer review in Snowflake Cortex?
Correct Answer: C
The SENTIMENT function in Snowflake Cortex analyzes text and returns a numerical sentiment score between -1 and 1. This value indicates whether the text expresses negative, positive, or neutral sentiment. It accepts English-language text and uses Snowflake's managed AI models to infer polarity based on contextual understanding. A negative score represents negative emotion, a positive score represents positive emotion, and values near zero indicate neutrality. It is ideal for customer reviews, feedback analysis, and text mining.
TRANSLATE is used for language translation, COMPLETE for text generation, and PARSE_DOCUMENT for extracting text from documents-not sentiment analysis. SENTIMENT provides fast, in-database AI inference without external model hosting or integration.