Simplified interfaces for assignments on Mechanical Turk.
Project description
Simplified interfaces for assignments on Mechanical Turk.
Free software: BSD license
Documentation: https://turkleton.readthedocs.org.
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
Built Distribution
Hashes for turkleton-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fa954c905d6abcc7f95d3c0ced6ada601ee0e468c43b33bf7046db2a4e8ecdb |
|
MD5 | 74a217ad8a1bc4d8ebf7aded6a3e079a |
|
BLAKE2b-256 | a03bba0ff91f4c87b4115feaed65d2755f804882ec957e32800868a46841662d |