ACL-OCL / Base_JSON /prefixP /json /P01 /P01-1007.json
Benjamin Aw
Add updated pkl file v3
6fa4bc9
{
"paper_id": "P01-1007",
"header": {
"generated_with": "S2ORC 1.0.0",
"date_generated": "2023-01-19T09:29:26.273272Z"
},
"title": "Guided Parsing of Range Concatenation Languages",
"authors": [
{
"first": "Fran\u00e7ois",
"middle": [],
"last": "Barth\u00e9lemy",
"suffix": "",
"affiliation": {},
"email": ""
},
{
"first": "Pierre",
"middle": [],
"last": "Boullier",
"suffix": "",
"affiliation": {},
"email": ""
},
{
"first": "Philippe",
"middle": [],
"last": "Deschamp And\u00e9ric De La Clergerie",
"suffix": "",
"affiliation": {},
"email": ""
},
{
"first": "Francois",
"middle": [],
"last": "Barthelemy",
"suffix": "",
"affiliation": {},
"email": ""
},
{
"first": "Philippe",
"middle": [],
"last": "Deschamp",
"suffix": "",
"affiliation": {},
"email": ""
},
{
"first": "Eric",
"middle": [],
"last": "De",
"suffix": "",
"affiliation": {},
"email": ""
},
{
"first": "La",
"middle": [],
"last": "Clergerie\u00a1",
"suffix": "",
"affiliation": {},
"email": ""
},
{
"first": "@inria",
"middle": [],
"last": "Fr",
"suffix": "",
"affiliation": {},
"email": ""
}
],
"year": "",
"venue": null,
"identifiers": {},
"abstract": "The theoretical study of the range concatenation grammar [RCG] formalism has revealed many attractive properties which may be used in NLP. In particular, range concatenation languages [RCL] can be parsed in polynomial time and many classical grammatical formalisms can be translated into equivalent RCGs without increasing their worst-case parsing time complexity. For example, after translation into an equivalent RCG, any tree adjoining grammar can be parsed in \u00a2 \u00a4 \u00a3 \u00a6 \u00a5 \u00a7 \u00a9 time. In this paper, we study a parsing technique whose purpose is to improve the practical efficiency of RCL parsers. The non-deterministic parsing choices of the main parser for a language are directed by a guide which uses the shared derivation forest output by a prior RCL parser for a suitable superset of. The results of a practical evaluation of this method on a wide coverage English grammar are given.). Last, in Section 4, we relate some experiments with a wide coverage tree-adjoining grammar [TAG] for English.",
"pdf_parse": {
"paper_id": "P01-1007",
"_pdf_hash": "",
"abstract": [
{
"text": "The theoretical study of the range concatenation grammar [RCG] formalism has revealed many attractive properties which may be used in NLP. In particular, range concatenation languages [RCL] can be parsed in polynomial time and many classical grammatical formalisms can be translated into equivalent RCGs without increasing their worst-case parsing time complexity. For example, after translation into an equivalent RCG, any tree adjoining grammar can be parsed in \u00a2 \u00a4 \u00a3 \u00a6 \u00a5 \u00a7 \u00a9 time. In this paper, we study a parsing technique whose purpose is to improve the practical efficiency of RCL parsers. The non-deterministic parsing choices of the main parser for a language are directed by a guide which uses the shared derivation forest output by a prior RCL parser for a suitable superset of. The results of a practical evaluation of this method on a wide coverage English grammar are given.). Last, in Section 4, we relate some experiments with a wide coverage tree-adjoining grammar [TAG] for English.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Abstract",
"sec_num": null
}
],
"body_text": [
{
"text": "Usually, during a nondeterministic process, when a nondeterministic choice occurs, one explores all possible ways, either in parallel or one after the other, using a backtracking mechanism. In both cases, the nondeterministic process may be assisted by another process to which it asks its way. This assistant may be either a guide or an oracle.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1"
},
{
"text": "An oracle always indicates all the good ways that will eventually lead to success, and those good ways only, while a guide will indicate all the good ways but may also indicate some wrong ways. In other words, an oracle is a perfect guide (Kay, 2000) , and the worst guide indicates all possible ways. Given two problems and and their respective solutions and , if they are such that \" ! # , any algorithm which solves is a candidate guide for nondeterministic algorithms solving . Obviously, supplementary conditions have to be fulfilled for $",
"cite_spans": [
{
"start": 239,
"end": 250,
"text": "(Kay, 2000)",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1"
},
{
"text": "to be a guide. The first one deals with relative efficiency: it assumes that problem $ can be solved more efficiently than problem . Of course, parsers are privileged candidates to be guided. In this paper we apply this technique to the parsing of a subset of RCLs that are the languages defined by RCGs. The syntactic formalism of RCGs is powerful while staying computationally tractable. Indeed, the positive version of RCGs [PRCGs] defines positive RCLs [PRCLs] that exactly cover the class PTIME of languages recognizable in deterministic polynomial time. For example, any mildly context-sensitive language is a PRCL.",
"cite_spans": [
{
"start": 452,
"end": 464,
"text": "RCLs [PRCLs]",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1"
},
{
"text": "In Section 2, we present the definitions of PRCGs and PRCLs. Then, in Section 3, we design an algorithm which transforms any PRCL into another PRCL % , ' & ( ) such that the (theoretical) parse time for )",
"cite_spans": [
{
"start": 152,
"end": 159,
"text": "' & ( )",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1"
},
{
"text": "is less than or equal to the parse time for : the parser for will be guided by the parser for",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Introduction",
"sec_num": "1"
},
{
"text": "This section only presents the basics of RCGs, more details can be found in (Boullier, 2000b) . A positive range concatenation grammar [ ",
"cite_spans": [
{
"start": 76,
"end": 93,
"text": "(Boullier, 2000b)",
"ref_id": null
},
{
"start": 135,
"end": 136,
"text": "[",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Positive Range Concatenation Grammars",
"sec_num": "2"
},
{
"text": "EQUATION",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [
{
"start": 0,
"end": 8,
"text": "EQUATION",
"ref_id": "EQREF",
"raw_str": "V \u00a3 X W 5 P Q P Q P 5 Y W \u00e0 8 5 P Q P Q P 5 Y W c b d \u00a9 where e f T h g is its arity, V",
"eq_num": "C 3"
}
],
"section": "Positive Range Concatenation Grammars",
"sec_num": "2"
},
{
"text": ", and each of",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Positive Range Concatenation Grammars",
"sec_num": "2"
},
{
"text": "W C \u00a3 i 7 ( p q @ r \u00a9 8 s , g u t w v $ t x e",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Positive Range Concatenation Grammars",
"sec_num": "2"
},
{
"text": ", is an argument. ",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Positive Range Concatenation Grammars",
"sec_num": "2"
},
{
"text": "\u00a3 v 5 X f g \u00a9 s.t. U e t h v i t f t \u00a5",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Positive Range Concatenation Grammars",
"sec_num": "2"
},
{
"text": "is called a range, and is denoted ",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Positive Range Concatenation Grammars",
"sec_num": "2"
},
{
"text": "j i v k P l P f g m o n : v",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Positive Range Concatenation Grammars",
"sec_num": "2"
},
{
"text": "j i v k P l P w v mn",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Positive Range Concatenation Grammars",
"sec_num": "2"
},
{
"text": ". Variable occurrences or more generally strings in \u00a3 i 7",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Positive Range Concatenation Grammars",
"sec_num": "2"
},
{
"text": "x p",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Positive Range Concatenation Grammars",
"sec_num": "2"
},
{
"text": "x @ r \u00a9 8 s can be instantiated to ranges. However, an occurrence of the terminal y can be instantiated to the range",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Positive Range Concatenation Grammars",
"sec_num": "2"
},
{
"text": "j f r p g P l P f g m o n iff y z 1 { | t",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Positive Range Concatenation Grammars",
"sec_num": "2"
},
{
"text": ". That is, in a clause, several occurrences of the same terminal may well be instantiated to different ranges while several occurrences of the same variable can only be instantiated to the same range. Of course, the concatenation on strings matches the concatenation on ranges.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Positive Range Concatenation Grammars",
"sec_num": "2"
},
{
"text": "We say that These definitions extend naturally from clause to set of clauses (i.e., grammar).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Positive Range Concatenation Grammars",
"sec_num": "2"
},
{
"text": "V \u00a3 4 } 5 P Q P Q P 5 k } | b \u00a9 is an instantiation of the predicate V \u00a3 X W 5 P Q P Q P 5 Y W c b d \u00a9 iff } C q n $ 5 g u t w v",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Positive Range Concatenation Grammars",
"sec_num": "2"
},
{
"text": "In this paper we will not consider negative RCGs, since the guide construction algorithm presented is Section 3 is not valid for this class. Thus, in the sequel, we shall assume that RCGs are PRCGs.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Positive Range Concatenation Grammars",
"sec_num": "2"
},
{
"text": "In (Boullier, 2000b) is its arity and is the number of (different) variables in its LHS predicate.",
"cite_spans": [
{
"start": 3,
"end": 20,
"text": "(Boullier, 2000b)",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Positive Range Concatenation Grammars",
"sec_num": "2"
},
{
"text": "The purpose of this section is to present a transformation algorithm which takes as input any PRCG ",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "PRCG to 1-PRCG Transformation Algorithm",
"sec_num": "3"
},
{
"text": "V . We define 3 1 p V V C 3 6 5 g t ( v t ( u v y o \u00a3V \u00a9 A and 7 1 7 , @ \u00a4 1 @ , \u00a4 1 \u00a1",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "PRCG to 1-PRCG Transformation Algorithm",
"sec_num": "3"
},
{
"text": "and the set of clauses is generated in the way described below.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "PRCG to 1-PRCG Transformation Algorithm",
"sec_num": "3"
},
{
"text": "We say that two strings W and \u00a2 , on some alphabet, share a common substring, and we write ",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "PRCG to 1-PRCG Transformation Algorithm",
"sec_num": "3"
},
{
"text": "\u00a3 9 \u00a3 X W $ 5 \u00a2 \u00a9 , iff either W , or \u00a2 or both are empty or, if W 1 \u00a4 and \u00a2 \" 1 \u00a5 , we have g T \u00a6 g . For any clause 1 E B F \u00a6 G E P Q P Q P E t B P Q P Q P E R in , such that E t 1 V t \u00a3 X W t 5 P Q P Q P 5 Y W R \u00a7 t \u00a9 A 5 U \u1e97 f t \u00a9 S 5 S t 1 f d v X y \u00aa \u00a3V t \u00a9 ,",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "PRCG to 1-PRCG Transformation Algorithm",
"sec_num": "3"
},
{
"text": "\u00a3 \u00b2 \" \u00b3 \u00a9 G V \u00a3 \u00b2 5 \u00b3 5\u00a9 V \u00a3 d \u00b2 5 3 5 \u0155 \u00a9 G V \u00a3 \u00b2 5 \u00b3 5\u00a9 V \u00a3 \u00b5 k \u00b2 5 \u00b5 A \u00b3 5 \u00b5 1 \u00a9 G V \u00a3 \u00b2 5 \u00b3 5\u00a9 V \u00a3 4 \u00ba d 5 k \u00ba d 5 k \u00ba \u00a9 G \u00ba",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "PRCG to 1-PRCG Transformation Algorithm",
"sec_num": "3"
},
{
"text": "This PRCG is transformed by the above algorithm into a 1-PRCG whose clause set is",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "PRCG to 1-PRCG Transformation Algorithm",
"sec_num": "3"
},
{
"text": "\u00a3 \u00b2 \" \u00b3 \u00ed \u00a9 G V \u00a3 \u00b2 \u00a9 V \u00a3 \u00b3 \u00a9 V \u00bb\u00a3\u00a9 V \u00a3 d \u00b2 \u00a9 G V \u00a3 \u00b2 \u00a9 V \u00a3 3 \u00a9 G V \u00a3 \u00b3 \u00a9 V \u00bb\u00a3 \u0155 \u00a9 G V \u00bb\u00a3\u00a9 V \u00a3 \u00b5 k \u00b2 \u00a9 G V \u00a3 \u00b2 \u00a9 V \u00a3 \u00b5 Y \u00b3 \u00a9 G V \u00a3 \u00b3 \u00a9 V \u00bb \u00a3 \u00b5 \u00a9 G V \u00bb \u00a3\u00a9 V \u00a3 4 \u00ba u \u00a9 G \u00ba V \u00a3 4 \u00ba u \u00a9 G \u00ba V \u00bb \u00a3 4 \u00ba u \u00a9 G \u00ba It is not difficult to show that ' & ( )",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "PRCG to 1-PRCG Transformation Algorithm",
"sec_num": "3"
},
{
"text": ". This transformation algorithm works for any PRCG. Moreover, if we restrict ourselves to the class of PRCGs that are non-combinatorial and non-bottom-up-erasing, it is easy to check that the constructed 1-PRCG is also non-combinatorial and non-bottom-up-erasing. It has been shown in (Boullier, 2000a ) that non-combinatorial and nonbottom-up-erasing 1-RCLs can be parsed in cubic time after a simple grammatical transformation. In order to reach this cubic parse time, we assume in the sequel that any RCG at hand is a noncombinatorial and non-bottom-up-erasing PRCG.",
"cite_spans": [
{
"start": 285,
"end": 301,
"text": "(Boullier, 2000a",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "PRCG to 1-PRCG Transformation Algorithm",
"sec_num": "3"
},
{
"text": "However, even if this cubic time transformation is not performed, we can show that the (theoretical) throughput of the parser for % cannot be less than the throughput of the parser for . In other words, if we consider the parsers for and % and if we recall the end of Section 2, it is easy to show that the degrees, say and g",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "PRCG to 1-PRCG Transformation Algorithm",
"sec_num": "3"
},
{
"text": ", of their polynomial parse times are such that t \u00bc",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "PRCG to 1-PRCG Transformation Algorithm",
"sec_num": "3"
},
{
"text": ". The equality is reached iff the maximum value in 0 is produced by a unary clause which is kept unchanged by our transformation algorithm.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "PRCG to 1-PRCG Transformation Algorithm",
"sec_num": "3"
},
{
"text": "The starting RCG 0 is called the initial grammar and it defines the initial language . The corresponding 1-PRCG 0 constructed by our transformation algorithm is called the guiding grammar and its language % is the guiding language.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "PRCG to 1-PRCG Transformation Algorithm",
"sec_num": "3"
},
{
"text": "If the algorithm to reach a cubic parse time is applied to the guiding grammar 0 , we get an equivalent \u00a5 \u00bb -guiding grammar (it also defines ) -) guiding structure. The term guide is used for the process which, with the help of a guiding structure, answers 'yes' or 'no' to any question asked by the guided process. In our case, the guided processes are the RCL parsers for called guided parser and \u00a5 \u00bb -guided parser.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "PRCG to 1-PRCG Transformation Algorithm",
"sec_num": "3"
},
{
"text": "Parsing with a guide proceeds as follows. The guided process is split in two phases. First, the source text is parsed by the guiding parser which builds the guiding structure. Of course, if the source text is parsed by the \u00a5 \u00bb -guiding parser, the \u00a5 \u00bb -guiding structure is then translated into a guiding structure, as if the source text had been parsed by the guiding parser. Second, the guided parser proper is launched, asking the guide to help (some of) its nondeterministic choices.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Parsing with a Guide",
"sec_num": "4"
},
{
"text": "Our current implementation of RCL parsers is like a (cached) recursive descent parser in which the nonterminal calls are replaced by instantiated predicate calls. Assume that, at some place in an RCL parser,",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Parsing with a Guide",
"sec_num": "4"
},
{
"text": "V \u00a3 4 } 5 k } \u00a9",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Parsing with a Guide",
"sec_num": "4"
},
{
"text": "is an instantiated predicate call. In a corresponding guided parser, this call can be guarded by a call to a guide, with V , } and } as parameters, that will check that both",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Parsing with a Guide",
"sec_num": "4"
},
{
"text": "V \u00a3 4 } \u00a9 and V \u00a3 4 } \u00a9",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Parsing with a Guide",
"sec_num": "4"
},
{
"text": "are instantiated predicates in the guiding structure. Of course, various actions in a guided parser can be guarded by guide calls, but the guide can only answer questions that, in some sense, have been registered into the guiding structure. The guiding structure may thus contain more or less complete information, leading to several guide levels.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Parsing with a Guide",
"sec_num": "4"
},
{
"text": "For example, one of the simplest levels one may think of, is to only register in the guiding structure the (numbers of the) clauses of the guiding grammar for which at least one instantiation occurs in their parse forest. In such a case, during the second phase, when the guided parser tries to instantiate some clause of 0 , it can call the guide to know whether or not can be valid. The guide will answer 'yes' iff the guiding structure contains the set \u00ab of clauses in 0 r generated from by the transformation algorithm. At the opposite, we can register in the guiding structure the full parse forest output by the guiding parser. This parse forest is, for a given sentence, the set of all instantiated clauses of the guiding grammar that are used in all complete derivations. During the second phase, when the guided parser has instantiated some clause of the initial grammar, it builds the set of the corresponding instantiations of all clauses in \u00ab and asks the guide to check that this set is a subset of the guiding structure.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Parsing with a Guide",
"sec_num": "4"
},
{
"text": "During our experiment, several guide levels have been considered, however, the results in Section 5 are reported with a restricted guiding structure which only contains the set of all (valid) clause numbers and for each clause the set of its LHS instantiated predicates.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Parsing with a Guide",
"sec_num": "4"
},
{
"text": "The goal of a guided parser is to speed up a parsing process. However, it is clear that the theoretical parse time complexity is not improved by this technique and even that some practical parse time will get worse. For example, this is the case for the above 3-copy language. In that case, it is not difficult to check that the guiding language % is 7 s",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Parsing with a Guide",
"sec_num": "4"
},
{
"text": ", and that the guide will always answer 'yes' to any question asked by the guided parser. Thus the time taken by the guiding parser and by the guide itself is simply wasted. Of course, a guide that always answer 'yes' is not a good one and we should note that this case may happen, even when the guiding language is not 7 s . Thus, from a practical point of view the question is simply \"will the time spent in the guiding parser and in the guide be at least recouped by the guided parser?\" Clearly, in the general case, no definite answer can be brought to such a question, since the total parse time may depend not only on the input grammar, the (quality of) the guiding grammar (e.g., is ) not a too \"large\" superset of ), the guide level, but also it may depend on the parsed sentence itself. Thus, in our opinion, only the results of practical experiments may globally decide if using a guided parser is worthwhile .",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Parsing with a Guide",
"sec_num": "4"
},
{
"text": "Another potential problem may come from the size of the guiding grammar itself. In particular, experiments with regular approximation of CFLs related in (Nederhof, 2000) show that most reported methods are not practical for large CF grammars, because of the high costs of obtaining the minimal DFSA.",
"cite_spans": [
{
"start": 153,
"end": 169,
"text": "(Nederhof, 2000)",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Parsing with a Guide",
"sec_num": "4"
},
{
"text": "In our case, it can easily be shown that the increase in size of the guiding grammars is bounded by a constant factor and thus seems a priori acceptable from a practical point of view.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Parsing with a Guide",
"sec_num": "4"
},
{
"text": "The next section depicts the practical experiments we have performed to validate our approach.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Parsing with a Guide",
"sec_num": "4"
},
{
"text": "In order to compare a (normal) RCL parser and its guided versions, we looked for an existing widecoverage grammar. We chose the grammar for English designed for the XTAG system (XTAG, 1995) , because it both is freely available and seems rather mature. Of course, that grammar uses the TAG formalism. 1 Thus, we first had to transform that English TAG into an equivalent RCG. To perform this task, we implemented the algorithm described in (Boullier, 1998 ) (see also (Boullier, 1999) ), which allows to transform any TAG into an equivalent simple PRCG. 2 However, Boullier's algorithm was designed for pure TAGs, while the structures used in the XTAG system are not trees, but rather tree schemata, grouped into linguistically pertinent tree families, which have to be instantiated by inflected forms for each given input sentence. That important difference stems from the radical difference in approaches between \"classical\" TAG parsing and \"usual\" RCL parsing. In the former, through lexicalization, the input sentence allows the selection of tree schemata which are then instantiated on the corresponding inflected forms, thus the TAG is not really part of the parser. While in the latter, the (non-lexicalized) grammar is precompiled into an optimized automaton. 3 Since the instantiation of all tree schemata 1 We assume here that the reader has at least some cursory notions of this formalism. An introduction to TAG can be found in (Joshi, 1987) . 2 We first stripped the original TAG of its feature structures in order to get a pure featureless TAG.",
"cite_spans": [
{
"start": 177,
"end": 189,
"text": "(XTAG, 1995)",
"ref_id": null
},
{
"start": 440,
"end": 455,
"text": "(Boullier, 1998",
"ref_id": "BIBREF1"
},
{
"start": 468,
"end": 484,
"text": "(Boullier, 1999)",
"ref_id": "BIBREF2"
},
{
"start": 1268,
"end": 1269,
"text": "3",
"ref_id": null
},
{
"start": 1315,
"end": 1316,
"text": "1",
"ref_id": null
},
{
"start": 1440,
"end": 1453,
"text": "(Joshi, 1987)",
"ref_id": null
},
{
"start": 1456,
"end": 1457,
"text": "2",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Experiments with an English Grammar",
"sec_num": "5"
},
{
"text": "3 The advantages of this approach might be balanced by the size of the automaton, but we shall see later on that it can be made to stay reasonable, at least in the case at hand. by the complete dictionary is impracticable, we designed a two-step process. For example, from the sentence \"George loved himself .\", a lexer first produces the sequence \"George",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Experiments with an English Grammar",
"sec_num": "5"
},
{
"text": "n-n nxn- n nn-n loved tnx0vnx1-v tnx0vnx1s2- v tnx0vs1-v himself tnx0n1-n nxn-n .",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Experiments with an English Grammar",
"sec_num": "5"
},
{
"text": "spu-punct spus-punct \", and, in a second phase, this sequence is used as actual input to our parsers. The names between braces are pre-terminals. We assume that each terminal leaf v of every elementary tree schema \u00bd has been labeled by a pre-terminal name of the form",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Experiments with an English Grammar",
"sec_num": "5"
},
{
"text": "y i 1 \u00bf \u00be - \u00c0 -v \u00c1 where \u00be is the family of \u00bd , is the category of v ( verb, noun, . . . ) and v",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Experiments with an English Grammar",
"sec_num": "5"
},
{
"text": "is an optional occurrence index. 4 Thus, the association George \"",
"cite_spans": [
{
"start": 33,
"end": 34,
"text": "4",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Experiments with an English Grammar",
"sec_num": "5"
},
{
"text": "n-n nxn-n nn-n \" means that the inflected form \"George\" is a noun (suffix -n) that can occur in all trees of the \"n\", \"nxn\" or \"nn\" families (everywhere a terminal leaf of category noun occurs).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Experiments with an English Grammar",
"sec_num": "5"
},
{
"text": "Since, in this two-step process, the inputs are not sequences of terminal symbols but instead simple DAG structures, as the one depicted in Figure 1 , we have accordingly implemented in our RCG system the ability to handle inputs that are simple DAGs of tokens. 5 In Section 3, we have seen that the language defined by a guiding grammar is a CFL (see (Boullier, 2000a) ). In other words, in the case of TAGs, our transformation algorithm approximates the initial tree-adjoining language by a CFL, and the steps of CF parsing performed by the guiding parser can well be understood in terms of TAG parsing.",
"cite_spans": [
{
"start": 262,
"end": 263,
"text": "5",
"ref_id": null
},
{
"start": 352,
"end": 369,
"text": "(Boullier, 2000a)",
"ref_id": null
}
],
"ref_spans": [
{
"start": 140,
"end": 148,
"text": "Figure 1",
"ref_id": null
}
],
"eq_spans": [],
"section": "Experiments with an English Grammar",
"sec_num": "5"
},
{
"text": "The original algorithm in (Boullier, 1998) performs a one-to-one mapping between elementary trees and clauses, initial trees generate simple unary clauses while auxiliary trees generate simple binary clauses. Our transformation algorithm leaves unary clauses unchanged (simple unary clauses are in fact CF productions). For binary V -clauses, our algorithm generates two clauses, 0 George 1",
"cite_spans": [
{
"start": 26,
"end": 42,
"text": "(Boullier, 1998)",
"ref_id": "BIBREF1"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Experiments with an English Grammar",
"sec_num": "5"
},
{
"text": "n-n loved 2 tnx0vnx1-v himself 3 tnx0n1-n . 4 spu-punct spus-punct nxn-n tnx0vnx1s2-v tnx0vs1-v",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Experiments with an English Grammar",
"sec_num": "5"
},
{
"text": "nxn-n nn-n Figure 1 : Actual source text as a simple DAG structure an V -clause which corresponds to the part of the auxiliary tree to the left of the spine and an V clause for the part to the right of the spine. Both are CF clauses that the guiding parser calls independently. Therefore, for a TAG, the associated guiding parser performs substitutions as would a TAG parser, while each adjunction is replaced by two independent substitutions, such that there is no guarantee that any couple of V -tree and V tree can glue together to form a valid (adjoinable) V -tree. In fact, guiding parsers perform some kind of (deep-grammar based) shallow parsing.",
"cite_spans": [],
"ref_spans": [
{
"start": 11,
"end": 19,
"text": "Figure 1",
"ref_id": null
}
],
"eq_spans": [],
"section": "Experiments with an English Grammar",
"sec_num": "5"
},
{
"text": "For our experiments, we first transformed the English XTAG into an equivalent simple PRCG: the initial grammar 0 . Then, using the algorithms of Section 3, we built, from compiled with gcc without any optimization flag.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Experiments with an English Grammar",
"sec_num": "5"
},
{
"text": "We have first compared the total time taken to produce the guiding structures, both by the \u00a5 \u00bb guiding parser and by the guiding parser (see Table 2 ). On this sample set, the",
"cite_spans": [],
"ref_spans": [
{
"start": 141,
"end": 148,
"text": "Table 2",
"ref_id": "TABREF10"
}
],
"eq_spans": [],
"section": "Experiments with an English Grammar",
"sec_num": "5"
},
{
"text": "-guiding parser is twice as fast as the \u00a5 \u00bb -guiding parser. We guess that, on such short sentences, the benefit yielded by the lowest degree has not yet offset the time needed to handle a much greater number of clauses. The sizes of these RCL parsers (load modules) are in Table 3 while their parse times are in Table 4 . 7 We have also noted in the last line, for reference, the times of the latest XTAG parser (February 2001), 8 on our sample set and on the 35-word sentence. 9",
"cite_spans": [
{
"start": 323,
"end": 324,
"text": "7",
"ref_id": null
}
],
"ref_spans": [
{
"start": 274,
"end": 320,
"text": "Table 3 while their parse times are in Table 4",
"ref_id": "TABREF11"
}
],
"eq_spans": [],
"section": "\u00a5 \u00cb \u00d1",
"sec_num": null
},
{
"text": "In (Sarkar, 2000) , there is some evidence to indicate that in LTAG parsing the number of trees selected by the words in a sentence (a measure of the syntactic lexical ambiguity of the sentence) is a better predictor of complexity than the number of words in the sentence. Thus, the accuracy of the tree selection process may be crucial for parsing speeds. In this section, we wish to briefly compare the tree selections performed, on the one hand by the words in a sentence and, on the other hand, by a guiding parser. Such filters can be used, for example, as pre-processors in classical [L]TAG parsing. With a guiding parser as tree filter, a tree (i.e., a clause) is kept, not because it has been selected by a word in the input sentence, but because an instantiation of that clause belongs to the guiding structure.",
"cite_spans": [
{
"start": 3,
"end": 17,
"text": "(Sarkar, 2000)",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Guiding Parser as Tree Filter",
"sec_num": "6"
},
{
"text": "The recall of both filters is 100%, since all pertinent trees are necessarily selected by the input words and present in the guiding structure. On the other hand, for the tree selection by the words in a sentence, the precision measured on our sam- 7 The time taken by the lexer phase is linear in the length of the input sentences and is negligible.",
"cite_spans": [
{
"start": 249,
"end": 250,
"text": "7",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Guiding Parser as Tree Filter",
"sec_num": "6"
},
{
"text": "8 It implements a chart-based head-corner parsing algorithm for lexicalized TAGs, see (Sarkar, 2000) . This parser can be run in two phases, the second one being devoted to the evaluation of the features structures on the parse forest built during the first phase. Of course, the times reported in that paper are only those of the first pass. Moreover, the various parameters have been set so that the resulting parse trees and ours are similar. Almost half the sample sentences give identical results in both that system and ours. For the other half, it seems that the differences come from the way the co-anchoring problem is handled in both systems. To be fair, it must be noted that the time taken to output a complete parse forest is not included in the parse times reported for our parsers. Outputing those parse forests, similar to Sarkar's ones, takes one second on the whole sample set and 80 seconds for the 35-word sentence (there are more than 3 600 000 instantiated clauses in the parse forest of that last sentence).",
"cite_spans": [
{
"start": 86,
"end": 100,
"text": "(Sarkar, 2000)",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Guiding Parser as Tree Filter",
"sec_num": "6"
},
{
"text": "9 Considering the last line of Table 2 , one can notice that the times taken by the guided phases of the guided parser and the \u00c7 \u00d3 -guided parser are noticeably different, when they should be the same. This anomaly, not present on the sample set, is currently under investigation. ple set is 15.6% on the average, while it reaches 100% for the guiding parser (i.e., each and every selected tree is in the final parse forest).",
"cite_spans": [],
"ref_spans": [
{
"start": 31,
"end": 38,
"text": "Table 2",
"ref_id": "TABREF10"
}
],
"eq_spans": [],
"section": "Guiding Parser as Tree Filter",
"sec_num": "6"
},
{
"text": "The experiment related in this paper shows that some kind of guiding technique has to be considered when one wants to increase parsing efficiency. With a wide coverage English TAG, on a small sample set of short sentences, a guided parser is on the average three times faster than its non-guided counterpart, while, for longer sentences, more than one order of magnitude may be expected.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Conclusion",
"sec_num": "7"
},
{
"text": "However, the guided parser speed is very sensitive to the level of the guide, which must be chosen very carefully since potential benefits may be overcome by the time taken by the guiding structure book-keeping procedures.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Conclusion",
"sec_num": "7"
},
{
"text": "Of course, the filtering principle related in this paper is not novel (see for example (Lakshmanan and Yim, 1991) for deductive databases) but, if we consider the various attempts of guided parsing reported in the literature, ours is one of the very few examples in which important savings are noted. One reason for that seems to be the extreme simplicity of the interface between the guiding and the guided process: the guide only performs a direct access into the guiding structure. Moreover, this guiding structure is (part of) the usual parse forest output by the guiding parser, without any transduction (see for example in (Nederhof, 1998) how a FSA can guide a CF parser).",
"cite_spans": [
{
"start": 87,
"end": 113,
"text": "(Lakshmanan and Yim, 1991)",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Conclusion",
"sec_num": "7"
},
{
"text": "As already noted by many authors (see for example (Carroll, 1994)), the choice of a (parsing) algorithm, as far as its throughput is concerned, cannot rely only on its theoretical complexity but must also take into account practical experiments. Complexity analysis gives worst-case upper bounds which may well not be reached, and which implies constants that may have a preponderant effect on the typical size ranges of the application.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Conclusion",
"sec_num": "7"
},
{
"text": "We have also noted that guiding parsers can be used in classical TAG parsers, as efficient and (very) accurate tree selectors. More generally, we are currently investigating the possibility to use guiding parsers as shallow parsers.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Conclusion",
"sec_num": "7"
},
{
"text": "The above results also show that (guided) RCL parsing is a valuable alternative to classical (lexicalized) TAG parsers since we have exhibited parse time savings of several orders of magnitude over the most recent XTAG parser. These savings even allow to consider the parsing of medium size sentences with the English XTAG.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Conclusion",
"sec_num": "7"
},
{
"text": "The global parse time for TAGs might also be further improved using the transformation described in (Boullier, 1999) which, starting from any TAG, constructs an equivalent RCG that can be parsed in",
"cite_spans": [
{
"start": 100,
"end": 116,
"text": "(Boullier, 1999)",
"ref_id": "BIBREF2"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Conclusion",
"sec_num": "7"
},
{
"text": "\u00a2 \u00a4 \u00a3 \u00a6 \u00a5 \u00a7 \u00a9",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Conclusion",
"sec_num": "7"
},
{
"text": ". However, this improvement is not definite, since, on typical input sentences, the increase in size of the resulting grammar may well ruin the expected practical benefits, as in the case of the \u00a5 \u00bb -guiding parser processing short sentences.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Conclusion",
"sec_num": "7"
},
{
"text": "We must also note that a (guided) parser may also be used as a guide for a unification-based parser in which feature terms are evaluated (see the experiment related in (Barth\u00e9lemy et al., 2000) ).",
"cite_spans": [
{
"start": 168,
"end": 193,
"text": "(Barth\u00e9lemy et al., 2000)",
"ref_id": "BIBREF0"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Conclusion",
"sec_num": "7"
},
{
"text": "Although the related practical experiments have been conducted on a TAG, this guide technique is not dedicated to TAGs, and the speed of all PRCL parsers may be thus increased. This pertains in particular to the parsing of all languages whose grammars can be translated into equivalent PRCGs -MC-TAGs, LCFRS, . . .",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Conclusion",
"sec_num": "7"
},
{
"text": "The usage of \u00c2 as component of \u00c3 is due to the fact that in the XTAG syntactic dictionary, lemmas are associated with tree family names.5 This is done rather easily for linear RCGs. The processing of non-linear RCGs with lattices as input is outside the scope of this paper.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "",
"sec_num": null
},
{
"text": "Note that the worst-case parse time for both the initial and the guiding parsers is",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "",
"sec_num": null
}
],
"back_matter": [],
"bib_entries": {
"BIBREF0": {
"ref_id": "b0",
"title": "Shared forests can guide parsing",
"authors": [
{
"first": "F",
"middle": [],
"last": "Barth\u00e9lemy",
"suffix": ""
},
{
"first": "P",
"middle": [],
"last": "Boullier",
"suffix": ""
},
{
"first": "",
"middle": [],
"last": "Ph",
"suffix": ""
},
{
"first": "",
"middle": [],
"last": "Deschamp",
"suffix": ""
},
{
"first": "",
"middle": [],
"last": "La Clergerie",
"suffix": ""
}
],
"year": 2000,
"venue": "Proceedings of the Second Workshop on Tabulation in Parsing and Deduction (TAPD'2000)",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "F. Barth\u00e9lemy, P. Boullier, Ph. Deschamp, and\u00c9. de la Clergerie. 2000. Shared forests can guide parsing. In Proceedings of the Second Workshop on Tabula- tion in Parsing and Deduction (TAPD'2000), Uni- versity of Vigo, Spain, September.",
"links": null
},
"BIBREF1": {
"ref_id": "b1",
"title": "A generalization of mildly contextsensitive formalisms",
"authors": [
{
"first": "P",
"middle": [],
"last": "Boullier",
"suffix": ""
}
],
"year": 1998,
"venue": "Proceedings of the Fourth International Workshop on Tree Adjoining Grammars and Related Frameworks (TAG+4)",
"volume": "",
"issue": "",
"pages": "17--20",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "P. Boullier. 1998. A generalization of mildly context- sensitive formalisms. In Proceedings of the Fourth International Workshop on Tree Adjoining Gram- mars and Related Frameworks (TAG+4), pages 17- 20, University of Pennsylvania, Philadelphia, PA, August.",
"links": null
},
"BIBREF2": {
"ref_id": "b2",
"title": "On tag parsing",
"authors": [
{
"first": "P",
"middle": [],
"last": "Boullier",
"suffix": ""
}
],
"year": 1999,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "P. Boullier. 1999. On tag parsing. In",
"links": null
}
},
"ref_entries": {
"TABREF6": {
"text": "CFL] and even lies beyond the formal power of TAGs.",
"content": "<table><tr><td>[</td><td>9 H \u00b6 u \u2022 C</td><td>5 \u00b5 s</td><td>which is not a CF language</td></tr><tr><td>we generate the set of 5 R \u00ac in the following \u00ae P 5 1 \u00ab Q P Q P way. The clause S F clauses 5 g e t x t S F has the form V F \u00a3 X W F \u00a9 G \u00b1\u00b0 where the RHS\u00b0 is constructed from the E t ' s as follows. A predicate call V t \u00a3 X \u1e80 t \u00a9 is in\u00b0 iff the arguments \u1e80 t and W share a com-F mon substring (i.e., we have \u00a3 \u00a3 X W F 5 Y \u1e80 t ). \u00a9 As an example, the following set of clauses,</td><td/><td/><td/></tr><tr><td>in which are terminal symbols, defines the 3-copy language \u00b2 , \u00b3 and\u00b4are variables and and \u00b5</td><td/><td/><td/></tr></table>",
"type_str": "table",
"num": null,
"html": null
},
"TABREF8": {
"text": "",
"content": "<table><tr><td/><td/><td colspan=\"3\">gives some information</td></tr><tr><td colspan=\"3\">on these grammars. 6</td><td/></tr><tr><td colspan=\"3\">RCG 3 initial guiding 22 33 7 476 476</td><td colspan=\"2\">\u00a5 -guiding \u00bb 4 204 476</td></tr><tr><td>\u00a4 0 \u00c4 degree</td><td colspan=\"2\">1 144 15 578 15 618 1 696 27 27</td><td/><td>5 554 17 722 3</td></tr><tr><td colspan=\"2\">Table 1: RCGs</td><td colspan=\"2\">0 \u2022 1 \u00a3 4 3 6 5 8 7 9 5 A @ B 5</td><td>5</td><td>\u00a9 facts</td></tr><tr><td colspan=\"5\">For our experiments, we have used a test suite</td></tr><tr><td colspan=\"5\">distributed with the XTAG system. It contains 31</td></tr><tr><td colspan=\"5\">sentences ranging from 4 to 17 words, with an</td></tr><tr><td colspan=\"5\">average length of 8. All measures have been per-</td></tr><tr><td colspan=\"5\">formed on a 800 MHz Pentium III with 640 MB</td></tr><tr><td colspan=\"5\">of memory, running Linux. All parsers have been</td></tr><tr><td colspan=\"5\">\u00c5 H AE l \u00c7 d \u00c8 4 \u00c9 \u00cb \u00ca tion 3, this identical polynomial degrees . As explained in Sec-\u00cc \u00cd \u00cc | \u00ce \u00cd \u00cf comes from an untransformed unary clause which itself is the result \u00d0 of the translation of an initial tree.</td></tr></table>",
"type_str": "table",
"num": null,
"html": null
},
"TABREF10": {
"text": "",
"content": "<table><tr><td colspan=\"2\">: Guiding parsers times (sec)</td></tr><tr><td>parser</td><td>load module</td></tr><tr><td>initial</td><td>3.063</td></tr><tr><td>guided</td><td>8.374</td></tr><tr><td>\u00a5 \u00bb -guided</td><td>14.530</td></tr></table>",
"type_str": "table",
"num": null,
"html": null
},
"TABREF11": {
"text": "",
"content": "<table><tr><td/><td colspan=\"2\">: RCL parser sizes (MB)</td></tr><tr><td>parser</td><td colspan=\"2\">sample set 35-word sent.</td></tr><tr><td>initial</td><td>5.810</td><td>3 679.570</td></tr><tr><td>guided</td><td>1.580</td><td>63.570</td></tr><tr><td>\u00a5 \u00bb -guided</td><td>2.440</td><td>49.150</td></tr><tr><td>XTAG</td><td>4 282.870</td><td>\u00d2 5 days</td></tr></table>",
"type_str": "table",
"num": null,
"html": null
},
"TABREF12": {
"text": "",
"content": "<table/>",
"type_str": "table",
"num": null,
"html": null
}
}
}
}