Summarise your Spark chatroom conversations into visual wordclouds separated into key topics:
- Install python package for virtual environments
pip install virtualenv
- Start a virtual environment:
virtualenv -p python3 venv
- Activate virtual environment:
source venv/bin/activate
You are now working within the virtual environment
- Install packages to the virtual environment:
pip install flask Pillow wordcloud nltk numpy scipy sklearn requests
For nltk, you also need to run dependencies.py
to download the models.
- Once everything is installed, cd into
webserver
and:
source credentials.sh
- Then just run
python recap_v1.2.py
from terminal and access the page throughlocalhost:8080
in your browser. Sign in to your Spark account and get started!
- to fix an error with python not installed as a backend on OS X go
cd ./venv/lib/python3.5/site-packages/matplotlib/mpl-data/
inside the virtual environment and addbackend: TkAgg
to the "matplotlib.rc" file
Adrian C. Aydan G. Thomas G.