Re: [Moses-support] Segmentation Fault

2016-02-20 Thread Matthias Huck
Hi Jasneet, Why don't you use a proper profiling tool, e.g. the one in valgrind [1]? If you visualize its output [2], you'll see quickly where the program spends all the computing time. Cheers, Matthias [1] http://valgrind.org/docs/manual/cl-manual.html [2]

Re: [Moses-support] Segmentation Fault

2016-02-20 Thread Jasneet Sabharwal
Thanks for the reply Hieu. The Timer returns time in seconds or milliseconds? > On Feb 20, 2016, at 1:58 AM, Hieu Hoang wrote: > > it's great that you've written a new feature function but you will have to > debug it yourself. I suggest you put lots of debugging messages

Re: [Moses-support] Segmentation Fault

2016-02-20 Thread Hieu Hoang
it's great that you've written a new feature function but you will have to debug it yourself. I suggest you put lots of debugging messages in your code to find out where the problem is. Moses has the Timer class in /moses/Timer.h which you can use to help your debug your problem Hieu Hoang