Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
307 views
in Technique[技术] by (71.8m points)

mechanicalturk - Is it possible to use <crowd-classifier-multi-select> and <crowd-input> in the same task?

In the following I'm trying to put a simple input line at the end using . Putting the line inside the block makes it not show up and putting it just outside like in the below code makes it come after the "Submit" button.

<!-<!-- 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>
question from:https://stackoverflow.com/questions/65838339/is-it-possible-to-use-crowd-classifier-multi-select-and-crowd-input-in-the-s

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.9k users

...