在土耳其机器人,你怎么限制每个工人一击 [英] In Mechanical Turk, how do you limit to one HIT per worker

查看:201
本文介绍了在土耳其机器人,你怎么限制每个工人一击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从与土耳其机器人工人沟通知道,有一种方法来限制​​访问一个特定的工人就可以完成的数量,但我​​不能想出如何做到这一点。任何帮助将大大AP preciated!

I know from communication with Mechanical Turk workers that there is a way to limit the number of HITs a specific worker can complete, but I cant figure out how to do it. Any help would be greatly appreciated!

推荐答案

我已经开发了一个脚本,主要是解决了这个问题。其主要思想是要检查数据库中的工人ID,然后隐藏HIT如果工人已经完成了相关的打击。

I've developed a script that mostly solves this problem. The main idea is to check the worker ID against a database and then hide the HIT if the worker has already completed a related HIT.

所以,你不需要来承载自己的数据库服务器,我在做我的脚本可以作为一个(免费的)服务: HTTP: //uniqueturker.myleott.com 。请让你使用脚本有任何麻烦,我知道,如果您有任何问题或建议。

So that you don't need to host your own database server, I've made my script available as a (free) service at: http://uniqueturker.myleott.com. Please let me know if you have any trouble using the script, or if you have any questions or suggestions.

我还包括脚本在这里,如果你想使用它,用自己的URL /数据库。如果你走这条路,你需要建立一个Web界面的数据库,需要一个工人ID,并返回1,如果工人被允许工作,对HIT和0,否则。然后,你只是取代YOUR_URL下面指向Web界面:

I'm also including the script here, in case you wish to use it with your own URL/database. If you go that route, you'll need to set up a web interface to your DB that takes a worker ID and returns "1" if the worker is allowed to work on the HIT and "0" otherwise. Then you'll just replace "YOUR_URL" below to point to that web interface:

<script type="text/javascript">
 (function() {
  var assignmentId = turkGetParam('assignmentId', '');
  if (assignmentId != '' && assignmentId != 'ASSIGNMENT_ID_NOT_AVAILABLE') {
   var workerId = turkGetParam('workerId', '');
   var url = 'http://YOUR_URL/?workerId='+workerId;
   var request = new XMLHttpRequest();
   request.open('GET', url, false);
   request.send();
   if (request.responseText != '1') {
    document.getElementById('mturk_form').style.display = 'none';
    document.getElementsByTagName('body')[0].innerHTML = "You have already completed the maximum number of HITs allowed by this requester. Please click 'Return HIT' to avoid any impact on your approval rating.";
   }
  }
 })();
</script>

这篇关于在土耳其机器人,你怎么限制每个工人一击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆