Skip to content

burberg92/Sentiment-Analysis-of-Reddit-Data-using-Reddit-API

Repository files navigation

Sentiment Analysis of Reddit Data using Reddit API

In this live coding session, we leverage the Python Reddit API Wrapper (PRAW) to retrieve data from subreddits on Reddit, and perform sentiment analysis using pipelines from HuggingFace ( 🤗 the GitHub of Machine Learning ), powered by transformer.

☑️ Objectives

At the end of this session, you will be able to:

  • Know how to work with APIs
  • Feel more comfortable navigating thru documentation, even inspecting the source code
  • Understand what a pipeline object is in HuggingFace
  • perform sentiment analysis using pipeline
  • Run a python script in command line and get the results
  • Examine the quality of data
  • Understand data lineage

🛠️ Pre-Assignment

Setting up your environment 🐍🖥️

Create a new Conda environment for sentiment anaylsis (sa). If you already have this environment, continue to the next step.

  conda create -n sa python=3.8 jupyter -y

Activate your new environment

  conda activate sa

Open the jupyter-notebook

  jupyter-notebook

Navigate through the repo in the notebook to find imports.ipynb for this week and open it.

Run all of the cells in the notebook.

Background

Please review the weekly narrative here

About

Sentiment Analysis of Reddit Data using Reddit API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published