Hi,
yes, this could be handled better by the code...
Here is the offending part (lines 76-78 in moses/FF/FeatureFunction.cpp).
for (size_t i = 1; i < toks.size(); ++i) {
vector<string> args = Tokenize(toks[i], "=");
CHECK(args.size() == 2);
-phi
On Wed, Jul 17, 2013 at 10:13 AM, Kenneth Heafield <[email protected]> wrote:
> Why? The parser could be easily fixed to only split off the first =.
> Will fixing that break anything else?
>
> Kenneth
>
> On 07/17/13 17:46, Philipp Koehn wrote:
>> Hi,
>>
>> In the new moses.ini it is illegal to have the equation sign in a file
>> name as you have here:
>>
>> /home/user/Data/mt-files/mt-models/Bmc_Itsm_Change_Management/EN_US-DE_DE/lm/Bmc_Itsm_Change_Management=pos.lm.1
>>
>> So, please rename that file.
>>
>> -phi
>>
>> On Wed, Jul 17, 2013 at 8:21 AM, CHATZITHEODOROU Konstantinos
>> <[email protected]> wrote:
>>> Dear All,
>>>
>>> I am trying to train an EMS and get the following error:
>>>
>>> Using SCRIPTS_ROOTDIR: /home/user/Work/moses/mosesdecoder/scripts
>>> Asking moses for feature names and values from
>>> /home/user/Data/mt-files/mt-models/Bmc_Itsm_Change_Management/EN_US-DE_DE/tuning/moses.filtered.ini.1
>>> Executing: /home/user/Work/moses/mosesdecoder/bin/moses -threads all -v 0
>>> -config
>>> /home/user/Data/mt-files/mt-models/Bmc_Itsm_Change_Management/EN_US-DE_DE/tuning/moses.filtered.ini.1
>>> -inputtype 0 -show-weights > ./features.list
>>> /home/user/Work/moses/mosesdecoder/bin
>>> line=UnknownWordPenalty
>>> line=WordPenalty
>>> line=PhraseDictionaryBinary name=TranslationModel0 table-limit=20
>>> num-features=5
>>> path=/home/user/Data/mt-files/mt-models/Bmc_Itsm_Change_Management/EN_US-DE_DE/tuning/filtered.1/phrase-table.0-0,1.1.1
>>> input-factor=0 output-factor=0,1
>>> line=LexicalReordering name=LexicalReordering0 num-features=6
>>> type=phrase-msd-bidirectional-fe-allff input-factor=0 output-factor=0
>>> path=/home/user/Data/mt-files/mt-models/Bmc_Itsm_Change_Management/EN_US-DE_DE/tuning/filtered.1/reordering-table.1.0-0.phrase-msd-bidirectional-fe
>>> Initializing LexicalReordering..
>>> line=Distortion
>>> line=SRILM name=LM0 factor=0
>>> path=/home/user/Data/mt-files/mt-models/Bmc_Itsm_Change_Management/EN_US-DE_DE/lm/Bmc_Itsm_Change_Management.lm.1
>>> order=7
>>> line=SRILM name=LM1 factor=1
>>> path=/home/user/Data/mt-files/mt-models/Bmc_Itsm_Change_Management/EN_US-DE_DE/lm/Bmc_Itsm_Change_Management=pos.lm.1
>>> order=7
>>> Check args.size() == 2 failed in moses/FF/FeatureFunction.cpp:78
>>> Aborted (core dumped)
>>> Exit code: 134
>>> Failed to run moses with the config
>>> /home/user/Data/mt-files/mt-models/Bmc_Itsm_Change_Management/EN_US-DE_DE/tuning/moses.filtered.ini.1
>>> at /home/user/Work/moses/mosesdecoder/scripts/training/mert-moses.pl line
>>> 1271.
>>> cp: cannot stat
>>> `/home/user/Data/mt-files/mt-models/Bmc_Itsm_Change_Management/EN_US-DE_DE/tuning/tmp.1/moses.ini':
>>> No such file or directory
>>>
>>> Could you please help me?
>>> Thank you in advance.
>>>
>>> Regards,
>>>
>>> Konstantinos
>>>
>>>
>>> _______________________________________________
>>> Moses-support mailing list
>>> [email protected]
>>> http://mailman.mit.edu/mailman/listinfo/moses-support
>>>
>> _______________________________________________
>> Moses-support mailing list
>> [email protected]
>> http://mailman.mit.edu/mailman/listinfo/moses-support
>>
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support