CogStack / MedCATservice

Running MedCAT as a RESTful web service
17 stars 14 forks source link

Fix APP_TRAINING_MODE env import #11

Closed sandertan closed 3 years ago

sandertan commented 4 years ago

Hi @lrog with help from @w-is-h I noticed that when APP_TRAINING_MODE was set to anything, self.cat.spacy_cat.train was always True, because it's a string not a boolean :)

sandertan commented 4 years ago

Note that with this fix disambiguation of terms will be performed, which improved my results significantly. So if you're running master in a production pipeline, this will change your results!

sandertan commented 3 years ago

Fix for test in above mentioned PR.