Coder Social home page Coder Social logo

panyang / allennlp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from allenai/allennlp

0.0 0.0 0.0 214 KB

A natural language processing toolkit using state-of-the-art deep learning models.

License: Apache License 2.0

Python 95.66% Jupyter Notebook 2.89% HTML 0.46% Shell 0.99%

allennlp's Introduction

Build Status codecov

AllenNLP

A Apache 2.0 natural language processing toolkit using state-of-the-art deep learning models.

Setting up a development environment

DeepQA is built using Python 3. The easiest way to set up a compatible environment is to use Conda. This will set up a virtual environment with the exact version of Python used for development along with all the dependencies needed to run DeepQA.

  1. Download and install Conda.

  2. Create a Conda environment with Python 3.

    conda create -n allennlp python=3.5
    
  3. Now activate the Conda environment.

    source activate allennlp
    
  4. Install the required dependencies. To install only the runtime dependencies, run

    ./scripts/install_requirements.sh
    

    If you want to install all of the testing/linting/type-checking dependencies, run instead

    INSTALL_TEST_REQUIREMENTS="true" ./scripts/install_requirements.sh
    
  5. Visit http://pytorch.org/ and install the relevant pytorch package.

  6. Set the PYTHONHASHSEED for repeatable experiments.

    export PYTHONHASHSEED=2157
    

You should now be able to test your installation with pytest -v. Congratulations!

Setting up a Kubernetes development environment

  1. Follow the instructions for installing and setting up Kubernetes.

  2. Fill in the yaml file. You need to add:

    • The name of the job, under the metadata: heading.
    • The namespace you wish to run in under the metadata: heading. To see which namespaces are available, run kubectl get ns .
    • Your contact name (first bit of your email) under labels.contact:.
  3. Run kubectl create -f /path/to/kubernetes-dev-machine.yaml. This creates your job on the cluster.

  4. Retrieve the name of the pod created to run your job using kubectl get pods --namespace <NAMESPACE>. This will be the name you provided for your job above, plus some random characters.

  5. Get a shell inside the container using kubectl exec -it <PODNAME> --container dev-environment -- /bin/bash

  6. When you are done, don't forget to kill your job using kubectl delete -f /path/to/kubernetes-dev-machine.yaml

allennlp's People

Contributors

deneutoy avatar joelgrus avatar matt-gardner avatar nelson-liu avatar schmmd 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.