Text Analysis Functions

Available functions:

  • analyze_sentiment(text): Analyze the sentiment of the input text using NLTK's SentimentIntensityAnalyzer.


Analyze sentiment

Analyze the sentiment of the input text using NLTK's SentimentIntensityAnalyzer.

Parameters:
- `text` (str): The input text to be analyzed.

Returns:
- `float`: The sentiment score ranging from -1 (negative) to 1 (positive).

Last updated