通过taskId获取workerId
在 Amazon Mechanical Turk 中,当创建外部问题时,它会向您发送每个作业都是这样的:
http://tictactoe.amazon.com/gamesurvey.cgi?gameid=01523
&hitId=123RVWYBAZW00EXAMPLE
&assignmentId=123RVWYBAZW00EXAMPLE456RVWYBAZW00EXAMPLE
令人惊讶的是,它没有向我发送workerId,而且我找不到任何方法来做到这一点。最接近的方法是 GetAssignmentsForHIT 它只给我已经提交的作业,但我需要根据工人历史来呈现分配。
In Amazon Mechanical Turk, when creating an External Question then it will send you each assignment like this:
http://tictactoe.amazon.com/gamesurvey.cgi?gameid=01523
&hitId=123RVWYBAZW00EXAMPLE
&assignmentId=123RVWYBAZW00EXAMPLE456RVWYBAZW00EXAMPLE
Surprisingly, it doesn't send me the workerId and I can't find any way to do this. The closest method is GetAssignmentsForHIT which only gives me the assignment already submitted but I need to render the assignment based on the worker history.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
正如 msha 指出的那样,将workerID 参数发送到ExternalQuestion 页面似乎已被弃用,或者至少从最新版本的文档中删除。
然而,一位经常使用 MTurk 的研究员同事表示:“人们似乎在论坛上使用它。我会继续使用它......如果它真的消失了,我相信开发者社区会大喊大叫。”大声地:)“
我今天(2011-08-19)根据经验进行了尝试,确实在 HIT 被接受后,workerID 被发送到我在自己的服务器上设置的外部问题页面。这是在沙箱中。我的ExternalQuestion页面包含一个Java Web Start按钮(如下所述:http:// /download.oracle.com/javase/tutorial/deployment/deploymentInDepth/createWebStartLaunchButtonFunction.html );我不知道这是否有什么不同。
As msha points out, the sending of a workerID parameter to an ExternalQuestion page seems to be deprecated, or at least taken out of the latest version of the documentation.
However, a fellow researcher who's been using MTurk a lot says: "People seem to be using it in the forums. I would go ahead with it...if it ever actually disappears, I'm sure that the developer community will yell very loudly. :) "
I tried it empirically today (2011-08-19), and indeed a workerID is being sent to the ExternalQuestion page I set up on my own server, after the HIT has been accepted. This was in the sandbox. My ExternalQuestion page contained a Java Web Start button (as described here: http://download.oracle.com/javase/tutorial/deployment/deploymentInDepth/createWebStartLaunchButtonFunction.html ); I don't know if that made any difference.
最近添加到 API 中的是 GetAssignment 调用,它接受分配ID 作为参数,并将返回分配数据结构内的工作人员 ID 。
A recent addition to the API is the GetAssignment call, which takes the assignment ID as an argument and will return the Worker ID inside the Assignment data structure.
根据 MTurk 文档此处,
我自己还没有尝试证实这一点。
According to the MTurk docs here,
Haven't tried to confirm this myself yet.