Closed drjgauthier closed 4 years ago
Thanks for catching this! It's an easy fix. Will take care of it soon.
It has to do with the fact that the use_linker flag is NULL prior to clinspacy_init(). So instead of checking to see if it is TRUE/FALSE, I first need to check if it is NULL. This works properly with embeddings but not in bind_clinspacy().
A workaround for now (as you mention) is to first run clinspacy_init() either by itself or with a T/F value set to the use_linker argument. The default is to not use the linker so use of the linker isn't required.
Fixed in https://github.com/ML4LHS/clinspacy/commit/4177a560cacb3eb52a466b7f0e022397739db1d3. Feel free to install the latest version.
I get the following error message when trying to run the example code:
The same code works after activating the linker with clinspacy_init()