Monday, February 20, 2012

Moses: pruning phrase tables

According to the page:

(1) I first download the source code of SALM from:
then I go to the directory:
and run command:
make allO32
make allO64
(There is some errors: make: *** No rule to make target `../../Bin/Linux/Search/SampleNGramIns.O32', needed by `allO32'. )
Note that I compile SALM using g++-4.1, and I had tried to use g++-4.4 but failed.

(2) I found that in the latest Moses got using command git there is no sub-directory named sigtest-filter, so I copied the sigtest-filter from some old version of Moses got using svn.
I go to the directory sigtest-filter, and run command:
make SALMDIR=/path/to/SALM
(using g++-4.4)


kb said...

Thanks a lot, I am doing some Moses experiments, this really helped (especially that g++-4.1)

lita said...

Sorry, I wasn't sure
how you solve the
"make: *** No rule to make target `../../Bin/Linux/Search/SampleNGramIns.O32', ne
eded by `allO32'" problem? Could you please elaborate more?

lita said...

I just comment it out from the Makefile. I hope that is OK.