Title | Author |
---|---|
Weather Report |
Dillon Niederhut |
Weather Report is a collection of sentiment classifiers and location-based API readers. It is the engine that powers the Berkeley Mood Twitter Bot1
git clone https://github.com/deniederhut/weather_report.git
cd weather_report
python setup.py install
See bots/jaco.py
for an example of a CLI client. Running:
python jaco.py top_10_us data/counts.csv --classifiers count_dict polar_summary
Yields:
head counts.csv
city,year,month,mday,wday,hour,source,type,variable,value,n_items,n_terms
Pythopolis,2016,3,2,2,11,<class 'weather_report.classifiers.CountDict'>,count,angry,0,1,12
Pythopolis,2016,3,2,2,11,<class 'weather_report.classifiers.CountDict'>,count,sad,1,1,12
Pythopolis,2016,3,2,2,11,<class 'weather_report.classifiers.CountDict'>,count,loving,1,1,12
Pythopolis,2016,3,2,2,11,<class 'weather_report.classifiers.CountDict'>,count,afraid,0,1,12
Pythopolis,2016,3,2,2,11,<class 'weather_report.classifiers.CountDict'>,count,happy,1,1,12
-
- For more on Berkeley Mood, see the D-Lab blog post