internally, the decoder also does this conversion.

however, it might be better to use philipp's script to be more transparent



On 27 August 2013 13:58, Philipp Koehn <pko...@inf.ed.ac.uk> wrote:

> Hi,
>
> note that the script
> scripts/training/convert-moses-ini-to-v2.perl < IN > OUT
> allows you to easily convert an old config file to the new format.
>
> -phi
>
>
> On Tue, Aug 27, 2013 at 1:47 PM, Hieu Hoang <hieu.ho...@ed.ac.uk> wrote:
>
>> there's a character
>>    q
>> at the beginning of the file.
>>
>> Delete it
>>
>>
>> On 26 August 2013 22:34, João Graça <gracani...@gmail.com> wrote:
>>
>>> Dear Hieu,
>>>
>>> I am trying to use the new version of moses with the old format
>>> moses.ini from the pre-trained models.
>>>
>>> In attach is the configuration file I am currently trying to use which
>>> is a modified copy from the tunning file taken from
>>> http://www.statmt.org/moses/RELEASE-1.0/models/en-es/tuning/moses.tuned.ini.1
>>>
>>> However when I run moses I get this error:
>>>
>>> vagrant@precise64:/vagrant/mt-models/en-es$ ~/mosesdecoder/bin/moses -f
>>> moses.ini
>>> Defined parameters (per moses.ini or switch):
>>>  : q
>>> config: moses.ini
>>> distortion-file: 0-0 wbe-msd-bidirectional-fe-allff 6
>>> /vagrant/mt-models/en-es/reordering-table.1.wbe-msd-bidirectional-fe.gz
>>>  distortion-limit: 6
>>> input-factors: 0
>>> lmodel-file: 9 0 5 /vagrant/mt-models/en-es/europarl.binlm.1
>>>  mapping: 0 T 0
>>> ttable-file: 0 0 0 5 /vagrant/mt-models/en-es/phrase-table.1
>>> ttable-limit: 20
>>>  weight-d: 0.048861 0.0882949 0.0561228 0.0794274 0.152473 -0.00619951
>>> 0.0546715
>>> weight-l: 0.0772417
>>> weight-t: 0.0617933 0.0247665 0.0492006 0.0490465 0.0571993
>>>  weight-w: -0.194702
>>> ERROR:Unknown parameter
>>>
>>> Do you know what I am setting wrong?
>>>
>>> Thanks for you help,
>>>
>>> João
>>>
>>>
>>> On Tue, Aug 6, 2013 at 12:10 PM, Hieu Hoang <hieu.ho...@ed.ac.uk> wrote:
>>>
>>>> The old format.
>>>>
>>>>
>>>> On 6 August 2013 12:07, João Graça <gracani...@gmail.com> wrote:
>>>>
>>>>> Hi Hieu,
>>>>>
>>>>> Thanks a lot for your help.
>>>>>
>>>>> Which format do the pre-made models use?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Joao
>>>>>
>>>>>
>>>>> On Tue, Aug 6, 2013 at 12:03 PM, Hieu Hoang <hieu.ho...@ed.ac.uk>wrote:
>>>>>
>>>>>> ah, the moses.ini file format has recently changed. The sample files
>>>>>> are in the new format.
>>>>>>
>>>>>> Older versions of moses don't understand the new format. (New Moses
>>>>>> can understand both old and new format)
>>>>>>
>>>>>> To get the source code for the new Moses version:
>>>>>>    g...@github.com:moses-smt/mosesdecoder.git
>>>>>>
>>>>>> If you really want to stick with the old moses, the old sample files
>>>>>> are here:
>>>>>>    http://www.statmt.org/moses/download/sample-models.old.tgz
>>>>>>
>>>>>> However, the sample models are unrealistically small. These premade
>>>>>> models are more realistic:
>>>>>>    http://www.statmt.org/moses/RELEASE-1.0/models/
>>>>>>
>>>>>>
>>>>>> On 6 August 2013 11:42, João Graça <gracani...@gmail.com> wrote:
>>>>>>
>>>>>>>  Hello,
>>>>>>>
>>>>>>> I am trying to install moses on my system and run it with the sample
>>>>>>> models.
>>>>>>> I am using the moses linux package from
>>>>>>> http://www.statmt.org/~jie/linux/moses_1.0-1_amd64.deb
>>>>>>>
>>>>>>> and then I try to run the sample models available from the web site.
>>>>>>>
>>>>>>> http://www.statmt.org/moses/download/sample-models.tgz
>>>>>>>
>>>>>>> but when i try to run the decode I get the following error:
>>>>>>>
>>>>>>> vagrant@precise64:/vagrant/sample-models$ /opt/moses/bin/moses -f
>>>>>>> phrase-model/moses.ini < phrase-model/in
>>>>>>> Defined parameters (per moses.ini or switch):
>>>>>>> config: phrase-model/moses.ini
>>>>>>> feature: KENLM name=LM factor=0 order=3 num-features=1
>>>>>>> path=lm/europarl.srilm.gz Distortion WordPenalty UnknownWordPenalty
>>>>>>> PhraseDictionaryMemory input-factor=0 output-factor=0
>>>>>>> path=phrase-model/phrase-table num-features=1 table-limit=10
>>>>>>>  input-factors: 0
>>>>>>> mapping: T 0
>>>>>>> n-best-list: nbest.txt 100
>>>>>>>  weight: WordPenalty0= 0 LM= 1 Distortion0= 1
>>>>>>> PhraseDictionaryMemory0= 1
>>>>>>> ERROR:Unknown parameter feature
>>>>>>> ERROR:Unknown parameter weight
>>>>>>> ERROR:No phrase translation table (ttable-file)
>>>>>>>
>>>>>>>
>>>>>>> Was there any major changes on the configuration file moses.ini that
>>>>>>> renders the previous releases of moses unusable with the sample models?
>>>>>>>
>>>>>>> Thanks you for all your help,
>>>>>>>
>>>>>>> João
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Moses-support mailing list
>>>>>>> Moses-support@mit.edu
>>>>>>> http://mailman.mit.edu/mailman/listinfo/moses-support
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Hieu Hoang
>>>>>> Research Associate
>>>>>> University of Edinburgh
>>>>>> http://www.hoang.co.uk/hieu
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Hieu Hoang
>>>> Research Associate
>>>> University of Edinburgh
>>>> http://www.hoang.co.uk/hieu
>>>>
>>>>
>>>
>>
>>
>> --
>> Hieu Hoang
>> Research Associate
>> University of Edinburgh
>> http://www.hoang.co.uk/hieu
>>
>>
>> _______________________________________________
>> Moses-support mailing list
>> Moses-support@mit.edu
>> http://mailman.mit.edu/mailman/listinfo/moses-support
>>
>> The University of Edinburgh is a charitable body, registered in
>> Scotland, with registration number SC005336.
>>
>>
>
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>


-- 
Hieu Hoang
Research Associate
University of Edinburgh
http://www.hoang.co.uk/hieu
_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to