Hi, the Moses rule table format pairs up source and target non-terminal symbols for the rule right-hand-sides, so you should read the SCFGs in rule c and d as being
S -> X </s>, S </s> and S -> X X, S X (With monotone non-terminal correspondences, i.e. no reordering.) The next steps in your derivation are therefore: 3. rule d. X </s> 4. rule c. X Phil On 10 Apr 2012, at 08:39, Bill_Lang(Gmail) wrote: > Dear Moses community friends, > For moses hierarchical decoding, I have a question about the auto > generated gleu-rule file. I make this example as follows. > ------------------------------------------------------------------------------ > rule-table: > aa [X] ||| bb [X] ||| 0.5 0.572507 0.000191388 1.44549e-05 2.718 ||| ||| 2 > 5225 > > glue-rule: > <s> [X] ||| <s> [S] ||| 1 ||| ||| 0 > [X][S] </s> [X] ||| [X][S] </s> [S] ||| 1 ||| 0-0 ||| 0 > [X][S] [X][X] [X] ||| [X][S] [X][X] [S] ||| 2.718 ||| 0-0 1-1 ||| 0 > > The numbers of above four rules can be: a b c d. > a aa [X] ||| bb [X] ||| 0.5 0.572507 0.000191388 1.44549e-05 2.718 ||| > ||| 2 5225 > b <s> [X] ||| <s> [S] ||| 1 ||| ||| 0 > c [X][S] </s> [X] ||| [X][S] </s> [S] ||| 1 ||| 0-0 ||| 0 > d [X][S] [X][X] [X] ||| [X][S] [X][X] [S] ||| 2.718 ||| 0-0 1-1 ||| 0 > > When translating this input sentence by above rules: > <s> aa </s> > > Moses-chart can get translation as: bb > > I suppose the translation steps to source side is > 1. rule b. X aa </s> > 2. rule a. X X </s> > > Here, I can not proceed further. Can anybody help me to understand how about > the whole translation steps with above rules and input? > > Thanks in advance. > > Best Regards, > Jun Lang > _______________________________________________ > 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
