Code Monkey home page Code Monkey logo

turkframe's Introduction

Turkframe

Turkframe is a PsiTurk wrapper for use around separately hosted experiments.

PsiTurk makes Mechanical Turk integration easier, but it can be time-consuming to adapt projects for use with PsiTurk. Turkframe eases the process of adding PsiTurk to an existing project with minimal modification.

How It Works

Turkframe provides a 'wrapper' PsiTurk project to handle mTurk integration. When a worker is ready to begin the task, Turkframe simply produces an iframe pointing towards a separately hosted experiment. PsiTurk's condition, counterbalance, and uniqueId parameters are passed to the experiment, and the experiment can freely pass messages and data back to the PsiTurk frame.

What's Included

  • The turkframe PsiTurk project, as a template to be customized and pointed towards your experiment
  • The turkframe.js JavaScript API, to help separately hosted experiments communicate with Turkframe/PsiTurk

Getting Started

  1. Modify the turkframe PsiTurk project's config files, templates, styles, etc. to suit your needs.
  2. Customize the inline script in templates/exp.html to point Turkframe towards your experiment and register any custom message handlers.
  3. Include a copy of the turkframe.js API in your experiment.
  4. From your experiment, you may call Turkframe.messageUp() to send custom messages to your handlers.
  5. From your experiment, call Turkframe.messageFinished() when ready to hand control back to PsiTurk.

turkframe's People

Contributors

ngreenstein avatar

Watchers

 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.