snowflake.snowpark.functions.snowflake_cortex_sentiment

snowflake.snowpark.functions.snowflake_cortex_sentiment(text: Union[Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.30.0/snowpark-python/src/snowflake/snowpark/functions.py#L10871-L10894)

A string containing the text for which a sentiment score should be calculated. :param 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.

This function or method is deprecated since 1.28.0. Use snowflake.cortex.sentiment() instead.

Language: English