Skip to content
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

segfault when training with bcd #10

Open
gromgull opened this issue Feb 6, 2014 · 0 comments
Open

segfault when training with bcd #10

gromgull opened this issue Feb 6, 2014 · 0 comments

Comments

@gromgull
Copy link

gromgull commented Feb 6, 2014

Hi,

Wapiti segfaults on my linux box when training on a moderately large input file with the bcd algorithm:

  [snip]
  31000 sequences loaded
  32000 sequences loaded
  33000 sequences loaded
  34000 sequences loaded
* Initialize the model
* Summary
    nb train:    323212
    nb devel:    34346
    nb labels:   7
    nb blocks:   15080528
    nb features: 105563745
* Train the model with bcd
    - Build the index
        1/2 -- scan the sequences
./train.sh: line 1: 16978 Segmentation fault      (core dumped) wapiti train --compact --algo bcd --pattern patterns/brownpattern-2-self.txt --devel data/no-wiki/no-wiki-more-doc-only-all-brown_ak-ak1kmin10kpos-devel data/no-wiki/no-wiki-more-doc-only-all-brown_ak-ak1kmin10kpos-train models/wapiti/no-wiki-more-doc-only-all-self-bcd-brown_ak-ak1kmin10kpos-train

Rebuilding wapiti with debugging info gives me the not very useful stack-trace:

(gdb) bt
#0  0x000000000040284a in trn_bcd (mdl=<optimised out>) at src/bcd.c:298
#1  0x0000000000401ea6 in dotrain (mdl=0xab88d0) at src/wapiti.c:161
#2  main (argc=<optimised out>, argv=<optimised out>) at src/wapiti.c:401

Training with rprop works fine - I was just curious if I could train faster or a better model with bcd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant