Spaces:
Sleeping
Sleeping
Stefano Fiorucci
commited on
Commit
•
4d7c011
1
Parent(s):
dc55e5d
notebooks: added question generation
Browse files
notebooks/index_creation.ipynb
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
notebooks/question_generation.ipynb
ADDED
@@ -0,0 +1,1062 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "markdown",
|
5 |
+
"source": [
|
6 |
+
"# Question generation\n",
|
7 |
+
"Inspired by [this Haystack tutorial](https://haystack.deepset.ai/tutorials/question-generation)"
|
8 |
+
],
|
9 |
+
"metadata": {
|
10 |
+
"id": "iiNbGRn-KitL"
|
11 |
+
},
|
12 |
+
"id": "iiNbGRn-KitL"
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"cell_type": "markdown",
|
16 |
+
"source": [
|
17 |
+
"## Preliminary operations"
|
18 |
+
],
|
19 |
+
"metadata": {
|
20 |
+
"id": "viixGIJcKPSQ"
|
21 |
+
},
|
22 |
+
"id": "viixGIJcKPSQ"
|
23 |
+
},
|
24 |
+
{
|
25 |
+
"cell_type": "code",
|
26 |
+
"source": [
|
27 |
+
"from google.colab import drive\n",
|
28 |
+
"drive.mount('/content/drive')"
|
29 |
+
],
|
30 |
+
"metadata": {
|
31 |
+
"colab": {
|
32 |
+
"base_uri": "https://localhost:8080/"
|
33 |
+
},
|
34 |
+
"id": "MevE4jEZ5QBT",
|
35 |
+
"outputId": "136106e4-40c9-4443-ee84-784fb922e188"
|
36 |
+
},
|
37 |
+
"id": "MevE4jEZ5QBT",
|
38 |
+
"execution_count": 1,
|
39 |
+
"outputs": [
|
40 |
+
{
|
41 |
+
"output_type": "stream",
|
42 |
+
"name": "stdout",
|
43 |
+
"text": [
|
44 |
+
"Mounted at /content/drive\n"
|
45 |
+
]
|
46 |
+
}
|
47 |
+
]
|
48 |
+
},
|
49 |
+
{
|
50 |
+
"cell_type": "code",
|
51 |
+
"source": [
|
52 |
+
"# install dependencies\n",
|
53 |
+
"! pip install farm-haystack[faiss-gpu]"
|
54 |
+
],
|
55 |
+
"metadata": {
|
56 |
+
"id": "VYWRJ-Lf55nV"
|
57 |
+
},
|
58 |
+
"id": "VYWRJ-Lf55nV",
|
59 |
+
"execution_count": null,
|
60 |
+
"outputs": []
|
61 |
+
},
|
62 |
+
{
|
63 |
+
"cell_type": "markdown",
|
64 |
+
"source": [
|
65 |
+
"## Load data"
|
66 |
+
],
|
67 |
+
"metadata": {
|
68 |
+
"id": "QVDuHAMIK4bg"
|
69 |
+
},
|
70 |
+
"id": "QVDuHAMIK4bg"
|
71 |
+
},
|
72 |
+
{
|
73 |
+
"cell_type": "code",
|
74 |
+
"execution_count": 4,
|
75 |
+
"id": "72139774",
|
76 |
+
"metadata": {
|
77 |
+
"execution": {
|
78 |
+
"iopub.execute_input": "2022-01-09T08:40:46.176031Z",
|
79 |
+
"iopub.status.busy": "2022-01-09T08:40:46.175755Z",
|
80 |
+
"iopub.status.idle": "2022-01-09T08:40:46.179554Z",
|
81 |
+
"shell.execute_reply": "2022-01-09T08:40:46.178704Z",
|
82 |
+
"shell.execute_reply.started": "2022-01-09T08:40:46.175959Z"
|
83 |
+
},
|
84 |
+
"id": "72139774"
|
85 |
+
},
|
86 |
+
"outputs": [],
|
87 |
+
"source": [
|
88 |
+
"import glob\n",
|
89 |
+
"import json\n",
|
90 |
+
"import os"
|
91 |
+
]
|
92 |
+
},
|
93 |
+
{
|
94 |
+
"cell_type": "code",
|
95 |
+
"execution_count": 7,
|
96 |
+
"id": "4421e328",
|
97 |
+
"metadata": {
|
98 |
+
"execution": {
|
99 |
+
"iopub.execute_input": "2022-01-09T08:40:47.846999Z",
|
100 |
+
"iopub.status.busy": "2022-01-09T08:40:47.846757Z",
|
101 |
+
"iopub.status.idle": "2022-01-09T08:40:48.327632Z",
|
102 |
+
"shell.execute_reply": "2022-01-09T08:40:48.326829Z",
|
103 |
+
"shell.execute_reply.started": "2022-01-09T08:40:47.846975Z"
|
104 |
+
},
|
105 |
+
"id": "4421e328"
|
106 |
+
},
|
107 |
+
"outputs": [],
|
108 |
+
"source": [
|
109 |
+
"DATA_DIRECTORY = '/content/drive/MyDrive/Colab Notebooks/wklp/data'\n",
|
110 |
+
"\n",
|
111 |
+
"docs=[]\n",
|
112 |
+
"\n",
|
113 |
+
"for json_file in glob.glob(f'{DATA_DIRECTORY}/*.json'):\n",
|
114 |
+
" # select only the largest documents\n",
|
115 |
+
" if os.path.getsize (json_file)>=5000:\n",
|
116 |
+
" with open(json_file, 'r') as fin: \n",
|
117 |
+
" json_content=json.load(fin)\n",
|
118 |
+
" \n",
|
119 |
+
" doc={'content': json_content['text'],\n",
|
120 |
+
" 'meta': {'name': json_content['name'],\n",
|
121 |
+
" 'url': json_content['url']}}\n",
|
122 |
+
" docs.append(doc)"
|
123 |
+
]
|
124 |
+
},
|
125 |
+
{
|
126 |
+
"cell_type": "code",
|
127 |
+
"source": [
|
128 |
+
"len(docs)"
|
129 |
+
],
|
130 |
+
"metadata": {
|
131 |
+
"colab": {
|
132 |
+
"base_uri": "https://localhost:8080/"
|
133 |
+
},
|
134 |
+
"id": "GR6qWQAn72WG",
|
135 |
+
"outputId": "1198a602-7f4e-444a-f8f4-05b488663799"
|
136 |
+
},
|
137 |
+
"id": "GR6qWQAn72WG",
|
138 |
+
"execution_count": 8,
|
139 |
+
"outputs": [
|
140 |
+
{
|
141 |
+
"output_type": "execute_result",
|
142 |
+
"data": {
|
143 |
+
"text/plain": [
|
144 |
+
"134"
|
145 |
+
]
|
146 |
+
},
|
147 |
+
"metadata": {},
|
148 |
+
"execution_count": 8
|
149 |
+
}
|
150 |
+
]
|
151 |
+
},
|
152 |
+
{
|
153 |
+
"cell_type": "code",
|
154 |
+
"execution_count": 9,
|
155 |
+
"id": "aa231b94",
|
156 |
+
"metadata": {
|
157 |
+
"execution": {
|
158 |
+
"iopub.execute_input": "2022-01-09T08:40:48.796741Z",
|
159 |
+
"iopub.status.busy": "2022-01-09T08:40:48.796550Z",
|
160 |
+
"iopub.status.idle": "2022-01-09T08:40:48.805224Z",
|
161 |
+
"shell.execute_reply": "2022-01-09T08:40:48.804705Z",
|
162 |
+
"shell.execute_reply.started": "2022-01-09T08:40:48.796722Z"
|
163 |
+
},
|
164 |
+
"colab": {
|
165 |
+
"base_uri": "https://localhost:8080/"
|
166 |
+
},
|
167 |
+
"id": "aa231b94",
|
168 |
+
"outputId": "3d88f0a8-635d-419c-8660-f6c77803e369"
|
169 |
+
},
|
170 |
+
"outputs": [
|
171 |
+
{
|
172 |
+
"output_type": "execute_result",
|
173 |
+
"data": {
|
174 |
+
"text/plain": [
|
175 |
+
"{'content': 'Part 5\\nNot to be confused with Episode 5.\\n\"Part 5\" is the fifth episode of the 2017 series of Twin Peaks and the thirty-fifth episode of the franchise as a whole. It aired on June 4, 2017.\\nPlot\\n\"Case files.\"\\n ―Dale Cooper\\nGene and Jake sit in a car, the former on the phone with Lorraine, reporting on the situation with Dougie Jones. Frustrated, she sends the message \"2\" (leaving 159 characters to type) to her contact \"ARGENT\" which causes a device in Buenos Aires to ring and flash twice with its two red lights.\\nConstance Talbot, Detective Macklay, and Detective Harrison observe the John Doe in the morgue. Talbot confirms the decapitation as the man\\'s cause of death and presents a ring found inside the body. On it is an inscription that reads, \"To Dougie, with love, Janey-E.\"\\nCooper\\'s doppelganger sits in his jail cell and correctly predicts that his food is coming. He takes his food and goes to the mirror, noting that BOB is still with him.\\nAt his place of employment, Mike Nelson calls in Steven Burnett, who has applied for a job. Mike tells him that his resume is inadequate and his forms were filled out incorrectly, then kicks him out.\\nSheriff Frank Truman talks to Harry on the phone and is informed by Lucy Brennan that his wife, Doris, is coming to him. Doris tells him about her frustrations, including a leaky pipe.\\nJaney-E, Sonny Jim and Cooper leave the Jones home and Janey-E tells Cooper that he had won $425,000. He looks at Sonny Jim and begins to shed tears. On realization that Dougie\\'s car is not there, Janey-E begrudgingly takes Cooper to Dougie\\'s work.\\nGene and Jake check on Dougie\\'s car again, which still has not moved. A group of delinquent youths also drive by the car.\\nJaney-E drops Cooper off at work and he wanders, following the aim of a statue of a man carrying a revolver. He stands around until Dougie\\'s co-worker, Phil Bisby comes carrying coffee on his way to a board meeting. Following him into the elevator, Cooper takes one of the coffees and begins drinking the \"damn good Joe.\" It was Frank\\'s one who then takes a green tea latte instead while Darren is turned down by Rhonda and Bonnici next to Frank is served the eighth cup carried by Phil.\\nAnthony Sinclair tells Cooper that he has covered for Dougie\\'s absence and during the meeting, as Sinclair presents a report. When saying that there was no arson with Littlefield, Cooper blurts out \"He\\'s lying,\" but does not elaborate, causing the boss Bushnell Mullins to have \"Dougie\" meet with him after the meeting. Mullins questions his accusation and gives him case files to assess by the next day.\\nRodney and Bradley Mitchum come to the Silver Mustang Casino and in front of Candie, Mandie and Sandie punish Burns for Cooper\\'s win at the casino and replace Burns with Warrick, who they tell to inform them if Cooper ever returns to the casino.\\nWhile his mother is passed out on drugs, the little boy living in the home across from Dougie\\'s car goes to examine it. He is shooed away by the gang of youths, arriving in a loud black 1970 Dodge Charger, who try to steal the car. The bomb under Dougie\\'s car explodes, killing several members of the gang, and the boy runs back to his home. Hearing him coming back in, his mother slowly wakes up and stares at the door.\\nAn auto detailer informs Jade that he found a set of keys for the Great Northern Hotel in her car. Since they have an address on them, she puts them inside a mailbox for delivery.\\nNorma sorts through documents as Heidi is serving and Becky delivers bread to Toad and gets money from Shelly. Norma goes to Shelly, urging her to help Becky rather than continue to enable her. Becky takes the money to Steven and they snort a drug.\\nCooper is pushed out of the elevator at the end of the workday and he goes to the statue he saw that morning.\\nAt the Twin Peaks sheriff\\'s station, Hawk and Andy continue to sort through files.\\nJacoby starts up his webcast he hosts as \"Dr. Amp\" and it is viewed by Jerry Horne—who smokes a joint—and Nadine Hurley. His broadcast ends with an advertisement for his golden shovels that he urges his viewers to buy to shovel themselves \"out of the shit and into the truth.\"\\nAt the Pentagon, Lieutenant Cynthia Knox informs Colonel Davis that they have received a match on Major Garland Briggs\\' fingerprints – the sixteenth match in 25 years – in Buckhorn, South Dakota. Davis doubts the legitimacy of the match but says that if it is indeed truly Briggs that has been identified, that the FBI must be informed.\\nThe band Trouble plays at the Roadhouse as Richard Horne smokes underneath a \\'no smoking\\' sign. Employee Federico asks him to quit and the off-duty Deputy Chad Broxford takes over but ends up taking a bribe from Horne. Charlotte, from the next table over with Elizabeth, asks him for a light, but he grabs her and threatens to rape her.\\nAgent Preston examines Cooper\\'s file and compares his fingerprints from before his 1989 disappearance and from the doppelganger\\'s booking at the federal prison.\\nWarden Murphy gives the doppelganger his phone call. However, the doppelganger dials a number that sets off the prison\\'s alarms and he says \"The cow jumped over the moon,\" before hanging up, stopping the alarms.\\nIn Buenos Aires, the device contacted before by Lorraine rings and flashes twice with its two red lights and then shrinks to a kind of seed.\\nCooper continues to observe the statue.\\nCredits\\n\\nStarring\\nKyle MacLachlan as Dale Cooper / Dale Cooper (doppelganger)\\nIn Alphabetical Order\\nJane Adams as Constance Talbot\\nMädchen Amick as Shelly\\nTammie Baird as Lorraine\\nChrysta Bell as FBI Agent Tammy Preston\\nJim Belushi as Bradley Mitchum\\nSean Bolger as Detailer\\nBrent Briscoe as Detective Dave Macklay\\nWes Brown as Darren\\nJuan Carlos Cantu as Officer Reynaldo\\nVincent Castellanos as Federico\\nBailey Chase as Detective Don Harrison\\nCandy Clark as Doris Truman\\nGrace Victoria Cox as Charlotte\\nGiselle Damier as Sandie\\nDavid Dastmalchian as Pit Boss Warrick\\nJosh Fadem as Phil Bisby\\nEamon Farren as Richard Horne\\nRobert Forster as Sheriff Frank Truman\\nPierce Gagnon as Sonny Jim Jones\\nHailey Gates as Drugged-out Mother\\nBrett Gelman as Supervisor Burns\\nHarry Goaz as Deputy Andy Brennan\\nHank Harris as Prison Tech\\nAndrea Hays as Heidi\\nGary Hershberger as Mike Nelson\\nMichael Horse as Deputy Chief Tommy \"Hawk\" Hill\\nErnie Hudson as Colonel Davis\\nCaleb Landry Jones as Steven Burnett\\nDavid Patrick Kelly as Jerry Horne\\nRobert Knepper as Rodney Mitchum\\nAndrea Leal as Mandie\\nSheryl Lee as Laura Palmer\\nJane Levy as Elizabeth\\nPeggy Lipton as Norma Jennings\\nKarl Makinen as Inspector Randy Hollister\\nJames Morrison as Warden Dwight Murphy\\nDon Murray as Bushnell Mullins\\nJohn Pirruccello as Deputy Chad Broxford\\nAdele René as Lieutenant Cynthia Cox\\nKimmy Robertson as Lucy Brennan\\nWendy Robie as Nadine Hurley\\nMarv Rosand as Toad\\nElena Satine as Rhonda\\nAmanda Seyfried as Rebecca (Becky) Burnett\\nAmie Shiels as Candie\\nSawyer Shipman as Little Boy\\nFrank Silva as Bob\\nTom Sizemore as Anthony Sinclair\\nBob Stephenson as Frank\\nRuss Tamblyn as Dr. Lawrence Jacoby\\nBill Tangradi as Jake\\nGreg Vrotsos as Gene\\nNaomi Watts as Janey-E Jones\\nNafessa Williams as Jade\\nBlake Zingale as Punk Leader\\nTrouble:\\nRiley Lynch\\nSam Smith\\nAlex Zhang Hungtai\\nDean Hurley\\nUncredited\\nTyler Malik as stand-in\\nKenneth Welsh as Windom Earle (archive footage)\\nUnknown performer as Bonnici\\nUnknown performer as Woman in elevator\\nUnknown performer as Man across Mullins\\nUnknown performer as Woman at meeting\\nUnknown performer as Mullins\\' secretary\\nProduction staff\\nSee: Twin Peaks (2017) § Production staff\\nFeatured music\\n\"The Flame\"\\nWritten and performed by Johnny Jewel\\nCourtesy of Italians Do It Better\\n\"Frank 2000\"\\nWritten by Angelo Badalamenti and David Lynch\\nPerformed by Thought Gang\\n\"I Love How You Love Me\"\\nWritten by Barry Mann and Larry Kolber\\nPerformed by The Paris Sisters\\nPublished by Screen Gems-EMI Music Inc. (BMI)\\n\"I Am\"\\nWritten and performed by BluntedBeatz\\n\"Stars And Stripes Forever\"\\nWritten by John Philip Sousa\\nPerformed and arranged by the U.S. Army Band\\n\"Snake Eyes\"\\nWritten by Dean Hurley, Riley Lynch and Alex Zhang Hungtai\\nPerformed by Trouble\\n\"Habit\" and \"Tabloid\"\\nWritten and performed by Uniform\\nCourtesy of Sacred Bones Records\\n\"Windswept\"\\nWritten and performed by Johnny Jewel\\nCourtesy of Italians Do It Better\\nNotes\\nThis episode was dedicated to the memory of Marv Rosand.\\nAmy Shiels is credited as \"Amie\".\\nFrank, Dougie\\'s coworker who discovers he likes green tea lattes, is played by Bob Stephenson, who appeared in Episode 6 as the burger cook at the Double R Diner. This was Stephenson\\'s first acting gig.\\nUpon release, Twin Peaks: The Return earned some criticism for earning the \"Empty Cup Award,\" a satirical achievement for television series where actors handle coffee cups that are claimed to be full in the dialogue but are very clearly empty based on how they are handled by the performers. In the case of this episode, however, Kyle MacLachlan was given some praise for being the sole actor to handle his cup as though it were actually full, especially in an episode where a character (Phil Bisby) unrealistically balances two full trays of coffee while running around.\\nThe statue in front of Dougie\\'s workplace was not originally part of location and was brought by the production staff. It might be a statue of Donald Lynch, father of David Lynch, since according to the stand-in Tyler Malkin, Lynch talked to it saying \"Hi, Dad\".\\nThe numbers input by the doppelganger during his phone call are, using the standard DTMF tones pitched up 2 octaves for offscreen ones:\\n16 (pause) 1235789 (computer modem response) 3135378912315 (01189998819991197253 offscreen)\\nThis could be interpreted as two numbers dialing to get an outside line from the internal prison phone system, then a 7 digit local number calling a computer set up beforehand with a local number so it would be a free local call and finally a code that triggers a pre-planned, automated hack of the prison systems.',\n",
|
176 |
+
" 'meta': {'name': 'Part_5', 'url': 'https://twinpeaks.fandom.com/wiki/Part_5'}}"
|
177 |
+
]
|
178 |
+
},
|
179 |
+
"metadata": {},
|
180 |
+
"execution_count": 9
|
181 |
+
}
|
182 |
+
],
|
183 |
+
"source": [
|
184 |
+
"docs[5]"
|
185 |
+
]
|
186 |
+
},
|
187 |
+
{
|
188 |
+
"cell_type": "markdown",
|
189 |
+
"source": [
|
190 |
+
"## Define document store ([FAISS](https://github.com/facebookresearch/faiss)) and write documents\n",
|
191 |
+
"\n"
|
192 |
+
],
|
193 |
+
"metadata": {
|
194 |
+
"id": "Yu3bAUPoLrPI"
|
195 |
+
},
|
196 |
+
"id": "Yu3bAUPoLrPI"
|
197 |
+
},
|
198 |
+
{
|
199 |
+
"cell_type": "code",
|
200 |
+
"execution_count": 10,
|
201 |
+
"id": "bfe846df",
|
202 |
+
"metadata": {
|
203 |
+
"execution": {
|
204 |
+
"iopub.execute_input": "2022-01-09T08:40:59.678181Z",
|
205 |
+
"iopub.status.busy": "2022-01-09T08:40:59.678003Z",
|
206 |
+
"iopub.status.idle": "2022-01-09T08:40:59.753228Z",
|
207 |
+
"shell.execute_reply": "2022-01-09T08:40:59.752500Z",
|
208 |
+
"shell.execute_reply.started": "2022-01-09T08:40:59.678161Z"
|
209 |
+
},
|
210 |
+
"id": "bfe846df",
|
211 |
+
"colab": {
|
212 |
+
"base_uri": "https://localhost:8080/"
|
213 |
+
},
|
214 |
+
"outputId": "be9c9ef8-bcc4-4c4a-e7a5-9003077a7ea3"
|
215 |
+
},
|
216 |
+
"outputs": [
|
217 |
+
{
|
218 |
+
"output_type": "stream",
|
219 |
+
"name": "stderr",
|
220 |
+
"text": [
|
221 |
+
"INFO - haystack.modeling.model.optimization - apex not found, won't use it. See https://nvidia.github.io/apex/\n",
|
222 |
+
"ERROR - root - Failed to import 'magic' (from 'python-magic' and 'python-magic-bin' on Windows). FileTypeClassifier will not perform mimetype detection on extensionless files. Please make sure the necessary OS libraries are installed if you need this functionality.\n",
|
223 |
+
"INFO - haystack.telemetry - Haystack sends anonymous usage data to understand the actual usage and steer dev efforts towards features that are most meaningful to users. You can opt-out at anytime by calling disable_telemetry() or by manually setting the environment variable HAYSTACK_TELEMETRY_ENABLED as described for different operating systems on the documentation page. More information at https://haystack.deepset.ai/guides/telemetry\n"
|
224 |
+
]
|
225 |
+
}
|
226 |
+
],
|
227 |
+
"source": [
|
228 |
+
"from haystack.document_stores import FAISSDocumentStore\n",
|
229 |
+
"\n",
|
230 |
+
"# the document store settings are those compatible with Embedding Retriever\n",
|
231 |
+
"document_store = FAISSDocumentStore(\n",
|
232 |
+
" similarity=\"dot_product\",\n",
|
233 |
+
" embedding_dim=768)"
|
234 |
+
]
|
235 |
+
},
|
236 |
+
{
|
237 |
+
"cell_type": "code",
|
238 |
+
"execution_count": 11,
|
239 |
+
"id": "191144b4",
|
240 |
+
"metadata": {
|
241 |
+
"execution": {
|
242 |
+
"iopub.execute_input": "2022-01-09T08:41:10.695292Z",
|
243 |
+
"iopub.status.busy": "2022-01-09T08:41:10.695064Z",
|
244 |
+
"iopub.status.idle": "2022-01-09T08:41:22.144864Z",
|
245 |
+
"shell.execute_reply": "2022-01-09T08:41:22.144203Z",
|
246 |
+
"shell.execute_reply.started": "2022-01-09T08:41:10.695271Z"
|
247 |
+
},
|
248 |
+
"colab": {
|
249 |
+
"base_uri": "https://localhost:8080/",
|
250 |
+
"height": 49,
|
251 |
+
"referenced_widgets": [
|
252 |
+
"81c8d8eb80d64687bdcc31ab1e3f156e",
|
253 |
+
"b18ba72ca8e94c508fde617b04b82273",
|
254 |
+
"0cc8731e80994ab097236f295da512c7",
|
255 |
+
"e1b08799bca14b7aa8aed017b5545923",
|
256 |
+
"4ee263ae48834c5dbb138a5dbe2183bd",
|
257 |
+
"ae4e66819ab04f68a867768d03bc4a04",
|
258 |
+
"6bba9b7051f64993a477688eb8c6ed92",
|
259 |
+
"96e28522b93b4c77a9d6da982d601465",
|
260 |
+
"9eb3c190c28b47618572ecd9e3b80932",
|
261 |
+
"887b5bcc8d1e4c38b40700d324424f33",
|
262 |
+
"3739785a410b4eadb0c36881e41b88ed"
|
263 |
+
]
|
264 |
+
},
|
265 |
+
"id": "191144b4",
|
266 |
+
"outputId": "f564e88e-be20-4f20-b4ed-4c663bfd71ac"
|
267 |
+
},
|
268 |
+
"outputs": [
|
269 |
+
{
|
270 |
+
"output_type": "display_data",
|
271 |
+
"data": {
|
272 |
+
"text/plain": [
|
273 |
+
"Writing Documents: 0%| | 0/134 [00:00<?, ?it/s]"
|
274 |
+
],
|
275 |
+
"application/vnd.jupyter.widget-view+json": {
|
276 |
+
"version_major": 2,
|
277 |
+
"version_minor": 0,
|
278 |
+
"model_id": "81c8d8eb80d64687bdcc31ab1e3f156e"
|
279 |
+
}
|
280 |
+
},
|
281 |
+
"metadata": {}
|
282 |
+
}
|
283 |
+
],
|
284 |
+
"source": [
|
285 |
+
"# write documents\n",
|
286 |
+
"document_store.write_documents(docs)\n"
|
287 |
+
]
|
288 |
+
},
|
289 |
+
{
|
290 |
+
"cell_type": "code",
|
291 |
+
"source": [
|
292 |
+
"len(document_store.get_all_documents())"
|
293 |
+
],
|
294 |
+
"metadata": {
|
295 |
+
"colab": {
|
296 |
+
"base_uri": "https://localhost:8080/"
|
297 |
+
},
|
298 |
+
"id": "fCVArUtw1rV5",
|
299 |
+
"outputId": "852fc261-c684-4f65-d17f-011f2b1860d0"
|
300 |
+
},
|
301 |
+
"id": "fCVArUtw1rV5",
|
302 |
+
"execution_count": 23,
|
303 |
+
"outputs": [
|
304 |
+
{
|
305 |
+
"output_type": "execute_result",
|
306 |
+
"data": {
|
307 |
+
"text/plain": [
|
308 |
+
"134"
|
309 |
+
]
|
310 |
+
},
|
311 |
+
"metadata": {},
|
312 |
+
"execution_count": 23
|
313 |
+
}
|
314 |
+
]
|
315 |
+
},
|
316 |
+
{
|
317 |
+
"cell_type": "markdown",
|
318 |
+
"source": [
|
319 |
+
"## Generate questions and save them"
|
320 |
+
],
|
321 |
+
"metadata": {
|
322 |
+
"id": "oPOm5UsJxG37"
|
323 |
+
},
|
324 |
+
"id": "oPOm5UsJxG37"
|
325 |
+
},
|
326 |
+
{
|
327 |
+
"cell_type": "code",
|
328 |
+
"source": [
|
329 |
+
"from haystack.nodes import QuestionGenerator\n",
|
330 |
+
"from haystack.pipelines import QuestionGenerationPipeline\n",
|
331 |
+
"from haystack.utils import launch_es, print_questions\n"
|
332 |
+
],
|
333 |
+
"metadata": {
|
334 |
+
"id": "dYf2rgwzxa1z"
|
335 |
+
},
|
336 |
+
"id": "dYf2rgwzxa1z",
|
337 |
+
"execution_count": 16,
|
338 |
+
"outputs": []
|
339 |
+
},
|
340 |
+
{
|
341 |
+
"cell_type": "code",
|
342 |
+
"source": [
|
343 |
+
"OUTPUT_QUESTIONS_FILE='/content/drive/MyDrive/Colab Notebooks/wklp/questions.txt'"
|
344 |
+
],
|
345 |
+
"metadata": {
|
346 |
+
"id": "EnQk6d0FzlnT"
|
347 |
+
},
|
348 |
+
"id": "EnQk6d0FzlnT",
|
349 |
+
"execution_count": 19,
|
350 |
+
"outputs": []
|
351 |
+
},
|
352 |
+
{
|
353 |
+
"cell_type": "code",
|
354 |
+
"source": [
|
355 |
+
"# Initialize Question Generator\n",
|
356 |
+
"question_generator = QuestionGenerator()\n",
|
357 |
+
"\n",
|
358 |
+
"question_generation_pipeline = QuestionGenerationPipeline(question_generator)\n",
|
359 |
+
"for idx, document in enumerate(document_store):\n",
|
360 |
+
" if idx%5==0:\n",
|
361 |
+
" print(idx/len(docs)*100)\n",
|
362 |
+
" results = question_generation_pipeline.run(documents=[document])\n",
|
363 |
+
"\n",
|
364 |
+
" # save to file\n",
|
365 |
+
" questions_for_doc=f'{idx}: {document.content[:100]}...\\n'+'-'*15+'\\n'\n",
|
366 |
+
" if \"generated_questions\" in results.keys():\n",
|
367 |
+
" for result in results[\"generated_questions\"]:\n",
|
368 |
+
" for question in result[\"questions\"]:\n",
|
369 |
+
" questions_for_doc+=(f\" - {question}\\n\")\n",
|
370 |
+
" with open(OUTPUT_QUESTIONS_FILE,'a+') as fo:\n",
|
371 |
+
" fo.write(questions_for_doc)"
|
372 |
+
],
|
373 |
+
"metadata": {
|
374 |
+
"id": "8fYMVd_ggJnw",
|
375 |
+
"colab": {
|
376 |
+
"base_uri": "https://localhost:8080/"
|
377 |
+
},
|
378 |
+
"outputId": "880c4204-854c-49fc-f82b-ec008076b662"
|
379 |
+
},
|
380 |
+
"id": "8fYMVd_ggJnw",
|
381 |
+
"execution_count": 24,
|
382 |
+
"outputs": [
|
383 |
+
{
|
384 |
+
"metadata": {
|
385 |
+
"tags": null
|
386 |
+
},
|
387 |
+
"name": "stderr",
|
388 |
+
"output_type": "stream",
|
389 |
+
"text": [
|
390 |
+
"INFO - haystack.modeling.utils - Using devices: CUDA\n",
|
391 |
+
"INFO - haystack.modeling.utils - Number of GPUs: 1\n"
|
392 |
+
]
|
393 |
+
},
|
394 |
+
{
|
395 |
+
"output_type": "stream",
|
396 |
+
"name": "stdout",
|
397 |
+
"text": [
|
398 |
+
"0.0\n",
|
399 |
+
"3.731343283582089\n",
|
400 |
+
"7.462686567164178\n",
|
401 |
+
"11.194029850746269\n",
|
402 |
+
"14.925373134328357\n",
|
403 |
+
"18.65671641791045\n",
|
404 |
+
"22.388059701492537\n",
|
405 |
+
"26.119402985074625\n",
|
406 |
+
"29.850746268656714\n",
|
407 |
+
"33.582089552238806\n",
|
408 |
+
"37.3134328358209\n",
|
409 |
+
"41.04477611940299\n",
|
410 |
+
"44.776119402985074\n",
|
411 |
+
"48.507462686567166\n",
|
412 |
+
"52.23880597014925\n",
|
413 |
+
"55.970149253731336\n",
|
414 |
+
"59.70149253731343\n",
|
415 |
+
"63.43283582089553\n",
|
416 |
+
"67.16417910447761\n",
|
417 |
+
"70.8955223880597\n",
|
418 |
+
"74.6268656716418\n",
|
419 |
+
"78.35820895522389\n",
|
420 |
+
"82.08955223880598\n",
|
421 |
+
"85.82089552238806\n",
|
422 |
+
"89.55223880597015\n"
|
423 |
+
]
|
424 |
+
}
|
425 |
+
]
|
426 |
+
},
|
427 |
+
{
|
428 |
+
"cell_type": "code",
|
429 |
+
"source": [
|
430 |
+
"print(questions_for_doc)\n",
|
431 |
+
"print_questions(results)"
|
432 |
+
],
|
433 |
+
"metadata": {
|
434 |
+
"colab": {
|
435 |
+
"base_uri": "https://localhost:8080/"
|
436 |
+
},
|
437 |
+
"id": "1i2C6PhSKHZY",
|
438 |
+
"outputId": "ba202bf9-b445-43ca-c267-7fd873a80e81"
|
439 |
+
},
|
440 |
+
"id": "1i2C6PhSKHZY",
|
441 |
+
"execution_count": 30,
|
442 |
+
"outputs": [
|
443 |
+
{
|
444 |
+
"output_type": "stream",
|
445 |
+
"name": "stdout",
|
446 |
+
"text": [
|
447 |
+
"124: Jerry Horne\n",
|
448 |
+
"Jeremy \"Jerry\" Horne was the playboy brother of Benjamin Horne and the uncle of Audrey a...\n",
|
449 |
+
"---------------\n",
|
450 |
+
" - Who was the playboy brother of Benjamin Horne?\n",
|
451 |
+
" - What was Jerry Horne's uncle's name?\n",
|
452 |
+
" - Who did Jerry watch in his childhood?\n",
|
453 |
+
" - Who did Jerry watch dance with with a flashlight?\n",
|
454 |
+
" - Who was the place kicker in the starting lineup of Twin Peaks High School football team of 1968?\n",
|
455 |
+
" - Who was a member of the Bookhouse Boys?\n",
|
456 |
+
" - When did Big Ed graduate from Gonzaga University?\n",
|
457 |
+
" - Who graduated last in his class at Gonzaga in 1974?\n",
|
458 |
+
" - What year did Jerry begin working with his brother to find business partners for the Ghostwood Development Project?\n",
|
459 |
+
" - What state had Jerry's license to practice law revoked?\n",
|
460 |
+
" - Who was the owner of the Canadian brothel and casino?\n",
|
461 |
+
" - When did Jerry come to the Great Northern Hotel after a trip to Paris?\n",
|
462 |
+
" - What did Jerry bring to Ben?\n",
|
463 |
+
" - Who brought a sandwich for Ben?\n",
|
464 |
+
" - Who told Ben about the murder of Laura Palmer?\n",
|
465 |
+
" - What was the name of the Norwegians who were set to sign the Ghostwood deal?\n",
|
466 |
+
" - What was the name of the brothel's madame?\n",
|
467 |
+
" - Who brought out the drinks at One Eyed Jacks?\n",
|
468 |
+
" - What was one of the brothers first in line?\n",
|
469 |
+
" - Who was the brothel's madame?\n",
|
470 |
+
" - Who brought out the girls?\n",
|
471 |
+
" - What did Jerry lose for Blackie O'Reilly?\n",
|
472 |
+
" - When did Jerry arrive at the Great Northern?\n",
|
473 |
+
" - Who did Jerry tell his brother about?\n",
|
474 |
+
" - What Icelandic woman did Jerry fall for?\n",
|
475 |
+
" - Who did Ben propose to have the visitors sign the deal with?\n",
|
476 |
+
" - What did Jerry do when he broke down crying?\n",
|
477 |
+
" - Where did Jerry go after Jerry broke down?\n",
|
478 |
+
" - What caused Jerry to close the office doors when he broke down crying?\n",
|
479 |
+
" - Who did Jerry woo at a party held for the businessmen at the Great Northern?\n",
|
480 |
+
" - What caused Leland to have a misunderstanding?\n",
|
481 |
+
" - What caused Leland to have a breakdown?\n",
|
482 |
+
" - Jerry went to his brother, who said, \"get Doctor Jacoby, a net, and get out of my life\"?\n",
|
483 |
+
" - What was Ben's only beverage?\n",
|
484 |
+
" - What did Ben have in his mug of beer?\n",
|
485 |
+
" - Who was asked to dismiss them to the dining room?\n",
|
486 |
+
" - What was the name of the restaurant Jerry wanted to go to?\n",
|
487 |
+
" - What did Jerry do to Blackie?\n",
|
488 |
+
" - How did Jerry react to the question about Ben?\n",
|
489 |
+
" - What was Jerry's reaction to Jerry leaving her?\n",
|
490 |
+
" - What did Jerry say she used to be?\n",
|
491 |
+
" - Where did Jerry go to find Ben?\n",
|
492 |
+
" - Who did Jerry leave her with?\n",
|
493 |
+
" - Where did Ben and Leland Palmer discuss Catherine Martell's whereabouts?\n",
|
494 |
+
" - What was Leo Johnson's medical condition?\n",
|
495 |
+
" - What song did Hank Jennings dance with?\n",
|
496 |
+
" - What did Leland say he was back and ready for?\n",
|
497 |
+
" - Who left the night after Josie Packard left?\n",
|
498 |
+
" - Hank Jennings waited for Josie Packard to leave the night before?\n",
|
499 |
+
" - Jerry took issue with Leo apparently chopping wood inside what house?\n",
|
500 |
+
" - Hank noted the probability that what was dead in the wreckage of the mill?\n",
|
501 |
+
" - Who sat with Jerry the next day?\n",
|
502 |
+
" - Who sat with Jerry in front of the two ledgers for the Packard Sawmill?\n",
|
503 |
+
" - What did Jerry go to Ben's office with an insurance policy for the mill?\n",
|
504 |
+
" - Who signed the insurance policy?\n",
|
505 |
+
" - Who signed an insurance policy for the mill?\n",
|
506 |
+
" - Who did Ben have him call the Icelanders as Leland entered?\n",
|
507 |
+
" - What did Einar Thorson say about the fire?\n",
|
508 |
+
" - Who said that Leland called him about the fire?\n",
|
509 |
+
" - What did Ben say to Jerry?\n",
|
510 |
+
" - How long after Jerry's death did he go to the police?\n",
|
511 |
+
" - Who did Jerry ask to kill?\n",
|
512 |
+
" - What was Jerry's brother in custody for?\n",
|
513 |
+
" - Who was Leland responsible for murdering?\n",
|
514 |
+
" - Who did Ben say he was with the night Laura was killed?\n",
|
515 |
+
" - What did Ben and Catherine reminisce about when they were boys?\n",
|
516 |
+
" - Who was the FBI Special Agent that Ben was questioned by?\n",
|
517 |
+
" - Who were the FBI Special Agents questioned by?\n",
|
518 |
+
" - Who was the Sheriff?\n",
|
519 |
+
" - What was Jerry's brother's background in law?\n",
|
520 |
+
" - What did Laura's diary make about Ben?\n",
|
521 |
+
" - Who granted Jerry's request to be left alone with Ben for a moment?\n",
|
522 |
+
" - Jerry reprimanded Ben for what outburst?\n",
|
523 |
+
" - What was the name of the one-armed man brought before Benjamin?\n",
|
524 |
+
" - What did Jerry order Truman to do?\n",
|
525 |
+
" - How long had Ben been held?\n",
|
526 |
+
" - Who charged Ben with Laura's murder?\n",
|
527 |
+
" - What did Ben try to do to the sheriff but Jerry restrained him?\n",
|
528 |
+
" - When was Ben released?\n",
|
529 |
+
" - Who lost the Ghostwood Development Plan to Catherine Martell?\n",
|
530 |
+
" - Who brought Jerry to Ben's office?\n",
|
531 |
+
" - What did Ben believe Jerry to be?\n",
|
532 |
+
" - Who believed Ben to be Jeb Stuart?\n",
|
533 |
+
" - What did Jacoby believe did not help his mental state?\n",
|
534 |
+
" - Who did Jerry tell Audrey that Ben was fun in?\n",
|
535 |
+
" - What role did Ben play in Ben's Civil War?\n",
|
536 |
+
" - Who was General Grant?\n",
|
537 |
+
" - What did Ben do to Audrey?\n",
|
538 |
+
" - What was Ben's plan to preserve?\n",
|
539 |
+
" - Who was a potential business partner for Stop Ghostwood Jerry?\n",
|
540 |
+
" - What was the name of the bird that Ben presented to stop ghostwood Jerry to save?\n",
|
541 |
+
" - What did Jerry trade for cannabis?\n",
|
542 |
+
" - What was Jerry's brother's name?\n",
|
543 |
+
" - Who did Jerry interrupt while meeting with Beverly Paige?\n",
|
544 |
+
" - What did Ben reprimand Jerry for?\n",
|
545 |
+
" - Who asked if Jerry was wearing their mother's hat?\n",
|
546 |
+
" - What was Jerry's mother's hat?\n",
|
547 |
+
" - What was Dr. Jacoby's webcast known as?\n",
|
548 |
+
" - When did Jerry become lost in the woods?\n",
|
549 |
+
" - Who did Jerry talk to while high?\n",
|
550 |
+
" - What did Jerry try to do with his foot?\n",
|
551 |
+
" - How did Jerry get phone service?\n",
|
552 |
+
" - What was Jerry's great-nephew's name?\n",
|
553 |
+
" - What did Jerry blame for the disintegration of his binoculars?\n",
|
554 |
+
" - Jerry saw Cooper's doppelganger investigate what?\n",
|
555 |
+
" - What was Jerry's fault?\n",
|
556 |
+
" - Where was Jerry taken into custody by the police?\n",
|
557 |
+
" - Who played Jerry behind the scenes?\n",
|
558 |
+
" - What actor reprised the role in the 2017 revival?\n",
|
559 |
+
"\n",
|
560 |
+
"\n",
|
561 |
+
"Generated questions:\n",
|
562 |
+
" - Who was the playboy brother of Benjamin Horne?\n",
|
563 |
+
" - What was Jerry Horne's uncle's name?\n",
|
564 |
+
" - Who did Jerry watch in his childhood?\n",
|
565 |
+
" - Who did Jerry watch dance with with a flashlight?\n",
|
566 |
+
" - Who was the place kicker in the starting lineup of Twin Peaks High School football team of 1968?\n",
|
567 |
+
" - Who was a member of the Bookhouse Boys?\n",
|
568 |
+
" - When did Big Ed graduate from Gonzaga University?\n",
|
569 |
+
" - Who graduated last in his class at Gonzaga in 1974?\n",
|
570 |
+
" - What year did Jerry begin working with his brother to find business partners for the Ghostwood Development Project?\n",
|
571 |
+
" - What state had Jerry's license to practice law revoked?\n",
|
572 |
+
" - Who was the owner of the Canadian brothel and casino?\n",
|
573 |
+
" - When did Jerry come to the Great Northern Hotel after a trip to Paris?\n",
|
574 |
+
" - What did Jerry bring to Ben?\n",
|
575 |
+
" - Who brought a sandwich for Ben?\n",
|
576 |
+
" - Who told Ben about the murder of Laura Palmer?\n",
|
577 |
+
" - What was the name of the Norwegians who were set to sign the Ghostwood deal?\n",
|
578 |
+
" - What was the name of the brothel's madame?\n",
|
579 |
+
" - Who brought out the drinks at One Eyed Jacks?\n",
|
580 |
+
" - What was one of the brothers first in line?\n",
|
581 |
+
" - Who was the brothel's madame?\n",
|
582 |
+
" - Who brought out the girls?\n",
|
583 |
+
" - What did Jerry lose for Blackie O'Reilly?\n",
|
584 |
+
" - When did Jerry arrive at the Great Northern?\n",
|
585 |
+
" - Who did Jerry tell his brother about?\n",
|
586 |
+
" - What Icelandic woman did Jerry fall for?\n",
|
587 |
+
" - Who did Ben propose to have the visitors sign the deal with?\n",
|
588 |
+
" - What did Jerry do when he broke down crying?\n",
|
589 |
+
" - Where did Jerry go after Jerry broke down?\n",
|
590 |
+
" - What caused Jerry to close the office doors when he broke down crying?\n",
|
591 |
+
" - Who did Jerry woo at a party held for the businessmen at the Great Northern?\n",
|
592 |
+
" - What caused Leland to have a misunderstanding?\n",
|
593 |
+
" - What caused Leland to have a breakdown?\n",
|
594 |
+
" - Jerry went to his brother, who said, \"get Doctor Jacoby, a net, and get out of my life\"?\n",
|
595 |
+
" - What was Ben's only beverage?\n",
|
596 |
+
" - What did Ben have in his mug of beer?\n",
|
597 |
+
" - Who was asked to dismiss them to the dining room?\n",
|
598 |
+
" - What was the name of the restaurant Jerry wanted to go to?\n",
|
599 |
+
" - What did Jerry do to Blackie?\n",
|
600 |
+
" - How did Jerry react to the question about Ben?\n",
|
601 |
+
" - What was Jerry's reaction to Jerry leaving her?\n",
|
602 |
+
" - What did Jerry say she used to be?\n",
|
603 |
+
" - Where did Jerry go to find Ben?\n",
|
604 |
+
" - Who did Jerry leave her with?\n",
|
605 |
+
" - Where did Ben and Leland Palmer discuss Catherine Martell's whereabouts?\n",
|
606 |
+
" - What was Leo Johnson's medical condition?\n",
|
607 |
+
" - What song did Hank Jennings dance with?\n",
|
608 |
+
" - What did Leland say he was back and ready for?\n",
|
609 |
+
" - Who left the night after Josie Packard left?\n",
|
610 |
+
" - Hank Jennings waited for Josie Packard to leave the night before?\n",
|
611 |
+
" - Jerry took issue with Leo apparently chopping wood inside what house?\n",
|
612 |
+
" - Hank noted the probability that what was dead in the wreckage of the mill?\n",
|
613 |
+
" - Who sat with Jerry the next day?\n",
|
614 |
+
" - Who sat with Jerry in front of the two ledgers for the Packard Sawmill?\n",
|
615 |
+
" - What did Jerry go to Ben's office with an insurance policy for the mill?\n",
|
616 |
+
" - Who signed the insurance policy?\n",
|
617 |
+
" - Who signed an insurance policy for the mill?\n",
|
618 |
+
" - Who did Ben have him call the Icelanders as Leland entered?\n",
|
619 |
+
" - What did Einar Thorson say about the fire?\n",
|
620 |
+
" - Who said that Leland called him about the fire?\n",
|
621 |
+
" - What did Ben say to Jerry?\n",
|
622 |
+
" - How long after Jerry's death did he go to the police?\n",
|
623 |
+
" - Who did Jerry ask to kill?\n",
|
624 |
+
" - What was Jerry's brother in custody for?\n",
|
625 |
+
" - Who was Leland responsible for murdering?\n",
|
626 |
+
" - Who did Ben say he was with the night Laura was killed?\n",
|
627 |
+
" - What did Ben and Catherine reminisce about when they were boys?\n",
|
628 |
+
" - Who was the FBI Special Agent that Ben was questioned by?\n",
|
629 |
+
" - Who were the FBI Special Agents questioned by?\n",
|
630 |
+
" - Who was the Sheriff?\n",
|
631 |
+
" - What was Jerry's brother's background in law?\n",
|
632 |
+
" - What did Laura's diary make about Ben?\n",
|
633 |
+
" - Who granted Jerry's request to be left alone with Ben for a moment?\n",
|
634 |
+
" - Jerry reprimanded Ben for what outburst?\n",
|
635 |
+
" - What was the name of the one-armed man brought before Benjamin?\n",
|
636 |
+
" - What did Jerry order Truman to do?\n",
|
637 |
+
" - How long had Ben been held?\n",
|
638 |
+
" - Who charged Ben with Laura's murder?\n",
|
639 |
+
" - What did Ben try to do to the sheriff but Jerry restrained him?\n",
|
640 |
+
" - When was Ben released?\n",
|
641 |
+
" - Who lost the Ghostwood Development Plan to Catherine Martell?\n",
|
642 |
+
" - Who brought Jerry to Ben's office?\n",
|
643 |
+
" - What did Ben believe Jerry to be?\n",
|
644 |
+
" - Who believed Ben to be Jeb Stuart?\n",
|
645 |
+
" - What did Jacoby believe did not help his mental state?\n",
|
646 |
+
" - Who did Jerry tell Audrey that Ben was fun in?\n",
|
647 |
+
" - What role did Ben play in Ben's Civil War?\n",
|
648 |
+
" - Who was General Grant?\n",
|
649 |
+
" - What did Ben do to Audrey?\n",
|
650 |
+
" - What was Ben's plan to preserve?\n",
|
651 |
+
" - Who was a potential business partner for Stop Ghostwood Jerry?\n",
|
652 |
+
" - What was the name of the bird that Ben presented to stop ghostwood Jerry to save?\n",
|
653 |
+
" - What did Jerry trade for cannabis?\n",
|
654 |
+
" - What was Jerry's brother's name?\n",
|
655 |
+
" - Who did Jerry interrupt while meeting with Beverly Paige?\n",
|
656 |
+
" - What did Ben reprimand Jerry for?\n",
|
657 |
+
" - Who asked if Jerry was wearing their mother's hat?\n",
|
658 |
+
" - What was Jerry's mother's hat?\n",
|
659 |
+
" - What was Dr. Jacoby's webcast known as?\n",
|
660 |
+
" - When did Jerry become lost in the woods?\n",
|
661 |
+
" - Who did Jerry talk to while high?\n",
|
662 |
+
" - What did Jerry try to do with his foot?\n",
|
663 |
+
" - How did Jerry get phone service?\n",
|
664 |
+
" - What was Jerry's great-nephew's name?\n",
|
665 |
+
" - What did Jerry blame for the disintegration of his binoculars?\n",
|
666 |
+
" - Jerry saw Cooper's doppelganger investigate what?\n",
|
667 |
+
" - What was Jerry's fault?\n",
|
668 |
+
" - Where was Jerry taken into custody by the police?\n",
|
669 |
+
" - Who played Jerry behind the scenes?\n",
|
670 |
+
" - What actor reprised the role in the 2017 revival?\n"
|
671 |
+
]
|
672 |
+
}
|
673 |
+
]
|
674 |
+
},
|
675 |
+
{
|
676 |
+
"cell_type": "code",
|
677 |
+
"source": [
|
678 |
+
""
|
679 |
+
],
|
680 |
+
"metadata": {
|
681 |
+
"id": "QN9xxnTrKLTX"
|
682 |
+
},
|
683 |
+
"id": "QN9xxnTrKLTX",
|
684 |
+
"execution_count": null,
|
685 |
+
"outputs": []
|
686 |
+
}
|
687 |
+
],
|
688 |
+
"metadata": {
|
689 |
+
"kernelspec": {
|
690 |
+
"display_name": "saturn (Python 3)",
|
691 |
+
"language": "python",
|
692 |
+
"name": "python3"
|
693 |
+
},
|
694 |
+
"language_info": {
|
695 |
+
"codemirror_mode": {
|
696 |
+
"name": "ipython",
|
697 |
+
"version": 3
|
698 |
+
},
|
699 |
+
"file_extension": ".py",
|
700 |
+
"mimetype": "text/x-python",
|
701 |
+
"name": "python",
|
702 |
+
"nbconvert_exporter": "python",
|
703 |
+
"pygments_lexer": "ipython3",
|
704 |
+
"version": "3.9.5"
|
705 |
+
},
|
706 |
+
"colab": {
|
707 |
+
"name": "question_generation.ipynb",
|
708 |
+
"provenance": [],
|
709 |
+
"collapsed_sections": [],
|
710 |
+
"toc_visible": true
|
711 |
+
},
|
712 |
+
"accelerator": "GPU",
|
713 |
+
"widgets": {
|
714 |
+
"application/vnd.jupyter.widget-state+json": {
|
715 |
+
"81c8d8eb80d64687bdcc31ab1e3f156e": {
|
716 |
+
"model_module": "@jupyter-widgets/controls",
|
717 |
+
"model_name": "HBoxModel",
|
718 |
+
"model_module_version": "1.5.0",
|
719 |
+
"state": {
|
720 |
+
"_dom_classes": [],
|
721 |
+
"_model_module": "@jupyter-widgets/controls",
|
722 |
+
"_model_module_version": "1.5.0",
|
723 |
+
"_model_name": "HBoxModel",
|
724 |
+
"_view_count": null,
|
725 |
+
"_view_module": "@jupyter-widgets/controls",
|
726 |
+
"_view_module_version": "1.5.0",
|
727 |
+
"_view_name": "HBoxView",
|
728 |
+
"box_style": "",
|
729 |
+
"children": [
|
730 |
+
"IPY_MODEL_b18ba72ca8e94c508fde617b04b82273",
|
731 |
+
"IPY_MODEL_0cc8731e80994ab097236f295da512c7",
|
732 |
+
"IPY_MODEL_e1b08799bca14b7aa8aed017b5545923"
|
733 |
+
],
|
734 |
+
"layout": "IPY_MODEL_4ee263ae48834c5dbb138a5dbe2183bd"
|
735 |
+
}
|
736 |
+
},
|
737 |
+
"b18ba72ca8e94c508fde617b04b82273": {
|
738 |
+
"model_module": "@jupyter-widgets/controls",
|
739 |
+
"model_name": "HTMLModel",
|
740 |
+
"model_module_version": "1.5.0",
|
741 |
+
"state": {
|
742 |
+
"_dom_classes": [],
|
743 |
+
"_model_module": "@jupyter-widgets/controls",
|
744 |
+
"_model_module_version": "1.5.0",
|
745 |
+
"_model_name": "HTMLModel",
|
746 |
+
"_view_count": null,
|
747 |
+
"_view_module": "@jupyter-widgets/controls",
|
748 |
+
"_view_module_version": "1.5.0",
|
749 |
+
"_view_name": "HTMLView",
|
750 |
+
"description": "",
|
751 |
+
"description_tooltip": null,
|
752 |
+
"layout": "IPY_MODEL_ae4e66819ab04f68a867768d03bc4a04",
|
753 |
+
"placeholder": "",
|
754 |
+
"style": "IPY_MODEL_6bba9b7051f64993a477688eb8c6ed92",
|
755 |
+
"value": "Writing Documents: "
|
756 |
+
}
|
757 |
+
},
|
758 |
+
"0cc8731e80994ab097236f295da512c7": {
|
759 |
+
"model_module": "@jupyter-widgets/controls",
|
760 |
+
"model_name": "FloatProgressModel",
|
761 |
+
"model_module_version": "1.5.0",
|
762 |
+
"state": {
|
763 |
+
"_dom_classes": [],
|
764 |
+
"_model_module": "@jupyter-widgets/controls",
|
765 |
+
"_model_module_version": "1.5.0",
|
766 |
+
"_model_name": "FloatProgressModel",
|
767 |
+
"_view_count": null,
|
768 |
+
"_view_module": "@jupyter-widgets/controls",
|
769 |
+
"_view_module_version": "1.5.0",
|
770 |
+
"_view_name": "ProgressView",
|
771 |
+
"bar_style": "success",
|
772 |
+
"description": "",
|
773 |
+
"description_tooltip": null,
|
774 |
+
"layout": "IPY_MODEL_96e28522b93b4c77a9d6da982d601465",
|
775 |
+
"max": 134,
|
776 |
+
"min": 0,
|
777 |
+
"orientation": "horizontal",
|
778 |
+
"style": "IPY_MODEL_9eb3c190c28b47618572ecd9e3b80932",
|
779 |
+
"value": 134
|
780 |
+
}
|
781 |
+
},
|
782 |
+
"e1b08799bca14b7aa8aed017b5545923": {
|
783 |
+
"model_module": "@jupyter-widgets/controls",
|
784 |
+
"model_name": "HTMLModel",
|
785 |
+
"model_module_version": "1.5.0",
|
786 |
+
"state": {
|
787 |
+
"_dom_classes": [],
|
788 |
+
"_model_module": "@jupyter-widgets/controls",
|
789 |
+
"_model_module_version": "1.5.0",
|
790 |
+
"_model_name": "HTMLModel",
|
791 |
+
"_view_count": null,
|
792 |
+
"_view_module": "@jupyter-widgets/controls",
|
793 |
+
"_view_module_version": "1.5.0",
|
794 |
+
"_view_name": "HTMLView",
|
795 |
+
"description": "",
|
796 |
+
"description_tooltip": null,
|
797 |
+
"layout": "IPY_MODEL_887b5bcc8d1e4c38b40700d324424f33",
|
798 |
+
"placeholder": "",
|
799 |
+
"style": "IPY_MODEL_3739785a410b4eadb0c36881e41b88ed",
|
800 |
+
"value": " 10000/? [00:00<00:00, 14955.47it/s]"
|
801 |
+
}
|
802 |
+
},
|
803 |
+
"4ee263ae48834c5dbb138a5dbe2183bd": {
|
804 |
+
"model_module": "@jupyter-widgets/base",
|
805 |
+
"model_name": "LayoutModel",
|
806 |
+
"model_module_version": "1.2.0",
|
807 |
+
"state": {
|
808 |
+
"_model_module": "@jupyter-widgets/base",
|
809 |
+
"_model_module_version": "1.2.0",
|
810 |
+
"_model_name": "LayoutModel",
|
811 |
+
"_view_count": null,
|
812 |
+
"_view_module": "@jupyter-widgets/base",
|
813 |
+
"_view_module_version": "1.2.0",
|
814 |
+
"_view_name": "LayoutView",
|
815 |
+
"align_content": null,
|
816 |
+
"align_items": null,
|
817 |
+
"align_self": null,
|
818 |
+
"border": null,
|
819 |
+
"bottom": null,
|
820 |
+
"display": null,
|
821 |
+
"flex": null,
|
822 |
+
"flex_flow": null,
|
823 |
+
"grid_area": null,
|
824 |
+
"grid_auto_columns": null,
|
825 |
+
"grid_auto_flow": null,
|
826 |
+
"grid_auto_rows": null,
|
827 |
+
"grid_column": null,
|
828 |
+
"grid_gap": null,
|
829 |
+
"grid_row": null,
|
830 |
+
"grid_template_areas": null,
|
831 |
+
"grid_template_columns": null,
|
832 |
+
"grid_template_rows": null,
|
833 |
+
"height": null,
|
834 |
+
"justify_content": null,
|
835 |
+
"justify_items": null,
|
836 |
+
"left": null,
|
837 |
+
"margin": null,
|
838 |
+
"max_height": null,
|
839 |
+
"max_width": null,
|
840 |
+
"min_height": null,
|
841 |
+
"min_width": null,
|
842 |
+
"object_fit": null,
|
843 |
+
"object_position": null,
|
844 |
+
"order": null,
|
845 |
+
"overflow": null,
|
846 |
+
"overflow_x": null,
|
847 |
+
"overflow_y": null,
|
848 |
+
"padding": null,
|
849 |
+
"right": null,
|
850 |
+
"top": null,
|
851 |
+
"visibility": null,
|
852 |
+
"width": null
|
853 |
+
}
|
854 |
+
},
|
855 |
+
"ae4e66819ab04f68a867768d03bc4a04": {
|
856 |
+
"model_module": "@jupyter-widgets/base",
|
857 |
+
"model_name": "LayoutModel",
|
858 |
+
"model_module_version": "1.2.0",
|
859 |
+
"state": {
|
860 |
+
"_model_module": "@jupyter-widgets/base",
|
861 |
+
"_model_module_version": "1.2.0",
|
862 |
+
"_model_name": "LayoutModel",
|
863 |
+
"_view_count": null,
|
864 |
+
"_view_module": "@jupyter-widgets/base",
|
865 |
+
"_view_module_version": "1.2.0",
|
866 |
+
"_view_name": "LayoutView",
|
867 |
+
"align_content": null,
|
868 |
+
"align_items": null,
|
869 |
+
"align_self": null,
|
870 |
+
"border": null,
|
871 |
+
"bottom": null,
|
872 |
+
"display": null,
|
873 |
+
"flex": null,
|
874 |
+
"flex_flow": null,
|
875 |
+
"grid_area": null,
|
876 |
+
"grid_auto_columns": null,
|
877 |
+
"grid_auto_flow": null,
|
878 |
+
"grid_auto_rows": null,
|
879 |
+
"grid_column": null,
|
880 |
+
"grid_gap": null,
|
881 |
+
"grid_row": null,
|
882 |
+
"grid_template_areas": null,
|
883 |
+
"grid_template_columns": null,
|
884 |
+
"grid_template_rows": null,
|
885 |
+
"height": null,
|
886 |
+
"justify_content": null,
|
887 |
+
"justify_items": null,
|
888 |
+
"left": null,
|
889 |
+
"margin": null,
|
890 |
+
"max_height": null,
|
891 |
+
"max_width": null,
|
892 |
+
"min_height": null,
|
893 |
+
"min_width": null,
|
894 |
+
"object_fit": null,
|
895 |
+
"object_position": null,
|
896 |
+
"order": null,
|
897 |
+
"overflow": null,
|
898 |
+
"overflow_x": null,
|
899 |
+
"overflow_y": null,
|
900 |
+
"padding": null,
|
901 |
+
"right": null,
|
902 |
+
"top": null,
|
903 |
+
"visibility": null,
|
904 |
+
"width": null
|
905 |
+
}
|
906 |
+
},
|
907 |
+
"6bba9b7051f64993a477688eb8c6ed92": {
|
908 |
+
"model_module": "@jupyter-widgets/controls",
|
909 |
+
"model_name": "DescriptionStyleModel",
|
910 |
+
"model_module_version": "1.5.0",
|
911 |
+
"state": {
|
912 |
+
"_model_module": "@jupyter-widgets/controls",
|
913 |
+
"_model_module_version": "1.5.0",
|
914 |
+
"_model_name": "DescriptionStyleModel",
|
915 |
+
"_view_count": null,
|
916 |
+
"_view_module": "@jupyter-widgets/base",
|
917 |
+
"_view_module_version": "1.2.0",
|
918 |
+
"_view_name": "StyleView",
|
919 |
+
"description_width": ""
|
920 |
+
}
|
921 |
+
},
|
922 |
+
"96e28522b93b4c77a9d6da982d601465": {
|
923 |
+
"model_module": "@jupyter-widgets/base",
|
924 |
+
"model_name": "LayoutModel",
|
925 |
+
"model_module_version": "1.2.0",
|
926 |
+
"state": {
|
927 |
+
"_model_module": "@jupyter-widgets/base",
|
928 |
+
"_model_module_version": "1.2.0",
|
929 |
+
"_model_name": "LayoutModel",
|
930 |
+
"_view_count": null,
|
931 |
+
"_view_module": "@jupyter-widgets/base",
|
932 |
+
"_view_module_version": "1.2.0",
|
933 |
+
"_view_name": "LayoutView",
|
934 |
+
"align_content": null,
|
935 |
+
"align_items": null,
|
936 |
+
"align_self": null,
|
937 |
+
"border": null,
|
938 |
+
"bottom": null,
|
939 |
+
"display": null,
|
940 |
+
"flex": null,
|
941 |
+
"flex_flow": null,
|
942 |
+
"grid_area": null,
|
943 |
+
"grid_auto_columns": null,
|
944 |
+
"grid_auto_flow": null,
|
945 |
+
"grid_auto_rows": null,
|
946 |
+
"grid_column": null,
|
947 |
+
"grid_gap": null,
|
948 |
+
"grid_row": null,
|
949 |
+
"grid_template_areas": null,
|
950 |
+
"grid_template_columns": null,
|
951 |
+
"grid_template_rows": null,
|
952 |
+
"height": null,
|
953 |
+
"justify_content": null,
|
954 |
+
"justify_items": null,
|
955 |
+
"left": null,
|
956 |
+
"margin": null,
|
957 |
+
"max_height": null,
|
958 |
+
"max_width": null,
|
959 |
+
"min_height": null,
|
960 |
+
"min_width": null,
|
961 |
+
"object_fit": null,
|
962 |
+
"object_position": null,
|
963 |
+
"order": null,
|
964 |
+
"overflow": null,
|
965 |
+
"overflow_x": null,
|
966 |
+
"overflow_y": null,
|
967 |
+
"padding": null,
|
968 |
+
"right": null,
|
969 |
+
"top": null,
|
970 |
+
"visibility": null,
|
971 |
+
"width": null
|
972 |
+
}
|
973 |
+
},
|
974 |
+
"9eb3c190c28b47618572ecd9e3b80932": {
|
975 |
+
"model_module": "@jupyter-widgets/controls",
|
976 |
+
"model_name": "ProgressStyleModel",
|
977 |
+
"model_module_version": "1.5.0",
|
978 |
+
"state": {
|
979 |
+
"_model_module": "@jupyter-widgets/controls",
|
980 |
+
"_model_module_version": "1.5.0",
|
981 |
+
"_model_name": "ProgressStyleModel",
|
982 |
+
"_view_count": null,
|
983 |
+
"_view_module": "@jupyter-widgets/base",
|
984 |
+
"_view_module_version": "1.2.0",
|
985 |
+
"_view_name": "StyleView",
|
986 |
+
"bar_color": null,
|
987 |
+
"description_width": ""
|
988 |
+
}
|
989 |
+
},
|
990 |
+
"887b5bcc8d1e4c38b40700d324424f33": {
|
991 |
+
"model_module": "@jupyter-widgets/base",
|
992 |
+
"model_name": "LayoutModel",
|
993 |
+
"model_module_version": "1.2.0",
|
994 |
+
"state": {
|
995 |
+
"_model_module": "@jupyter-widgets/base",
|
996 |
+
"_model_module_version": "1.2.0",
|
997 |
+
"_model_name": "LayoutModel",
|
998 |
+
"_view_count": null,
|
999 |
+
"_view_module": "@jupyter-widgets/base",
|
1000 |
+
"_view_module_version": "1.2.0",
|
1001 |
+
"_view_name": "LayoutView",
|
1002 |
+
"align_content": null,
|
1003 |
+
"align_items": null,
|
1004 |
+
"align_self": null,
|
1005 |
+
"border": null,
|
1006 |
+
"bottom": null,
|
1007 |
+
"display": null,
|
1008 |
+
"flex": null,
|
1009 |
+
"flex_flow": null,
|
1010 |
+
"grid_area": null,
|
1011 |
+
"grid_auto_columns": null,
|
1012 |
+
"grid_auto_flow": null,
|
1013 |
+
"grid_auto_rows": null,
|
1014 |
+
"grid_column": null,
|
1015 |
+
"grid_gap": null,
|
1016 |
+
"grid_row": null,
|
1017 |
+
"grid_template_areas": null,
|
1018 |
+
"grid_template_columns": null,
|
1019 |
+
"grid_template_rows": null,
|
1020 |
+
"height": null,
|
1021 |
+
"justify_content": null,
|
1022 |
+
"justify_items": null,
|
1023 |
+
"left": null,
|
1024 |
+
"margin": null,
|
1025 |
+
"max_height": null,
|
1026 |
+
"max_width": null,
|
1027 |
+
"min_height": null,
|
1028 |
+
"min_width": null,
|
1029 |
+
"object_fit": null,
|
1030 |
+
"object_position": null,
|
1031 |
+
"order": null,
|
1032 |
+
"overflow": null,
|
1033 |
+
"overflow_x": null,
|
1034 |
+
"overflow_y": null,
|
1035 |
+
"padding": null,
|
1036 |
+
"right": null,
|
1037 |
+
"top": null,
|
1038 |
+
"visibility": null,
|
1039 |
+
"width": null
|
1040 |
+
}
|
1041 |
+
},
|
1042 |
+
"3739785a410b4eadb0c36881e41b88ed": {
|
1043 |
+
"model_module": "@jupyter-widgets/controls",
|
1044 |
+
"model_name": "DescriptionStyleModel",
|
1045 |
+
"model_module_version": "1.5.0",
|
1046 |
+
"state": {
|
1047 |
+
"_model_module": "@jupyter-widgets/controls",
|
1048 |
+
"_model_module_version": "1.5.0",
|
1049 |
+
"_model_name": "DescriptionStyleModel",
|
1050 |
+
"_view_count": null,
|
1051 |
+
"_view_module": "@jupyter-widgets/base",
|
1052 |
+
"_view_module_version": "1.2.0",
|
1053 |
+
"_view_name": "StyleView",
|
1054 |
+
"description_width": ""
|
1055 |
+
}
|
1056 |
+
}
|
1057 |
+
}
|
1058 |
+
}
|
1059 |
+
},
|
1060 |
+
"nbformat": 4,
|
1061 |
+
"nbformat_minor": 5
|
1062 |
+
}
|