QuestionQ45

VerifiedSnowflake Gen AI & LLM Functions

A Gen AI Specialist has configured a pipeline to process hotel guest reviews. The reviews must be classified according to customer sentiment:

Question Image

Which statement satisfies this requirement?

Question Image

Question Image

Explanation

SNOWFLAKE.CORTEX.SENTIMENT is the Cortex function for overall sentiment analysis: it scores an English text from -1 (negative) through 0 (neutral) to 1 (positive), so applying it to each non-null review classifies every hotel review by customer sentiment. ENTITY_SENTIMENT with a custom entity list performs aspect-based sentiment only for the named entities ('professionalism', 'cleanliness', 'feel'), not an overall sentiment categorization of the review. CLASSIFY_TEXT assigns the text to one of the supplied labels, and 'SENTIMENT'/'FEEL' are not sentiment classes, while SUMMARIZE returns a summary of the review rather than any sentiment measure.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!