Hi Liukai,

On 19 Jun, 2010,at 03:31 AM, liukai <[email protected]> wrote:
>     I am familiar with the phrase model in moses . And I wish to use the syntax model in moses now .
>     As the manual , we can manage it like the phrase model but the training data.
>     We have to modify the training data like this :
> <tree label="NP"> <tree label="DET"> {\bf the} </tree> <tree label="NN"> {\bf cat} </tree> or
> <tree label="NP" span="0-1"/> <tree label="DET" span="0-0"/> <tree label="DET" span="1-1"/> .....
> as the manual .
> And I have some questions for this :
> 1. what 's the "\bf" in the sentence before the words mean ? Just for word ?

The \bf is a formatting command that's slipped into the PDF version of
the documentation, so you can ignore it.  The HTML version shows the
correct XML:

    http://www.statmt.org/moses/?n=Moses.SyntaxTutorial


> 2. And can it express a tree or more in a sentence ? I think it may cofused when i push more tree in a sentence , and it is there any solution for this problem ?

You should use one top-level <tree> element per sentence, but you can
nest as many subtrees as you like inside it.  In the example, the top
level tree is a noun-phrase (NP) with two subtrees, which are labelled
with the parts of speech (DET and NN), but you could have a much more
complex hierarchical structure.  There's no limit to the depth of the
tree or the level of branching, but there can only be one tree per
sentence (and therefore one tree per line).

Hope that helps.

Phil
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to