Local app for the exploration of the closest medical concept given a specific text input.
Instructions:
download all the files in a directory on your computer, from the directory you now just need to:
- Create and activate a Python virtual environment:
python -m venv venv
source venv/bin/activate- Install required libraries:
pip install --upgrade pip
pip install -r requirements.txt- Initialize required components locally.
pre-calculate embeddings (GatorTron model as default)
python PreComputeEmbeddings.pyOtherwise pre-calculate embeddings from multiple or all available models, like this:
python PreComputeEmbeddings.py --model all
python PreComputeEmbeddings.py --model bridge gatortronNote: if you have it, nmove and unzip the BRIDGE model (in ./models folder)
- Start the application:
streamlit run WebApp.py- Embedding model: GatorTron, BRIDGE
- Objective: Look for closest ICD-10-CM concept in the model embedding space