微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

是否可以在同一任务中使用 <crowd-classifier-multi-select> 和 <crowd-input> ?

如何解决是否可以在同一任务中使用 <crowd-classifier-multi-select> 和 <crowd-input> ?

在下面,我尝试使用 .将该行放在块内使其不显示,并将其放在外面,就像下面的代码一样,使它位于“提交”按钮之后。

<!-<!-- You must include this JavaScript file -->
<script src="https://assets.crowd.aws/crowd-html-elements.js"></script>

<!-- For the full list of available Crowd HTML Elements and their input/output documentation,please refer to https://docs.aws.amazon.com/sagemaker/latest/dg/sms-ui-template-reference.html -->

<!-- You must include crowd-form so that your task submits answers to MTurk -->
<crowd-form answer-format="flatten-objects">
    <!-- The crowd-classifier element will create a tool for the Worker to select the
           correct answer to your question -->
    <crowd-classifier-multi-select
      name="category"
      categories="['Positive','Negative','Neutral']"
      header="Select the relevant categories"
      exclusion-category="{ text: 'None of the above' }"
    >
        <!-- The text you want classified will be substituted for the "text" variable when
               you publish a batch with a CSV input file containing multiple text items  -->
        <classification-target> ${text} </classification-target>
        
            
        <!-- Use the short-instructions section for quick instructions that the Worker
              will see while working on the task. Including some basic examples of 
              good and bad answers here can help get good results. You can include 
              any HTML here. -->
        <short-instructions>
            <p> Please evaluate the possible feelings one might have after reading the content. 
            When considering the emotional responses,please consider not just your specific affective 
            response,but the set of affective responses that the population in general 
            might have towards the text. The list of affective responses include several 
            non-standard “emotions” so please review the entire list before proceeding.</p>
        </short-instructions>

        <!-- Use the full-instructions section for more detailed instructions that the 
              Worker can open while working on the task. Including more detailed 
              instructions and additional examples of good and bad answers here can
              help get good results. You can include any HTML here. -->
        <full-instructions header="Emotion Detection Instructions">
            <p>Select the <strong>primary</strong> emotion that's expressed in the audio clip.</p>
            <p>
              If there are multiple emotions expressed,use your judgement and 
              choose the one that's is the strongest of the emotions.
            </p>
        </full-instructions>
        
    </crowd-classifier-multi-select>

    <p>Include the http:// prefix from the website</p>
    <crowd-input name="website" placeholder="http://example.com" required></crowd-input>
</crowd-form>

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。