higgood / med-jargon-explain-inator

Forking this so that we can associate tasks with the relevant repo. The ownership of this project belongs to all team members, and not to HIGG. HIGG is only sponsoring to facilitate project management.
2 stars 1 forks source link

med-jargon-explain-inator

BEHOLD! THE MED-JARGON-EXPLAIN-INATOR! With this I will get rid of all pedantic and overly indulgent usage of jargon in the TRI-STATE AREA, thereby increasing MEDICAL LITERACY for all!! πŸŽ‰

πŸ“† Schedule πŸ“†

4/25

5/2

Setup

TBD, but you'll need at least Python 3.6. Install by using pip <package name>. Python packages needed are listed here:

Structure

The explain-inator is built using a traditional Model-View-Controller framework. See the READMEs inside each folder to see more details about how this all works together.

Running the app

Run uvicorn main:app --reload in your terminal. Then navigate to http://127.0.0.1:8000 and you should see the Hello World! message. Navigating to 127.0.0.1:8000/docs will give you the OpenAPI documentation for all the REST routes we currently have.

Running the simplification model

The text simplification model is stored under model/text_simplifier.py. It can be run using the shell script ~./run_simplifier.sh located in the med_jargon_explain_inator directory. This model has a "model" parameter that should be specified on line 249, as well as various function parameters that can be changed to alter where the sentences and evaluations are output (write new files to the directory, or just return printed dictionaries). There are three model options: BERT, Pegasus, and T5, with T5 currently getting the best evaluation results on our three evaluation metrics (METEOR, Rouge1, Rouge2).

The setup folder includes a requirements.yml folder, and two shell scripts used to create a virtual environment and to update the virtual environment. These play a key role in running the entire system, and text_simplifier.py needs to be run on the virtual environment to ensure the user has all the correct packages and versions installed.

Reports