Skip to the content.

Pre-requisites

Mac and Linux Users:

You can simply run the script ./socialmediaie_setup.sh to setup everything.

Windows users

Run the following in Anaconda prompt

conda env create -f SocialMediaIE/environment.yml 
conda activate SocialMediaIE
pip install -e SocialMediaIE/

Run the following in git bash

DOWNLOAD_PATH="https://databank.illinois.edu/datafiles/vodt2/download"
wget ${DOWNLOAD_PATH} -O ic2s2_data.tar.gz
cd SocialMediaIE/ && tar -xzf ../ic2s2_data.tar.gz 

Test if everything works

wget https://raw.githubusercontent.com/socialmediaie/tutorials/master/docs/IC2S2_2020/test_install.py

Run the following in Anaconda

python test_install.py 

Running the web-server on both Mac/Linux/Windows

If you want to run the webserver install the following:

pip install python-dotenv

Run tagging webserver

cd SocialMediaIE/webapp
flask run --without-threads --no-reload

Run classification model

cd SocialMediaIE/webapp_classification
flask run --without-threads --no-reload