Manual Article Spam or Ham Classification program
- Install python3 (example is using homebrew on mac).
- Install
pandas
andnumpy
usingpip
$ brew install python3
$ python3 -m pip install numpy
$ python3 -m pip install pandas
- Run the program with
spamScoredArticles.csv
, the file that contains the articles - Manually classify away
$ python3 classify.py spamScoredArticles.csv
Saves just the scored articles from the first csv into the second csv.
$ python3 classify.py spamScoredArticles.csv --scored onlyScored.csv
Saves just the scored articles from
spamScoredArticles.csv
inonlyScored.csv
Automatically open a google search of the stock symbol, as well as the article url.
$ python3 classify.py spamScoredArticles.csv --browse
- Auto close chrome tabs in
--browse
mode