TriviaQA - Reading Comprehension
Trivia question answering with evidence passages, based on the TriviaQA dataset (Joshi et al., ACL 2017). Annotators answer trivia questions using provided evidence documents and assess whether the context is sufficient.
ملف الإعدادconfig.yaml
# TriviaQA - Reading Comprehension
# Based on Joshi et al., ACL 2017
# Paper: https://aclanthology.org/P17-1147/
# Dataset: http://nlp.cs.washington.edu/triviaqa/
#
# This task presents a trivia question along with an evidence passage.
# Annotators provide the answer and assess whether the answer can be
# determined from the context or requires external knowledge.
#
# Answerability Categories:
# - Answerable from Context: The evidence passage contains the answer
# - Requires External Knowledge: The passage alone is insufficient
# - Ambiguous: The passage may partially support multiple answers
#
# Annotation Guidelines:
# 1. Read the trivia question
# 2. Read the evidence passage carefully
# 3. Try to answer the question based on the passage
# 4. Type your answer in the text field
# 5. Classify how answerable the question is from the context
annotation_task_name: "TriviaQA - Reading Comprehension"
task_dir: "."
data_files:
- sample-data.json
item_properties:
id_key: "id"
text_key: "text"
output_annotation_dir: "annotation_output/"
output_annotation_format: "json"
port: 8000
server_name: localhost
annotation_schemes:
# Step 1: Provide the answer
- annotation_type: text
name: answer
description: "Type the answer to the trivia question"
# Step 2: Assess answerability from context
- annotation_type: radio
name: answerability
description: "Can the question be answered from the provided evidence passage?"
labels:
- "Answerable from Context"
- "Requires External Knowledge"
- "Ambiguous"
keyboard_shortcuts:
"Answerable from Context": "1"
"Requires External Knowledge": "2"
"Ambiguous": "3"
tooltips:
"Answerable from Context": "The evidence passage clearly contains the answer to the question"
"Requires External Knowledge": "The passage does not contain enough information; external knowledge is needed"
"Ambiguous": "The passage provides partial evidence but the answer is not definitively clear"
annotation_instructions: |
You will be shown a trivia question and an evidence passage. Your task is to:
1. Read the trivia question.
2. Read the evidence passage carefully.
3. Type your best answer to the question.
4. Indicate whether the question is answerable from the passage alone,
requires external knowledge, or is ambiguous.
Try to answer using the passage first. If the passage does not contain the answer,
you may use your own knowledge but mark it as "Requires External Knowledge."
html_layout: |
<div style="padding: 15px; max-width: 800px; margin: auto;">
<div style="background: #fefce8; border: 1px solid #fde68a; border-radius: 8px; padding: 16px; margin-bottom: 16px;">
<strong style="color: #a16207; font-size: 18px;">Trivia Question:</strong>
<p style="font-size: 17px; line-height: 1.6; margin: 8px 0 0 0; font-weight: 500;">{{question}}</p>
</div>
<div style="background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 8px; padding: 16px; margin-bottom: 16px;">
<strong style="color: #0369a1;">Evidence Passage:</strong>
<p style="font-size: 16px; line-height: 1.7; margin: 8px 0 0 0;">{{text}}</p>
</div>
</div>
allow_all_users: true
instances_per_annotator: 50
annotation_per_instance: 2
allow_skip: true
skip_reason_required: false
بيانات نموذجيةsample-data.json
[
{
"id": "triviaqa_001",
"text": "The Great Barrier Reef is the world's largest coral reef system, composed of over 2,900 individual reefs and 900 islands stretching for over 2,300 kilometres. It is located in the Coral Sea, off the coast of Queensland, Australia. The reef was selected as a World Heritage Site in 1981.",
"question": "In which country is the Great Barrier Reef located?"
},
{
"id": "triviaqa_002",
"text": "Ludwig van Beethoven was a German composer and pianist who was a crucial figure in the transition between the Classical and Romantic eras. His best-known compositions include nine symphonies, five piano concertos, and numerous chamber music pieces. Despite losing his hearing later in life, he continued to compose some of his most admired works.",
"question": "How many symphonies did Beethoven compose?"
}
]
// ... and 8 more itemsاحصل على هذا التصميم
Clone or download from the repository
بدء سريع:
git clone https://github.com/davidjurgens/potato-showcase.git cd potato-showcase/text/question-answering/triviaqa-reading-comprehension potato start config.yaml
التفاصيل
أنواع التوسيم
المجال
حالات الاستخدام
الوسوم
وجدت مشكلة أو تريد تحسين هذا التصميم؟
افتح مشكلةتصاميم ذات صلة
BRAINTEASER - Commonsense-Defying QA
Lateral thinking and commonsense-defying question answering task requiring annotators to select answers to brain teasers that defy default commonsense assumptions and provide explanations. Based on SemEval-2024 Task 9 (BRAINTEASER).
Math Question Answering and Category Classification
Mathematical question answering with category classification, covering algebra, geometry, number theory, and statistics. Based on SemEval-2019 Task 10 (Math QA).
Natural Questions - Open-Domain Question Answering
Open-domain question answering over Wikipedia passages, based on Google's Natural Questions dataset (Kwiatkowski et al., TACL 2019). Annotators identify both short and long answer spans and determine answerability.