NLPatVCU / medaCy

:hospital: Medical Text Mining and Information Extraction with spaCy
GNU General Public License v3.0
432 stars 91 forks source link

Module Not Found Error (medacy.ner) #186

Closed yellowwoods12 closed 4 years ago

yellowwoods12 commented 4 years ago

Description

After installing medaCy from the developement branch and medaCy Clinical Notes I am still getting the following error when I try to run my app.py.

Traceback (most recent call last): File "app.py", line 3, in from backend.medicine_extractor import * File "/mnt/sda1/Documents/minor 2/MedAI-master/backend/medicine_extractor.py", line 1, in from medacy.ner.model import Model ModuleNotFoundError: No module named 'medacy.ner'

Expected Results

Script should run as expected since the latest version of medaCy is installed but somehow it is unable to detect the package.

Versions

OS : Ubuntu 18.04 Running the project in a virtual environement.

Kindly let me know what the issue is since I have checked all the other issues reporting a similar problem and tried their solutions but nothin g works.

swfarnsworth commented 4 years ago

Hello, please install the latest version of the development branch and the latest version of the model that you are using. I've been meaning to release to master but our development schedule has been affected by the COVID-19 pandemic.

Note that medacy.ner is no longer a module within medaCy, so your import statement for model will need to be from medacy.model.model import Model; I should probably look into making this less verbose.

Please let me know if you encounter any other issues.