The Moses decoder has been refactored recently so some things have changed.
1. You have to explicitly specify whether you want to use the binary
phrase table, or the text table. That is, you must specify your phrase
table like
[ttable-file]
0 0 0 5 ./trained_models/en-hi-baseline.gz (text phrase table)
or
[ttable-file]
1 0 0 5 ./trained_models/en-hi-baseline.gz (binary phrase table)
NOT
[ttable-file]
0 0 5 ./trained_models/en-hi-baseline.gz (let the decoder work it out)
2. Also, you're using SRILM, which you haven't linked into the moses
decoder. Either link it by doing
./bjam --with-srilm=.....
or use kenlm
[lmodel-file]
8 0 5 ./trained_models/en-hi-baseline.lm
On 22 July 2013 12:34, Pratik Jain <[email protected]> wrote:
> Hi
>
> Can you Please help me with this error. I have an old piece of code for
> Hindi-English transliteration that ran perfectly on Windows. I am trying to
> run it on Linux.
> Following is the output.
>
>
> ~/mosesdecoder/bin$ ./a.out komal-input.txt en
> Defined parameters (per moses.ini or switch):
> config: ./trained_models/en-hi-baseline.ini
> distortion-limit: 0
> input-factors: 0
> input-file: ./intermediate_results/en-clean-input.txt
> lmodel-file: 0 0 5 ./trained_models/en-hi-baseline.lm
> mapping: 0 T 0
> n-best-list: ./intermediate_results/en-hi-baseline-results.txt 10
> distinct
> ttable-file: 0 0 5 ./trained_models/en-hi-baseline.gz
> ttable-limit: 20 0
> weight-d: 10
> weight-l: 0.7000
> weight-t: 0.35 0.25 0.2 0.1 0.1
> weight-w: -1
> ERROR:Phrase table specification in old 4-field format. No longer supported
> /home/irlab/mosesdecoder/bin
> line=SRILM factor=0 order=5 num-features=1
> path=./trained_models/en-hi-baseline.lm
> ERROR:Unknown feature function:SRILM
> Defined parameters (per moses.ini or switch):
> config: ./trained_models/en-sy.ini
> distortion-limit: 0
> input-factors: 0
> input-file: ./intermediate_results/en-clean-input.txt
> lmodel-file: 0 0 4 ./trained_models/en-sy.lm
> mapping: 0 T 0
> n-best-list: ./intermediate_results/en-sy-results.txt 1 distinct
> ttable-file: 0 0 5 ./trained_models/en-sy.gz
> ttable-limit: 20 0
> weight-d: 0.6
> weight-l: 0.6000
> weight-t: 0.4 0.3 0.2 0.1 0
> weight-w: -1
> ERROR:Phrase table specification in old 4-field format. No longer supported
> /home/irlab/mosesdecoder/bin
> line=SRILM factor=0 order=4 num-features=1 path=./trained_models/en-sy.lm
> ERROR:Unknown feature function:SRILM
> Defined parameters (per moses.ini or switch):
> config: ./trained_models/en-hi-translit.ini
> distortion-limit: 0
> input-factors: 0
> input-file: ./intermediate_results/en-sy-bestresult.txt
> lmodel-file: 0 0 5 ./trained_models/en-hi-translit.lm
> mapping: 0 T 0
> n-best-list: ./intermediate_results/en-hi-translit-results.txt 10
> distinct
> ttable-file: 0 0 5 ./trained_models/en-hi-translit.gz
> ttable-limit: 20 0
> weight-d: 0.6
> weight-l: 0.5000
> weight-t: 0.4 0.3 0.15 0.15 0.0
> weight-w: -1
> ERROR:Phrase table specification in old 4-field format. No longer supported
> /home/irlab/mosesdecoder/bin
> line=SRILM factor=0 order=5 num-features=1
> path=./trained_models/en-hi-translit.lm
> ERROR:Unknown feature function:SRILM
>
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support
>
>
--
Hieu Hoang
Research Associate
University of Edinburgh
http://www.hoang.co.uk/hieu
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support