Based on sentiment analysis training from IMDB to classify New York Times articles about companies
download the DJIA.csv file from here
download my NLPBot.py file
if you want to save some processing time for creating new files on stuff I've already done, download the .p files and store them in teh same directory as your DJIA.csv and NLPBot.py files
get a New York Times Articles API V2 key from here
This will plot the money made by NYT-Bot for both the individual stock, in the first figure, and the current average over all stocks, in the second figure (after closing the first)
The correct usage of NYT-Bot is as follows:
python NLPBot.py NLPBot [arg1] [arg2] [arg3] [arg4] [arg5]
arg1 - what is the NYSE ticker label for the company you want to model, e.g. AAPL for Apple
arg2 - what is the common name for the company, e.g. Bank\ of\ America for Bank of America WARNING: you MUST escape spaces in the company name, i.e. a " " should be "\ "
arg3 - what is your New York Times Article API V2 key
arg4 - True or False : do you want to redownload and recalculate values for everything already saved from previous runs?
arg5 - True or False : do you want to have crashes on unexpected Expert Actions so that you can manually edit/update the dictionary in this program?
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Alpha version 0.0001 on 06/26/2015
Will Findley