next up previous contents
Next: Semi-lexicalized TAG Up: Head-driven parsing for TAGs Previous: Unification of bottom and

Examples

Consider the following TAG in figure 4.21.

Figure 4.21: Initial and auxiliary trees of example TAG.
\begin{figure}
\begin{center}
\leavevmode
\unitlength1pt
\beginpicture
\setplot...
...endpicture
\input{boom-twintig}\input{boom-eenentwintig}\end{center}\end{figure}

As an example of the encoding of such elementary trees in $ \cal {R}$($ \cal {L}$), consider the encoding of $ \alpha_{1}^{}$ in figure 4.22 and the encoding of $ \beta_{3}^{}$ in figure 4.23.

Figure 4.22: Encoding of $ \alpha_{1}^{}$ as a unit clause of $ \cal {R}$($ \cal {L}$).
\begin{figure}
\par\pr\pred
\head{\mbox{\it init}(\mbox{\rm M},\langle \mbox{\rm...
...t term}: \mbox{\rm T}\\
\mbox{\it ds}: \mbox{\rm D}}.}
\epred\epr
\end{figure}

Figure 4.23: Encoding of $ \beta_{3}^{}$ as a unit clause of $ \cal {R}$($ \cal {L}$).
\begin{figure}
\par\pr\pred
\head{aux(\mbox{\rm Aux},\mbox{\rm Foot},\langle\ran...
...x{\it term}:\mbox{\rm T}\\ \mbox{\it ds}:\mbox{\rm D}}.}
\epred\epr
\end{figure}

Consider what happens if we parse the sentence ``the very pretty girl left today''. The first goal of the parser, is to find a tree of which the root node has category s. In order to find such a goal, a non-chain-rule is selected which has also s as its root node, and of which the string is part of the input string. The rule which is selected is rule $ \alpha_{1}^{}$. The daughter of this rule is the substitution node np. Therefore, the embedded parse goal is to parse an np, with bag of words [the,very,pretty,girl,today]. Again, the first step of the parser consists in the prediction of a non-chain-rule, of which the root has category np, and of which the string is part of the input bag. This time $ \alpha_{2}^{}$ is selected and we obtain another embedded parse goal: the parsing of a d with bag [the,very,pretty,today]. The non-chain-rule which is selected for this goal is $ \alpha_{3}^{}$. As this tree does not have any substitution nodes, we can immediately connect $ \alpha_{3}^{}$ to the goal d. As no auxiliary trees apply to $ \alpha_{3}^{}$, connection is trivial, and we finish the embedded parse goal for d. We thus continue parsing of an np, with head $ \alpha_{2}^{}$, and of which the substitution nodes are filled in, in the mean time. To connect this tree upward to the np goal, the auxiliary rule $ \beta_{3}^{}$ may be applied. After the application of that auxiliary tree we obtain the tree:

\begin{figure}\begin{center}
\leavevmode
\unitlength1pt
\beginpicture
\setplota...
...option
\put{\hbox{boy}} [Bl] at 72.55 18.00
\endpicture
\end{center}\end{figure}

Again, this tree should be connected upward to the NP goal, with input bag [very,today], and another auxiliary tree can be applied: $ \alpha_{2}^{}$, giving tree:

\begin{figure}\begin{center}
\leavevmode
\unitlength1pt
\beginpicture
\setplota...
...option
\put{\hbox{boy}} [Bl] at 88.89 48.00
\endpicture
\end{center}\end{figure}

Finally, this connects the input tree to the np goal, and this embedded parse is finished. Therefore, we continue the parsing of the s goal, with input bag [today], and of which the head is instantiated as:

\begin{figure}\begin{center}
\leavevmode
\unitlength1pt
\beginpicture
\setplota...
...tion
\put{\hbox{left}} [Bl] at 110.48 78.00
\endpicture
\end{center}\end{figure}

The auxiliary rule $ \beta_{1}^{}$ applies, giving the tree:

\begin{figure}\begin{center}
\leavevmode
\unitlength1pt
\beginpicture
\setplota...
...ion
\put{\hbox{today}} [Bl] at 150.67 78.00
\endpicture
\end{center}\end{figure}

which we connect trivially to the goal, as there are no more words left in the input bag.

This example clearly shows how the parser first selects heads, then parses arguments, and finally parses adjunctions.


next up previous contents
Next: Semi-lexicalized TAG Up: Head-driven parsing for TAGs Previous: Unification of bottom and
Noord G.J.M. van
1998-09-30