obi-ml-public / ehr_deidentification

Robust de-identification of medical notes using transformer architectures
MIT License
42 stars 10 forks source link

Running Model On Windows #10

Closed Ryan-nd closed 1 year ago

Ryan-nd commented 1 year ago

Hi, I am trying to run and train the model on Windows, without the use of Linux, however under the requirement.txt requires Allennlp which is only available in Mac & Linux. Would like to ask if the model would still be able to run generally without the package as I would want to further fine-tune/train the model. Hope to hear from the team soon.

prajwal967 commented 1 year ago

The allenlp package is used if you want to use CRF decoding. We don't actually use it, you can get the model/package to work without allenlp, but you might need to change the source code to remove the scripts that contain references to it.

The scripts in this folder use it: https://github.com/obi-ml-public/ehr_deidentification/tree/main/src/robust_deid/sequence_tagging/models/hf/crf

You can git clone the project, remove this folder and run fine-tuning without using allenlp. I believe this should work. Let us know if there are any issues.

Ryan-nd commented 1 year ago

Hi, Thanks for the quick response! Appreciate it! Will try it out.