Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
woodthom2 committed Jun 21, 2024
1 parent 29a8f37 commit a292d90
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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']
Expand Down
2 changes: 1 addition & 1 deletion src/drug_named_entity_recognition/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
'''

__version__ = "1.0.8"
__version__ = "1.0.9"


from drug_named_entity_recognition.drugs_finder import find_drugs
4 changes: 0 additions & 4 deletions src/drug_named_entity_recognition/drugs_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
6 changes: 6 additions & 0 deletions tests/test_drugs_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])

0 comments on commit a292d90

Please sign in to comment.