Created by Gimhan Dayarathna, this repository contains the Facebook Reviews Sentiment Analyzer Chatbot to analyze reviews from Facebook pages and extract insights.
To create the environment for running this project, use the following commands:
conda create -n sentiment_chatbot python=3.8conda activate sentiment_chatbotpip install transformers gradio sklearn numpy matplotlib pandasChange the directory to the src from the terminal.
If Facebook page id is provided.
python3 chatbot_with_page_id.pyOR If Facebook page id is not provided.
python3 chatbot_without_page_id.pyDue 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: