Giter VIP home page Giter VIP logo

bda-project's Introduction

Hadoop-MapReduce-Sentiment-Analysis

Sentiment analysis, also known as opinion mining, plays a significant role in Natural Language Processing (NLP) by extracting and understanding sentiments expressed in textual data. When dealing with vast amounts of data, Hadoop MapReduce provides an efficient and scalable framework for processing and analyzing sentiment data. This project utilizes Hadoop MapReduce to determine the average sentiment of words in a given dataset. The entire workflow is encapsulated in a Docker Image ensuring easier reproducibility and deployment across various environments.

Introduction

This project focuses on analyzing sentiment in Twitter data. Each line of the dataset represents a tweet with a sentiment label indicating whether the sentiment in the tweet is positive (1), neutral (0), or negative (-1).

MapReduce Workflow

The project follows a MapReduce workflow, where data is processed in parallel across a distributed cluster. Here's an overview of the MapReduce steps:

Mapper

The mapper processes the input data by tokenizing each tweet and extracting sentiment scores for individual words. It removes punctuation and stopwords, and emits key-value pairs of word-sentiment pairs. The output is then sent to the Hadoop Distributed File System (HDFS) for further processing.

Reducer

The reducer receives the word-sentiment pairs from the mapper and calculates the average sentiment score for each word. It filters out words with a count below a certain threshold (e.g., 15) to ensure statistical significance. The results are sorted in descending order based on the average sentiment score and displayed in a tabular format.

The resulting sentiment analysis provides insights into the emotional tone associated with different words in the dataset.

Sentiment Analysis Results

Setup and Execution

For detailed instructions on setting up and running the Docker image for this project, please refer to the SETUP.md file.

Future Work

This project lays the foundation for more advanced NLP tasks, such as classification, in a highly distributed and scalable manner. Future work could involve extending the MapReduce framework to handle more complex sentiment analysis tasks or integrating additional machine learning techniques to enhance the accuracy of sentiment prediction.

Feel free to explore and contribute to this project!

bda-project's People

Contributors

shubham-kumar1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.