如何在机械土耳其人 HIT 中指定请求者的workerID?
我想创建一个 mturk HIT,其 URL 如下所示:
www.example.com?source=worker_id
其中,worker_id 是工人的 ID 代码。我最初打算从 mturk Web UI 创建这些,然后一旦我让它正常工作,就从 PHP 创建。但我不知道如何从 mturk HIT 的修改 HTML 语法中获取工人的 ID。
I want to create an mturk HIT that has a URL like so:
www.example.com?source=worker_id
where worker_id is the worker's ID code. I'm initially going to create these from the mturk web UI, then once I get it working right, from PHP. But I can't figure out how to get at the worker's ID from the modified-HTML syntax of an mturk HIT.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Mechanical Turk 将使用如下 URL 调用您的网站:
www.example.com/?hitId=2384239&assignmentId=ASD98ASDFADJKH&workerId=ASDFASD8
在位于该位置的 php 页面中,您可以访问workerId(以及其他 ID)像这样:
Mechanical Turk will call your website with a URL that looks like:
www.example.com/?hitId=2384239&assignmentId=ASD98ASDFADJKH&workerId=ASDFASD8
In your php page that is at that location you can access the workerId (as well as the other Ids) like so:
请注意,workerId 在预览期间不会发送,只有在 HIT 被接受后才会发送。如果您使用外部 HIT,您可以创建一个 cookie 来查看是否是已接受先前命中的工作人员,但当然该方法不可靠。
Note that the workerId is NOT sent during the preview, only after the HIT has been accepted. If you're using an External HIT, you can create a cookie to see if it's a worker who has accepted a previous hit, but of course that method is unreliable.