繁体   English   中英

MTurk API:无法在仪表板上看到我创建的HIT

[英]MTurk API: Unable to see my created HIT on dashboard

我正在使用此处给出的教程。 它说创建了HIT,但是当我转到这里https://requestersandbox.mturk.com/找不到我创建的项目。 虽然单个工作人员URL确实会返回HIT Web界面。

我想知道的原因不仅是要自动化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)")

目前,Mechanical Turk还没有提供通过API发布一批HIT的方法。 您必须分别为它们每个调用CreateHIT

另外,通过API创建的HIT在用户界面中也不可见。 您可以通过API查看这些内容。 您还可以使用AWS命令行外壳程序来管理它们,因为它也使用API​​。

资料来源:

  1. https://blog.mturk.com/tutorial-managing-mturk-hits-with-the-aws-command-line-interface-56eaabb7fd4c
  2. 通过Java API创建的MTurk HIT未显示在UI的“管理”选项卡上

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM