Datasets:
Tasks:
Text2Text Generation
Modalities:
Text
Formats:
parquet
Languages:
English
Size:
10K - 100K
ArXiv:
License:
Commit
•
1a72533
1
Parent(s):
a7d7a6b
Removed last {sep_token} to match https://arxiv.org/pdf/2005.01107v1.pdf
Browse files
Squad_V1_Question_Generation.ipynb
CHANGED
@@ -54,31 +54,31 @@
|
|
54 |
"text": [
|
55 |
"Requirement already satisfied: datasets in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (2.9.0)\n",
|
56 |
"Requirement already satisfied: huggingface_hub in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (0.12.0)\n",
|
|
|
|
|
|
|
57 |
"Requirement already satisfied: dill<0.3.7 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (0.3.6)\n",
|
|
|
|
|
|
|
|
|
|
|
58 |
"Requirement already satisfied: multiprocess in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (0.70.14)\n",
|
59 |
-
"Requirement already satisfied: pyyaml>=5.1 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (6.0)\n",
|
60 |
"Requirement already satisfied: numpy>=1.17 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (1.24.1)\n",
|
61 |
-
"Requirement already satisfied:
|
62 |
-
"Requirement already satisfied: packaging in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (23.0)\n",
|
63 |
-
"Requirement already satisfied: tqdm>=4.62.1 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (4.64.1)\n",
|
64 |
"Requirement already satisfied: pyarrow>=6.0.0 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (11.0.0)\n",
|
65 |
-
"Requirement already satisfied: requests>=2.19.0 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (2.28.2)\n",
|
66 |
-
"Requirement already satisfied: aiohttp in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (3.8.3)\n",
|
67 |
-
"Requirement already satisfied: fsspec[http]>=2021.11.1 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (2023.1.0)\n",
|
68 |
-
"Requirement already satisfied: xxhash in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (3.2.0)\n",
|
69 |
-
"Requirement already satisfied: pandas in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (1.5.3)\n",
|
70 |
"Requirement already satisfied: typing-extensions>=3.7.4.3 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from huggingface_hub) (4.4.0)\n",
|
71 |
"Requirement already satisfied: filelock in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from huggingface_hub) (3.9.0)\n",
|
72 |
-
"Requirement already satisfied: yarl<2.0,>=1.0 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from aiohttp->datasets) (1.8.2)\n",
|
73 |
-
"Requirement already satisfied: frozenlist>=1.1.1 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from aiohttp->datasets) (1.3.3)\n",
|
74 |
"Requirement already satisfied: multidict<7.0,>=4.5 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from aiohttp->datasets) (6.0.4)\n",
|
75 |
-
"Requirement already satisfied:
|
|
|
76 |
"Requirement already satisfied: aiosignal>=1.1.2 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from aiohttp->datasets) (1.3.1)\n",
|
77 |
"Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from aiohttp->datasets) (2.1.1)\n",
|
78 |
"Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from aiohttp->datasets) (4.0.2)\n",
|
79 |
-
"Requirement already satisfied:
|
80 |
"Requirement already satisfied: idna<4,>=2.5 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from requests>=2.19.0->datasets) (3.4)\n",
|
81 |
"Requirement already satisfied: certifi>=2017.4.17 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from requests>=2.19.0->datasets) (2022.12.7)\n",
|
|
|
82 |
"Requirement already satisfied: pytz>=2020.1 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from pandas->datasets) (2022.7.1)\n",
|
83 |
"Requirement already satisfied: python-dateutil>=2.8.1 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from pandas->datasets) (2.8.2)\n",
|
84 |
"Requirement already satisfied: six>=1.5 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from python-dateutil>=2.8.1->pandas->datasets) (1.16.0)\n",
|
@@ -267,13 +267,13 @@
|
|
267 |
"name": "stdout",
|
268 |
"output_type": "stream",
|
269 |
"text": [
|
270 |
-
"Downloading and preparing dataset squad_modified_for_t5_qg/plain_text to /Users/derekthomas/.cache/huggingface/datasets/squad_modified_for_t5_qg/plain_text/2.9.0/
|
271 |
]
|
272 |
},
|
273 |
{
|
274 |
"data": {
|
275 |
"application/vnd.jupyter.widget-view+json": {
|
276 |
-
"model_id": "
|
277 |
"version_major": 2,
|
278 |
"version_minor": 0
|
279 |
},
|
@@ -287,7 +287,7 @@
|
|
287 |
{
|
288 |
"data": {
|
289 |
"application/vnd.jupyter.widget-view+json": {
|
290 |
-
"model_id": "
|
291 |
"version_major": 2,
|
292 |
"version_minor": 0
|
293 |
},
|
@@ -301,7 +301,7 @@
|
|
301 |
{
|
302 |
"data": {
|
303 |
"application/vnd.jupyter.widget-view+json": {
|
304 |
-
"model_id": "
|
305 |
"version_major": 2,
|
306 |
"version_minor": 0
|
307 |
},
|
@@ -315,7 +315,7 @@
|
|
315 |
{
|
316 |
"data": {
|
317 |
"application/vnd.jupyter.widget-view+json": {
|
318 |
-
"model_id": "
|
319 |
"version_major": 2,
|
320 |
"version_minor": 0
|
321 |
},
|
@@ -330,13 +330,13 @@
|
|
330 |
"name": "stdout",
|
331 |
"output_type": "stream",
|
332 |
"text": [
|
333 |
-
"Dataset squad_modified_for_t5_qg downloaded and prepared to /Users/derekthomas/.cache/huggingface/datasets/squad_modified_for_t5_qg/plain_text/2.9.0/
|
334 |
]
|
335 |
},
|
336 |
{
|
337 |
"data": {
|
338 |
"application/vnd.jupyter.widget-view+json": {
|
339 |
-
"model_id": "
|
340 |
"version_major": 2,
|
341 |
"version_minor": 0
|
342 |
},
|
@@ -404,7 +404,7 @@
|
|
404 |
{
|
405 |
"data": {
|
406 |
"text/plain": [
|
407 |
-
"'To whom did the Virgin Mary allegedly appear in 1858 in Lourdes France? {sep_token} What is in front of the Notre Dame Main Building? {sep_token} The Basilica of the Sacred heart at Notre Dame is beside to which structure? {sep_token} What is the Grotto at Notre Dame? {sep_token} What sits on top of the Main Building at Notre Dame?
|
408 |
]
|
409 |
},
|
410 |
"execution_count": 7,
|
@@ -441,7 +441,7 @@
|
|
441 |
{
|
442 |
"data": {
|
443 |
"application/vnd.jupyter.widget-view+json": {
|
444 |
-
"model_id": "
|
445 |
"version_major": 2,
|
446 |
"version_minor": 0
|
447 |
},
|
@@ -455,7 +455,7 @@
|
|
455 |
{
|
456 |
"data": {
|
457 |
"application/vnd.jupyter.widget-view+json": {
|
458 |
-
"model_id": "
|
459 |
"version_major": 2,
|
460 |
"version_minor": 0
|
461 |
},
|
@@ -469,7 +469,7 @@
|
|
469 |
{
|
470 |
"data": {
|
471 |
"application/vnd.jupyter.widget-view+json": {
|
472 |
-
"model_id": "
|
473 |
"version_major": 2,
|
474 |
"version_minor": 0
|
475 |
},
|
@@ -483,7 +483,7 @@
|
|
483 |
{
|
484 |
"data": {
|
485 |
"application/vnd.jupyter.widget-view+json": {
|
486 |
-
"model_id": "
|
487 |
"version_major": 2,
|
488 |
"version_minor": 0
|
489 |
},
|
@@ -504,7 +504,7 @@
|
|
504 |
{
|
505 |
"data": {
|
506 |
"application/vnd.jupyter.widget-view+json": {
|
507 |
-
"model_id": "
|
508 |
"version_major": 2,
|
509 |
"version_minor": 0
|
510 |
},
|
@@ -518,7 +518,7 @@
|
|
518 |
{
|
519 |
"data": {
|
520 |
"application/vnd.jupyter.widget-view+json": {
|
521 |
-
"model_id": "
|
522 |
"version_major": 2,
|
523 |
"version_minor": 0
|
524 |
},
|
@@ -532,7 +532,7 @@
|
|
532 |
{
|
533 |
"data": {
|
534 |
"application/vnd.jupyter.widget-view+json": {
|
535 |
-
"model_id": "
|
536 |
"version_major": 2,
|
537 |
"version_minor": 0
|
538 |
},
|
@@ -546,7 +546,7 @@
|
|
546 |
{
|
547 |
"data": {
|
548 |
"application/vnd.jupyter.widget-view+json": {
|
549 |
-
"model_id": "
|
550 |
"version_major": 2,
|
551 |
"version_minor": 0
|
552 |
},
|
@@ -556,20 +556,6 @@
|
|
556 |
},
|
557 |
"metadata": {},
|
558 |
"output_type": "display_data"
|
559 |
-
},
|
560 |
-
{
|
561 |
-
"data": {
|
562 |
-
"application/vnd.jupyter.widget-view+json": {
|
563 |
-
"model_id": "d25a0f67e254436c98e67e1c1bc62a73",
|
564 |
-
"version_major": 2,
|
565 |
-
"version_minor": 0
|
566 |
-
},
|
567 |
-
"text/plain": [
|
568 |
-
"Downloading metadata: 0%| | 0.00/521 [00:00<?, ?B/s]"
|
569 |
-
]
|
570 |
-
},
|
571 |
-
"metadata": {},
|
572 |
-
"output_type": "display_data"
|
573 |
}
|
574 |
],
|
575 |
"source": [
|
|
|
54 |
"text": [
|
55 |
"Requirement already satisfied: datasets in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (2.9.0)\n",
|
56 |
"Requirement already satisfied: huggingface_hub in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (0.12.0)\n",
|
57 |
+
"Requirement already satisfied: requests>=2.19.0 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (2.28.2)\n",
|
58 |
+
"Requirement already satisfied: fsspec[http]>=2021.11.1 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (2023.1.0)\n",
|
59 |
+
"Requirement already satisfied: pandas in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (1.5.3)\n",
|
60 |
"Requirement already satisfied: dill<0.3.7 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (0.3.6)\n",
|
61 |
+
"Requirement already satisfied: tqdm>=4.62.1 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (4.64.1)\n",
|
62 |
+
"Requirement already satisfied: xxhash in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (3.2.0)\n",
|
63 |
+
"Requirement already satisfied: aiohttp in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (3.8.3)\n",
|
64 |
+
"Requirement already satisfied: packaging in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (23.0)\n",
|
65 |
+
"Requirement already satisfied: responses<0.19 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (0.18.0)\n",
|
66 |
"Requirement already satisfied: multiprocess in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (0.70.14)\n",
|
|
|
67 |
"Requirement already satisfied: numpy>=1.17 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (1.24.1)\n",
|
68 |
+
"Requirement already satisfied: pyyaml>=5.1 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (6.0)\n",
|
|
|
|
|
69 |
"Requirement already satisfied: pyarrow>=6.0.0 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from datasets) (11.0.0)\n",
|
|
|
|
|
|
|
|
|
|
|
70 |
"Requirement already satisfied: typing-extensions>=3.7.4.3 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from huggingface_hub) (4.4.0)\n",
|
71 |
"Requirement already satisfied: filelock in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from huggingface_hub) (3.9.0)\n",
|
|
|
|
|
72 |
"Requirement already satisfied: multidict<7.0,>=4.5 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from aiohttp->datasets) (6.0.4)\n",
|
73 |
+
"Requirement already satisfied: frozenlist>=1.1.1 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from aiohttp->datasets) (1.3.3)\n",
|
74 |
+
"Requirement already satisfied: yarl<2.0,>=1.0 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from aiohttp->datasets) (1.8.2)\n",
|
75 |
"Requirement already satisfied: aiosignal>=1.1.2 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from aiohttp->datasets) (1.3.1)\n",
|
76 |
"Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from aiohttp->datasets) (2.1.1)\n",
|
77 |
"Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from aiohttp->datasets) (4.0.2)\n",
|
78 |
+
"Requirement already satisfied: attrs>=17.3.0 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from aiohttp->datasets) (22.2.0)\n",
|
79 |
"Requirement already satisfied: idna<4,>=2.5 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from requests>=2.19.0->datasets) (3.4)\n",
|
80 |
"Requirement already satisfied: certifi>=2017.4.17 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from requests>=2.19.0->datasets) (2022.12.7)\n",
|
81 |
+
"Requirement already satisfied: urllib3<1.27,>=1.21.1 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from requests>=2.19.0->datasets) (1.26.14)\n",
|
82 |
"Requirement already satisfied: pytz>=2020.1 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from pandas->datasets) (2022.7.1)\n",
|
83 |
"Requirement already satisfied: python-dateutil>=2.8.1 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from pandas->datasets) (2.8.2)\n",
|
84 |
"Requirement already satisfied: six>=1.5 in /opt/homebrew/Caskroom/miniconda/base/envs/flan-t5-e2e-qg/lib/python3.10/site-packages (from python-dateutil>=2.8.1->pandas->datasets) (1.16.0)\n",
|
|
|
267 |
"name": "stdout",
|
268 |
"output_type": "stream",
|
269 |
"text": [
|
270 |
+
"Downloading and preparing dataset squad_modified_for_t5_qg/plain_text to /Users/derekthomas/.cache/huggingface/datasets/squad_modified_for_t5_qg/plain_text/2.9.0/70f06b349eda3bddc20fbc6b57adffc86378274de644934c3b138bd7887de4f0...\n"
|
271 |
]
|
272 |
},
|
273 |
{
|
274 |
"data": {
|
275 |
"application/vnd.jupyter.widget-view+json": {
|
276 |
+
"model_id": "8a4f1db5af8a4351b0627cbd6423f86f",
|
277 |
"version_major": 2,
|
278 |
"version_minor": 0
|
279 |
},
|
|
|
287 |
{
|
288 |
"data": {
|
289 |
"application/vnd.jupyter.widget-view+json": {
|
290 |
+
"model_id": "049d586bf61b4f238bce7181bd3ca0f6",
|
291 |
"version_major": 2,
|
292 |
"version_minor": 0
|
293 |
},
|
|
|
301 |
{
|
302 |
"data": {
|
303 |
"application/vnd.jupyter.widget-view+json": {
|
304 |
+
"model_id": "a26f36fd6e0042f88440a70b8e50d864",
|
305 |
"version_major": 2,
|
306 |
"version_minor": 0
|
307 |
},
|
|
|
315 |
{
|
316 |
"data": {
|
317 |
"application/vnd.jupyter.widget-view+json": {
|
318 |
+
"model_id": "b0c6a800cf5d4c4b908b4e16eea4e06e",
|
319 |
"version_major": 2,
|
320 |
"version_minor": 0
|
321 |
},
|
|
|
330 |
"name": "stdout",
|
331 |
"output_type": "stream",
|
332 |
"text": [
|
333 |
+
"Dataset squad_modified_for_t5_qg downloaded and prepared to /Users/derekthomas/.cache/huggingface/datasets/squad_modified_for_t5_qg/plain_text/2.9.0/70f06b349eda3bddc20fbc6b57adffc86378274de644934c3b138bd7887de4f0. Subsequent calls will reuse this data.\n"
|
334 |
]
|
335 |
},
|
336 |
{
|
337 |
"data": {
|
338 |
"application/vnd.jupyter.widget-view+json": {
|
339 |
+
"model_id": "8139a1328fa54061b6eaa28c2ce6b117",
|
340 |
"version_major": 2,
|
341 |
"version_minor": 0
|
342 |
},
|
|
|
404 |
{
|
405 |
"data": {
|
406 |
"text/plain": [
|
407 |
+
"'To whom did the Virgin Mary allegedly appear in 1858 in Lourdes France? {sep_token} What is in front of the Notre Dame Main Building? {sep_token} The Basilica of the Sacred heart at Notre Dame is beside to which structure? {sep_token} What is the Grotto at Notre Dame? {sep_token} What sits on top of the Main Building at Notre Dame?'"
|
408 |
]
|
409 |
},
|
410 |
"execution_count": 7,
|
|
|
441 |
{
|
442 |
"data": {
|
443 |
"application/vnd.jupyter.widget-view+json": {
|
444 |
+
"model_id": "7e7879ec3dbb4a4280880cc450ff0d7a",
|
445 |
"version_major": 2,
|
446 |
"version_minor": 0
|
447 |
},
|
|
|
455 |
{
|
456 |
"data": {
|
457 |
"application/vnd.jupyter.widget-view+json": {
|
458 |
+
"model_id": "8bc3a681a5074c239cb79867826e9558",
|
459 |
"version_major": 2,
|
460 |
"version_minor": 0
|
461 |
},
|
|
|
469 |
{
|
470 |
"data": {
|
471 |
"application/vnd.jupyter.widget-view+json": {
|
472 |
+
"model_id": "a16226ab038448d5b7e078692df5fdc9",
|
473 |
"version_major": 2,
|
474 |
"version_minor": 0
|
475 |
},
|
|
|
483 |
{
|
484 |
"data": {
|
485 |
"application/vnd.jupyter.widget-view+json": {
|
486 |
+
"model_id": "d99b4e2b665a41dfb5753e8300d2057f",
|
487 |
"version_major": 2,
|
488 |
"version_minor": 0
|
489 |
},
|
|
|
504 |
{
|
505 |
"data": {
|
506 |
"application/vnd.jupyter.widget-view+json": {
|
507 |
+
"model_id": "9a647e2581fc4143bf0d21c7dbec09e3",
|
508 |
"version_major": 2,
|
509 |
"version_minor": 0
|
510 |
},
|
|
|
518 |
{
|
519 |
"data": {
|
520 |
"application/vnd.jupyter.widget-view+json": {
|
521 |
+
"model_id": "694e8be0497849c0946898feb7980d3b",
|
522 |
"version_major": 2,
|
523 |
"version_minor": 0
|
524 |
},
|
|
|
532 |
{
|
533 |
"data": {
|
534 |
"application/vnd.jupyter.widget-view+json": {
|
535 |
+
"model_id": "1170e991aa63464d8aaf65c23e91687e",
|
536 |
"version_major": 2,
|
537 |
"version_minor": 0
|
538 |
},
|
|
|
546 |
{
|
547 |
"data": {
|
548 |
"application/vnd.jupyter.widget-view+json": {
|
549 |
+
"model_id": "e90efa84bdd341239bc67edf06860648",
|
550 |
"version_major": 2,
|
551 |
"version_minor": 0
|
552 |
},
|
|
|
556 |
},
|
557 |
"metadata": {},
|
558 |
"output_type": "display_data"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
559 |
}
|
560 |
],
|
561 |
"source": [
|
squad_modified_for_t5_qg.py
CHANGED
@@ -113,7 +113,7 @@ class Squad(datasets.GeneratorBasedBuilder):
|
|
113 |
source_text = f"generate questions: {paragraph['context'].strip()}"
|
114 |
questions = [qas['question'].strip() for qas in paragraph['qas']]
|
115 |
target_text = " {sep_token} ".join(questions)
|
116 |
-
target_text = f"{target_text}
|
117 |
yield key, {
|
118 |
"context": source_text,
|
119 |
"questions": target_text}
|
|
|
113 |
source_text = f"generate questions: {paragraph['context'].strip()}"
|
114 |
questions = [qas['question'].strip() for qas in paragraph['qas']]
|
115 |
target_text = " {sep_token} ".join(questions)
|
116 |
+
target_text = f"{target_text}"
|
117 |
yield key, {
|
118 |
"context": source_text,
|
119 |
"questions": target_text}
|