【问题标题】:MTurk API: Unable to see my created HIT on dashboardMTurk API:无法在仪表板上看到我创建的 HIT
【发布时间】:2018-10-22 14:06:52
【问题描述】:

我正在使用here 给出的教程。它说 HIT 已创建,但是当我去这里 https://requestersandbox.mturk.com/ 时,我没有找到我创建的项目。虽然个别工作人员 URL 确实返回 HIT 网络界面。

我想知道的原因是,我不仅想自动化 HIT 创建,还想批量发布。我的代码如下:

MTURK_SANDBOX = 'https://mturk-requester-sandbox.us-east-1.amazonaws.com'
    mturk = boto3.client('mturk',
                         aws_access_key_id=ACCESS_KEY,
                         aws_secret_access_key=SECRET,
                         region_name='us-east-1',
                         endpoint_url=MTURK_SANDBOX
                         )

    print("I have $" + mturk.get_account_balance()['AvailableBalance'] + " in my Sandbox account")

    question = open('questions.xml', encoding='utf8').read()
    new_hit = mturk.create_hit(
        Title='Is this Tweet happy, angry, excited, scared, annoyed or upset?',
        Description='Read this tweet and type out one word to describe the emotion of the person posting it: happy, angry, scared, annoyed or upset',
        Keywords='text, quick, labeling',
        Reward='0.15',
        MaxAssignments=1,
        LifetimeInSeconds=172800,
        AssignmentDurationInSeconds=600,
        AutoApprovalDelayInSeconds=14400,
        Question=question,
    )
    print("A new HIT has been created. You can preview it here:")
    print("https://workersandbox.mturk.com/mturk/preview?groupId=" + new_hit['HIT']['HITGroupId'])
    print("HITID = " + new_hit['HIT']['HITId'] + " (Use to Get Results)")

【问题讨论】:

    标签: python boto3 mechanicalturk


    【解决方案1】:

    Mechanical Turk 目前不提供通过 API 发布一批 HIT 的方法。您必须为每个人单独致电CreateHIT

    此外,通过 API 创建的 HIT 在 UI 中不可见。您可以通过 API 看到这些。您也可以使用 AWS 命令​​行 shell 来管理它们,因为它也使用 API。

    来源:

    1. https://blog.mturk.com/tutorial-managing-mturk-hits-with-the-aws-command-line-interface-56eaabb7fd4c
    2. MTurk HITs created Through Java API are not showing on Manage Tab on UI

    【讨论】:

    • 所以我必须从 1000 个 URL 收集电子邮件,我必须通过调用 create_hit 来创建 1000 个 HIT?几个问题,如何发送参数化数据? 2、如何提交让其他人开始收集数据?
    • 是的,这将是多个 create_hit 调用。当然,您可以让一名工作人员在同一个 HIT 中执行多个 URL。查看docs.aws.amazon.com/AWSMechTurk/latest/AWSMturkAPI/… 了解如何将布局与参数化数据分开。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-02-03
    相关资源
    最近更新 更多