Skip to content

Commit 816a2b8

Browse files
TensorFlow Datasets Teamcopybara-github
authored andcommitted
Add TriviaQA.
PiperOrigin-RevId: 257013888
1 parent 64bbcef commit 816a2b8

File tree

9 files changed

+770
-0
lines changed

9 files changed

+770
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Asmara International Airport profile - Aviation Safety Network
2+
Asmara International Airport profile
3+
Eritrea IATA code:ASM ICAO code: HAAY Elevation: 7661 feet / 2335 m Notams: Notams for HAAY Airport history:  
4+
Asmara International Airport
5+
ER-AXD Pecotox Air 0 Asmara Inter...
6+
A1
7+
7O-ACW Yemenia Airways 0 Asmara Inter...
8+
A1
9+
UR-UCI Ukrainian Cargo Airways, opf. Air Sofia 10 near Asmara-Yohan...
10+
A1
11+
5Y-BMW Aero Zambia 0 Asmara Inter...
12+
O1
13+
  Sudan Airways 0 Asmara Inter...
14+
  H2
15+
  Saudi Arabian 0 Asmara Inter...
16+
  H2
17+
ET-AJZ Ethiopian Airlines 0 Asmara Inter...
18+
O1
19+
  Ethiopian AF 54 near Asmara Inter...
20+
  A1
21+
ET-AAZ Ethiopian Airlines 0 Asmara Inter...
22+
  A1
23+
ET-AAY Ethiopian Airlines 0 Asmara Inter...
24+
  A1
25+
NC1241N United States Air Force - USAF, opf. Pan Am 0 Asmara Inter...
26+
  A1
27+
F-BAML Minist�re de l'Air, DTI Asmara Inter...
28+
  A1
29+
Aircraft that departed Asmara International Airport
30+
7 occurrences in the ASN safety database
31+
date

tensorflow_datasets/testing/test_data/fake_examples/trivia_qa/evidence/wikipedia/England.txt

Lines changed: 332 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"Data": [
3+
{
4+
"EntityPages": [
5+
{
6+
"DocSource": "TagMe",
7+
"Filename": "England.txt",
8+
"Title": "England"
9+
}
10+
],
11+
"Question": "Asmara international airport is in which country?",
12+
"QuestionId": "tc_7",
13+
"QuestionSource": "http://www.triviacountry.com/",
14+
"SearchResults": [
15+
{
16+
"Description": "Asmara International Airport (ASM/HAAY) safety profile including a list of aircraft accidents at or near the airport.",
17+
"Filename": "157/157_2866330.txt",
18+
"Rank": 0,
19+
"Title": "Asmara International Airport profile - Aviation Safety Network",
20+
"Url": "http://aviation-safety.net/database/airport/airport.php?id=ASM"
21+
}
22+
]
23+
}
24+
]
25+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"Data": [
3+
{
4+
"Answer": {
5+
"Aliases": [
6+
"(Harry) Sinclair Lewis",
7+
"Harry Sinclair Lewis",
8+
"Lewis, (Harry) Sinclair",
9+
"Grace Hegger",
10+
"Sinclair Lewis"
11+
],
12+
"MatchedWikiEntityName": "Sinclair Lewis",
13+
"NormalizedAliases": [
14+
"grace hegger",
15+
"lewis harry sinclair",
16+
"harry sinclair lewis",
17+
"sinclair lewis"
18+
],
19+
"NormalizedMatchedWikiEntityName": "sinclair lewis",
20+
"NormalizedValue": "sinclair lewis",
21+
"Type": "WikipediaEntity",
22+
"Value": "Sinclair Lewis"
23+
},
24+
"EntityPages": [],
25+
"Question": "Which American-born Sinclair won the Nobel Prize for Literature in 1930?",
26+
"QuestionId": "tc_1",
27+
"QuestionSource": "http://www.triviacountry.com/",
28+
"SearchResults": [
29+
{
30+
"Description": "The Nobel Prize in Literature 1930 Sinclair ... The Nobel Prize in Literature 1930 was awarded to ... nobelprize.org/nobel_prizes/literature/laureates/1930/>",
31+
"Filename": "157/157_2866330.txt",
32+
"Rank": 0,
33+
"Title": "The Nobel Prize in Literature 1930",
34+
"Url": "http://www.nobelprize.org/nobel_prizes/literature/laureates/1930/"
35+
}
36+
]
37+
}
38+
]
39+
}

tensorflow_datasets/text/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@
2727
from tensorflow_datasets.text.snli import Snli
2828
from tensorflow_datasets.text.squad import Squad
2929
from tensorflow_datasets.text.super_glue import SuperGlue
30+
from tensorflow_datasets.text.trivia_qa import TriviaQA
3031
from tensorflow_datasets.text.wikipedia import Wikipedia
3132
from tensorflow_datasets.text.xnli import Xnli

0 commit comments

Comments
 (0)