Datasets:
Tasks:
Question Answering
Modalities:
Text
Formats:
parquet
Languages:
English
Size:
10K - 100K
License:
Recreated dataset using pyarrow to avoid polars type conversion problems
Browse files- README.md +5 -3
- animals/data.parquet +0 -0
- brain-teasers/data.parquet +0 -0
- celebrities/data.parquet +0 -0
- entertainment/data.parquet +0 -0
- for-kids/data.parquet +0 -0
- general/data.parquet +0 -0
- geography/data.parquet +0 -0
- history/data.parquet +0 -0
- hobbies/data.parquet +0 -0
- humanities/data.parquet +0 -0
- literature/data.parquet +0 -0
- movies/data.parquet +0 -0
- music/data.parquet +0 -0
- newest/data.parquet +0 -0
- people/data.parquet +0 -0
- rated/data.parquet +0 -0
- religion-faith/data.parquet +0 -0
- science-technology/data.parquet +0 -0
- sports/data.parquet +0 -0
- television/data.parquet +0 -0
- video-games/data.parquet +0 -0
- world/data.parquet +0 -0
README.md
CHANGED
@@ -14,7 +14,9 @@ Unofficial port of https://github.com/uberspot/OpenTriviaQA
|
|
14 |
Code to reproduce the dataset:
|
15 |
```
|
16 |
import os
|
17 |
-
import
|
|
|
|
|
18 |
|
19 |
source_dir = "OpenTriviaQA/categories"
|
20 |
topics = sorted(os.listdir(source_dir))
|
@@ -50,8 +52,8 @@ for topic in topics:
|
|
50 |
questions = [process_question(x, topic, i) for (i, x) in enumerate(questions)]
|
51 |
questions = [x for x in questions if x]
|
52 |
|
53 |
-
data =
|
54 |
|
55 |
os.makedirs(os.path.join(target_dir, topic), exist_ok=True)
|
56 |
-
|
57 |
```
|
|
|
14 |
Code to reproduce the dataset:
|
15 |
```
|
16 |
import os
|
17 |
+
import pandas as pd
|
18 |
+
import pyarrow as pa
|
19 |
+
import pyarrow.parquet as pq
|
20 |
|
21 |
source_dir = "OpenTriviaQA/categories"
|
22 |
topics = sorted(os.listdir(source_dir))
|
|
|
52 |
questions = [process_question(x, topic, i) for (i, x) in enumerate(questions)]
|
53 |
questions = [x for x in questions if x]
|
54 |
|
55 |
+
data = pa.Table.from_pandas(pd.DataFrame(questions))
|
56 |
|
57 |
os.makedirs(os.path.join(target_dir, topic), exist_ok=True)
|
58 |
+
pq.write_table(data, os.path.join(target_dir, topic, "data.parquet"))
|
59 |
```
|
animals/data.parquet
CHANGED
Binary files a/animals/data.parquet and b/animals/data.parquet differ
|
|
brain-teasers/data.parquet
CHANGED
Binary files a/brain-teasers/data.parquet and b/brain-teasers/data.parquet differ
|
|
celebrities/data.parquet
CHANGED
Binary files a/celebrities/data.parquet and b/celebrities/data.parquet differ
|
|
entertainment/data.parquet
CHANGED
Binary files a/entertainment/data.parquet and b/entertainment/data.parquet differ
|
|
for-kids/data.parquet
CHANGED
Binary files a/for-kids/data.parquet and b/for-kids/data.parquet differ
|
|
general/data.parquet
CHANGED
Binary files a/general/data.parquet and b/general/data.parquet differ
|
|
geography/data.parquet
CHANGED
Binary files a/geography/data.parquet and b/geography/data.parquet differ
|
|
history/data.parquet
CHANGED
Binary files a/history/data.parquet and b/history/data.parquet differ
|
|
hobbies/data.parquet
CHANGED
Binary files a/hobbies/data.parquet and b/hobbies/data.parquet differ
|
|
humanities/data.parquet
CHANGED
Binary files a/humanities/data.parquet and b/humanities/data.parquet differ
|
|
literature/data.parquet
CHANGED
Binary files a/literature/data.parquet and b/literature/data.parquet differ
|
|
movies/data.parquet
CHANGED
Binary files a/movies/data.parquet and b/movies/data.parquet differ
|
|
music/data.parquet
CHANGED
Binary files a/music/data.parquet and b/music/data.parquet differ
|
|
newest/data.parquet
CHANGED
Binary files a/newest/data.parquet and b/newest/data.parquet differ
|
|
people/data.parquet
CHANGED
Binary files a/people/data.parquet and b/people/data.parquet differ
|
|
rated/data.parquet
CHANGED
Binary files a/rated/data.parquet and b/rated/data.parquet differ
|
|
religion-faith/data.parquet
CHANGED
Binary files a/religion-faith/data.parquet and b/religion-faith/data.parquet differ
|
|
science-technology/data.parquet
CHANGED
Binary files a/science-technology/data.parquet and b/science-technology/data.parquet differ
|
|
sports/data.parquet
CHANGED
Binary files a/sports/data.parquet and b/sports/data.parquet differ
|
|
television/data.parquet
CHANGED
Binary files a/television/data.parquet and b/television/data.parquet differ
|
|
video-games/data.parquet
CHANGED
Binary files a/video-games/data.parquet and b/video-games/data.parquet differ
|
|
world/data.parquet
CHANGED
Binary files a/world/data.parquet and b/world/data.parquet differ
|
|