From e9decf4e0e5bec237696f64010d8c3051a0ded1a Mon Sep 17 00:00:00 2001
From: Charles Connell Go to the page at KarmaNotes.org by clicking the link provided below. ' \
- 'Identify 10 key words (or short phrases) that are the most important to the document ' \
- 'on the page. This requires reading and understanding the document. Write these words in the boxes below. ' \
- 'Then, write definitions or descriptions of these keywords as they are provided in the page. ' \
- 'If the page does not provide a definition or description, leave the box blank. ' \
- 'For example, keywords might be "John Locke," "the Protestant reformation," ' \
- 'or "existentialism." Their respective definitions or descriptions might be "life, ' \
- 'liberty, and property," "schism in Christianity started by Martin Luther," and ' \
- '"existence precedes essence." KarmaNotes.org is a non-profit organization dedicated to free and open education. ' \
+ 'We need your help to identify keywords and definitions in college student lecture notes. ' \
+ 'Here is one example from an American History course: Constitutional Amendment — The process whereby the US ' \
+ 'Constitution may be altered by a two-thirds vote of the Senate and House of ' \
+ 'Representatives or a vote by at least two-thirds of the states. In the notes below, please find keywords and definitions like the example above. Notes link: ' \
- 'http://{domain}{link}
In these notes, please find key words and definitions within these student notes. ' \ + 'With your help, we will generate free and open flashcards and quizzes to help ' \ + 'students study. Together we can open education, one lecture at a time.
' HIT_KEYWORDS = 'writing, summary, keywords' HIT_DURATION = 60 * 60 * 24 * 7 HIT_REWARD = 0.92 @@ -77,6 +78,11 @@ def submit_extract_keywords_hit(note): connection = MTurkConnection(settings.AWS_ACCESS_KEY_ID, settings.AWS_SECRET_ACCESS_KEY, host=MTURK_HOST) + if note.course.school: + title = HIT_TITLE_TEMPLATE.format(course=note.course.name, school=note.course.school.name) + else: + title = HIT_TITLE_TEMPLATE.format(course=note.course.name, school=note.course.department.school.name) + overview = Overview() overview.append(FormattedContent(HIT_OVERVIEW_TEMPLATE.format(domain=Site.objects.get_current(), link=note.get_absolute_url()))) @@ -108,7 +114,7 @@ def submit_extract_keywords_hit(note): question_form.append(definition_question) connection.create_hit(questions=question_form, max_assignments=1, - title=HIT_TITLE, description=HIT_DESCRIPTION, + title=title, description=HIT_DESCRIPTION, keywords=HIT_KEYWORDS, duration=HIT_DURATION, reward=HIT_REWARD, qualifications=HIT_QUALIFICATION, annotation=str(note.id)) -- 2.25.1