Coder Social home page Coder Social logo

budang / turkey-lite Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 386 KB

A JavaScript tool for collecting implicit behavioral data on Amazon Mechanical Turk, etc

License: BSD 3-Clause "New" or "Revised" License

JavaScript 100.00%
amt mturk amazon-mechanical-turk mechanical-turk crowdsourcing crowdsource turkey-lite turkey mmmturkey

turkey-lite's Introduction

turkey-lite

A JavaScript-only spin-off of the MmmTurkey framework for data collection of worker behavior for Amazon Mechanical Turk (AMT). Examples of such auditors include recording what someone clicks or when s/he changes tab focus. Unlike the original framework, turkey-lite does not require additional setup and can be invoked directly as a script tag in the task HTML file. Results are stored directly in the CSV file where worker-submitted answers would also be recorded. For an example of turkey-lite in use, see here. turkey-lite was developed as a lightweight alternative to MmmTurkey. Unlike MmmTurkey, turkey-lite as-is can only be used on AMT but can be easily changed to be used with other platforms; the data-collection code itself is not platform-specific, only the way the data is saved and stored. Some possible options are saving data to S3, DynamoDB, Mongodb, etc. MmmTurkey provides more structure and organization in terms of data storage and collection, but for some the simpler turkey-lite may be sufficient. turkey-lite was developed and tested using the AWS/AMT command-line-tools.

  • A more detailed description of the original framework can be found here, and a list of its features can be found here. Additionally, you can read our paper here.
  • A complete list of auditors and their descriptions can be found here.
  • Pull requests may be submitted here.
  • Issues and questions may be submitted here.

The original MmmTurkey was written by Miles Hutson and Brandon Dang.

Usage

Production CDN

To use turkey-lite as-is with all auditors enabled, add the following script to your HTML:

<script src='https://cdn.rawgit.com/budang/turkey-lite/3b71e095/js/turkey-lite-prod.js'></script>

If you would like to select your own auditors, download the turkey-lite-prod.js file, modify it to your needs, then add the script to your HTML:

<script src='<some_path>/turkey-lite-prod.js'></script>

In the case of the first script, turkey-lite-prod.js will be served via RawGit CDN. In the case of both scripts, resource and auditor scripts will be served via RawGit.

Development CDN

If changes were recently pushed to this repo, the above scripts will not load the most recent changes. To access the most up to date scripts, use the development URL:

<script src='https://rawgit.com/budang/turkey-lite/master/js/turkey-lite-dev.js'></script>

If you would like to select your own auditors, follow the steps above, but instead download turkey-lite-dev.js. Your HTML script should look like this:

<script src='<some_path>/turkey-lite-dev.js'></script>

As per the RawGit FAQ, only use the development scripts for development. When you are ready to move your code to production, please instead use the production scripts above.

Serve Locally

If you need to modify or add auditors, clone this repo and copy the files into your project directory. When you have finished making your changes, you can include the auditor code using the following script:

<script src='<some_path>/turkey-lite-local.js'></script>

Because this file uses the jQuery.getScript function, your browser (e.g., Chrome) may block the files from being served if you are testing them locally on your filesystem due to cross-origin concerns. Firefox seems to work, but I have not tried other browsers. This should not be an issue once your files are hosted on a server.

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.