简体   繁体   English

机械土耳其人中不同HIT的不同html代码

[英]Different html code for different HITs in mechanical turk

I have multiple HITs in mechanical turk, each contains a different assignment. 我在机械土耳其人中有多个HIT,每个HIT包含不同的任务。 This is part of an experiment, and I want the participants to be randomly divided between he different states (ie different HITs). 这是实验的一部分,我希望参与者在不同的状态(即不同的HIT)之间随机分配。 I understand that I can use the ${} feature and provide different texts in a .csv, but I want the differences to be more than just the text... I would prefer to use a different code for each option (state). 我知道我可以使用$ {}功能并在.csv中提供不同的文本,但我希望差异不仅仅是文本......我更希望为每个选项(状态)使用不同的代码。 Is there a convenient way to do it through the html code? 有没有一种方便的方法来通过HTML代码? I'm kind of new to html code... 我是html代码的新手......

There isn't a good way to do this via the web interface. 没有一种通过Web界面实现此目的的好方法。 However, it could be done using Python and the MTurk API, as detailed in this tutorial, Tutorial: A beginner's guide to crowdsourcing ML training data with Python and MTurk 但是,它可以使用Python和MTurk API完成,详见本教程, 教程:使用Python和MTurk众包ML训练数据的初学者指南

In the portion of the code where you assign the question xml/HTML to question : 在代码中您将问题xml / HTML分配给question

question = open(name='questions.xml',mode='r').read()

you could dynamically pick your different, pre-generated question.xml templates 您可以动态选择不同的预生成的question.xml模板

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM