You are viewing documentation about an older version (1.27.0). View latest version

snowflake.snowpark.functions.snowflake_cortex_sentiment

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

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.

Language: English