Benjamin Aw
Add updated pkl file v3
6fa4bc9
{
"paper_id": "W98-0134",
"header": {
"generated_with": "S2ORC 1.0.0",
"date_generated": "2023-01-19T06:05:26.136096Z"
},
"title": "Two-step TAG Parsing Revisited",
"authors": [
{
"first": "Peter",
"middle": [],
"last": "Poller",
"suffix": "",
"affiliation": {
"laboratory": "",
"institution": "DFKI GmbH",
"location": {
"addrLine": "Stuhlsatzenhausweg 3",
"postCode": "D-66123",
"settlement": "Saarbr\u00fccken",
"country": "Germany"
}
},
"email": ""
},
{
"first": "Tilman",
"middle": [],
"last": "Becker",
"suffix": "",
"affiliation": {
"laboratory": "",
"institution": "DFKI GmbH",
"location": {
"addrLine": "Stuhlsatzenhausweg 3",
"postCode": "D-66123",
"settlement": "Saarbr\u00fccken",
"country": "Germany"
}
},
"email": ""
}
],
"year": "",
"venue": null,
"identifiers": {},
"abstract": "",
"pdf_parse": {
"paper_id": "W98-0134",
"_pdf_hash": "",
"abstract": [],
"body_text": [
{
"text": "Based on the work in (Poller, 1994) and a minor assumption about a normal form for TAGs, we present a highly simplified version of the twostep parsing approach for TAGs which allows for a much easier analysis of run-time and space complexity. It also snggests how restrictions on the grammars might result in improvements in run-time complexity.",
"cite_spans": [
{
"start": 21,
"end": 35,
"text": "(Poller, 1994)",
"ref_id": "BIBREF4"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": null
},
{
"text": "The main advantage of a two-step parsing system shows in practical applications like Verbmobil (Bub et al., 1997) where the parser must look at multiple hypotheses supplied by a speech recognizer (encoded in a word hypotheses lattice) and filter out illicit hypotheses as early as possible. The first (context-free) step of our parser filters out some illicit hypotheses fast (O(n 3 )); the constructed parsing matrix is then reused for the second step, the complete (O(n 6 )) TAG parse.",
"cite_spans": [
{
"start": 95,
"end": 113,
"text": "(Bub et al., 1997)",
"ref_id": "BIBREF0"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": null
},
{
"text": "The normal form that we assume in the following is only a very minor modification and allows for a trivial retrieval of parses from the results of the normal form-based parser.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Simplifying Root and Foot Nodes",
"sec_num": null
},
{
"text": "We call a TAG clean if the root node of every elementary tree and the foot node of every auxiliary tree is labeled with the null-adjoining constraint. Obviously, every TAG can be transformed into a clean TAG by simply adding to every elementary tree an additionai node, immediately dominating the root node, with the same label as the root node and the nulladjoining constraint and also adding an additional node, immediately dominated by the f\u00f6ot node, with the the same label as the foot node and the null-adjoining constraint (see figure 1). While this transformation adds new nodes to the derived trees, no adjunctions can take place at these additional nodes and they can easily be eliminated again from a derived tree, resulting in the derived tree of the original grammar. Thus, every TAG can be transformed into an \"almost\" strongly equivalent clean TAG.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Simplifying Root and Foot Nodes",
"sec_num": null
},
{
"text": "In a clean TAG, no adjunction can take place at the root or foot node. This allows us to drop numerous special data structures and steps from the algorithm in (Poller, 1994) , resulting in a much cleaner presentation. We also omit the treatment of linear precedence rules, which can easily be added.",
"cite_spans": [
{
"start": 159,
"end": 173,
"text": "(Poller, 1994)",
"ref_id": "BIBREF4"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Simplifying Root and Foot Nodes",
"sec_num": null
},
{
"text": "An initial offline step is the extraction of the context-free kernel from the TAG G, a contextfree grammar GK which overgenerates, i.e\"",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "A Simplified Two-Step TAG parser",
"sec_num": null
},
{
"text": "The first step of the parser is a standard parse with the Earley-algorithm (Earley, 1970) . The second step is the repeated elimination of adjoined trees from the parser's matrix. Thus a TAG derivation is constructed inside-out 1 .",
"cite_spans": [
{
"start": 75,
"end": 89,
"text": "(Earley, 1970)",
"ref_id": "BIBREF1"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "First, we describe the additional data structure which is added to the items of the Earley parser. An item is a tuple (i, j, S -+ o: \u2022 \u00df), representing a derivation of ai+l ... aj from o:. In addition, every non-terminal node in the item carries a list with node numbers, taken from the TAG grammar G, uniquely identifying a node in an elementary tree of G which contributed the rule S -+ o:\u00df. Furthermore, every node number in an item can store a list of pointers, called foot node pointers (see below). Figure 2: Two example trees and an item from the context-free kernet with node numbers.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "Our stepwise approach to TAG-parsing is open to different degrees of precision for the context-free parsing step depending on how much information about the elementary TAGtrees is integrated into the context-free parsing step. We expect that the following alternatives have different inftuences on the realtime behaviour of a practical system mainly depending on the grammar's characteristics (size, ambiguitiy, ... ) .",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "(1) Solely the node labels are used to generate the context-free kernel. In this case the node numbers attached to the terminals and nonterminals have no influence at all on the Earley operators. In this paper we describe this alternative.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "(2) An other possibility is to integrate the node addresses from the elementary TAG trees into the rules of the context-free kernel 2 \u2022 This requires extensions of the Earley operators because they are now controlled by the characteristics of a specific node of a Ti\\G tree instead of just a label. In particular, the prediction of a nonterminal node now only produces items for context-free rules that are valid according to the TAG grammar and also don't violate any adjunction constraint of the predicted node. This allows for the integration of the TAG constraint check into the context-free parsing step. Similarly, the completor also works only with valid derivation steps according to the TAG grammar. On the other hand, we cannot share node number alternatives in one item anymore. But this increases the overall number of items only by a constant factor.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "While the first alternative filters out only invalid context-free derivation steps with respect to node labels, the second one is a stronger filter because it only produces items which represent locally valid derivation steps with respect to the TAG grammar but reduced to the context-free domain of locality. Furthermore it requires one item for each occurence of a context-free rule in different TAG trees. This is a trade off between the number of items to be produced in the first parsing step and the precision of its filtering effect.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "lt is interesting to note that it is also possible to derive the node number specific items of the second alternative from the parsing matrix of the first one. If the node number check is organized top-down starting with successful context-free derivations (similar to the initialization of the TAG parsing step below) we get a 3-step parser functioning as a cascade of filters.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "Independent of these alternatives there is a special parsing strategy for lexicalized TAGs (Schabes et al., 1988) . As each terminal is associated with a set of elementary trees we can immediately restrict the relevant TAG trees for the parser to those that are associated with the terminals of the input string. This strategy can still be applied since the rules of the context-free kerne! can be computed in advance for each elementary tree separately. Once the relevant elementary trees are determined for an input string, the context-free kernel is simply the union of the associated context-free rules.",
"cite_spans": [
{
"start": 91,
"end": 113,
"text": "(Schabes et al., 1988)",
"ref_id": "BIBREF6"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "For all variants of the context-free parsing step, the second step (the actual TAG parsing step) remains basically the same.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "Within the second step an initialization procedure filters out irrelevant items by a topdown traversal starting from roots of successful context-free deri vations through the parsing matrix. This sets the ground for an iterated elimination of complete, adjoined trees. This initialization is not strictly necessary (and takes O(n 3 ) time), but it provides an important speed-up because now only valid context-free derivations are considered. Invalid contextfree derivation steps are filtered out which might become relevant in practical systems with large grammars.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "Initially, all leaf nodes (including foot nodes) are marked, i.e. , the corresponding node numbers in all items , are labeled ok, then these initial ok's are propagated \"bottom-up\" along the context-free derivation steps if they took place inside the same elementary tree which can easily be checked by comparing the unique node numbers. This ok-propagation also propagates relevant information about foot node positions.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "While recovering elementary trees in the parsing matrix, we need to keep track of possible foot node positions. Each node number in an item is associated with a set of corresponding f oot node pointers. A foot node pointer points to a particular node number in some item. Thus, w hen an ok is eventually propagated to a node number that represents the root node of an elementary tree, all possible positions of its foot node have been collected in the foot node pointer list. Note that there can be O(n 2 ) foot node pointers for each node number, since there are O(n 2 ) items.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "The relevant computational steps during the iteration are: elimination, upwards propagation, and horizontal propagation. Elimination of an adjoined tree in the Earley matrix is realized by propagating all ok's from immediately \"below'' all possible foot nodes to all immediate supertrees of the root node 3 \u2022 Upwards propagation is the propagation of an ok from a complete 4 item to its ancestor. Hor-izontal propagation is the propagation of an ok to an item where the dot has moved one position to the right.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "In the following, all complexity statements are based on the limited number of items that are produced by the Earley algorithm, in particular the number of items in a so called itemlist 5 .",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "Each itemlist h contains at most O(k) items so that the number of all items produced by the Earley algorithm is bound by: I:~::o O(k) = O(n 2 ) . Another important point for our complexity statements is that each individual item is stored exactly once by the Earley algorithm ( even though it might be derived by more than one operation), which means that there are no two identical items.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "We can now present a sketch of the algorithm: for j from 0 to n for i from j downto 0",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "foreach i tem (i, j, A-+ a \u2022 \u00df)",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "There are only three cases for a node number",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "N of A labeled ok of an item (i, j, A -+ a \u2022 \u00df): 1. \u00df = \u20ac:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "1.1 N is the root of an auxiliary tree:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "perform an elimination of all encodings of this tree, This can be clone in O(n 4 ) time. 1.2 N is an inner node of an elementary tree: perform an upwards propagation.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "This can be clone in O(n 3 ) time.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "2. \u00df-1-\u20ac: perform a hor-izontal propagation.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "This can require O(n 3 ) time. end foreach; end for j; end for i;",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "The most expensive step is elimination (step 1.1). For each root node of an adjoined tree to be eliminated there can be O(n 2 ) foot node pointers because there are at most O(n 2 ) items to which they can point to. They result in O(n 2 ) positions from which this tree can be eliminated, i.e., ok's at these positions and their foot node pointer lists must be propagated. Collecting all these foot node pointers lists ( of size O(n 2 ) each) from each of the O(n 2 ) positions results in O(n 4 ) time complexity (see figure 3) . lt is important to note that this computational step cannot produce more than O(n 2 ) new foot node pointers at the current root node although their computation costs O(n 4 ) . Therefore the fact that each node has at most O(n 2 ) foot node pointers is an invariant of the iterative elimination.",
"cite_spans": [],
"ref_spans": [
{
"start": 517,
"end": 526,
"text": "figure 3)",
"ref_id": null
}
],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "The complexity of step 1.2 ( upwards propagation) is also based on the limited number\u2022of foot node pointers. Since the ok of a node is propagated to its \"context-free 11 ancestors and all possible ancestors are contained in the same itemlist, the compiexity is iimited by the 0( n 2 ) foot node pointers and the O(n) items (\"supertree\" in figure 4) to which they have tobe propagated to, which results in O(n 3 ) time complexity.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "Finally, step 2 (horizontal propagation) can also be done in O(n 3 ) time. Again, 0(11 2 ) fnot. node pointers of an ok have to be propagated to all items where the dot has moved one position The overall time complexity of the parsing algorithm is O(n 6 ) since there are O(n 2 ) items for which elimination (O(n 4 )) must be performed.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "Obviously, the two-step parsing algorithm does not .have the correct prefix property (Nederhof, 1997) as it requires the entire sentence tobe analyzed by the Earley parser before the second (TAG parsing) step begins. However, the Earley step itself has the correct prefix property wrt. the context-free kernel and also the discussion in (Poller, 1994) of a completely incrernental setup also applies to the sirnplified two-step TAG parsing algorithm presented here.",
"cite_spans": [
{
"start": 85,
"end": 101,
"text": "(Nederhof, 1997)",
"ref_id": "BIBREF2"
},
{
"start": 337,
"end": 351,
"text": "(Poller, 1994)",
"ref_id": "BIBREF4"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": ". \u2022 6 The concepts \"next\" and \"previous\" explicitly represent links between ite' ms coming from dot movements by the Earley parser.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "L(G) c L(GK)\u2022",
"sec_num": null
},
{
"text": "Although our parser does not have the correctprefix property it can run incrementally as described in (Poller, 1994) namely by running the TAG parsing step in parallel to the construction of the context-free parsing matrix. Although this may require additional computational steps on unsuccessful context-free derivation steps, the effects on the realtime behavior of a practical systern again depend on grammar characteristics. So it would be very helpful to find some kind of \"grammar classification\" with respect to their Hparser suitabilityn in practical implementations answering the question \"Which TAG parser is best suitable for my current task?\". The analysis of the elimination step shows clearly that the time complexity of our TAG parser stems from the number of possible foot node positions. We are currently investigating whether certain restrictions on TAG grammars can lower this number. E.g., this is obviously the case for unambiguous grammars.",
"cite_spans": [
{
"start": 102,
"end": 116,
"text": "(Poller, 1994)",
"ref_id": "BIBREF4"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Current Work",
"sec_num": null
},
{
"text": "0r rather bottom-up in terms of the derivation tree of the TAG.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "",
"sec_num": null
},
{
"text": "Thanks to the anonymous reviewer who suggested this procedure.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "",
"sec_num": null
},
{
"text": "Implementations of the concepts \"below\" and \"supertree\" arc already provided by thc Earlcy parser.4 A complete item has the dot at the rightmost position..5 An itemlist h is defined as the set of all items(i , j, S -1 o \u2022 \u00df) where k = j.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "",
"sec_num": null
}
],
"back_matter": [],
"bib_entries": {
"BIBREF0": {
"ref_id": "b0",
"title": "Verbmobil: The combination of deep and shallow processing for spontaneous speech translation",
"authors": [
{
"first": "Thomas",
"middle": [],
"last": "Bub",
"suffix": ""
},
{
"first": "Wolfgang",
"middle": [],
"last": "Wahlster",
"suffix": ""
},
{
"first": "Alex",
"middle": [],
"last": "Waibel",
"suffix": ""
}
],
"year": 1997,
"venue": "Proceedings of ICASSP-97",
"volume": "",
"issue": "",
"pages": "71--74",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Thomas Bub, Wolfgang Wahlster, and Alex Waibel. 1997. Verbmobil: The combination of deep and shallow processing for spontaneous speech trans- lation. In Proceedings of ICASSP-97, pages 71- 74, Munich.",
"links": null
},
"BIBREF1": {
"ref_id": "b1",
"title": "An efficient context-free parsing algorithm",
"authors": [
{
"first": "J",
"middle": [],
"last": "Earley",
"suffix": ""
}
],
"year": 1970,
"venue": "Communications of the ACM",
"volume": "13",
"issue": "2",
"pages": "94--102",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "J. Earley. 1970. An efficient context-free parsing al- gorithm. Communications of the ACM, 13(2):94- 102.",
"links": null
},
"BIBREF2": {
"ref_id": "b2",
"title": "Solving the correct-prefix property for TAGs",
"authors": [
{
"first": "M",
"middle": [
"J"
],
"last": "Nederhof",
"suffix": ""
}
],
"year": 1997,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "M. J. Nederhof. 1997. Solving the correct-prefix property for TAGs. In T. Becker and H.-U.",
"links": null
},
"BIBREF3": {
"ref_id": "b3",
"title": "Proceedings of the Fifth Meeting on Mathematics of Language {MOL5}, number D-97\u202202",
"authors": [
{
"first": "",
"middle": [],
"last": "Krieger",
"suffix": ""
}
],
"year": null,
"venue": "",
"volume": "",
"issue": "",
"pages": "124--130",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Krieger, editors, Proceedings of the Fifth Meet- ing on Mathematics of Language {MOL5}, num- ber D-97\u202202, pages 124-130, Saarbr\u00fccken, Au- gust. DFKI GmbH.",
"links": null
},
"BIBREF4": {
"ref_id": "b4",
"title": "lncremental parsing with LD /TLP-TAGs",
"authors": [
{
"first": "Peter",
"middle": [],
"last": "Poller",
"suffix": ""
}
],
"year": 1994,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Peter Poller. 1994. lncremental parsing with LD /TLP-TAGs.",
"links": null
},
"BIBREF6": {
"ref_id": "b6",
"title": "Parsing strategies with 'iexicaiized' grammars: Application to Tree Adjoining Grammars",
"authors": [
{
"first": "Yves",
"middle": [],
"last": "Schabes",
"suffix": ""
},
{
"first": "Anne",
"middle": [],
"last": "Abeille",
"suffix": ""
},
{
"first": "Aravind",
"middle": [
"K"
],
"last": "Joshi",
"suffix": ""
}
],
"year": 1988,
"venue": "",
"volume": "",
"issue": "",
"pages": "578--583",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Yves Schabes, Anne Abeille, and Aravind K. Joshi. 1988. Parsing strategies with 'iexicaiized' gram- mars: Application to Tree Adjoining Grammars. pages 578-583, Budapest, August.",
"links": null
}
},
"ref_entries": {
"FIGREF0": {
"uris": null,
"text": "Transforming an auxiliary tree into a clean tree.",
"num": null,
"type_str": "figure"
},
"FIGREF1": {
"uris": null,
"text": "1ree",
"num": null,
"type_str": "figure"
},
"FIGREF2": {
"uris": null,
"text": "Simple propagation of ok to the ancestor node, i.e., the corresponding iterns.to the right. Since there are no identical iterns there can be at rnost O(n) iterns (one item from each itemlist; see figure 5) 6 .(i,j, S -t a \u2022 X\u00df) n~t (i,j + k, S -t aX \u2022 \u00df) Horizontal propagation of ok to the next item.",
"num": null,
"type_str": "figure"
}
}
}
}