我正在使用MTURKS创建以下调查问题:
<?xml version="1.0" encoding="UTF-8"?>
<QuestionForm xmlns="http://mechanicalturk.amazonaws.com/AWSMechanicalTurkDataSchemas/2005-10-01/QuestionForm.xsd">
<Question>
<QuestionIdentifier>1</QuestionIdentifier>
<QuestionContent>
<Text>${question}</Text>
</QuestionContent>
<AnswerSpecification>
<SelectionAnswer>
<MinSelectionCount>1</MinSelectionCount>
<MaxSelectionCount>1</MaxSelectionCount>
<StyleSuggestion>radiobutton</StyleSuggestion>
<Selections>
<Selection>
<SelectionIdentifier>${choice2}</SelectionIdentifier>
<Text>Subject 1: Math</Text>
</Selection>
<Selection>
<SelectionIdentifier>${choice1}</SelectionIdentifier>
<Text>Subject 2: Science</Text>
</Selection>
<Selection>
<SelectionIdentifier>Alt1</SelectionIdentifier>
<Text>Alt1</Text>
</Selection>
<Selection>
<SelectionIdentifier>noneoftheabove</SelectionIdentifier>
<Text>Subject 3: PE</Text>
</Selection>
</Selections>
</SelectionAnswer>
</AnswerSpecification>
</Question>
</QuestionForm>
理想情况下,我希望这样格式化,因此它看起来像一个单独的问题,答案中的文字是粗体(例如,在每个答案中加粗单词主题)。我还想在答案选项2和3之间添加文本,以便用户看到以下内容: $问题
学术科目
主题1:数学
主题2:科学
其他科目
当我尝试在提示中下一次格式化异议时,使用以下代码:
<Text><b>Subject 2:</b> Science</Text>
我收到错误消息:
[ERROR] Error creating HIT 1 (B: x0): [-1,-1] cvc-type.3.1.2: Element 'Text' is a simple type, so it must have no element information item [children].
我尝试时也会得到同样的错误(如上所示):
</Selection>
<Selection>
<SelectionIdentifier>${choice1}</SelectionIdentifier>
<Text>Subject 2: Science</Text>
</Selection>
<text>Academic Subjects</text>
<Selection>
<SelectionIdentifier>Alt1</SelectionIdentifier>
为了在项目回复之间散布文本。
答案 0 :(得分:0)
您可以使用此示例中的<FormattedContent>
标记:
<Selection>
<SelectionIdentifier>${choice1}</SelectionIdentifier>
<FormattedContent><![CDATA[
<b>Subject 2:</b> Science
]]></FormattedContent>
</Selection>
您可以在AWS Turk网站上详细了解<FormattedContent>
代码here。