Sentilalysis is a collection of Jupyter notebooks that use popular sentiment analysis Python libraries to analyze text. The goal of this project is to provide a simple and accessible way to perform sentiment analysis using different tools and compare the results.
Library | Description | Colab Notebook |
---|---|---|
vaderSentiment | A Python library for sentiment analysis | |
textblob | A Python library for processing textual data | |
flair | A Python library for NLP tasks such as named entity recognition | |
NLTK | A Python library for comprehensive natural language processing tasks | |
Node-NLP | A Node.js package that provides natural language processing (NLP) capabilities. Like extracting meaning from text, perform sentiment analysis, etc |
To run the notebooks, you will need to install the required libraries. You can do this by running the following command:
pip install -r requirements.txt
Use the latest python version
analyzer = SentimentIntensityAnalyzer()
for sentence in sentences:
vs = analyzer.polarity_scores(sentence)
print("{:-<65} {}".format(sentence, str(vs)))
Contributions are welcome! If you would like to contribute to this project, please create a pull request with your changes.
- Sentiment analysis with bert, on colab
- The Best Python Sentiment Analysis Package (+1 Huge Common Mistake)
This project is licensed under the terms of the BANI license.
Created by ambient-work