简体   繁体   English

Mechanical Turk:在API中使用HTML

[英]Mechanical Turk: Using HTML in the API

Question for anyone who's used Mechanical Turk: Is it possible to take an HTML template created on Mechanical Turk's website, and then create more HITs based on that template from the command line tools or API? 对使用Mechanical Turk的任何人的问题:是否可以采用在Mechanical Turk网站上创建的HTML模板,然后从命令行工具或API基于该模板创建更多的HIT?


According to the API docs, it's not possible to create new HTML and add it...from the API. 根据API文档,无法从API创建新HTML并将其添加。 However, what I want to do here is use a HIT template I already created. 但是,我想在这里使用已经创建的HIT模板。 It would seem like there should be a way to use that template (and load up new data in the API), since Amazon already approved it and I'm using it for HITs already. 似乎应该有一种使用该模板的方法(并在API中加载新数据),因为Amazon已经批准了该模板,而我已经将其用于HIT。 But I haven't seen a way in the documentation to do so. 但是我还没有在文档中找到实现此目的的方法。


The main reason I want the HTML is so I can apply styles that I can't apply by using a questions file. 我想要HTML的主要原因是,我可以使用问题文件来应用无法应用的样式。 If there was some sort of "rich" question file, that might solve the problem. 如果存在某种“丰富”的问题文件,则可能会解决该问题。

You could post a job on Mechanical Turk to have a person take your template and insert your data into it for each HIT you want to create. 您可以在Mechanical Turk上发布工作,让一个人拿您的模板并将您的数据插入到要创建的每个HIT中。

(yes, this is at least half sarcasm) (是的,这至少是讽刺的一半)

我知道这是一个老问题,但是已使用HITLayout对API进行了更新,以允许使用此方法: http : HITLayout

As far as I know, I haven't seen a way to use manually created questions from the API. 据我所知,我还没有找到使用API​​中手动创建的问题的方法。

If you're planning on doing programmatic access, it may be easier to use the API in its entirety (ie, specify your questions via XML and create HITs from that question): 如果您打算进行程序访问,则可以更完整地使用API​​(例如,通过XML指定您的问题并根据该问题创建HIT):

http://www.codeplex.com/MTurkDotNet (.NET SDK) http://www.codeplex.com/MTurkDotNet(.NET SDK)

The API is pretty easy to use, and there several code samples. 该API非常易于使用,并且有几个代码示例。

Alternatively, you can use the "External Question" question type which may be better suited -- you can host the entire question form yourself. 或者,您可以使用更适合的“外部问题”问题类型-您可以自己托管整个问题表。

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

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