Tree adjoining grammar Source: en.wikipedia.org/wiki/Tree_adjoining_grammar
Grammar formalism
Tree-adjoining grammar (TAG) is a grammar formalism defined by Aravind Joshi. Tree-adjoining grammars are somewhat similar to context-free grammars, but the elementary unit of rewriting is the tree rather than the symbol. Whereas context-free grammars have rules for rewriting symbols as strings of other symbols, tree-adjoining grammars have rules for rewriting the nodes of trees as other trees (see tree (graph theory) and tree (data structure)).
TAG originated in investigations by Joshi and his students into the family of adjunction grammars (AG),[1]
the "string grammar" of Zellig Harris.[2] AGs handle exocentric properties of language in a natural and effective way, but do not have a good characterization of endocentric constructions; the converse is true of rewrite grammars, or phrase-structure grammar (PSG). In 1969, Joshi introduced a family of grammars that exploits this complementarity by mixing the two types of rules. A few very simple rewrite rules suffice to generate the vocabulary of strings for adjunction rules. This family is distinct from the Chomsky-Schützenberger hierarchy but intersects it in interesting and linguistically relevant ways.[3] The center strings and adjunct strings can also be generated by a dependency grammar, avoiding the limitations of rewrite systems entirely.[4][5]
Schematic illustration of the adjunction operation: The tree combines with an auxiliary tree at a node labelled with non-terminal symbol that needs to be also the root and foot node of the auxiliary tree. The resulting tree is deeper than the original one.Schematic illustration of the substitution operation: two trees ( and , these don't need to be elementary trees) are joined on a node labelled with nonterminal : this node is one of the leave nodes marked for substitution in , and the root of is a node with the same nonterminal.
as the finite set of non-terminal symbols, disjunct from
as finite set of finite trees, which are called initial trees.
Initial trees have non-terminals as inner nodes. The frontier can consist of terminals and non-terminals. Non-terminals at the frontier are marked for substitution (typically by the symbol added after the non-terminal). Nodes marked for substitution cannot be adjoined to.
as the finite set of finite trees, which are called auxiliary trees.
Auxiliary trees have a special leaf node known as the foot node (typically marked by ) which needs to have the same non-terminal symbol as the root of this tree. All other non-terminal nodes at the frontier are marked for substitution. Same as for initial trees, again inner nodes have non-terminal symbols.
as the special start symbol, belonging to the set of non-terminals.
Additionally, TAGs with adjunction constraints on nodes have been introduced. An adjunction constraint on a node can completely disallow adjunction (NA = null adjunction), make it obligatory (OA) or only allow selected auxiliary trees to adjoin (SA).[6]
The two types of basic trees in TAG initial trees (often represented as '') and auxiliary trees ('') are together called elementary trees. Initial trees represent basic valency relations, while auxiliary trees allow for recursion.[7]
A derivation starts with an initial tree, combining via either substitution or adjunction. Substitution replaces a frontier node with another tree whose top node has the same label. The root/foot label of the auxiliary tree must match the label of the node at which it adjoins. Adjunction can thus have the effect of inserting an auxiliary tree into the center of another tree.[4]
Two examples of context-sensitive, non-context-free languages that TAGs (with adjunction constraints) can generate are[8]
The copy language (language of squares) in which an arbitrary string is repeated: The three elementary trees necessary to generate the copy language with the alphabet containing only letters a and b.
The count-4 language Trees necessary to generate the Count-4-language including the empty word , formally defined as .
Tree-adjoining grammars are often described as mildly context-sensitive.
These grammar classes are conjectured to be powerful enough to model natural languages while remaining efficiently parsable in the general case.[8]
Lexicalized tree-adjoining grammars (LTAG) are a variant of TAG in which each elementary tree (initial or auxiliary) is associated with a lexical item. Each tree has at least one terminal as a leaf node, which is then called the (lexical) anchor of the tree. A lexicalized grammar for English has been developed by the XTAG Research Group of the Institute for Research in Cognitive Science at the University of Pennsylvania.[5]
Other variants of TAG allow multi-component trees, trees with multiple foot nodes, and other extensions.
^since for each tree-adjoining grammar, a linear indexed grammar can be found producing the same language, see below, and for the latter, a weakly equivalent (proper) indexed grammar can be found, in turn, see Indexed grammar#Computational Power
^Joshi, Aravind; S. R. Kosaraju; H. Yamada (1969). "String Adjunct Grammars" (Document). Proceedings Tenth Annual Symposium on Automata Theory, Waterloo, Canada.
Joshi, Aravind K.; Kosaraju, S. Rao; Yamada, H. M. (1972), "String Adjunct Grammars: I. Local and Distributed Adjunction", Information and Control, 21 (2): 93–116, doi:10.1016/S0019-9958(72)90051-4
Joshi, Aravind K.; Kosaraju, S. Rao; Yamada, H. M. (1972), "String Adjunct Grammars: II. Equational Representation, Null Symbols, and Linguistic Relevance", Information and Control, 21 (3): 235–260, doi:10.1016/S0019-9958(72)80005-6
^Harris, Zellig S. (1962). String analysis of sentence structure. Papers on Formal Linguistics. Vol. 1. The Hague: Mouton & Co.
^Joshi, Aravind (1969). "Properties of Formal Grammars with Mixed Types of Rules and Their Linguistic Relevance" (Document). Proceedings Third International Symposium on Computational Linguistics, Stockholm, Sweden.
^ abJoshi, Aravind K. Joshi; Shabes, Yves (March 1991). Tree-adjoning grammars and lexicalized grammars. MS-CIS-91-22 (Technical report). Department of Computer and Information Science, University of Pennsylvania.
^Jurafsky, Daniel; James H. Martin (2000). Speech and Language Processing. Upper Saddle River, NJ: Prentice Hall. p. 354.
Each category of languages, except those marked by a *, is a proper subset of the category directly above it.Any language in each category is generated by a grammar and by an automaton in the category in the same line.