خرید بک لینک

Vote count: 0

In the past, I have created my HITs for Mechanical Turk using the cmd line tool. Here is the command I have used in the past to create my HITs. I am now trying to write a script which will do this automatically using Python and Boto.

./loadHITs.sh -input /Users/xyz/mturk/1/input.test.csv -question /Users/xyz/mturk/1/question.xml -properties /Users/xyz/mturk/1/project.properties -sandbox

I have read over the Boto api docs, but am confused how I load in a question from xml file. I assume I can use something along the lines of

boto.mturk.question.HTMLQuestion(html_form, frame_height)

but there is no description of what exactly the parameters are supposed to contain. For instance, what exactly is html_form supposed to be, HTML code as raw text? Even then, I don't see anything for constructing a question from an XML file which is the way I have been doing it in the command line tools. I have read almost all somewhat related posts, but can't find an example anywhere of someone using boto to create a question/HIT from an XML file.

asked 9 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 29 تير 1395 ساعت: 4:44

صفحه بندی