Text Analysis Functions

Available functions:


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).

Named Entity Recognition

NER is the task of identifying and categorizing key information (entities) in text.

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

Returns:
- `list`: A list of named entities found in the text.

Last updated

Was this helpful?