Skip to content

Commit 4bad23f

Browse files
author
Kevin Armengol
committed
Slight modifications to requirements and pyproject files. Changed curation file_settings excel sheet3 to _extracted. Fixed reference to hybrid query dictionary ids resource file.
1 parent c50281a commit 4bad23f

File tree

7 files changed

+26
-27
lines changed

7 files changed

+26
-27
lines changed

ddcuimap/configs/custom/de.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ curation_settings:
4545
sheet_names:
4646
sheet1 : 'UMLS_curation'
4747
sheet2 : 'Data_Dictionary'
48-
sheet3 : 'Data_Dictionary_exploded'
48+
sheet3 : 'Data_Dictionary_extracted'
4949
hide_cols_curation:
5050
order_cols_curation:
5151

ddcuimap/configs/custom/hydra_base.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ curation_settings:
4545
sheet_names:
4646
sheet1 : 'UMLS_curation'
4747
sheet2 : 'Data_Dictionary'
48-
sheet3 : 'Data_Dictionary_exploded'
48+
sheet3 : 'Data_Dictionary_extracted'
4949
hide_cols_curation: ['PMID', 'MatchMaps', 'IsHead', 'IsOverMatch', 'ConceptPIs', 'Status', 'Negated',
5050
'title_extracted_dense_vecs', 'title_extracted_sparse_vecs_upsert', 'title_extracted_sparse_vecs_idx2token',
5151
'definition_extracted_dense_vecs', 'definition_extracted_sparse_vecs_upsert', 'definition_extracted_sparse_vecs_idx2token',

ddcuimap/configs/custom/pvd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ curation_settings:
4646
sheet_names:
4747
sheet1 : 'UMLS_curation'
4848
sheet2 : 'Data_Dictionary'
49-
sheet3 : 'Data_Dictionary_exploded'
49+
sheet3 : 'Data_Dictionary_extracted'
5050
hide_cols_curation:
5151
order_cols_curation:
5252

ddcuimap/configs/custom/title_def.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ curation_settings:
4444
sheet_names:
4545
sheet1 : 'UMLS_curation'
4646
sheet2 : 'Data_Dictionary'
47-
sheet3 : 'Data_Dictionary_exploded'
47+
sheet3 : 'Data_Dictionary_extracted'
4848
hide_cols_curation:
4949
order_cols_curation:
5050

ddcuimap/semantic_search/batch_hybrid_query_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def run_hybrid_ss_batch(cfg, **kwargs):
105105

106106
# RETRIEVE UMLS VECTOR ID AS DICTIONARY
107107
ids = importlib.resources.read_binary(
108-
"semantic_search.resources", "dict_umls_upsert_ids.pkl"
108+
"ddcuimap.semantic_search.resources", "dict_umls_upsert_ids.pkl"
109109
)
110110
dict_umls_upsert_ids = pickle.loads(ids)
111111
# dict_umls_upsert_ids = run.fetch_id_metadata(index, cfg) #TODO: need to work on this

pyproject.toml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "data-dictionary-cui-mapping"
3-
version = "1.1.2"
3+
version = "1.1.3"
44
description = "This package allows you to load in a data dictionary and map cuis to defined fields using either the UMLS API or MetaMap API from NLM, or a Semantic Search pipeline using Pinecone vector database."
55
authors = ["Kevin Armengol <[email protected]>"]
66
license = "MIT"
@@ -10,36 +10,36 @@ keywords = ["BRICS", "curation", "data dictionary", "UMLS", "MetaMap", "Metathes
1010
packages = [{include = "ddcuimap/**/*"}]
1111

1212
[tool.poetry.dependencies]
13-
python = "^3.8.1"
14-
pandas = ">=1.5.2"
15-
openpyxl = ">=3.0.10"
16-
requests = ">=2.28.1"
17-
python-dotenv = "0.21.1"
18-
requests-html = ">=0.10.0"
13+
cchardet = "^2.1.7"
1914
hydra-core = ">=1.1.0"
2015
omegaconf = "2.1.2"
21-
prefect = {extras = ["viz"], version = "^2.8.3"}
22-
transformers = "4.18.0"
16+
openpyxl = ">=3.0.10"
17+
pandas = ">=1.5.2"
2318
pathlib = "^1.0.1"
2419
pinecone-client = "^2.2.1"
20+
prefect = {extras = ["viz"], version = "^2.8.3"}
21+
python = "^3.8.1"
22+
python-dotenv = "0.21.1"
23+
requests = ">=2.28.1"
24+
requests-html = ">=0.10.0"
2525
sentence-transformers = "^2.2.2"
26-
cchardet = "^2.1.7"
26+
transformers = "4.18.0"
2727

2828

2929
[tool.poetry.group.dev.dependencies]
3030
black = "^23.1.0"
31-
radon = "^5.1.0"
32-
vulture = "^2.7"
31+
bs4 = "^0.0.1"
32+
deptry = "^0.8.0"
3333
flake8 = "^6.0.0"
34-
pre-commit = "^3.0.4"
3534
isort = "^5.11.3"
36-
jupyterlab = "^3.6.1"
3735
jupyter = "^1.0.0"
38-
wheel = "^0.38.4"
39-
deptry = "^0.8.0"
40-
bs4 = "^0.0.1"
41-
splade = {git = "https://github.com/naver/splade.git"}
36+
jupyterlab = "^3.6.1"
4237
monkeytype = "^23.3.0"
38+
pre-commit = "^3.0.4"
39+
radon = "^5.1.0"
40+
splade = {git = "https://github.com/naver/splade.git"}
41+
vulture = "^2.7"
42+
wheel = "^0.38.4"
4343

4444
[build-system]
4545
requires = ["poetry-core"]

requirements.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ omegaconf~=2.1.2
88
openpyxl~=3.1.1
99
pandas~=1.5.3
1010
pathlib~=1.0.1
11-
pinecone-client = "^2.2.1"
12-
prefect~=2.8.3
13-
python = "^3.8.1"
11+
pinecone-client~=2.2.1
12+
prefect~=2.8.4
1413
python-dotenv~=0.21.1
15-
requests-html = ">=0.10.0"
1614
requests~=2.28.2
15+
requests-html~=0.10.0
1716
torch~=2.0.0
1817
tqdm~=4.65.0
1918
transformers~=4.18.0

0 commit comments

Comments
 (0)