Dear Sir, I am trying to train the model for tree to string. For this I have generated the input corpus into desired xml format as mentioned on moses website. I did this using mxpost tagger and collins parser. So my sentence look like
<tree label="TOP"> <tree label="S"> <tree label="NPB"> <tree label="CD"> One </tree> </tree> <tree label="VP"> <tree label="VBZ"> gets </tree> <tree label="NPB"> <tree label="NNP"> happy </tree> </tree> <tree label="PP"> <tree label="IN"> with </tree> <tree label="NP-A"> <tree label="NPB"> <tree label="DT"> a </tree> <tree label="NN"> visit </tree> </tree> <tree label="PP"> <tree label="TO"> to </tree> <tree label="NPB"> <tree label="DT"> the </tree> <tree label="NNP"> Taj </tree> </tree> </tree> </tree> </tree> </tree> </tree> </tree> Now, I tried to trained the model using the command $SCRIPTS_ROOTDIR/training/train-model.perl -scripts-root-dir $SCRIPTS_ROOTDIR -root-dir tr2str -corpus tr2str/corpus/my.lowercased -f en -e hi -alignment grow-diag-final-and -lm 0:5:$PWD/tr2str/lm/my.lm -hierarchical -source-syntax tr2str/corpus/my.parse.en > tr2str/training.out The command terminates successfully. But, my extract and rule-table files are empty. So, when I try to translate anything I get nothing as output. I even tried to first convert the input into parsed xml format and then decode it, but this too did not work. Kindly help me to resolve this issue. Thank you. Sincerely, Nisheeth _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
