Text Analysis Functions
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Available functions:
analyze_sentiment
(text)
: Analyze the sentiment of the input text using NLTK's SentimentIntensityAnalyzer.
named_entity_recognition
(text)
: Perform named entity recognition (NER) on the input text.
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).
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.