Skip to content

Commit a85fe6c

Browse files
committed
fix: remove reference to whl
1 parent 1de3819 commit a85fe6c

File tree

1 file changed

+35
-65
lines changed

1 file changed

+35
-65
lines changed

python/queries/vaccination-card.ipynb

Lines changed: 35 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
{
2020
"cell_type": "code",
21-
"execution_count": 11,
21+
"execution_count": 1,
2222
"id": "34511af8",
2323
"metadata": {},
2424
"outputs": [
@@ -29,7 +29,7 @@
2929
"<IPython.core.display.Image object>"
3030
]
3131
},
32-
"execution_count": 11,
32+
"execution_count": 1,
3333
"metadata": {},
3434
"output_type": "execute_result"
3535
}
@@ -50,46 +50,26 @@
5050
},
5151
{
5252
"cell_type": "code",
53-
"execution_count": 12,
53+
"execution_count": 2,
5454
"id": "2c12c8e0",
5555
"metadata": {},
5656
"outputs": [
5757
{
5858
"name": "stdout",
5959
"output_type": "stream",
6060
"text": [
61-
"Processing ./amazon_textract_response_parser-0.1.21-py2.py3-none-any.whl\n",
62-
"Requirement already satisfied: boto3 in /home/ec2-user/anaconda3/envs/mxnet_latest_p37/lib/python3.7/site-packages (1.20.46)\n",
63-
"Requirement already satisfied: s3transfer<0.6.0,>=0.5.0 in /home/ec2-user/anaconda3/envs/mxnet_latest_p37/lib/python3.7/site-packages (from boto3) (0.5.0)\n",
64-
"Requirement already satisfied: botocore<1.24.0,>=1.23.46 in /home/ec2-user/anaconda3/envs/mxnet_latest_p37/lib/python3.7/site-packages (from boto3) (1.23.46)\n",
65-
"Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/ec2-user/anaconda3/envs/mxnet_latest_p37/lib/python3.7/site-packages (from boto3) (0.10.0)\n",
66-
"Requirement already satisfied: marshmallow==3.11.1 in /home/ec2-user/anaconda3/envs/mxnet_latest_p37/lib/python3.7/site-packages (from amazon-textract-response-parser==0.1.21) (3.11.1)\n",
67-
"Requirement already satisfied: urllib3<1.27,>=1.25.4 in /home/ec2-user/anaconda3/envs/mxnet_latest_p37/lib/python3.7/site-packages (from botocore<1.24.0,>=1.23.46->boto3) (1.26.7)\n",
68-
"Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /home/ec2-user/anaconda3/envs/mxnet_latest_p37/lib/python3.7/site-packages (from botocore<1.24.0,>=1.23.46->boto3) (2.8.1)\n",
69-
"Requirement already satisfied: six>=1.5 in /home/ec2-user/anaconda3/envs/mxnet_latest_p37/lib/python3.7/site-packages (from python-dateutil<3.0.0,>=2.1->botocore<1.24.0,>=1.23.46->boto3) (1.15.0)\n",
70-
"amazon-textract-response-parser is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.\n",
71-
"\u001b[33mWARNING: You are using pip version 21.3.1; however, version 22.0.3 is available.\n",
72-
"You should consider upgrading via the '/home/ec2-user/anaconda3/envs/mxnet_latest_p37/bin/python -m pip install --upgrade pip' command.\u001b[0m\n"
61+
"\u001b[33mWARNING: You are using pip version 21.1.3; however, version 22.0.4 is available.\r\n",
62+
"You should consider upgrading via the '/Users/schadem/.pyenv/versions/amazon-textract-code-samples/bin/python -m pip install --upgrade pip' command.\u001b[0m\r\n"
7363
]
7464
}
7565
],
7666
"source": [
77-
"!python -m pip install boto3 amazon_textract_response_parser-0.1.21-py2.py3-none-any.whl"
67+
"!python -m pip install -q boto3 amazon_textract_response_parser --upgrade"
7868
]
7969
},
8070
{
8171
"cell_type": "code",
82-
"execution_count": 13,
83-
"id": "7e8319e8",
84-
"metadata": {},
85-
"outputs": [],
86-
"source": [
87-
"!aws configure add-model --service-model file://service-2.json --service-name textract"
88-
]
89-
},
90-
{
91-
"cell_type": "code",
92-
"execution_count": 14,
72+
"execution_count": 3,
9373
"id": "02e43df1",
9474
"metadata": {},
9575
"outputs": [],
@@ -105,7 +85,7 @@
10585
},
10686
{
10787
"cell_type": "code",
108-
"execution_count": 16,
88+
"execution_count": 4,
10989
"id": "fd928bb3",
11090
"metadata": {},
11191
"outputs": [],
@@ -191,17 +171,17 @@
191171
},
192172
{
193173
"cell_type": "code",
194-
"execution_count": 17,
174+
"execution_count": 5,
195175
"id": "f45f043f",
196176
"metadata": {},
197177
"outputs": [
198178
{
199179
"name": "stdout",
200180
"output_type": "stream",
201181
"text": [
202-
"Requirement already satisfied: tabulate in /home/ec2-user/anaconda3/envs/mxnet_latest_p37/lib/python3.7/site-packages (0.8.9)\n",
203-
"\u001b[33mWARNING: You are using pip version 21.3.1; however, version 22.0.3 is available.\n",
204-
"You should consider upgrading via the '/home/ec2-user/anaconda3/envs/mxnet_latest_p37/bin/python -m pip install --upgrade pip' command.\u001b[0m\n"
182+
"Requirement already satisfied: tabulate in /Users/schadem/.pyenv/versions/3.9.6/envs/amazon-textract-code-samples/lib/python3.9/site-packages (0.8.9)\n",
183+
"\u001b[33mWARNING: You are using pip version 21.1.3; however, version 22.0.4 is available.\n",
184+
"You should consider upgrading via the '/Users/schadem/.pyenv/versions/amazon-textract-code-samples/bin/python -m pip install --upgrade pip' command.\u001b[0m\n"
205185
]
206186
}
207187
],
@@ -212,7 +192,7 @@
212192
},
213193
{
214194
"cell_type": "code",
215-
"execution_count": 18,
195+
"execution_count": 6,
216196
"id": "da63e6c9",
217197
"metadata": {},
218198
"outputs": [
@@ -221,19 +201,19 @@
221201
"output_type": "stream",
222202
"text": [
223203
"|------------------------------------------------------------|--------------------------------------------|--------------|\n",
224-
"| last name | PATIENT_LAST_NAME | Mary |\n",
225-
"| Who is the manufacturer for 1st dose of COVID-19? | COVID_VACCINATION_FIRST_DOSE_MANUFACTURER | Pfizer |\n",
226-
"| first name | PATIENT_FIRST_NAME | Major |\n",
227-
"| Who is the manufacturer for 2nd dose of COVID-19? | COVID_VACCINATION_SECOND_DOSE_MANUFACTURER | Pfizer |\n",
228-
"| What is the date for the 2nd dose covid-19? | COVID_VACCINATION_SECOND_DOSE_DATE | 2/8/2021 |\n",
229-
"| Which clinic site was the 2nd dose covid-19 administrated? | COVID_VACCINATION_SECOND_DOSE_CLINIC_SITE | CVS |\n",
230204
"| What is the lot number for 1st dose covid-19? | COVID_VACCINATION_FIRST_DOSE_LOT_NUMBER | AA1234 |\n",
205+
"| What is the date for the 1st dose covid-19? | COVID_VACCINATION_FIRST_DOSE_DATE | 1/18/21 |\n",
206+
"| patient number (medical record or IIS record number) | PATIENT_NUMBER_1 | 012345abcd67 |\n",
207+
"| What is the date for the 2nd dose covid-19? | COVID_VACCINATION_SECOND_DOSE_DATE | 2/8/2021 |\n",
231208
"| What is the lot number for 2nd dose covid-19? | COVID_VACCINATION_SECOND_DOSE_LOT_NUMBER | BB5678 |\n",
232209
"| patient number | PATIENT_NUMBER_2 | 012345abcd67 |\n",
233-
"| patient number (medical record or IIS record number) | PATIENT_NUMBER_1 | 012345abcd67 |\n",
234-
"| Which clinic site was the 1st dose COVID-19 administrated? | COVID_VACCINATION_FIRST_DOSE_CLINIC_SITE | XYZ |\n",
210+
"| Which clinic site was the 2nd dose covid-19 administrated? | COVID_VACCINATION_SECOND_DOSE_CLINIC_SITE | CVS |\n",
211+
"| last name | PATIENT_LAST_NAME | Mary |\n",
212+
"| Who is the manufacturer for 1st dose of COVID-19? | COVID_VACCINATION_FIRST_DOSE_MANUFACTURER | Pfizer |\n",
235213
"| MI | MI_NUMBER | M |\n",
236-
"| What is the date for the 1st dose covid-19? | COVID_VACCINATION_FIRST_DOSE_DATE | 1/18/21 |\n"
214+
"| first name | PATIENT_FIRST_NAME | Major |\n",
215+
"| Which clinic site was the 1st dose COVID-19 administrated? | COVID_VACCINATION_FIRST_DOSE_CLINIC_SITE | XYZ |\n",
216+
"| Who is the manufacturer for 2nd dose of COVID-19? | COVID_VACCINATION_SECOND_DOSE_MANUFACTURER | Pfizer |\n"
237217
]
238218
}
239219
],
@@ -251,27 +231,27 @@
251231
},
252232
{
253233
"cell_type": "code",
254-
"execution_count": 19,
234+
"execution_count": 7,
255235
"id": "5db0cbc0",
256236
"metadata": {},
257237
"outputs": [
258238
{
259239
"name": "stdout",
260240
"output_type": "stream",
261241
"text": [
262-
"vaccination.png,PATIENT_LAST_NAME,Mary\r\n",
263-
"vaccination.png,COVID_VACCINATION_FIRST_DOSE_MANUFACTURER,Pfizer\r\n",
264-
"vaccination.png,PATIENT_FIRST_NAME,Major\r\n",
265-
"vaccination.png,COVID_VACCINATION_SECOND_DOSE_MANUFACTURER,Pfizer\r\n",
266-
"vaccination.png,COVID_VACCINATION_SECOND_DOSE_DATE,2/8/2021\r\n",
267-
"vaccination.png,COVID_VACCINATION_SECOND_DOSE_CLINIC_SITE,CVS\r\n",
268242
"vaccination.png,COVID_VACCINATION_FIRST_DOSE_LOT_NUMBER,AA1234\r\n",
243+
"vaccination.png,COVID_VACCINATION_FIRST_DOSE_DATE,1/18/21\r\n",
244+
"vaccination.png,PATIENT_NUMBER_1,012345abcd67\r\n",
245+
"vaccination.png,COVID_VACCINATION_SECOND_DOSE_DATE,2/8/2021\r\n",
269246
"vaccination.png,COVID_VACCINATION_SECOND_DOSE_LOT_NUMBER,BB5678\r\n",
270247
"vaccination.png,PATIENT_NUMBER_2,012345abcd67\r\n",
271-
"vaccination.png,PATIENT_NUMBER_1,012345abcd67\r\n",
272-
"vaccination.png,COVID_VACCINATION_FIRST_DOSE_CLINIC_SITE,XYZ\r\n",
248+
"vaccination.png,COVID_VACCINATION_SECOND_DOSE_CLINIC_SITE,CVS\r\n",
249+
"vaccination.png,PATIENT_LAST_NAME,Mary\r\n",
250+
"vaccination.png,COVID_VACCINATION_FIRST_DOSE_MANUFACTURER,Pfizer\r\n",
273251
"vaccination.png,MI_NUMBER,M\r\n",
274-
"vaccination.png,COVID_VACCINATION_FIRST_DOSE_DATE,1/18/21\r\n",
252+
"vaccination.png,PATIENT_FIRST_NAME,Major\r\n",
253+
"vaccination.png,COVID_VACCINATION_FIRST_DOSE_CLINIC_SITE,XYZ\r\n",
254+
"vaccination.png,COVID_VACCINATION_SECOND_DOSE_MANUFACTURER,Pfizer\r\n",
275255
"\n"
276256
]
277257
}
@@ -286,16 +266,6 @@
286266
"print(csv_output.getvalue())\n"
287267
]
288268
},
289-
{
290-
"cell_type": "code",
291-
"execution_count": null,
292-
"id": "db43b68b",
293-
"metadata": {},
294-
"outputs": [],
295-
"source": [
296-
"# Using S"
297-
]
298-
},
299269
{
300270
"cell_type": "markdown",
301271
"id": "0eef24bb",
@@ -318,9 +288,9 @@
318288
],
319289
"metadata": {
320290
"kernelspec": {
321-
"display_name": "conda_mxnet_latest_p37",
291+
"display_name": "Python 3 (ipykernel)",
322292
"language": "python",
323-
"name": "conda_mxnet_latest_p37"
293+
"name": "python3"
324294
},
325295
"language_info": {
326296
"codemirror_mode": {
@@ -332,7 +302,7 @@
332302
"name": "python",
333303
"nbconvert_exporter": "python",
334304
"pygments_lexer": "ipython3",
335-
"version": "3.7.10"
305+
"version": "3.9.6"
336306
}
337307
},
338308
"nbformat": 4,

0 commit comments

Comments
 (0)