medspacyV is a desktop application specifically for Windows OS that provides a visual interface to interact with the medspacy NLP pipeline. Developed by the Mayo Clinic’s Center for Clinical and Translational Science (CCaTS) Informatics Team, it allows users to configure and run medspacy's clinical text processing models without needing to write code.
This application helps in annotating clinical texts, detecting various concepts, and processing notes with a user-friendly graphical interface.
-
helper/ - Contains helper modules
__init__.pyannotations.pyconstants.py
-
resources/ - Rule and configuration files
concepts.xlsxcontext_rules.jsonexclude_terms.txtsection_rules.tsvsentence_rules.tsv
-
.gitignore- Git ignore file -
controller.py- Main application controller -
controller.spec- PyInstaller configuration -
create_splash_image.py- Script to create a splash image -
debug.log- Log file -
model.py- Core processing logic -
README.md- Project documentation -
requirements.txt- Dependencies list -
splash_image.PNG- Splash screen image -
view.py- UI module
Python 3.8.10 or higher is preferred for best compatibility.
git clone https://github.com/medspacy/medspacyV
cd medspacyV python -m venv application- On Windows:
application\Scripts\activateEnsure you have Python installed (preferably Python 3.8+), then install the required dependencies:
pip install -r requirements.txt To launch the application please run the following command:
python controller.pyTo generate a standalone .exe file using PyInstaller, run:
The following command creates a lauching image which will be used by the .EXE file. It is a one time application, not needed to re-run everytime unless you want to make changes to the image.
python create_splash_image.pyThe following command is used to create the .EXE file using pyinstaller.
pyinstaller --add-data="resources;resources" --add-data="resources;resources/en" --splash=splash_image.png --noconfirm --onefile --windowed Controller.pyThis will create an executable inside the dist/ folder.
For a full deployment including icons and additional assets, you may customize the PyInstaller configuration in a .spec file.
