【问题标题】:How to view HIT annotation in Mechanical Turk如何在 Mechanical Turk 中查看 HIT 注释
【发布时间】:2014-11-05 20:12:20
【问题描述】:

我正在尝试为我的 HIT 注释一些内容,即 AppleID:

>>> hit = conn.create_hit(
                    question=q,
                    reward = 0.05,
                    max_assignments=3,
                    title='Question',
                    annotation='apple_id=123456789'
             )

然后我将如何查看注释。我正在尝试以下,但它没有显示在那里:

>>> hit[0]
<boto.mturk.connection.HIT object at 0x10d311050>
>>> hit[0].__dict__
{
    'IsValid': u'True',
    'HIT': '',
    'Request': '', 
    'HITId': u'3ZFRE2BDQ9EC3501ZSVWGUVL0EUXZT', 
    'HITTypeId': u'3I39O3TFTUXGEG283QLYWHJW0ZEJ8V'
}

如何获取annotation 字段?

【问题讨论】:

    标签: python amazon-web-services boto mechanicalturk


    【解决方案1】:

    您需要在此处明确指定 response groups 以获取必要的数据 -- http://docs.aws.amazon.com/AWSMechTurk/latest/AWSMturkAPI/ApiReference_CommonParametersArticle.html#response-groups

    在这种情况下,您需要包含响应组HITDetail。那么:

    >>> hit = conn.create_hit(
                    question=q,
                    reward = 0.05,
                    max_assignments=3,
                    title='Question',
                    annotation = 'This is my annotATION!',
                    response_groups=['Minimal', 'HITDetail']
                 )
    >>> annotation = create_hit_rs[0].RequesterAnnotation
    >>> annotation
    'This is my annotATION!'
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多