Skip to content

This sentiment analysis project performs text preprocessing, removes stopwords, and analyzes sentiment based on a given text. It also reads and parses emotions from another file. The sentiment is classified as positive, negative, or neutral. A bar graph displays emotion counts, and the average count is calculated

License

Notifications You must be signed in to change notification settings

da1pi2/Sentiment-Analysis

Repository files navigation

Sentiment Analysis Project

This project is aimed at analyzing text to detect the sentiment behind words and phrases. By examining various texts, we aim to identify and categorize the emotions expressed.

Data

We utilize two main types of data:

  • Text excerpts from speeches and writings that provide a rich context for sentiment analysis.
  • A mapping of words to their corresponding emotions to aid in the detection of sentiment.

Methodology

The core of our analysis lies in the naive_linechunk algorithm, which processes the text and assigns sentiment based on the emotions dictionary.

Inspiration

This project was inspired by attreyabhatt/Sentiment-Analysis. It has been modified and adapted to our specific use-case and research questions.

Installation

To set up the necessary environment for this project, you need to install the requirements. Run the following command in your terminal:

pip install -r requirements.txt

Contributions

We welcome contributions and improvements to the algorithm and the emotions dictionary. Please feel free to submit pull requests.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgements

  • The original authors of the Sentiment-Analysis project
  • Those who have contributed to the emotions dictionary
  • The authors of the text excerpts used for analysis

About

This sentiment analysis project performs text preprocessing, removes stopwords, and analyzes sentiment based on a given text. It also reads and parses emotions from another file. The sentiment is classified as positive, negative, or neutral. A bar graph displays emotion counts, and the average count is calculated

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages