Giter Site home page Giter Site logo

berl_for_textworld's Introduction

Installation

This project requires Python 3.7+. It was tested on a Linux system with a CUDA(==11.6) GPU.

It is recommended to install the conda virtual environment.

You can install conda command on Linux here

cd BERL_for_TEXTWORLD

conda create -n berl python=3.7 numpy scipy ipython matplotlib pandas scikit-learn
conda activate berl
conda install pytorch torchvision cudatoolkit -c pytorch

pip install -r requirements.txt
python -m nltk.downloader 'punkt'

Download textworld dataset. You can check the dataset detail at First TextWorld Problems Competition website.

wget https://aka.ms/ftwp/dataset.zip
unzip dataset.zip

Model training

To train the models run the following command with the folder having the games but you must download dataset.zip from the Textworld Competition wensite.

python src/runtrain.py --games_path ./games

This will output to the screen the game with the agent commands. You can also execute the command with a folder having several games.

Test agent

In the competition the agent executed in an environment without Apex. To test create a new env without Apex and run the following command

python src/playgame.py --display ./games/test

Ner model

For named entities this project uses the BERT-NER model.

berl_for_textworld's People

Contributors

sataketatsuya1121 avatar

Watchers

James Cloos 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.