facebookresearch / Clinical-Trial-Parser

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

Cannot find resource path #4

Closed mlaria closed 4 years ago

mlaria commented 4 years ago

I was able to build, test, and train NER model as described in the README page. But when I try to run ./script/cfg_parse.sh, I get the following error:

I0513 09:01:33.759475   46288 conf.go:72] src/resources/config/cfg.conf: Lines: 6, Parameters: 2
F0513 09:01:33.759589   46288 resource.go:37] Cannot find resource path for "/github.com/facebookresearch/Clinical-Trial-Parser/src/resources"
exit status 255
CFG parser failed.

Any idea how to fix this?

salkola commented 4 years ago

Because NEL uses Go, the GOPATH environment variable needs to be set to a directory where the project workspace is located. Set GOPATH so that the cloned project is in $GOPATH/src/github.com/facebookresearch/Clinical-Trial-Parser.

mlaria commented 4 years ago

Thanks! that solved the issue.