Git Product home page Git Product logo

ltl-gata's Introduction

Learning to Follow Instruction in Text-Based Games

This is the code repository for the paper Learning to Follow Instruction in Text-Based Games, which will appear in NeurIPS 2022.

Installing Dependencies

We used python-3.9 in our experiments.

The main dependencies can be installed as pip install -r requirements.txt

We use the Spot library for LTL progression, which can be installed by following the instructions here. It should be installed to <path-to-python-env>/lib/python??/site-packages/spot

Once that's complete, we can download spacy

python -m spacy download en

and also download the FastText Word Embeddings

cd src/support-files
curl -L -o crawl-300d-2M.vec.h5 "https://bit.ly/2U3Mde2"

The dataset itself can be downloaded as

cd src/support-files/rl.0.2
wget https://aka.ms/twkg/rl.0.2.zip
unzip rl.0.2.zip

Note finally that vocabularies can be found in src/support-files/vocabularies. The location of the dataset and vocabularies is not important, and can be specified in the config.yaml file.

Training Agents

Instructions for training and evaluating agents on is available in the src folder.

Citation

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.