A particular point of interest with regard to the representation of grammar rules is the use of variables. The unification and instantiation mechanisms in Prolog allow the use of variables to represent structure shared between daughters or between a daughter and the rule's mother. The example from Figure 3.2 is significant from this point of view: the features agr in the two daughters share the same structure, indicated by the variable Agr. Similarly, semantic information is shared between the mother and each of the two daughters through the variables VPSem and NPSem.
The use of variables to share structure is a powerful characteristic of TFSGs. This thesis introduces a new clasification of the instances of variables, based on what type of structure sharing they create: internal variables, active external variables, and inactive external variables. Over the next chapters, the importance of these variables for indexing will be revealed.
. The occurrences of the
instances of such variables are limited to a single category in the
grammar.
For the rest of this thesis, unless otherwise specified, a daughter's External Variables will refer to its Active External Variables.
A particular variable can be active for a daughter
, but inactive
for a daughter
in the same rule. In Figure 3.2,
Agr is an Active External Variable in the second daughter,
but it is an Inactive External Variable in the first daughter.
When a description is mapped to a feature structure with MGSat, External Variables correspond to structure sharing between feature structures (``external sharing''), as exemplified in Figure 3.3.
It should be mentioned that by external sharing, a description's MGSat
can ``grow'' nodes. For the example presented in
Figure 3.2 and Figure 3.3, if
the first daughter is unified with an edge
,
then the two extra nodes connected to node
in this daughter will
also be shared by the second daughter, as shown in
Figure 3.4.
Structure sharing (especially external sharing) is an important aspect of typed feature structures. Its relevance to parsing will be detailed in Chapter 6; but before closing this section, some extra notation is provided:
, where
For a mother description
,
is the set of nodes
shared with any daughter in the same rule:
, where
is
the number of daughters in the rule,
is
's set of
nodes, and
is
's set of nodes.
For the result of the unification between
and
,
.
It should be mentioned that
needs to
be defined since daughters are unified during parsing with mothers
inserted as edges in the chart. It should also be noted that
is
defined for MGSats of daughter and mother descriptions. For the rest
of the thesis, when not specified otherwise, a daughter
(and a
mother
) will denote the most general satisfier of a daughter
description (and of a mother description).