Skip to content

tommagnusson/article_classification

Repository files navigation

Article Classification for Quikfo

Manual Article Spam or Ham Classification program

example of article classification for Quikfo

Getting Started

Dependencies

  1. Install python3 (example is using homebrew on mac).
  2. Install pandas and numpy using pip
$ brew install python3
$ python3 -m pip install numpy
$ python3 -m pip install pandas

Running the program

  1. Run the program with spamScoredArticles.csv, the file that contains the articles
  2. Manually classify away

$ python3 classify.py spamScoredArticles.csv

Exporting just the scored articles into separate 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 in onlyScored.csv

Browser mode

Automatically open a google search of the stock symbol, as well as the article url.

$ python3 classify.py spamScoredArticles.csv --browse

TODO

  • Auto close chrome tabs in --browse mode

About

Manual Article Spam or Ham Classification program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages