Skip to content

News Events

oana-inel edited this page Nov 2, 2015 · 2 revisions

In this template the goal is to judge whether a highlighted word phrase expresses an event in a sentence.

Annotation setting

The workers are given a sentence with one putative event highlighted (capitalized), that was previously extracted. First, they are asked to judge whether the capitalized word phrase refers to an event, an action or none of them and motivate the answer. The second step applies only when the worker considers the capitalized word phrase an event/action. Then, they are asked to choose from a list of event types (Purpose, Arriving_or_Departing, Motion, Communication, Usage, Judgment, Leadership, Success_or_failure, Sending_or_receiving, Action, Attack, Political, Other, Not_applicable) each type that could be applied on the event.

Result vector

The crowd answers are stored in a vector, which captures each selection of the crowd as following: [EvT1, EvT2, EvT3, EvT4, EvT5, EvT6, EvT7, EvT8, EvT9, EvT10, EvT11, EvT12, OTHER, NOT_APPLICABLE]

Possible adaptations of this template

This template could be executed in 2 versions: (1) with verification/explanation question, (2) without verification/explanation question

Screenshot

Code

<p>In the sentence</p>
<p><i>&#160;
{{sentence}}&#160;</i></p>
 
<p>does &#160;<i><strong>
{{event}}</strong></i>&#160; refer to an EVENT or an ACTION?</p>
<cml:radios label="1. Choose one option:" name="event_option" class="" validates="required">
  <cml:radio label="{{event}} refers to an EVENT in this sentence" name="event_option" value="event"/>
  <cml:radio label="{{event}} refers to an ACTION in this sentence" name="event_option" value="action"/>
  <cml:radio label="None of the above" name="event_option" value="no_event"/>
</cml:radios>

<cml:textarea label="2. Motivate your answer by explaining why do you think it does not refer to an event or an action." name="motivation_no_event" class="" only-if="event_option:[no_event]" validates="required" instructions="Do not copy &amp; paste words from the text above as an explanation. Answers such as, 'it is not an event', or 'it doesn't', etc. are not acceptable for Question 2"/>

<cml:textarea label="2. Motivate your answer by explaining why do you think it refers to an event or an action." name="motivation_yes_event" class="" only-if="event_option:[event]||event_option:[action]" validates="required" instructions="Do not copy &amp; paste words from the text above as an explanation. Answers such as, 'it is not an event', or 'it doesn't', etc. are not acceptable for Question 2"/>

<cml:checkboxes label="3. Select the type of the event" only-if="event_option:[event]||event_option:[action]" class="" validates="required"><cml:checkbox label="[PURPOSE]" value="[PURPOSE]"/><cml:checkbox label="[ARRIVING_OR_DEPARTING" value="[ARRIVING_OR_DEPARTING]"/><cml:checkbox label="[MOTION]" value="[MOTION]"/><cml:checkbox label="[COMMUNICATION]" value="[COMMUNICATION]"/><cml:checkbox label="[USAGE]" value="[USAGE]"/><cml:checkbox label="[JUDGMENT]" value="[JUDGMENT]"/><cml:checkbox label="[LEADERSHIP]" value="[LEADERSHIP]"/><cml:checkbox label="[SUCCESS_OR_FAILURE]" value="[SUCCESS_OR_FAILURE]"/><cml:checkbox label="[SENDING_OR_RECEIVING]" value="[SENDING_OR_RECEIVING]"/><cml:checkbox label="[POLITICAL]" value="[POLITICAL]"/><cml:checkbox label="[ACTION]" value="[ACTION]"/><cml:checkbox label="[ATTACK]" value="[ATTACK]"/><cml:checkbox label="[OTHER]" value="[OTHER]"/></cml:checkboxes>
<cml:text label="Selected type(s)" class="type" only-if="event_option:[event]||event_option:[action]" name="type" instructions="Here are the types that you selected." validates="required"/>
inputText = document.getElementsByClassName('type validates-required type validates');
inputElements = document.getElementsByTagName('input');

window.onload = function() {
  inputText[0].readOnly = true;
}

for(i=3; i<16; ++i) {
  inputElements[i].onclick=function() {
    if(this.checked) {
      inputText[0].value += this.value + " ";
    }
    else {
      newValue = inputText[0].value.replace(this.value + " ", "");
      inputText[0].value = newValue;
      newValue = "";
    }
  }
}
Clone this wiki locally