This repository does not contain the model or the data the model was trained as the data is sensitive.
This annotation tool is intended to allow medical professionals to annotate investigation reports using the SIRch taxonomy.
A HuggingFace API token is required for fine-tuning the model.
The token can be obtained by:
At the time of writing, Ollama is not supported on Windows. As such, WSL for Windows is required to run the backend on Windows.
To install WSL, follow the instructions here, then proceed to install the backend as per the instructions below in the WSL terminal.
To install the required packages, run the following command:
cd backend
conda create -n medical-annotation-tool python=3.11
conda activate medical-annotation-tool
pip install -r requirements.txtCreate a .env file in the backend directory with the following content:
HUGGINGFACE_TOKEN=YOUR_HUGGINGFACE_TOKENInstall Ollama by running the command:
curl -fsSL https://ollama.com/install.sh | shInstall Mistral 7B by running the command:
ollama install mistral-7b
ollama listThen run the following command to start the backend:
python main.pyNode.js is required to run the frontend. It can be downloaded from here.
To install the required packages, run the following command:
cd frontend
npm installThen run the following command to start the frontend:
npm startThis directory contains the notebooks used to quickly test and evaluate the model using different prompting techniques, hyper-parameters, and datasets.
To install the required packages, run the following command:
cd notebooks
conda create -n notebooks python=3.11
conda activate notebooks
pip install -r requirements.txtThen run the following command to start the Jupyter notebook server:
jupyter notebookThe frontend can be accessed at:
http://localhost:3000The backend API for annotation can be accessed at:
http://localhost:5000/annotate