2014-11-05 7 views
0

에 주석을 HIT보고하기 위해, AppleID :어떻게 즉 내 HIT, 뭔가에 주석을 시도하고 기계 터크

>>> 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 필드를 잡아 얼마나

?

답변

0

여기에 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!'