Hi,
I want to build a simple Tree-To-Tree model,this model has only two
non-terminals,'N' and 'X',I use this model to translate the sentence "overhead
oxygen masks in the cabin section had dropped into place ."
I have a simple phrase table as follows:
overhead [X] ||| 头顶上的 [X] ||| ||| 0.419355 0.380952 1 0.8 2.718 ||| 31 13
masks [N] ||| 面罩 [N] ||| ||| 1 0.416667 1 0.263158 2.718 ||| 1 1
oxygen [N] ||| 氧气 [N] ||| ||| 1 0.416667 1 0.263158 2.718 ||| 1 1
[N][N] in the [N][N] [N] ||| [N][N] 的 [N][N] [N] ||| 3-0 0-2 ||| 0.227273
0.0248669 1 0.0484183 2.718 ||| 4.03333 0.916666
cabin section [N] ||| 船舱 区 [N] ||| ||| 1 0.416667 1 0.263158 2.718 ||| 1 1
section [N] ||| 区 [N] ||| ||| 1 0.416667 1 0.263158 2.718 ||| 1 1
had dropped into place . [X] ||| 已滑落 。 [X] ||| ||| 0.00694444 0.00265754 1
0.170034 2.
And the glue-grammar as follows:
<s> [S][S] </s> [TOP] ||| <s> [S][S] </s> [TOP] ||| 1-1 ||| 1.0 ||| 5442.66
323.246
[X][X] [S] ||| [X][X] [S] ||| 0-0 ||| 1
[N][N] [S] ||| [N][N] [S] ||| 0-0 ||| 1
[S][S] [X][X] [S] ||| [S][S] [X][X] [S] ||| 0-0 1-1 ||| 2.718
[S][S] [N][N] [S] ||| [S][S] [N][N] [S] ||| 0-0 1-1 ||| 2.718
but the decoder can not find a translation,when I list the non-terminals in
"moses.ini" as:
[non-terminals]
X
N
it's output is:
0 1 2 3 4 5 6 7 8 9 10 11 12 13
1 1 1 1 1 1 1 1 1 1 1 1 1 1
0 0 0 0 0 0 1 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 1 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0
0 0 0 0
0 0 0
0 0
0
NO BEST TRANSLATION
when I list the non-terminals as:
[non-terminals]
N
X
it is output is:
0 1 2 3 4 5 6 7 8 9 10 11 12 13
1 1 1 1 1 1 1 1 1 1 1 1 1 1
0 0 0 0 0 0 1 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 0 0 0 0
0 0 0 1 0 0 0 0 1 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0
0 0 0 0
0 0 0
0 0
0
NO BEST TRANSLATION
It seems the glue-rules are not used.
Is it strange?Can you give me some advice?
best regards
Xiang Zhu_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support