next up previous contents
Next: Lexical Organization Up: Metarules Previous: Examples

The Access to the Metarules through the XTAG Interface

We first describe the access to the metarules subsystem using buffers with single metarule applications. Then we proceed by describing the application of multiple metarules in what we call the parallel, sequential, and cumulative modes to input tree files. We have defined conceptually a metarule as an ordered pair of trees. In the implementation of the metarule subsystem it works the same: a metarule is a buffer with two trees. The name of the metarule is the name of the buffer. The first tree that appear in the main window under the metarule buffer is the left hand side, the next appearing below is the right hand side25.12. The positional approach allows us to have naming freedom: the tree names are irrelevant25.13. Since we can save buffers into text files, we can talk also about metarule files. The available options for applying a metarule which is in a buffer are: The other options concern application to files (instead of buffers). Lets first define the concepts of parallel, sequential and cumulative application of metarules. One metarule file can contain more than one metarule. The first two trees, i.e., the first tree pair, form one metarule - lets call it mr0. Subsequent pairs in the sequence of trees define additional metarules -- mr1, mr2, ..., mrn. Remember that in case of matching failure the output result is decided as explained in subsection  B.2.3 either to be empty or to be the input tree. The reflex here of having the parameter set for copying the input is that for the parallel application the output will have as many copies of the input as matching failures. For the sequential case the decision apply at each level, and setting the parameter for copying, in a certain sense, guarantees for the 'pipe' not to break. Due to its nature and unlike the two other modes, the cumulative application is not affected by this parameter. The options for application of metarules to files are available by clicking at the menu item Tools and then choosing the appropriate function among: Finally still under the Tools menu we can change the setting of the parameter that controls the output result on matching failure (see Subsection B.2.3) by choosing either copy input on mr matching failure or no output on mr matching failure.
next up previous contents
Next: Lexical Organization Up: Metarules Previous: Examples
XTAG Project
1998-09-14