Skip to content

Commit 6be35a6

Browse files
authored
Merge pull request #4 from mart-r/separateFoldersForParts
Using different data folder for each part of tutorial
2 parents 1af1a5c + 18c41a4 commit 6be35a6

10 files changed

+13381
-16402
lines changed

notebooks/introductory/Part_2_Dataset_Analysis_and_Preparation.html

Lines changed: 13316 additions & 16345 deletions
Large diffs are not rendered by default.

notebooks/introductory/Part_2_Dataset_Analysis_and_Preparation.ipynb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959
},
6060
"outputs": [],
6161
"source": [
62-
"DATA_DIR = \"./data/\""
62+
"DATA_DIR = \"./data_p2/\"\n",
63+
"! DATA_DIR=\"./data_p2/\""
6364
]
6465
},
6566
{
@@ -84,8 +85,8 @@
8485
"outputs": [],
8586
"source": [
8687
"# Load files if in google colab, otherwise skip this step\n",
87-
"! wget https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/noteevents.csv -P ./data/\n",
88-
"! wget https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/patients.csv -P ./data/"
88+
"! wget -N https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/noteevents.csv -P $DATA_DIR\n",
89+
"! wget -N https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/patients.csv -P $DATA_DIR"
8990
]
9091
},
9192
{

notebooks/introductory/Part_3_1_Building_a_Concept_Database_and_Vocabulary.ipynb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,8 @@
365365
},
366366
"outputs": [],
367367
"source": [
368-
"DATA_DIR = \"./data/\""
368+
"DATA_DIR = \"./data_p3.1/\"\n",
369+
"! DATA_DIR=\"./data_p3.1/\""
369370
]
370371
},
371372
{
@@ -421,9 +422,9 @@
421422
],
422423
"source": [
423424
"# Load files if in google colab, otherwise skip this step\n",
424-
"!wget https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/cdb_simple.csv -P ./data/\n",
425-
"!wget https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/cdb_advanced.csv -P ./data/\n",
426-
"!wget https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/vocab_data.txt -P ./data/"
425+
"!wget -N https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/cdb_simple.csv -P $DATA_DIR\n",
426+
"!wget -N https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/cdb_advanced.csv -P $DATA_DIR\n",
427+
"!wget -N https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/vocab_data.txt -P $DATA_DIR"
427428
]
428429
},
429430
{

notebooks/introductory/Part_3_2_Extracting_Diseases_from_Electronic_Health_Records.ipynb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@
329329
},
330330
"outputs": [],
331331
"source": [
332-
"DATA_DIR = \"./data/\"\n",
332+
"DATA_DIR = \"./data_p3.2/\"\n",
333+
"! DATA_DIR=\"./data_p3.2/\"\n",
333334
"model_pack_path = DATA_DIR + \"medmen_wstatus_2021_oct.zip\""
334335
]
335336
},
@@ -375,8 +376,8 @@
375376
],
376377
"source": [
377378
"# Download the models and required data\n",
378-
"!wget https://medcat.rosalind.kcl.ac.uk/media/medmen_wstatus_2021_oct.zip -P ./data/\n",
379-
"!wget https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/pt_notes.csv -P ./data/"
379+
"!wget -N https://medcat.rosalind.kcl.ac.uk/media/medmen_wstatus_2021_oct.zip -P $DATA_DIR\n",
380+
"!wget -N https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/pt_notes.csv -P $DATA_DIR"
380381
]
381382
},
382383
{

notebooks/introductory/Part_4_1_ByteLevelBPETokenizer_and_Embeddings.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13381,7 +13381,8 @@
1338113381
<div class="prompt input_prompt">In&nbsp;[2]:</div>
1338213382
<div class="inner_cell">
1338313383
<div class="input_area">
13384-
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">DATA_DIR</span> <span class="o">=</span> <span class="s2">&quot;./data/&quot;</span>
13384+
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">DATA_DIR</span> <span class="o">=</span> <span class="s2">&quot;./data_p4.1/&quot;</span>
13385+
<span class="o">!</span> <span class="nv">DATA_DIR</span><span class="o">=</span><span class="s2">&quot;./data_p4.1/&quot;</span>
1338513386
</pre></div>
1338613387

1338713388
</div>
@@ -13394,9 +13395,8 @@
1339413395
<div class="prompt input_prompt">In&nbsp;[3]:</div>
1339513396
<div class="inner_cell">
1339613397
<div class="input_area">
13397-
<div class=" highlight hl-ipython3"><pre><span></span><span class="o">!</span>mkdir ./data
13398-
<span class="o">!</span>mkdir ./models
13399-
<span class="o">!</span>wget https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/noteevents.csv -P ./data/
13398+
<div class=" highlight hl-ipython3"><pre><span></span><span class="o">!</span>mkdir ./models
13399+
<span class="o">!</span>wget -N https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/noteevents.csv -P <span class="nv">$DATA_DIR</span>
1340013400
</pre></div>
1340113401

1340213402
</div>

notebooks/introductory/Part_4_1_ByteLevelBPETokenizer_and_Embeddings.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@
296296
},
297297
"outputs": [],
298298
"source": [
299-
"DATA_DIR = \"./data/\""
299+
"DATA_DIR = \"./data_p4.1/\"\n",
300+
"! DATA_DIR=\"./data_p4.1/\""
300301
]
301302
},
302303
{
@@ -331,9 +332,8 @@
331332
}
332333
],
333334
"source": [
334-
"!mkdir ./data\n",
335335
"!mkdir ./models\n",
336-
"!wget https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/noteevents.csv -P ./data/"
336+
"!wget -N https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/noteevents.csv -P $DATA_DIR"
337337
]
338338
},
339339
{

notebooks/introductory/Part_4_2_Supervised_Training_and_Meta_annotations.html

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13456,7 +13456,8 @@
1345613456
<div class="prompt input_prompt">In&nbsp;[2]:</div>
1345713457
<div class="inner_cell">
1345813458
<div class="input_area">
13459-
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">DATA_DIR</span> <span class="o">=</span> <span class="s2">&quot;./data/&quot;</span>
13459+
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">DATA_DIR</span> <span class="o">=</span> <span class="s2">&quot;./data_p4.2/&quot;</span>
13460+
<span class="o">!</span> <span class="nv">DATA_DIR</span><span class="o">=</span><span class="s2">&quot;./data_p4.2/&quot;</span>
1346013461
<span class="n">vocab_path</span> <span class="o">=</span> <span class="n">DATA_DIR</span> <span class="o">+</span> <span class="s2">&quot;vocab.dat&quot;</span>
1346113462
<span class="n">cdb_path</span> <span class="o">=</span> <span class="n">DATA_DIR</span> <span class="o">+</span> <span class="s2">&quot;cdb-medmen-v1_2.dat&quot;</span>
1346213463
</pre></div>
@@ -13472,13 +13473,13 @@
1347213473
<div class="inner_cell">
1347313474
<div class="input_area">
1347413475
<div class=" highlight hl-ipython3"><pre><span></span><span class="c1"># Download the models and required data</span>
13475-
<span class="o">!</span>wget https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/MedCAT_Export.json -P ./data/
13476+
<span class="o">!</span>wget -N https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/MedCAT_Export.json -P <span class="nv">$DATA_DIR</span>
1347613477
<span class="c1"># You can also use the models created in Part 4.1 of the Tutorial</span>
13477-
<span class="o">!</span>wget https://medcat.rosalind.kcl.ac.uk/media/mc_status.zip -P ./data/
13478+
<span class="o">!</span>wget -N https://medcat.rosalind.kcl.ac.uk/media/mc_status.zip -P <span class="nv">$DATA_DIR</span>
1347813479

1347913480
<span class="c1"># Get MedCAT models components (Alternatively you can use a previously created MedCAT model packs)</span>
13480-
<span class="o">!</span>wget https://medcat.rosalind.kcl.ac.uk/media/vocab.dat -P ./data/
13481-
<span class="o">!</span>wget https://medcat.rosalind.kcl.ac.uk/media/cdb-medmen-v1_2.dat -P ./data/
13481+
<span class="o">!</span>wget -N https://medcat.rosalind.kcl.ac.uk/media/vocab.dat -P <span class="nv">$DATA_DIR</span>
13482+
<span class="o">!</span>wget -N https://medcat.rosalind.kcl.ac.uk/media/cdb-medmen-v1_2.dat -P <span class="nv">$DATA_DIR</span>
1348213483
</pre></div>
1348313484

1348413485
</div>
@@ -13856,10 +13857,10 @@ <h2 id="Fine-tuning-the-NER+L&#160;model">Fine-tuning the NER+L&#160;model<a cla
1385613857

1385713858

1385813859

13859-
<div id="2c4cfc10-c868-4808-8617-99bd05d4ae29"></div>
13860+
<div id="67de1efe-00b6-4c8b-8087-71fa99135d17"></div>
1386013861
<div class="output_subarea output_widget_view ">
1386113862
<script type="text/javascript">
13862-
var element = $('#2c4cfc10-c868-4808-8617-99bd05d4ae29');
13863+
var element = $('#67de1efe-00b6-4c8b-8087-71fa99135d17');
1386313864
</script>
1386413865
<script type="application/vnd.jupyter.widget-view+json">
1386513866
{"model_id": "6fd10f1692234019836a7b40e83b56dd", "version_major": 2, "version_minor": 0}
@@ -13878,10 +13879,10 @@ <h2 id="Fine-tuning-the-NER+L&#160;model">Fine-tuning the NER+L&#160;model<a cla
1387813879

1387913880

1388013881

13881-
<div id="03d17422-52b1-4855-9d35-e3215fae167b"></div>
13882+
<div id="85b8bbf4-b472-4cad-b006-9ab0a9d42505"></div>
1388213883
<div class="output_subarea output_widget_view ">
1388313884
<script type="text/javascript">
13884-
var element = $('#03d17422-52b1-4855-9d35-e3215fae167b');
13885+
var element = $('#85b8bbf4-b472-4cad-b006-9ab0a9d42505');
1388513886
</script>
1388613887
<script type="application/vnd.jupyter.widget-view+json">
1388713888
{"model_id": "9a5ab9cfecc242b7aaf0f140e87bdde6", "version_major": 2, "version_minor": 0}
@@ -13960,10 +13961,10 @@ <h2 id="Fine-tuning-the-NER+L&#160;model">Fine-tuning the NER+L&#160;model<a cla
1396013961

1396113962

1396213963

13963-
<div id="f3be2916-fd15-4ec5-8e57-a5b69138fe73"></div>
13964+
<div id="f56894de-10d3-4ed8-a170-b3453dcbdd8a"></div>
1396413965
<div class="output_subarea output_widget_view ">
1396513966
<script type="text/javascript">
13966-
var element = $('#f3be2916-fd15-4ec5-8e57-a5b69138fe73');
13967+
var element = $('#f56894de-10d3-4ed8-a170-b3453dcbdd8a');
1396713968
</script>
1396813969
<script type="application/vnd.jupyter.widget-view+json">
1396913970
{"model_id": "434496e448984f55925d22fad0349ada", "version_major": 2, "version_minor": 0}
@@ -13982,10 +13983,10 @@ <h2 id="Fine-tuning-the-NER+L&#160;model">Fine-tuning the NER+L&#160;model<a cla
1398213983

1398313984

1398413985

13985-
<div id="435eabf2-05c8-468d-a4f5-04d94bab9df6"></div>
13986+
<div id="e07fd17d-1e2c-4c6e-bf14-2c98574afa09"></div>
1398613987
<div class="output_subarea output_widget_view ">
1398713988
<script type="text/javascript">
13988-
var element = $('#435eabf2-05c8-468d-a4f5-04d94bab9df6');
13989+
var element = $('#e07fd17d-1e2c-4c6e-bf14-2c98574afa09');
1398913990
</script>
1399013991
<script type="application/vnd.jupyter.widget-view+json">
1399113992
{"model_id": "f7d1803b3c6c4197b6612c5fdf189746", "version_major": 2, "version_minor": 0}
@@ -14004,10 +14005,10 @@ <h2 id="Fine-tuning-the-NER+L&#160;model">Fine-tuning the NER+L&#160;model<a cla
1400414005

1400514006

1400614007

14007-
<div id="545a3c12-b3d5-494c-96bf-8c7cbf986eef"></div>
14008+
<div id="64c13165-9925-4d55-866b-4443c4811ccc"></div>
1400814009
<div class="output_subarea output_widget_view ">
1400914010
<script type="text/javascript">
14010-
var element = $('#545a3c12-b3d5-494c-96bf-8c7cbf986eef');
14011+
var element = $('#64c13165-9925-4d55-866b-4443c4811ccc');
1401114012
</script>
1401214013
<script type="application/vnd.jupyter.widget-view+json">
1401314014
{"model_id": "c8d633f579de438a916d9ef3de9d8fe0", "version_major": 2, "version_minor": 0}
@@ -14026,10 +14027,10 @@ <h2 id="Fine-tuning-the-NER+L&#160;model">Fine-tuning the NER+L&#160;model<a cla
1402614027

1402714028

1402814029

14029-
<div id="0238c7f1-18f7-463f-94e7-56f2fa6c79fd"></div>
14030+
<div id="d1291166-e062-415c-8d37-9cc9abceae54"></div>
1403014031
<div class="output_subarea output_widget_view ">
1403114032
<script type="text/javascript">
14032-
var element = $('#0238c7f1-18f7-463f-94e7-56f2fa6c79fd');
14033+
var element = $('#d1291166-e062-415c-8d37-9cc9abceae54');
1403314034
</script>
1403414035
<script type="application/vnd.jupyter.widget-view+json">
1403514036
{"model_id": "de6c01c6983041e2b972f6008caefaea", "version_major": 2, "version_minor": 0}
@@ -14048,10 +14049,10 @@ <h2 id="Fine-tuning-the-NER+L&#160;model">Fine-tuning the NER+L&#160;model<a cla
1404814049

1404914050

1405014051

14051-
<div id="ece40ac1-586f-4e64-bbde-2b5e6e76f29c"></div>
14052+
<div id="80b0637e-4fa2-4f20-a2db-23c6cc714d3d"></div>
1405214053
<div class="output_subarea output_widget_view ">
1405314054
<script type="text/javascript">
14054-
var element = $('#ece40ac1-586f-4e64-bbde-2b5e6e76f29c');
14055+
var element = $('#80b0637e-4fa2-4f20-a2db-23c6cc714d3d');
1405514056
</script>
1405614057
<script type="application/vnd.jupyter.widget-view+json">
1405714058
{"model_id": "05132c907a874fe2a2eb9cb6c81da3b3", "version_major": 2, "version_minor": 0}
@@ -17499,10 +17500,10 @@ <h2 id="Fine-tuning-the-NER+L&#160;model">Fine-tuning the NER+L&#160;model<a cla
1749917500

1750017501

1750117502

17502-
<div id="187bea09-eac3-44a8-8ed8-742c4f196f48"></div>
17503+
<div id="4cab73e4-7a13-48e6-a78a-5757ae1396da"></div>
1750317504
<div class="output_subarea output_widget_view ">
1750417505
<script type="text/javascript">
17505-
var element = $('#187bea09-eac3-44a8-8ed8-742c4f196f48');
17506+
var element = $('#4cab73e4-7a13-48e6-a78a-5757ae1396da');
1750617507
</script>
1750717508
<script type="application/vnd.jupyter.widget-view+json">
1750817509
{"model_id": "00325922360c45009329d82ed6420f16", "version_major": 2, "version_minor": 0}
@@ -17521,10 +17522,10 @@ <h2 id="Fine-tuning-the-NER+L&#160;model">Fine-tuning the NER+L&#160;model<a cla
1752117522

1752217523

1752317524

17524-
<div id="1259360d-2e1c-4bf9-9acc-a351a6e829a0"></div>
17525+
<div id="dcbc3dbf-c5ab-48ce-87aa-c94433f19418"></div>
1752517526
<div class="output_subarea output_widget_view ">
1752617527
<script type="text/javascript">
17527-
var element = $('#1259360d-2e1c-4bf9-9acc-a351a6e829a0');
17528+
var element = $('#dcbc3dbf-c5ab-48ce-87aa-c94433f19418');
1752817529
</script>
1752917530
<script type="application/vnd.jupyter.widget-view+json">
1753017531
{"model_id": "d48e2f4d6dd3467fb3f17e0244b0e361", "version_major": 2, "version_minor": 0}
@@ -17826,7 +17827,7 @@ <h3 id="MetaCAT">MetaCAT<a class="anchor-link" href="#MetaCAT">&#182;</a></h3><p
1782617827
<div class="prompt input_prompt">In&nbsp;[16]:</div>
1782717828
<div class="inner_cell">
1782817829
<div class="input_area">
17829-
<div class=" highlight hl-ipython3"><pre><span></span><span class="o">!</span>unzip data/mc_status.zip
17830+
<div class=" highlight hl-ipython3"><pre><span></span><span class="o">!</span>unzip <span class="nv">$DATA_DIR</span>/mc_status.zip
1783017831
</pre></div>
1783117832

1783217833
</div>

notebooks/introductory/Part_4_2_Supervised_Training_and_Meta_annotations.ipynb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@
366366
},
367367
"outputs": [],
368368
"source": [
369-
"DATA_DIR = \"./data/\"\n",
369+
"DATA_DIR = \"./data_p4.2/\"\n",
370+
"! DATA_DIR=\"./data_p4.2/\"\n",
370371
"vocab_path = DATA_DIR + \"vocab.dat\"\n",
371372
"cdb_path = DATA_DIR + \"cdb-medmen-v1_2.dat\""
372373
]
@@ -435,13 +436,13 @@
435436
],
436437
"source": [
437438
"# Download the models and required data\n",
438-
"!wget https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/MedCAT_Export.json -P ./data/\n",
439+
"!wget -N https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/MedCAT_Export.json -P $DATA_DIR\n",
439440
"# You can also use the models created in Part 4.1 of the Tutorial\n",
440-
"!wget https://medcat.rosalind.kcl.ac.uk/media/mc_status.zip -P ./data/\n",
441+
"!wget -N https://medcat.rosalind.kcl.ac.uk/media/mc_status.zip -P $DATA_DIR\n",
441442
"\n",
442443
"# Get MedCAT models components (Alternatively you can use a previously created MedCAT model packs)\n",
443-
"!wget https://medcat.rosalind.kcl.ac.uk/media/vocab.dat -P ./data/\n",
444-
"!wget https://medcat.rosalind.kcl.ac.uk/media/cdb-medmen-v1_2.dat -P ./data/"
444+
"!wget -N https://medcat.rosalind.kcl.ac.uk/media/vocab.dat -P $DATA_DIR\n",
445+
"!wget -N https://medcat.rosalind.kcl.ac.uk/media/cdb-medmen-v1_2.dat -P $DATA_DIR"
445446
]
446447
},
447448
{
@@ -4719,7 +4720,7 @@
47194720
}
47204721
],
47214722
"source": [
4722-
"!unzip data/mc_status.zip"
4723+
"!unzip $DATA_DIR/mc_status.zip"
47234724
]
47244725
},
47254726
{

notebooks/introductory/Part_4_3_Annotating_documents_with_the_full_MedCAT_pipeline_with_MetaAnnotations.ipynb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,10 @@
326326
},
327327
"outputs": [],
328328
"source": [
329-
"DATA_DIR = \"./data/\"\n",
329+
"DATA_DIR = \"./data_p4.3/\"\n",
330+
"! DATA_DIR=\"./data_p4.3/\"\n",
330331
"MODEL_DIR = \"./models/\"\n",
332+
"! MODEL_DIR=\"./models/\"\n",
331333
"model_pack_path = MODEL_DIR + \"medmen_wstatus_2021_oct.zip\""
332334
]
333335
},
@@ -384,11 +386,11 @@
384386
],
385387
"source": [
386388
"# Download the models and required data\n",
387-
"!wget https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/pt_notes.csv -P ./data/\n",
388-
"!wget https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/MedCAT_Export.json -P ./data/\n",
389+
"!wget -N https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/pt_notes.csv -P $DATA_DIR\n",
390+
"!wget -N https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/MedCAT_Export.json -P $DATA_DIR\n",
389391
"\n",
390392
"# Download the medcat modelpack\n",
391-
"!wget https://medcat.rosalind.kcl.ac.uk/media/medmen_wstatus_2021_oct.zip -P ./models/\n"
393+
"!wget -N https://medcat.rosalind.kcl.ac.uk/media/medmen_wstatus_2021_oct.zip -P $MODEL_DIR\n"
392394
]
393395
},
394396
{
@@ -496,7 +498,7 @@
496498
}
497499
],
498500
"source": [
499-
"!wget https://raw.githubusercontent.com/CogStack/MedCAT/master/tutorial/data/pt_notes.csv -P ./data/"
501+
"!wget -N https://raw.githubusercontent.com/CogStack/MedCAT/master/tutorial/data/pt_notes.csv -P $DATA_DIR"
500502
]
501503
},
502504
{

notebooks/introductory/Part_5_Prevalence_of_Physical_and_Mental_Diseases.ipynb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@
320320
},
321321
"outputs": [],
322322
"source": [
323-
"DATA_DIR = \"./data/\"\n",
323+
"DATA_DIR = \"./data_p5/\"\n",
324+
"! DATA_DIR=\"./data_p5/\"\n",
324325
"model_pack_path = DATA_DIR + \"medmen_wstatus_2021_oct.zip\""
325326
]
326327
},
@@ -397,11 +398,11 @@
397398
],
398399
"source": [
399400
"# Download the models and required data\n",
400-
"!wget https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/pt_notes.csv -P ./data/\n",
401-
"!wget https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/MedCAT_Export.json -P ./data/\n",
402-
"!wget https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/cui_location.json -P ./data/\n",
401+
"!wget -N https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/pt_notes.csv -P $DATA_DIR\n",
402+
"!wget -N https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/MedCAT_Export.json -P $DATA_DIR\n",
403+
"!wget -N https://raw.githubusercontent.com/CogStack/MedCATtutorials/main/notebooks/introductory/data/cui_location.json -P $DATA_DIR\n",
403404
"\n",
404-
"!wget https://medcat.rosalind.kcl.ac.uk/media/medmen_wstatus_2021_oct.zip -P ./data/"
405+
"!wget -N https://medcat.rosalind.kcl.ac.uk/media/medmen_wstatus_2021_oct.zip -P $DATA_DIR"
405406
]
406407
},
407408
{

0 commit comments

Comments
 (0)