Git Product home page Git Product logo

qb's Introduction

QANTA

Setups

  1. You'll need Python, R, Gorobi, Spark, and Vowpal Wabbit installed and accessible on the path.

  2. Either copy non_naqt.db to data/questions.db, simlink it, or copy your own questions.db file.

  3. Run the script "python util/install_python_packages.py", which will install several python packages you'll need. (You may need admin access.)

  4. Run the script "python util/install_nltk_data.py", which will download some nltk data. You should not use admin access for this script.

  5. Download the Illinois Wikifier code (VERSION 2). Place the data directory in data/wikifier/data and put the wikifier-3.0-jar-with-dependencies.jar in the lib directory.

http://cogcomp.cs.illinois.edu/page/software_view/Wikifier

Steps

  1. Generate the Makefile

python generate_makefile.py

  1. Generate the guess database (this takes a while, depends on DAN---60 hours---and guesses---40 hours)

make data/guesses.db

  1. Generate the LM pickle (18 hours)

make data/lm.pkl

  1. generate features, train all models, and get predictions.

make all_sentence_buzz

Feature timings:

  *  classifier: 216 features lines per sec
  *  lm: 139.028408 feature lines per sec
  *  deep: 84.391876 feature lines per sec
  *  text: 158.384899 feature lines per sec
  *  wikilinks: 62.842486 feature lines per sec
  *  answer_present: 155.469810 feature lines per sec

Steps for quick test

If you are interested in getting the qb system running end to end without training the full system, you can follow these steps.

  1. Generate the Makefile like above
  2. Run make data/deep/glove.840B.300d.txt.gz to download some data

qb's People

Contributors

ezubaric avatar entilzha avatar miyyer avatar

Watchers

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