-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error compiling bindings #3
Comments
@WladimirSidorenko, Is this issue done ? Did you were able to the the Swig bindings to compile ? Here I just tried and I got the error:
|
not yet, I'm occasionally working through the errors, when I have spare time, but it's not yet ready. Is it urgent for your tasks? |
Thank you for being so kind. I just keep looking at this project, as I have a hypothesis that higher But don't worry. If I get any free time I will try to fix it and contribute However, I'm sure that you can fix this much faster than me. If you do it, Thank you again for distributing this amazing improvement !
|
I'm glad that it could be useful to someone. I have seemingly found the source of the errors (these are the %template lines in the file Beware, however, that higher order models lead to an exponential increase of the training times. This is a general np-complete problem which is additionally aggravated by the fact that I haven't made any performance optimizations for the added higher-order models and don't provide support for training algorithms other than l-BFGS yet (though these algorithms typically converge faster and often yield better results, at least the preceptron). If you run into these problems, once the swig bindings are done, then you might either use an early stopping for l-BFGS (not wait for convergence) or possibly have a look at MarMot (https://github.com/muelletm/cistern/tree/master/marmot) or HOSemiCRF (https://github.com/nvcuong/HOSemiCRF) maybe they will work faster. |
Thank you for the new references. But personally, Java is a big no, as I need to call from Python and Lua. I got to compile the swig without errors using this export.i But yeah, I got crashes when running the script =( |
Hello @WladimirSidorenko , do you have any plans to look at this bug ? I suppose that is some higher-order change that need to be made to the functions called from python. |
I've just pushed further updates. The |
I 💚 you !! Thank you so much. I will try tonight. Thank you again !!!! |
As I said, I can't promise anything yet. I did my best at the time that I had at my disposal, but unfortunately time is a very scarce resource for me. Try the updates out and post your output here. I assume there still are some things to be done. |
@WladimirSidorenko , sorry to bother you again. I tested and the second-order linear-chain greatly improves my results ! However, I can´t find a way to get the python binds to work. Using both sample_train.py and sample_tag.py gave me segmentation faults at the very beginning. Could you share what version of GCC, Operating System , Swag and Python you got it work ?? |
Debugging I can see that things are not implemented yet. EDIT: Now the call to viterbi works. But I get a crash inside Tagger:probability() , I´m checking out. |
With the latest set of commit, things are working now ! |
Sorry for the delay. I was in a pretty hot publication phase and couldn't get any time for this project. The issue is still not solved yet, since the tree model still crashes during training, and there are neither tests nor auto-make rules to run the whole procedure automatically. Therefore, I'm re-opening the issue but you can ignore it, if the core functionality works for you. Hope, you'll still be able to get your results on time. |
Awesome !! Do you have any idea of how to optimize the training speed ? I still haven't dig in the code. But with the end of my masters, this is something I'm very interested of ! |
While compiling bindings, a lot of error appears:
Looks like crfsuite.hpp has not been updated with new code for semi-markov ( aux)
The text was updated successfully, but these errors were encountered: