Skip to content

itsLuisa/SHAPELURN

Repository files navigation

SHAPELURN

An Interactive Language Learning Game

Logo

This repository contains the code for "SHAPELURN: An Interactive Language Learning Game with Logical Inference" presented at the InterNLP 2021 Workshop:

Katharina Stein, Leonie Harter, and Luisa Geiger. 2021. SHAPELURN: An interactive language learning gamewith logical inference. InProceedings of the First Workshop on Interactive Learning for Natural LanguageProcessing, pages 16–24, Online, August. Association for Computational Linguistics.

The project was developed as part of the Softwareproject "Language, Action and Perception" in the winter term 20/21 at Saarland University.

Demo of SHAPELURN

To play our language learning game you only have to clone the repository and run the gui_simple_floating.py script. You will be asked to enter a name for your session and the programm will then create a new folder with your chosen name in the source code directory. In this folder the result data from your game will be stored.

If your are testing the game for us in order to collect data for our evaluation of the system, this folder contains all the data we need from you. However, additional feedback with respect to the overall game experience, clearity of instructions,... is very welcome. By sending the resulting folder to us you agree that we use your data for evaluating our model. The data will not be used for different purposes. In order to anonymize your data, you can freely choose any name for your folder.
Note: From level 3 on it is very likely that the processing time increases significantly. As the data will be stored after each Level, we also appreciate data that does not include all levels. Feel free to skip level 4 if it takes too long. (The longer the input is the longer takes the processing.)

Requirements
Python 3
PIL (Pillow)
PySimpleGUI
Numpy

To install the required packages run pip install -r requirements.txt

Basic Instructions

Hello! Welcome to SHAPELURN, where you can teach the computer any language of your choice!
You will be looking at different pictures and describing them to the computer in one sentence.
There will be four levels with different constraints on the descriptions.
Please use short sentences in the first two levels and do not use negation at all.

In order to evaluate our model we would like to collect your data.
Please enter any name under which you would like to save your data on your local machine.

Constraints on descriptions depending on level:

  • Level 1: Use only the shapes and/or the number of blocks for your description, e.g.: a circle or two forms
  • Level 2: You can additionally describe the blocks by color, e.g: two blue forms
  • Level 3: Now you can describe relations between blocks and use conjunction (please don't use colors), e.g.: a circle under a square
  • Level 4: Describe whatever you want!

Important Do not try to move the window of the GUI why it is processing your description or your feedback as this will lead to a bug in the presentation of the GUI that does not allow to continue the game!

For the detailed instructions and examples please refer to the Wiki

References

The project idea is based on Wang, S. I., Liang, P., & Manning, C. D. (2016). Learning language games through interaction. arXiv preprint arXiv:1606.02447.
Our parsing and learning framework is based on Liang, Percy and Christopher Potts. 2014. Bringing machine learning and compositional semantics together. Annual Review of Linguistics 1(1): 355–376. and uses code from the corresponding demonstration code.

About

A Language Learning Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published