HIT¶
The HIT object is generated by a task. The task maintains a pool of questions, and uses a specific method to organize the questions into HITs.
Note
When a worker accepts a HIT on Amazon Mechanical Turk, it becomes an Assignment
Module author: Michael Romero <michaelrom@zillowgroup.com>
-
class
opencrowd.model.base.HIT.HIT(assignments_per_hit=None, AutoApprovalDelayInSeconds=604800, lifetime_in_seconds=604800, assignment_duration_in_seconds=1800, Reward=None, Title=None, Keywords=None, Description=None, task_id=None)¶ HITs are generated by Tasks.
Parameters: - assignments_per_hit – Maximum amount of workers that can work on this HIT
- AutoApprovalDelayInSeconds – Amount of time until Amazon auto-approves this HIT
- lifetime_in_seconds – How long this HIT will appear on Amazon
- assignment_duration_in_seconds – How long the worker will have to complete the assignment
- Reward – How much to pay the worker if the Assignment is accepted
- Title – Title of the HIT, will be displayed on the search results page for Amazon Mechanical Turk
- Keywords – Keywords of the HIT. When the worker searches for these specific words, this HIT will display in the search results page for Amazon Mechanical Turk
- Description – Description of the HIT. Displays when worker searches.
- task_id – Task ID this HIT was generated from. Useful for database reasons.
-
add_question(question)¶ Add a Question to this HIT
Parameters: question (Question) – Question object to add
-
submit(AMT)¶ Submit self through the AMT connection and update self with the results :param AMT: The open AMT connection object :return: