snowflake.snowpark.functions.snowflake_cortex_sentiment¶
- snowflake.snowpark.functions.snowflake_cortex_sentiment(text: Union[Column, str])[source]¶
A string containing the text for which a sentiment score should be calculated.
- Parameters:
text – A string containing the English text from which a summary should be generated.
- Returns:
A floating-point number from -1 to 1 (inclusive) indicating the level of negative or positive sentiment in the text. Values around 0 indicate neutral sentiment.