From 456500cbeb6e31a0f7293a935495130f8534308c Mon Sep 17 00:00:00 2001 From: mart-r Date: Thu, 12 Jun 2025 20:45:15 +0100 Subject: [PATCH 1/2] Update requirement to v0.7.0 --- notebooks/introductory/meta/1._Add_a_MetaCat_to_a_Model.ipynb | 2 +- .../introductory/migration/1._Migrate_v1_model_to_v2.ipynb | 2 +- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/notebooks/introductory/meta/1._Add_a_MetaCat_to_a_Model.ipynb b/notebooks/introductory/meta/1._Add_a_MetaCat_to_a_Model.ipynb index 112c218..b7f0e0f 100644 --- a/notebooks/introductory/meta/1._Add_a_MetaCat_to_a_Model.ipynb +++ b/notebooks/introductory/meta/1._Add_a_MetaCat_to_a_Model.ipynb @@ -76,7 +76,7 @@ } ], "source": [ - "! pip install \"medcat[meta-cat] @ git+https://github.com/CogStack/MedCAT2@v0.6.1\" # NOTE: VERSION-STRING" + "! pip install \"medcat[meta-cat] @ git+https://github.com/CogStack/MedCAT2@v0.7.0\" # NOTE: VERSION-STRING" ] }, { diff --git a/notebooks/introductory/migration/1._Migrate_v1_model_to_v2.ipynb b/notebooks/introductory/migration/1._Migrate_v1_model_to_v2.ipynb index 0ff795f..2f59fc6 100644 --- a/notebooks/introductory/migration/1._Migrate_v1_model_to_v2.ipynb +++ b/notebooks/introductory/migration/1._Migrate_v1_model_to_v2.ipynb @@ -131,7 +131,7 @@ } ], "source": [ - "! pip install \"medcat[meta-cat,spacy,deid] @ git+https://github.com/CogStack/MedCAT2@v0.6.1\"" + "! pip install \"medcat[meta-cat,spacy,deid] @ git+https://github.com/CogStack/MedCAT2@v0.7.0\"" ] }, { diff --git a/requirements.txt b/requirements.txt index 585b9d7..923e63b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -medcat @ git+https://github.com/CogStack/MedCAT2@v0.6.1 +medcat @ git+https://github.com/CogStack/MedCAT2@v0.7.0 ipykernel pytest-xdist~=3.6.0 nbmake<1.6 From 6c8ffdcf2f80c808df6d1f74629b2785d0d41369 Mon Sep 17 00:00:00 2001 From: mart-r Date: Thu, 12 Jun 2025 20:46:24 +0100 Subject: [PATCH 2/2] Update based on changed ents attribute name --- .../advanced/1._Creating_and_using_a_custom_tokenizer.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notebooks/advanced/1._Creating_and_using_a_custom_tokenizer.ipynb b/notebooks/advanced/1._Creating_and_using_a_custom_tokenizer.ipynb index 033b8ea..6dbe254 100644 --- a/notebooks/advanced/1._Creating_and_using_a_custom_tokenizer.ipynb +++ b/notebooks/advanced/1._Creating_and_using_a_custom_tokenizer.ipynb @@ -255,9 +255,9 @@ " self.text = text\n", " self._tokens = tokens or []\n", " # filled by NER\n", - " self.all_ents: list[MutableEntity] = []\n", + " self.ner_ents: list[MutableEntity] = []\n", " # filled by Linker\n", - " self.final_ents: list[MutableEntity] = []\n", + " self.linked_ents: list[MutableEntity] = []\n", "\n", " @overload\n", " def __getitem__(self, index: int) -> BaseToken:\n",