jnory/DALM — pull request #3 by hieuhoang (2013-12-31 16:42:07+00:00)
Title: update sample query to read ini file with relative file paths

hey junya

The dalm.ini file currently specify absolute paths for the dalm binary files. If the user moves the LM, then they have to remember to change the ini file.

I've changed the query sample apps to work with the ini file with NO path, ie.
TYPE=0
MODEL=dalm.bin
WORDS=words.bin
ARPA=europarl.en.srilm
WORDSTXT=words.txt
instead of
TYPE=0
MODEL=/Users/hieu/workspace/private/ultra-moses/example/europarl.en.dalm/dalm.bin
WORDS=/Users/hieu/workspace/private/ultra-moses/example/europarl.en.dalm/words.bin
ARPA=/disk4/hieu/workspace/private/ultra-moses/example/europarl.en.srilm
WORDSTXT=/Users/hieu/workspace/private/ultra-moses/example/europarl.en.dalm/words.txt

So now the query_sample would be called like:
.../query_sample europarl.en.dalm
and not
.../query_sample europarl.en.dalm/dalm.ini

I'm changing Moses to do the same thing.

I haven't changed the LM builder to create the ini file in this way, I couldn't see the best way to do it. Hoping you would do it for me....