-
Notifications
You must be signed in to change notification settings - Fork 31
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
segmentation fault when predicting #31
Comments
Hum... Can you generate a coredump? |
Mmmm I'm not sure.... What is exactly a coredump? how do I do it? |
It is a memory image of the program, that is generated when the crash happened. It is useful when you debug the crash: you can see what the memory looked like at that time. Here is a tutorial on how to generate it (it's easy!): http://bencane.com/2011/09/22/kill-creating-a-core-dump/ |
same issues here,I use fastText and pyfasttext do same processing. the model has 3.0G bandwidth. pyfasttext Traceback:
0 signals.cpython-35m-darwin.so 0x0000000108a8ab98 sigdie + 120
|
I could not solve that problem. Finally I end up using a python interface provided by fasttext (I don't know how did'nt I see it at first time). It is in the fasttext project, on python folder. I didn't found lots of documentation but after playing a bit with ipython and with the knolodge I get from fast text command line tool I could use it. According to their doc, the easiest way to install fastText is to use pip.
(don't forget the dot after pip install) You can also pip install it directly without cloning the repo, which is really faster, with the following command:
Hope this helps! |
related issue from fastText.py which the lib named fasttext through pip
use the facebook official version is the right choise! |
I have implemented a python class supporting sckit learn's interfaces to train my predictor using sckit learn's grid search.
However, after running some time it throws this:
File "/home/rodrigo/FastTextClassifier.py", line 114, in predict
classified = self.model.predict(X)
File "src/pyfasttext.pyx", line 782, in pyfasttext.FastText.predict
File "src/pyfasttext.pyx", line 767, in pyfasttext.FastText.predict_aux
cysignals.signals.SignalError: Segmentation fault
Any idea of what is happening? I'm trying to save the X which breaks it all to use from command line, but its not easy since sckit learn's grid search invokes it multiple times with different parameters, and this error is not throwing any exception, just finishes the process
The text was updated successfully, but these errors were encountered: