Giter Club home page Giter Club logo

gatesdect's Introduction

gatesDect

A NLP classifier to determine whether an article was written by Bill Gates or someone else

You can find a full documentaion of what I did in this article.

Now a slight explanation of the files.

The xml files containing the URLs of the articles I want to scrape.

parseSitemapToFile.py: parses the XML file to a textfile containing only the URLs seperated by newline.

All programs that are starting with scrape are there to use the websitesURL files, generated by parseSitemapToFile.py, to scrape the contents of the articles find at the URLs and put the result either in raw_gates or raw_random_articles folder.

build_dataset.py : To take the files of the raw folders and split them into test , train and valid folder.

classifier_ml.py : A classifier which uses ML / NLP techniques.

###First optimization (26 October 2018) #####

-Added the folder "add_more_test_data" with some additional scraper programs in order to generate even more train/test data. -Edited the classifier.py class : - new word for stop_word list called "link" .

You can find a detailed change log here : https://medium.com/@julianhatzky/gatesdect-part-2-optimizing-nlp-d7f13e9e0e18

gatesdect's People

Contributors

ju2ez avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.