I'm using Freeling Python API since 3 months now, mainly on Linux, and for other users I needed to use it on Windows.
So I compiled Freeling 4.1 as described in the doc, using Microsoft Visual Studio 2015 (pre-compiled boost as mentioned in the doc are not available for Microsoft Visual Studio 2017) and it compiled without error, running the following CMake command :
cmake .. -DCMAKE_INSTALL_PREFIX=C:\Freeling\freeling -DZLIB_INCLUDE_DIR=C:\Freeling\dependencies\zlib\include -DZLIB_LIBRARY=C:\Freeling\dependencies\zlib\lib\zlibd.lib -DBOOST_ROOT=C:\Freeling\dependencies\boost -DICU_ROOT=C:\Freeling\dependencies\icu -DSWIG_DIR="C:\Program Files\swigwin" -DSWIG_EXECUTABLE="C:\Program Files\swigwin\swig.exe" -DPYTHON3_API=ON -DJAVA_API=ON -G "NMake Makefiles"
However, when I try to load ukb, for example running this code from the APIs\Python3 folder :
# Init locales
DATA = "C:\\Freeling\\freeling\\share\\freeling\\"
DATA + "common\\punct.dat",
DATA + LANG + "\\dicc.src",
DATA + LANG + "\\afixos.dat",
DATA + LANG + "\\locucions.dat",
DATA + LANG + "\\np.dat",
DATA + LANG + "\\quantities.dat",
DATA + LANG + "\\probabilitats.dat");
wsd=pyfreeling.ukb(DATA + LANG + "\\ukb.dat")
after a few minutes a window popup with the following error message :
Debug Assertion Failed!
File: C:\Program Files (x86)\Microsoft Visual Studio14.0\VC\INCLUDE\vector
Expression: vector subscript out of range
For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts.
(press Retry to debug the application)
with 3 buttons, "give up", "retry", "ignore"...
This can't be a source code problem because it works on Linux, on I am nearly sure (I can't be sure about anything right now) that I already used the Python API with ukb on Windows. So this probably come from my configuration, but I re-compiled everything, re-installed Visual Studio, nothing works and now I just don't know what to do.
Any idea would be welcomed.