Hi, Tom, the number of scores is given by the actual phrase table and has to be consistent with the contents of the phrase table:
! ||| ! ||| (0) ||| (0) ||| 0.485714 0.377778 0.85 0.772727 2.718 and ||| a ||| (0) ||| (0) ||| 0.765677 0.773064 0.790368 0.85233 2.718 ...there are 5 scores in this phrase table. The max phrase length specifies the maximum number of words within a phrase. The snippet above fits max-phrase-len of 1 but is of course extracted also with any higher limit. There is no other connection between the two values. Cheers, O. On 10/06/2010 12:31 PM, supp...@precisiontranslationtools.com wrote: > I found this message below, which mentions the topic, but leaves my > question unanswered. > > The train-model.perl script has an option called "max-phrase-length". > Documentation shows its default is 7. > > The processPhraseTable binarizer has an option called -nscores that refers > to "number of scores". The moses binary's fourth numeric option in > moses.ini's [ttable-file] section is also "number of scores". Documentation > and the message below define a default of 5. > > Are the "max-phrase-length" and "number of scores" values the same? If not > the same, is there a connection and if so, what is it? If there's no > connection, What criteria should one choose when setting "number of scores" > and what the consequence of changing it from the default of 5? > > Thanks, > Tom > > > On Fri, 25 Jun 2010 18:14:07 +0100, Philipp Koehn<pko...@inf.ed.ac.uk> > wrote: >> Hi, >> >> something has gone awry in your use of the binarizer. >> >> A typical way to call the binarizer is: >> >> LC_ALL=C sort phrase-table | ~/bin/processPhraseTable -ttable 0 0 - >> -nscores 5 -out phrase-table& >> >> -nscores refers to the number of scores in the phrase translation table >> which are by default 5. >> >> -phi >> >> On Fri, Jun 25, 2010 at 5:45 PM, Cyrine NASRI<cyrine.na...@gmail.com> >> wrote: >>> >>> Good morning everybody >>> I dont understand the meaning of -nscores 5 >>> When i make the command wich Binaryze the Phrase Tables, a message >>> appears >>> to me processing ptree for 5 >>> Can't read 5 >>> >>> Thank you very much >>> >>> PS : i'm not english so please excuse me for the very bad english wich >>> i >>> write >>> Cyrine >>> >>> >>> _______________________________________________ >>> Moses-support mailing list >>> Moses-support@mit.edu >>> http://mailman.mit.edu/mailman/listinfo/moses-support >>> >>> >> >> _______________________________________________ >> Moses-support mailing list >> Moses-support@mit.edu >> http://mailman.mit.edu/mailman/listinfo/moses-support > _______________________________________________ > Moses-support mailing list > Moses-support@mit.edu > http://mailman.mit.edu/mailman/listinfo/moses-support -- Ondrej Bojar (mailto:o...@cuni.cz / bo...@ufal.mff.cuni.cz) http://www.cuni.cz/~obo _______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support