Skip to main content

Simplified interfaces for assignments on Mechanical Turk.

Project description

https://img.shields.io/travis/etscrivner/turkleton.svg https://img.shields.io/pypi/v/turkleton.svg

Simplified interfaces for assignments on Mechanical Turk.

Features

  • Interfaces for uploading assignments from pre-built layouts.

  • ORM-like interface for downloading and evaluating assignment results.

Examples

Here’s how you would define a task template to be uploaded:

from turkleton.assignment import task

class MyTask(task.BaseTask):

    __layout_id__ = 'MY LAYOUT ID'
    __reward__ = 0.25
    __title__ = 'Guess How Old From Picture'
    __description__ = 'Look at a picture and guess how old the person is.'

Now that we’ve defined our assignment we can easily upload it to Mechanical Turk:

from turkleton import connection

conn = connection.make_connection(AWS_ACCESS_KEY, AWS_SECRET_ACCESS_KEY)
task = MyTask({'param1': 'val1', 'param2': 'val2'})
hit = task.upload(conn, batch_id='1234')

This will create a new task and upload it to Mechanical Turk. The optional batch_id parameter allows you to set the annotation for the task to an arbitrary string that you can use to retrieve tasks later in batches.

History

0.1.0 (2015-01-11)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

turkleton-0.1.1.tar.gz (15.2 kB view hashes)

Uploaded Source

Built Distribution

turkleton-0.1.1-py2.py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page