allenai / deep_qa

A deep NLP library, based on Keras / tf, focused on question answering (but useful for other NLP too)
Apache License 2.0
404 stars 132 forks source link

Adding tests, and a few other things #49

Closed matt-gardner closed 8 years ago

matt-gardner commented 8 years ago

This PR has three main things:

  1. I added a .pylintrc file, so that everyone working on this can use the same settings for pylint. I highly recommend using pylint for error and style checking, and you can have vim do it automatically as you're writing code if you install the Syntastic plugin.
  2. I added a requirements.txt file, which contains a list of all of the python packages needed to run this code (it's probably incomplete, but at least it's a start). I added a few new requirements in this PR, so this makes it so that you just run pip install -r requirements.txt to grab all of this code's dependencies, instead of trying to run it and only finding at runtime that you're missing dependencies.
  3. I set up a framework for running tests, and added a few simple ones to make sure it's working. You run the tests either by running py.test --cov=dlfa from the main directory, or by running testPython from within sbt. sbt test also depends on testPython, so running the scala tests will run the python tests too.