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]
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
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