Skip to content

Commit a921ba0

Browse files
authored
CU-86973p9z4 Update tutorials to medcat 1.14 (CogStack/MedCATtutorials#28)
* CU-86973p9z4: Update requirement to medcat 1.14 * CU-86973p9z4: Update installed medcat verison in notebooks to 1.14 * CU-86973p9z4: Update workflow to python 3.11 * CU-86973p9z4: Update workflow to use latest ubuntu (instead of macos-12) * CU-86973p9z4: Update workflow to use latest macos * CU-86973p9z4: Reverting python version to 3.9 in workflow * CU-86973p9z4: Fix (hopefully) IPython setup * CU-86973p9z4: Add pin for matplotlib (less than 3.8) * Revert "CU-86973p9z4: Reverting python version to 3.9 in workflow" This reverts commit 69ed00f48d898bfc45be8950910ab5b602600105.
1 parent 2b1c150 commit a921ba0

20 files changed

+43
-42
lines changed

medcat-v1-tutorials/.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
main:
1111

12-
runs-on: macos-12
12+
runs-on: macos-latest
1313
strategy:
1414
matrix:
1515
part: [
@@ -27,14 +27,14 @@ jobs:
2727
- name: Setup Python
2828
uses: actions/setup-python@v5
2929
with:
30-
python-version: "3.8"
30+
python-version: "3.11"
3131
- name: Install dependencies
3232
run: |
3333
pip install -U pip
3434
pip install -r requirements-dev.txt
3535
- name: Install IPython kernel
3636
run: |
37-
python -m ipykernel install --name smoketests
37+
python -m ipykernel install --name smoketests --user
3838
- name: Smoke test tutorial
3939
run: |
4040
pytest --collect-only --nbmake ./notebooks/${{ matrix.part }}

medcat-v1-tutorials/notebooks/introductory/Part_1_1_OPTIONAL_Logging_With_MedCAT.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13095,7 +13095,7 @@ <h1 id="MedCAT-tutorial---logging-with-MedCAT">MedCAT tutorial - logging with Me
1309513095
<div class="inner_cell">
1309613096
<div class="input_area">
1309713097
<div class=" highlight hl-ipython3"><pre><span></span><span class="c1"># Install medcat</span>
13098-
<span class="o">!</span> pip install medcat~<span class="o">=</span><span class="m">1</span>.13.0
13098+
<span class="o">!</span> pip install medcat~<span class="o">=</span><span class="m">1</span>.14.0
1309913099
<span class="k">try</span><span class="p">:</span>
1310013100
<span class="kn">from</span> <span class="nn">medcat.cat</span> <span class="kn">import</span> <span class="n">CAT</span>
1310113101
<span class="k">except</span><span class="p">:</span>

medcat-v1-tutorials/notebooks/introductory/Part_1_1_OPTIONAL_Logging_With_MedCAT.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"outputs": [],
2020
"source": [
2121
"# Install medcat\n",
22-
"! pip install medcat~=1.13.0\n",
22+
"! pip install medcat~=1.14.0\n",
2323
"try:\n",
2424
" from medcat.cat import CAT\n",
2525
"except:\n",

medcat-v1-tutorials/notebooks/introductory/Part_3_1_Building_a_Concept_Database_and_Vocabulary.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13099,7 +13099,7 @@ <h3 id="First-we-need-to-install-MedCAT">First we need to install MedCAT<a class
1309913099
<div class="inner_cell">
1310013100
<div class="input_area">
1310113101
<div class=" highlight hl-ipython3"><pre><span></span><span class="c1"># Install MedCAT</span>
13102-
<span class="o">!</span> pip install medcat~<span class="o">=</span><span class="m">1</span>.13.0
13102+
<span class="o">!</span> pip install medcat~<span class="o">=</span><span class="m">1</span>.14.0
1310313103
<span class="c1"># Get the scispacy model</span>
1310413104
<span class="o">!</span> python -m spacy download en_core_web_md
1310513105
<span class="k">try</span><span class="p">:</span>

medcat-v1-tutorials/notebooks/introductory/Part_3_1_Building_a_Concept_Database_and_Vocabulary.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
],
323323
"source": [
324324
"# Install MedCAT\n",
325-
"! pip install medcat~=1.13.0\n",
325+
"! pip install medcat~=1.14.0\n",
326326
"# Get the scispacy model\n",
327327
"! python -m spacy download en_core_web_md\n",
328328
"try:\n",

medcat-v1-tutorials/notebooks/introductory/Part_3_2_Extracting_Diseases_from_Electronic_Health_Records.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13092,7 +13092,7 @@ <h1 id="Now-let's-start-extracting-concepts-from-unstructured-text!">Now let's s
1309213092
<div class="inner_cell">
1309313093
<div class="input_area">
1309413094
<div class=" highlight hl-ipython3"><pre><span></span><span class="c1"># Install medcat</span>
13095-
<span class="o">!</span> pip install medcat~<span class="o">=</span><span class="m">1</span>.13.0
13095+
<span class="o">!</span> pip install medcat~<span class="o">=</span><span class="m">1</span>.14.0
1309613096
<span class="c1"># install seaborn</span>
1309713097
<span class="o">!</span> pip install seaborn
1309813098
<span class="k">try</span><span class="p">:</span>
@@ -14706,10 +14706,10 @@ <h2 id="Use-Multiprocessing">Use Multiprocessing<a class="anchor-link" href="#Us
1470614706

1470714707

1470814708

14709-
<div id="8d4dc075-1e4a-4520-bc59-043368d5e637"></div>
14709+
<div id="9de888b0-4c6d-44f7-bd70-b4316f888f78"></div>
1471014710
<div class="output_subarea output_widget_view ">
1471114711
<script type="text/javascript">
14712-
var element = $('#8d4dc075-1e4a-4520-bc59-043368d5e637');
14712+
var element = $('#9de888b0-4c6d-44f7-bd70-b4316f888f78');
1471314713
</script>
1471414714
<script type="application/vnd.jupyter.widget-view+json">
1471514715
{"model_id": "05b18c97da9d4d05b9280df006a5fb82", "version_major": 2, "version_minor": 0}

medcat-v1-tutorials/notebooks/introductory/Part_3_2_Extracting_Diseases_from_Electronic_Health_Records.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@
275275
],
276276
"source": [
277277
"# Install medcat\n",
278-
"! pip install medcat~=1.13.0\n",
278+
"! pip install medcat~=1.14.0\n",
279279
"# install seaborn\n",
280280
"! pip install seaborn\n",
281281
"try:\n",

medcat-v1-tutorials/notebooks/introductory/Part_3_3_Model_technical_optimisations.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13092,7 +13092,7 @@ <h1 id="Now-let's-look-at-ways-to-optimise-the-model-for-our-specific-use-case">
1309213092
<div class="inner_cell">
1309313093
<div class="input_area">
1309413094
<div class=" highlight hl-ipython3"><pre><span></span><span class="c1"># Install medcat</span>
13095-
<span class="o">!</span> pip install medcat~<span class="o">=</span><span class="m">1</span>.13.0
13095+
<span class="o">!</span> pip install medcat~<span class="o">=</span><span class="m">1</span>.14.0
1309613096
<span class="k">try</span><span class="p">:</span>
1309713097
<span class="kn">from</span> <span class="nn">medcat.cat</span> <span class="kn">import</span> <span class="n">CAT</span>
1309813098
<span class="k">except</span><span class="p">:</span>

medcat-v1-tutorials/notebooks/introductory/Part_3_3_Model_technical_optimisations.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
],
166166
"source": [
167167
"# Install medcat\n",
168-
"! pip install medcat~=1.13.0\n",
168+
"! pip install medcat~=1.14.0\n",
169169
"try:\n",
170170
" from medcat.cat import CAT\n",
171171
"except:\n",

medcat-v1-tutorials/notebooks/introductory/Part_4_1_ByteLevelBPETokenizer_and_Embeddings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13093,7 +13093,7 @@ <h4><b>NOTE:</b> This tutorial is applicable for BiLSTM model not BERT as BERT m
1309313093
<div class="inner_cell">
1309413094
<div class="input_area">
1309513095
<div class=" highlight hl-ipython3"><pre><span></span><span class="c1"># Install medcat</span>
13096-
<span class="o">!</span> pip install medcat~<span class="o">=</span><span class="m">1</span>.13.0
13096+
<span class="o">!</span> pip install medcat~<span class="o">=</span><span class="m">1</span>.14.0
1309713097
<span class="k">try</span><span class="p">:</span>
1309813098
<span class="kn">from</span> <span class="nn">medcat.cat</span> <span class="kn">import</span> <span class="n">CAT</span>
1309913099
<span class="k">except</span><span class="p">:</span>

0 commit comments

Comments
 (0)