Coder Social home page Coder Social logo

athnlp-labs's Introduction

ΑθNLP 2019

Important: This repository is now archived!

Exercises for the lab sessions of ΑθNLP 2019. The labs will cover the following:

  1. Part-of-Speech Tagging with the Perceptron algorithm
  2. Part-of-Speech Tagging with the Structured Perceptron algorithm
  3. Neural Encoding for Text Classification
  4. Neural Language Modeling
  5. Neural Machine Translation
  6. Question Answering

Setup

You will need to have Python 3 installed on your machine; we recommend using Anaconda, which is available for the most common OS distributions.

For the first two labs we will be using vanilla Python (along with the standard scientific libarires, i.e., NumPy, SciPy, etc), while for the rest we will additionally be using PyTorch and AllenNLP.

Use the Anaconda command-line tools to create a new virtual environment with Python 3.6:

    conda create --name athnlp python=3.6

After the installation is complete, you should have a new virtual environment called athnlp in your Anaconda installation that you can activate using the following command: conda activate athnlp. Remember to execute this command before running the scripts in this repository.

Next, you should clone the repository to your computer:

    git clone https://github.com/athnlp/athnlp-labs

Finally, you should install all required dependencies. We provide a script that will help you setup your environment. Run the command: sh setup_dependencies.sh and it will automatically install the project dependencies for you. The script will download several data dependencies that might require some time to be installed.

Note: Installing AllenNLP on Mac OS can be tricky; check here for a possible solution.

Docker

If you prefer (or you are on Windows), you can install Docker and create a Docker image with the following commands:

  • build it by running docker build -t athnlp - < Dockerfile
  • get an interactive terminal on the image with docker run -i -t athnlp bash
  • run commands as you normally would (remember this is a very minimal linux installation) If you want to run the image with a new version of the code, add the option --no-cache to the build. You need to do the wget commands from setup_dependencies.sh on your own. Make sure you give Docker enough disk space and memory

athnlp-labs's People

Contributors

alesuglia avatar andreasvlachos avatar dmavroeidis avatar j6mes avatar sinantie avatar spiros avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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