Skip to content

This repository contains a Facebook Review Sentiment Analyzer in Python

Notifications You must be signed in to change notification settings

BritnieS/Sentiment-Analyzer-Facebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Facebook Reviews Sentiment Analyzer Chatbot

Created by Gimhan Dayarathna, this repository contains the Facebook Reviews Sentiment Analyzer Chatbot to analyze reviews from Facebook pages and extract insights.

Table of Contents

  1. Environment Setup
  2. Running the Chatbot
  3. Facebook Account Ban

1. Environment Setup

1.1. Conda Environment Creation

To create the environment for running this project, use the following commands:

conda create -n sentiment_chatbot python=3.8
conda activate sentiment_chatbot

1.2. Conda Environment Creation

pip install transformers gradio sklearn numpy matplotlib pandas

2. Running the chatbot

Change the directory to the src from the terminal.

If Facebook page id is provided.

python3 chatbot_with_page_id.py

OR If Facebook page id is not provided.

python3 chatbot_without_page_id.py

3. Facebook account Ban

Due to unusual activity while trying to activate the Facebook API, the account used to retrieve reviews was banned. As a result, I am currently using locally saved reviews instead of live data from Facebook. The image showing the ban notice is below:

About

This repository contains a Facebook Review Sentiment Analyzer in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages