As ken says, the input sentences to Moses SCFG decoder has <s> and </s>.

To do the Chiang-style glue rules:
   <s> [X] </s> ||| <s> [S] </s> ||| 1 ||| ||| 0
   [X][S] [X][S] [X] ||| [X][S] [X][S] [S] ||| 2.718 ||| 0-0 1-1 ||| 0
to do ITG-style gleu grammar, just add
   [X][S] [X][S] [X] ||| [X][S] [X][S] [S] ||| 2.718 ||| 0-1 1-0 ||| 0

However, as ken also says, Chiang's glue grammar gives slightly worse model
score than Moses' default glue grammar.

On 18 July 2013 09:37, xiaofeng wu <[email protected]> wrote:

> Hi Philipp & Hieu
>
>
> Can you tell me what the exact meaning of the moses hp glue grammar.
>
> <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
>
> I can't not link these symbols with David Chiang's
> S->(S1X2,S1X2) and S->(X1,X1),
> Is the last [S] means the left hand side S?
>
> If I want to add another gluegrammar like S->(S1X2,X2S1) how I suppose to
> do?
> [X][S] [X][X] [X] ||| [X][S] [X][X] [S] ||| 2.718 ||| 0-1 1-0 ||| 0
> or
> [X][S] [X][X] [X] ||| [X][X] [X][S] [S] ||| 2.718 ||| 0-0 1-1 ||| 0 ??
>
> Thanks a million
> Best
> --
> Xiaofeng Wu
> CNGL, School of Computing,
> Dublin City University,
> Glasnevin, Dublin 9.
> Email: [email protected]
> Tel: +353 (0)1 700 6715
>



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

Reply via email to