Hi,
I have built the linkgrammar 5.8.1 using visual studio 2017 community edition on my windows 10 PC. I tried building for the x64 platform. but lots of warnings and link errors were thrown in the regex library. So I built for win32 configuration.
I need to use this library with python. So I followed the instructions for permanent installation and copied the built files into a "linkgrammar" folder, added that folder's path into the PYTHONPATH variable. Also, I copied the DLL and "data" folder into the same "linkgrammar" folder. So my linkgrammar folder looks like this:
But when I run the example.py directly, I'm getting the following error:
C:\Users\aca8cob>C:/Users/aca8cob/.conda/envs/py38_32/python.exe c:/Users/aca8cob/Desktop/link-grammar-5.8.1/bindings/python-examples/example.py
Version: link-grammar-5.8.1
link-grammar: Error: Could not open dictionary "en/4.0.dict"
Traceback (most recent call last):
File "c:/Users/aca8cob/Desktop/link-grammar-5.8.1/bindings/python-examples/example.py", line 41, in <module>
en_dir = Dictionary() # open the dictionary only once
File "C:\Users\aca8cob\.conda\envs\py38_32\Lib\linkgrammer\linkgrammar.py", line 387, in __init__
raise LG_DictionaryError('Error: Failed to open dictionary {!r}'.format(lang))
linkgrammar.LG_DictionaryError: Error: Failed to open dictionary 'en'
I have added regex2.dll path, linkgrammar dll path to the PATH variable.
Can anyone please help me with this? for time being, I'm running my scripts using make-check.py. even that only works on this pc! If I clone the complete directory and set the environment variables, I get the same LG_DictionaryError with make-check.py. Any help would be greatly appreciated.
Thank You,
Achuthaperumal RK