Dear Filip.

I am happy to help you, but I get too few info from your information

By the way, I would like to  move this thread to the IRSTLM mailing list
or even in a private thread.

How do you use the dictionary in your program?
Are you using in in cremental mode or not?

Could you please send me the piece of your code related to dictionary,
as well as the log of your debugging?

best regards,
Nicola Bertoldi
(IRSTLM development team)

On Aug 6, 2012, at 3:52 PM, Filip Petkovski wrote:

Hi,

I am using IRSTLM for making a language model and I got a segmentation fault
when I was trying to load a binary model trained using build-lm.sh and compiled 
using compile-lm.

I tracked the problem down to the dictionary::load(std::istream&) method in the 
trunk/src/dictionary.cpp file.

As far as I could tell, there is an issue with initialization of a dictionary 
object and its member fields,
since the segmentation fault occurred when trying to access a member field of 
strstack in strstack::push(const char *)

I compiled my program with g++ -Wall -I$IRSTLM/include program.cpp -o program 
-L$IRSTLM/lib -lirstlm -lz

Best Regards,
Filip Petkovski
_______________________________________________
Moses-support mailing list
[email protected]<mailto:[email protected]>
http://mailman.mit.edu/mailman/listinfo/moses-support


_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to