Coder Social home page Coder Social logo

nipspreview's Introduction

NIPS papers pretty html

This is a set of scripts for creating nice preview page (see here: http://cs.stanford.edu/~karpathy/nipspreview/ ) for all papers published at NIPS. I hope these scripts can be useful to others to create similar pages for other conferences. They show how one can manipulate PDFs, extract image thumbnails, analyze word frequencies, do AJAX requests to load abstracts, etc.

Installation

  1. Clone this repository git clone https://github.com/karpathy/nipspreview.git

  2. Download nips25offline from http://books.nips.cc/nips25.html and move it into the folder created in step 0

  3. Make sure you have ImageMagick: sudo apt-get install imagemagick

  4. Run pdftowordcloud.py (to generate top words for each paper. Output saved in topwords.p as pickle)

  5. Run pdftothumbs.py (to generate tiny thumbnails for all papers. Outputs saved in thumbs/ folder)

  6. Run scrape.py (to generate paperid, title, authors list by scraping NIPS .html page)

  7. Run makecorpus.py (to create allpapers.txt file that has all papers one per row)

  8. Run python lda.py -f allpapers.txt -k 7 --alpha=0.5 --beta=0.5 -i 100 . This will generate a pickle file called ldaphi.p that contains the LDA word distribution matrix. Thanks to this nice LDA code by shuyo! It requires nltk library and numpy. In this example we are using 7 categories. You would need to change the nipsnice_template.html file a bit if you wanted to try different number of categories.

  9. Generate the abstract files inside abstracts/ folder using getabstracts.py. Some user interaction may be necessary because of poorly formatted papers that make abstract extraction a pain. See script.

  10. Finally, run generatenicelda.py (to create the nipsnice.html page)

Licence

WTFPL licence

nipspreview's People

Contributors

karpathy avatar

Watchers

 avatar  avatar  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.