diff --git a/CITATION.cff b/CITATION.cff index 1f8935c..39f61b7 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -12,7 +12,7 @@ authors: repository-code: 'https://github.com/fastdatascience/drug_named_entity_recognition' url: 'https://fastdatascience.com/drug-named-entity-recognition-python-library/' license: MIT -version: 1.0.8 +version: 1.0.9 date-released: '2024-04-14' url: 'https://zenodo.org/doi/10.5281/zenodo.10970631' doi: 10.5281/zenodo.10970631 \ No newline at end of file diff --git a/README.md b/README.md index ec558ae..8534e71 100644 --- a/README.md +++ b/README.md @@ -254,12 +254,12 @@ MIT License. Copyright (c) 2023 [Fast Data Science](https://fastdatascience.com) ## ✍️ Citing the Drug Named Entity Recognition library -Wood, T.A., Drug Named Entity Recognition [Computer software], Version 1.0.8, accessed at [https://fastdatascience.com/drug-named-entity-recognition-python-library](https://fastdatascience.com/drug-named-entity-recognition-python-library), Fast Data Science Ltd (2024) +Wood, T.A., Drug Named Entity Recognition [Computer software], Version 1.0.9, accessed at [https://fastdatascience.com/drug-named-entity-recognition-python-library](https://fastdatascience.com/drug-named-entity-recognition-python-library), Fast Data Science Ltd (2024) ``` @unpublished{drugnamedentityrecognition, AUTHOR = {Wood, T.A.}, - TITLE = {Drug Named Entity Recognition (Computer software), Version 1.0.8}, + TITLE = {Drug Named Entity Recognition (Computer software), Version 1.0.9}, YEAR = {2024}, Note = {To appear}, url = {https://zenodo.org/doi/10.5281/zenodo.10970631}, diff --git a/pyproject.toml b/pyproject.toml index d6431d3..06fe9df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "drug-named-entity-recognition" -version = "1.0.8" +version = "1.0.9" description = "Drug Named Entity Recognition library to find and resolve drug names in a string (drug named entity linking)" readme = "README.md" keywords = ['drug', 'bio', 'biomedical', 'medical', 'pharma', 'pharmaceutical', 'ner', 'nlp', 'named entity recognition', 'natural language processing', 'named entity linking'] diff --git a/src/drug_named_entity_recognition/__init__.py b/src/drug_named_entity_recognition/__init__.py index 1cb5e7d..fede6b5 100644 --- a/src/drug_named_entity_recognition/__init__.py +++ b/src/drug_named_entity_recognition/__init__.py @@ -27,7 +27,7 @@ ''' -__version__ = "1.0.8" +__version__ = "1.0.9" from drug_named_entity_recognition.drugs_finder import find_drugs diff --git a/src/drug_named_entity_recognition/drugs_finder.py b/src/drug_named_entity_recognition/drugs_finder.py index 6d726d8..4cd71d2 100644 --- a/src/drug_named_entity_recognition/drugs_finder.py +++ b/src/drug_named_entity_recognition/drugs_finder.py @@ -822,7 +822,3 @@ def find_drugs(tokens: list, is_ignore_case: bool = True): drug_matches.append((drug_canonical_to_data[m], token_idx, token_idx)) return drug_matches - - -drugs = find_drugs("i bought some Polysporin".split(" ")) -print(drugs) diff --git a/tests/test_drugs_finder.py b/tests/test_drugs_finder.py index 2a710b1..8f34d41 100644 --- a/tests/test_drugs_finder.py +++ b/tests/test_drugs_finder.py @@ -119,3 +119,9 @@ def test_polysporin(self): self.assertEqual(1, len(drugs)) self.assertEqual("Bacitracin/polymyxin B", drugs[0][0]['name']) + # + # def test_glycyrrhiza(self): + # drugs = find_drugs("i bought some Glycyrrhiza Spp. Root".split(" ")) + # + # self.assertEqual(1, len(drugs)) + # self.assertEqual("Glycyrrhiza", drugs[0][0]['name'])