GithubHelp home page GithubHelp logo

xdata-nba's Introduction

XDATA NBA

Python Dependency Installation

If you're on OS X Mavericks you need to run the following before pip install-ing the dependencies.

export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future

After cloning the code base, run pip install -r requirements.txt to install the necessary dependencies.

Then run python -m nltk.downloader book to download the corpus.

Running Vagrant

Install Vagrant from here.

Install VirtualBox from here.

Run vagrant up in the root directory of this repo. This will take a while.

This will install a 64 bit Ubuntu virtual machine. Note that the /vagrant directory in the VM is shared with the host machine (the same directory with the Vagrantfile, the root of this repo).

You will need to manually execute the provisioning script /vagrant/vagrant_bootstrap.sh to initialize the VM. Unfortunately some of the dependencies require user input during install so this step cannot be fully automated at this time.

SSH into the VM by running vagrant ssh.

Shut down the VM by running one of vagrant [suspend | halt | destroy]. Note that destroy deletes the VM, so you'll have to re-download all of the dependencies in vagrant_bootstrap next time you call vagrant up.

Starting Solr

If you need to manually start Solr, you can do so by running the following commands after SSH-ing into the VM.

cd solr-4.8.1/example/
java -Dsolr.solr.home=/vagrant/solr -jar start.jar > /tmp/solr-server-log.txt &

To test that solr has started successfully open up your browser and navigate to http://localhost:8983/solr where you will see the Solr dashboard.

Loading the NBA dataset

There are scripts for ingesting the NBA data into Solr in the /vagrant/python-import. To ingest all the NBA data simply run the following.

cd /vagrant/python-import
python NBAIngest /path/to/nba/data

xdata-nba's People

Contributors

darth-pr avatar lewismc avatar mjjoyce avatar shakeh avatar tbpalsulich avatar

Watchers

 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.