我的MTurk答案选择具有以下XML:
<AnswerSpecification>
<SelectionAnswer>
<StyleSuggestion>radiobutton</StyleSuggestion>
<Selections>
<Selection>
<SelectionIdentifier>0</SelectionIdentifier>
<Text>No URL exists</Text>
</Selection>
<Selection>
<SelectionIdentifier>1</SelectionIdentifier>
<Text>http://www.imdb.com/name/nm2271332/</Text>
</Selection>
<Selection>
<SelectionIdentifier>2</SelectionIdentifier>
<Text>http://www.imdb.com/title/tt0460987/</Text>
</Selection>
<Selection>
<SelectionIdentifier>3</SelectionIdentifier>
<Text>http://www.imdb.com/title/tt1450653/</Text>
</Selection>
<Selection>
<SelectionIdentifier>4</SelectionIdentifier>
<Text>http://www.imdb.com/title/tt1438289/</Text>
</Selection>
</Selections>
</SelectionAnswer>
</AnswerSpecification>
但是,每当用户单击其中一个链接时,它就会脱离测试并转到该链接。有没有办法target="_blank"
在MTurk的Selection中添加类似内容?
这是在您的任务中使用FormattedContent的示例:
<Selection>
<SelectionIdentifier>1</SelectionIdentifier>
<FormattedContent><![CDATA[<a href="http://www.imdb.com/name/nm2271332/" target="_blank">http://www.imdb.com/name/nm2271332/</a>]]></FormattedContent>
</Selection>
您可以在此处获得有关QuestionForm数据结构的更多详细信息,包括有用的示例:http : //docs.aws.amazon.com/AWSMechTurk/latest/AWSMturkAPI/ApiReference_QuestionFormDataStructureArticle.html
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句