facebookresearch / Clinical-Trial-Parser

Library for converting clinical trial eligibility criteria to a machine-readable format.
Apache License 2.0
167 stars 61 forks source link

caffe2 missing? #26

Open victormurcia opened 1 year ago

victormurcia commented 1 year ago

I was wondering if anyone has had any luck installing/setting up the Clinical Trial Parser recently? I keep running into an error stating that caffe2 cannot be found when trying to run the ie_parse.sh file as described in the developer notes...

I've tried various ways of trying to set things up, including using different CUDA versions, Python versions, GPU/CPU versions of Pytorch, different OS (Windows/Ubuntu) and others but still haven't been successful.

Any suggestions or potential solutions?

ryota3915 commented 1 year ago

Encountered same error, and solved by installing torch and torchtext in the following version.

$ pip install -U torch==1.4
$ pip install -U torchtext==0.5

The issue might have been that $ pip install torchtext installs torchtext=0.14; thus, installs torch=1.13.0 as well. Coffee2 module which is refered in the source code is out in the recent torch version.

Hope this helps you.