File size: 51,681 Bytes
6fa4bc9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
{
    "paper_id": "A00-1028",
    "header": {
        "generated_with": "S2ORC 1.0.0",
        "date_generated": "2023-01-19T01:12:50.980990Z"
    },
    "title": "Experiments with Corpus-based LFG Specialization",
    "authors": [
        {
            "first": "Nicola",
            "middle": [],
            "last": "Cancedda",
            "suffix": "",
            "affiliation": {
                "laboratory": "",
                "institution": "Xerox Research Centre Europe",
                "location": {
                    "addrLine": "6, chemin de Maupertuis",
                    "postCode": "38240",
                    "settlement": "Meylan",
                    "country": "France"
                }
            },
            "email": ""
        },
        {
            "first": "Christer",
            "middle": [],
            "last": "Samuelsson",
            "suffix": "",
            "affiliation": {
                "laboratory": "",
                "institution": "Xerox Research Centre Europe",
                "location": {
                    "addrLine": "6, chemin de Maupertuis",
                    "postCode": "38240",
                    "settlement": "Meylan",
                    "country": "France"
                }
            },
            "email": "cancedda.lsamuelsson@xrce.xerox.com"
        }
    ],
    "year": "",
    "venue": null,
    "identifiers": {},
    "abstract": "Sophisticated grammar formalisms, such as LFG, allow concisely capturing complex linguistic phenomena. The powerful operators provided by such formalisms can however introduce spurious ambiguity, making parsing inefficient. A simple form of corpus-based grammar pruning is evaluated experimentally on two wide-coverage grammars, one Engiish and one French. Speedups of up to a factor 6 were obtained, at a cost in grammatical coverage of about 13%. A two-stage architecture allows achieving significant speedups without introducing additional parse failures.",
    "pdf_parse": {
        "paper_id": "A00-1028",
        "_pdf_hash": "",
        "abstract": [
            {
                "text": "Sophisticated grammar formalisms, such as LFG, allow concisely capturing complex linguistic phenomena. The powerful operators provided by such formalisms can however introduce spurious ambiguity, making parsing inefficient. A simple form of corpus-based grammar pruning is evaluated experimentally on two wide-coverage grammars, one Engiish and one French. Speedups of up to a factor 6 were obtained, at a cost in grammatical coverage of about 13%. A two-stage architecture allows achieving significant speedups without introducing additional parse failures.",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "Abstract",
                "sec_num": null
            }
        ],
        "body_text": [
            {
                "text": "Expressive grammar formalisms allow grammar developers to capture complex linguistic generalizations concisely and elegantly, thus greatly facilitating grammar development and maintenance. (Carrol, 1994) found that the empirical performance when parsing with unification-based grammars is nowhere near the theoretical worst-case complexity. Nonetheless, directly parsing with such grammars, in the form they were developed, can be very inefficient. For this reason, grammars are typically compiled into representations that allow faster parsing. This does however not solve the potential problem of the grammars overgenerating considerably, thus allowing large amounts of spurious ambiguity. Indeed, a current trend in high-coverage parsing, especially when employing a statistical model of language, see, e.g., (Collins 97), is to allow the grammar to massively overgenerate and instead disambiguate by statistical means during or after parsing. If the benefits resulting from more concise grammatical descriptions are to outweigh the costs of spurious ambiguity, the latter must be brought down.",
                "cite_spans": [
                    {
                        "start": 189,
                        "end": 203,
                        "text": "(Carrol, 1994)",
                        "ref_id": "BIBREF4"
                    }
                ],
                "ref_spans": [],
                "eq_spans": [],
                "section": "Introduction",
                "sec_num": "1"
            },
            {
                "text": "In such a situation, corpus-based compilation techniques can drastically improve parsing performance without burdening the grammar developer. The initial, and much seminal work in this area was been carried out by Rayner and coworkers, see (Rayner 1988) , (Samuelsson and Rayner 91) and (Rayner and Carter 1996) . In the current article, we apply similar ideas to Lexical Functional Grammar (LFG) in the incarnation of the Xerox Linguistic Environment (XLE). The goal is to investigate to what extent corpus-based compilation techniques can reduce overgeneration and spurious ambiguity, and increase parsing efficiency, without jeopardizing coverage. The rest of the article is organized as follows: Section 2 presents the relevant aspects of the LFG formalism and the pruning strategy employed, Section 3 describes the experimental setup, Section 4 reports the experimental results and Section 5 relates this to other work.",
                "cite_spans": [
                    {
                        "start": 240,
                        "end": 253,
                        "text": "(Rayner 1988)",
                        "ref_id": "BIBREF8"
                    },
                    {
                        "start": 256,
                        "end": 282,
                        "text": "(Samuelsson and Rayner 91)",
                        "ref_id": null
                    },
                    {
                        "start": 287,
                        "end": 311,
                        "text": "(Rayner and Carter 1996)",
                        "ref_id": "BIBREF7"
                    }
                ],
                "ref_spans": [],
                "eq_spans": [],
                "section": "Introduction",
                "sec_num": "1"
            },
            {
                "text": "The LFG formalism (Kaplan and Bresnan, 1982) allows the right-hand sides (RHS) of grammar rules to consist of a regular expression over grammar symbols. This makes it more appropriate to refer to the grammar rules as rule schemata, since each RHS can potentially be expanded into a (possibly infinite) number of distinct sequences of grammar symbols, each corresponding to a traditional phrase-structure rule. As can easily be imagined, the use of regularexpression operators such as Kleene-star and complementation may introduce a considerable amount of spurious ambiguity. Moreover, the LFG formalism provides operators which --although not increasing its theoretical expressive power --allow rules to be written more concisely. Examples of such operators are the ignore operator, which allows skipping any sequence of grammar symbols that matches a given pattern; the shuffle operator, which allows a set of grammar symbols to occur in any order; and the linear precedence operator, which allows partially specifying the order of grammar symbols. The pruning method we propose consists in eliminating complex operators from the grammar description by considering how they were actually instantiated when parsing a corpus. In LFGs, each rule scheme corresponds to a particular grammar symbol, since different expansions of the same symbol are expressed as alternatives in the regular expression on its RHS. We can define a specific path through the RHS of a rule scheme by the choices ~tf~ 211 made when matching it against some sequence of grammar symbols. Our training data allows us to derive, for each training example, the choices made at each rule expansion. By applying these choices to the rule scheme in isolation, we can derive a phrasestructure rule from it,.",
                "cite_spans": [
                    {
                        "start": 18,
                        "end": 44,
                        "text": "(Kaplan and Bresnan, 1982)",
                        "ref_id": "BIBREF5"
                    }
                ],
                "ref_spans": [],
                "eq_spans": [],
                "section": "LFG and Grammar Pruning",
                "sec_num": "2"
            },
            {
                "text": "The grammar is specialized, or pruned, by retaining all and only those phrase-structure rules that correspond to a path taken through a rule scheme when expanding some node in some training example. Since the grammar formalism requires that each LHS occur only in one rule scheme in the grammar, extracted rules with the same LHS symbol are merged into a single rule scheme with a disjunction operator at its top level. For instance, if a rule scheme with the structure",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "LFG and Grammar Pruning",
                "sec_num": "2"
            },
            {
                "text": "A ~ B*{CI D}",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "LFG and Grammar Pruning",
                "sec_num": "2"
            },
            {
                "text": "is expanded in the training data only in the following ways",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "LFG and Grammar Pruning",
                "sec_num": "2"
            },
            {
                "text": "then it will be replaced by a rule scheme with the following structure",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "A -> C A --+ BC A -+ BD",
                "sec_num": null
            },
            {
                "text": "A --+ {CIBC]BD}",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "A -> C A --+ BC A -+ BD",
                "sec_num": null
            },
            {
                "text": "The same approach is taken to replace all regularexpression operators, other than concatenation, with the actual sequences of grammar symbols that are matched against them. A more realistic example, taken from the actual data, is shown in Figure 1 : none of the optional alternative portions following the V is ever used in any correct parse in the corpus. Moreover, the ADVP preceding the V occurs only 0 or 1 times in correct parses. Like other unification-based formalisms, lexical functional grammars allow grammar rules to be annotated with sets of feature-based constraints, here called \"functional descriptions\", whose purpose is both to enforce additional constraints on rule applicability and to build an enriched predicate-argument structure called \"f-structure\", which, together with the parse tree, constitutes the output of the parsing process. As these constraints are maintained verbatim in the specialized version of the rule scheme, this poses no problem for this form of grammar pruning.",
                "cite_spans": [],
                "ref_spans": [
                    {
                        "start": 239,
                        "end": 247,
                        "text": "Figure 1",
                        "ref_id": "FIGREF0"
                    }
                ],
                "eq_spans": [],
                "section": "A -> C A --+ BC A -+ BD",
                "sec_num": null
            },
            {
                "text": "The experiments carried out to determine the effectiveness of corpus-based specialization were performed as illustrated in Figure 2 . Two broadcoverage LFG grammars were used, one for French and one for English, both of which were developed within the Pargram project (Butt et al., 1999) during several years time. The French grammar consists of 133 rule schemata, the English grammar of 8.5 rule schemata. Each gralmnar is equipped with a treebank, which was developed for other purposes than grammar specialization. Each treebank was produced by letting the system parse a corpus of technical documentation. Any sentence that did not obtain any parse was discarded. At this point, the French corpus was reduced to 960 sentences, and the English corpus to 970. The average sentence length was 9 for French and 8 for English. For each sentence, a human expert then selected the most appropriate analysis among those returned by the parser.",
                "cite_spans": [
                    {
                        "start": 268,
                        "end": 287,
                        "text": "(Butt et al., 1999)",
                        "ref_id": "BIBREF3"
                    }
                ],
                "ref_spans": [
                    {
                        "start": 123,
                        "end": 131,
                        "text": "Figure 2",
                        "ref_id": "FIGREF1"
                    }
                ],
                "eq_spans": [],
                "section": "Experimental Setup",
                "sec_num": "3"
            },
            {
                "text": "In the current experiments, each treebank was used to specialize the grammar it had been developed with. A set of 10-fold cross-validation experiments was carried out to measure several interesting quantities under different conditions. This means that, for each language, the corpus was randomly split into ten equal parts, and one tenth at a time was held out for testing while the remaining nine tenths were used to specialize the grammar, and the results were averaged over the ten runs.. For each grammar the average number of parses per sentence, the fraction of sentences which still received at least one parse (angparse) and the fraction of sentences for which the parse selected by the expert was still derived (coverage) were measured 1. The average CPU time required by parsing was also measured, and this was used to compute the speedup with respect to the original grammar.",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "Experimental Setup",
                "sec_num": "3"
            },
            {
                "text": "The thus established results constitute one data point in the trade-off between ambiguity reduction on one side, which is in turn related to parsing speed, and loss in coverage on the other. In order to determine other points of this trade-off, the same set. of experiments was performed where speciMization was inhibited for certain rule schemata. In particular, for each grammar, the two rule schemata that received the largest number of distinct expansions in the corpora were determined. These proved to be those associated with the LHS symbols 'VPverb[main]' and 'NP' for the French grammar, and 'VPv' and 'NPadj' for the English one. 2 The experiments were repeated while inhibiting specialization of first the scheme with the most expansions, and then the two most expanded schemata.",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "Experimental Setup",
                "sec_num": "3"
            },
            {
                "text": "Measures of coverage and speedup are important 1 As long as we are interested in preserving the f-structure assigned to sentences, this notion of coverage is stricter than necessary. The same f-structure can in fact be assigned by more than one parse, so that in some cases a sentence is considered out of coverage even if the specialized grammar assigns to it the correct f-structure.",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "Experimental Setup",
                "sec_num": "3"
            },
            {
                "text": "2'VPv' and 'VPverb[main]' cover VPs headed by a main verb. 'NPadj' covers NPs with adjectives attached.",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "Experimental Setup",
                "sec_num": "3"
            },
            {
                "text": "The original rule:",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "Experimental Setup",
                "sec_num": "3"
            },
            {
                "text": "l/Pperfp --+ ADVP* SE (t ADJUNCT) ($ ADV_TYPE) = t,padv ~/r { @M_Head_Perfp I@M_Head_Passp } @( Anaph_Ctrl $) { AD VP+ SE ('~ ADJUNCT) ($ ADV_TYPE) = vpadv",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "Experimental Setup",
                "sec_num": "3"
            },
            {
                "text": "is replaced by the following: indicators of what can be achieved with this form of grammar pruning. However, they could potentially be misleading, since failure times for uncovered sentences might be considerably lower than their parsing times, had they not been out of coverage. If the pruned grammar fails more frequently on sentences which take longer to parse, the measured speedup might be artificiMly high. This is easily realized, as simply removing the hardest sentences froln the corpus would cause a decrease ill the average parsing time, and thus result in a speedup, without any pruning at all. To factor out the contribution of uncovered sentences fi'om the results, the performance of a two-stage architecture analogous to that of (Samuelsson and Rayner, 1991) was silnulated, in which the pruned grammar is attempted \"A Sentence\" Parser with specialized grammar first, and the sentence is passed on to the original unpruned grammar whenever the pruned grammar fails to return a parse (see Figure 3) . The measured speedup of this simulated architecture, which preserves the anyparse measure of the original grammar, takes into account the contribution of uncovered sentences, as it penalizes sweeping difficult sentences under the carpet.",
                "cite_spans": [
                    {
                        "start": 745,
                        "end": 774,
                        "text": "(Samuelsson and Rayner, 1991)",
                        "ref_id": "BIBREF10"
                    }
                ],
                "ref_spans": [
                    {
                        "start": 1004,
                        "end": 1013,
                        "text": "Figure 3)",
                        "ref_id": null
                    }
                ],
                "eq_spans": [],
                "section": "Experimental Setup",
                "sec_num": "3"
            },
            {
                "text": "ADVP ,[.E (~ ADJUNCT) (.l. ADV_TYPE) = vpadv l/'Pperfp --+ @PPadjunct @PPcase_obl {@M.Head_Pevfp [@M..Head_Passp} @( Anaph_Ctrl ~ ) V { @M_Head_Perfp I@M_Head_Passp } @( Anaph_Ctrl ~)",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "Experimental Setup",
                "sec_num": "3"
            },
            {
                "text": "The results of the experiments described in the section above are summarized in the table in Figure 4 . The upper part of the table refers to experiments with the French grammar, the lower part to experiments with the English grammar. For each language, the first line presents data gathered for the original grammar for comparison with the pruned grammars. The figures in the second line were collected by pruning the grammar based on the whole corpus, and then testing on the corpus itself. The grammars obtained in this way contain 516 and 388 disjuncts --corresponding to purely concatenative rules --for French and English respectively. Anyparse and coverage are not, of course, relevant in this case, but the statistics on parsing time are, especially the one on the maximum parsing time. For each iteration in the 10-fold cross-validation experiment, the maximum parsing time was retained, and those ten times were eventually averaged. If pruning tended to leave sentences which take long to parse uncovered, then we would observe a significant difference between the average over ma.ximum times on the grammar trained and tested on the same corpus (which parses all sentences, including the hardest), and the average over maximum times for grammars trained and tested on different sets. The fact that this does not seem to be the case indicates that pruning does not penalize difficult sentences. Note also that the average number of parses per sentence is significantly smaller than with the full grammar, of almost a factor of 9 in the case of the French graminar.",
                "cite_spans": [],
                "ref_spans": [
                    {
                        "start": 93,
                        "end": 101,
                        "text": "Figure 4",
                        "ref_id": null
                    }
                ],
                "eq_spans": [],
                "section": "Experimental Results",
                "sec_num": null
            },
            {
                "text": "The third line contains results for the fully pruned grammar.",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "Experimental Results",
                "sec_num": null
            },
            {
                "text": "In the case of the French grammar a speedup of about 6 is obtained with a loss in coverage of 13%. The smaller speedup gained with the English grammar can be explained by the fact that here, the parsing times are lower in general, and that a non-negligible part of this time, especially that needed for morphological analysis, is unaffected by pruning. Even in the case of the English grammar, though, speedup is substantial (2.67). For both grammars, the reduction in the average maxinmm parsing time is particularly good, confirming our hypothesis that trimming the grammar by removing heavy constructs makes it considerably more efficient. A partially negative note comes from the average number of disjuncts in the prun.ed grainmars, which is 501 for French and 374 for English. Comparing this figures to the number of disjuncts in grammars pruned on the full corpus (516 and 388), we find that after training on nine tenths of the corpus, adding the last tenth still leads to an increase of 3-4% in the size of the resulting grammars. In other words, the marginal gain of further training examples is still significant after considering about 900 sentences, indicating that the training corpora are somewhat too small.",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "Experimental Results",
                "sec_num": null
            },
            {
                "text": "The last two lines for each language show figures for grammars with pruning inhibited on the most variable and the two most variable symbols respectively. For both languages, inhibiting pruning on the most variable symbol has the expected effect of increasing both parsing time and coverage. Inhibiting pruning also on the second most variable symbol has ahnost no effect for French, and only a small effect for English.",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "Experimental Results",
                "sec_num": null
            },
            {
                "text": "The table in Figure 5 summarizes the measures on the simulated two-stage architecture. For both languages the best trade-off, once the distribution of uncovered sentences has been taken into account, is achieved by the fully pruned grammars.",
                "cite_spans": [],
                "ref_spans": [
                    {
                        "start": 13,
                        "end": 21,
                        "text": "Figure 5",
                        "ref_id": "FIGREF3"
                    }
                ],
                "eq_spans": [],
                "section": "Experimental Results",
                "sec_num": null
            },
            {
                "text": "Related Work",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "5",
                "sec_num": null
            },
            {
                "text": "The work presented in the current article is related to previous work on corpus-based grammar specialization as presented in (Rayner, 1988; Salnuelsson and Rayner, 1991; Rayner and Carter, 1996; Samuelsson, 1994; Srinivas a.nd Joshi, 1995; Neumann, 1997 The line of work described in (Rayner, 1988; Samuelsson and Rayner, 1991; Rayner and Carter, 1996; Samuelsson, 1994) deals with unificationbased grammars that already have a purelyconcatenative context-fi'ee backbone, and is more concerned with a different t~orm of specialization, consisting in the application of explanation-based learning (EBL). Here, the central idea is to collect the most frequently occurring subtrees in a treebank and use them as atomic units for parsing. The cited works differ mainly in the criteria adopted for selecting subtrees fi'om the treebank. In (Rayner, 1988; Samuelsson and Rayner, 1991; Rayner and Carter, 1996) these criteria are handcoded: all subtrees satisfying some properties are selected, and a new grammar rule is created by flattening each such subtree, i.e., by taking the root as lefl.-hand side and the yield as right-hand side, and in the process performing all unifications corresponding to the thus removed internal nodes. Experiments carried out on a corpus of 15,000 trees from the ATIS domain using a version of the SRI Core Language Engine resulted in a speedup of about 3.4 at a cost of 5% in gralmnati-cal coverage, which however was compensated by an increase in parsing accuracy.",
                "cite_spans": [
                    {
                        "start": 125,
                        "end": 139,
                        "text": "(Rayner, 1988;",
                        "ref_id": "BIBREF8"
                    },
                    {
                        "start": 140,
                        "end": 169,
                        "text": "Salnuelsson and Rayner, 1991;",
                        "ref_id": null
                    },
                    {
                        "start": 170,
                        "end": 194,
                        "text": "Rayner and Carter, 1996;",
                        "ref_id": "BIBREF7"
                    },
                    {
                        "start": 195,
                        "end": 212,
                        "text": "Samuelsson, 1994;",
                        "ref_id": "BIBREF11"
                    },
                    {
                        "start": 213,
                        "end": 239,
                        "text": "Srinivas a.nd Joshi, 1995;",
                        "ref_id": null
                    },
                    {
                        "start": 240,
                        "end": 253,
                        "text": "Neumann, 1997",
                        "ref_id": "BIBREF6"
                    },
                    {
                        "start": 284,
                        "end": 298,
                        "text": "(Rayner, 1988;",
                        "ref_id": "BIBREF8"
                    },
                    {
                        "start": 299,
                        "end": 327,
                        "text": "Samuelsson and Rayner, 1991;",
                        "ref_id": "BIBREF10"
                    },
                    {
                        "start": 328,
                        "end": 352,
                        "text": "Rayner and Carter, 1996;",
                        "ref_id": "BIBREF7"
                    },
                    {
                        "start": 353,
                        "end": 370,
                        "text": "Samuelsson, 1994)",
                        "ref_id": "BIBREF11"
                    },
                    {
                        "start": 835,
                        "end": 849,
                        "text": "(Rayner, 1988;",
                        "ref_id": "BIBREF8"
                    },
                    {
                        "start": 850,
                        "end": 878,
                        "text": "Samuelsson and Rayner, 1991;",
                        "ref_id": "BIBREF10"
                    },
                    {
                        "start": 879,
                        "end": 903,
                        "text": "Rayner and Carter, 1996)",
                        "ref_id": "BIBREF7"
                    }
                ],
                "ref_spans": [],
                "eq_spans": [],
                "section": "5",
                "sec_num": null
            },
            {
                "text": "Finding suitable tree-cutting criteria requires a considerable amount of work, and must be repeated for each new grammar and for each new domain to which the grammar is to be specialized. Samuelsson (Samuelsson, 1994) proposes a technique to automatically selects what subtrees to retain. The selection of appropriate subtrees is done by choosing a subset of nodes at which to cut trees. Cutnodes are determined by computing the entropy of each node, and selecting only those nodes whose entropy exceeds a given threshold. Intuitively, nodes with low entropy indicate locations in the trees where a given symbol was expanded using a predictable set of rules, at least most of the times, so that the loss of coverage that derives from ignoring the remaining cases is low. Nodes with high entropy, on the other hand, indicate positions in which there is a high uncertainty in what rule was used to expand the symbol, so that it is better to preserve all alternatives. Several schemas are proposed to compute entropies, each leading to a different trade-off be-tween coverage reduction and speedup. In general, results are not quite as good as those obtained using handcoded criteria, though of course the specialized grammar is obtained fully automatically, and thus with much less effort.",
                "cite_spans": [
                    {
                        "start": 199,
                        "end": 217,
                        "text": "(Samuelsson, 1994)",
                        "ref_id": "BIBREF11"
                    }
                ],
                "ref_spans": [],
                "eq_spans": [],
                "section": "5",
                "sec_num": null
            },
            {
                "text": "When ignoring issues related to the elimination of complex operators t\"1\"o111 the RHS of rule schemata, the grammar-pruning strategy described in the current article is equivalent to explanation-based learning where all nodes have been selected,as eutnodes. Conversely, EBL can be viewed as higher-order grammar pruning, removing not grammar rules, but gramlnar-rule combinations.",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "5",
                "sec_num": null
            },
            {
                "text": "Some of the work done on data-oriented parsing (DOP) (Bod, 1993; Bod and Scha, 1996; Bod and Kaplan, 1998; Sima'an, 1999) can also be considered related to our work, as it can be seen as a way to specialize in an gBL-like way the (initially unknown) grammar implicitly underlying a treebank. (Srinivas and aoshi, 1995) and (Neumann, 1997 ) apply EBL to speed up parsing with tree-adjoining grammars and sentence generation with HPSGs respectively, though they do so by introducing new components in their systems rather then by modifying the grammars they use.",
                "cite_spans": [
                    {
                        "start": 53,
                        "end": 64,
                        "text": "(Bod, 1993;",
                        "ref_id": "BIBREF2"
                    },
                    {
                        "start": 65,
                        "end": 84,
                        "text": "Bod and Scha, 1996;",
                        "ref_id": "BIBREF1"
                    },
                    {
                        "start": 85,
                        "end": 106,
                        "text": "Bod and Kaplan, 1998;",
                        "ref_id": "BIBREF0"
                    },
                    {
                        "start": 107,
                        "end": 121,
                        "text": "Sima'an, 1999)",
                        "ref_id": "BIBREF12"
                    },
                    {
                        "start": 292,
                        "end": 318,
                        "text": "(Srinivas and aoshi, 1995)",
                        "ref_id": null
                    },
                    {
                        "start": 323,
                        "end": 337,
                        "text": "(Neumann, 1997",
                        "ref_id": "BIBREF6"
                    }
                ],
                "ref_spans": [],
                "eq_spans": [],
                "section": "5",
                "sec_num": null
            },
            {
                "text": "Sophisticated grammar formalisms are very useful and convenient when designing high-coverage grammars for natural languages. Very expressive grammatical constructs can make the task of developing and maintaining such a large resource considerably easier. On the other hand, their use can result in a considerable increase in grammatical ambiguity. Gramnaar-compilation techniques based on grammar structure alone are insufficient remedies in those cases, as they cannot access the information required to determine which alternatives to retain and which alternatives to discard.",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "Conclusions",
                "sec_num": "6"
            },
            {
                "text": "The current article demonstrates that a relatively simple pruning technique, employing the kind of reference corpus that is typically used for grammar development and thus often already available, can significantly improve parsing performance. On large lexical functional grammars, speedups of up to a factor 6 were observed, at the price of a. reduction in grammatical coverage of about 13%. A simple two-stage architecture was also proposed that preserves the anyparse measure of the original grammar, demonstrating that significant speedups can be obtained without increasing the number of parsing failures.",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "Conclusions",
                "sec_num": "6"
            },
            {
                "text": "Future work includes extending the study of corpus-based grammar specialization from firstorder grammar pruning to higher-order grammar pruning, thus extending previous work on explanation-based learning for parsing, aad apply-ing it to the LFG fornaalism.",
                "cite_spans": [],
                "ref_spans": [],
                "eq_spans": [],
                "section": "Conclusions",
                "sec_num": "6"
            }
        ],
        "back_matter": [],
        "bib_entries": {
            "BIBREF0": {
                "ref_id": "b0",
                "title": "A probabilistic corpus-driven model for lexical-functional analysis",
                "authors": [
                    {
                        "first": "Rens",
                        "middle": [],
                        "last": "Bod",
                        "suffix": ""
                    },
                    {
                        "first": "Ronald",
                        "middle": [],
                        "last": "Kaplan",
                        "suffix": ""
                    }
                ],
                "year": 1998,
                "venue": "Proceedings of Coling-ACL-98",
                "volume": "",
                "issue": "",
                "pages": "",
                "other_ids": {},
                "num": null,
                "urls": [],
                "raw_text": "Rens Bod and Ronald Kaplan. 1998. A probabilistic corpus-driven model for lexical-functional analy- sis. In Proceedings of Coling-ACL-98, Montreal, Canada.",
                "links": null
            },
            "BIBREF1": {
                "ref_id": "b1",
                "title": "Data-oriented language processing: An overview",
                "authors": [
                    {
                        "first": "R",
                        "middle": [],
                        "last": "Bod",
                        "suffix": ""
                    },
                    {
                        "first": "R",
                        "middle": [],
                        "last": "Scha",
                        "suffix": ""
                    }
                ],
                "year": 1996,
                "venue": "",
                "volume": "",
                "issue": "",
                "pages": "",
                "other_ids": {},
                "num": null,
                "urls": [],
                "raw_text": "R. Bod and R. Scha. 1996. Data-oriented lan- guage processing: An overview. Technical report, ILLC, University of Amsterdam, Alnsterdam, The Netherlands.",
                "links": null
            },
            "BIBREF2": {
                "ref_id": "b2",
                "title": "Using an annotated corpus as a stochastic grammar",
                "authors": [
                    {
                        "first": "Rens",
                        "middle": [],
                        "last": "Bod",
                        "suffix": ""
                    }
                ],
                "year": 1993,
                "venue": "Proceedings of EACL-93",
                "volume": "",
                "issue": "",
                "pages": "",
                "other_ids": {},
                "num": null,
                "urls": [],
                "raw_text": "Rens Bod. 1993. Using an annotated corpus as a stochastic grammar. In Proceedings of EACL-93, Utrecht, The Netherlands.",
                "links": null
            },
            "BIBREF3": {
                "ref_id": "b3",
                "title": "A Grammar Writer's Cookbook. CSLI Publications",
                "authors": [
                    {
                        "first": "M",
                        "middle": [],
                        "last": "Butt",
                        "suffix": ""
                    },
                    {
                        "first": "T",
                        "middle": [
                            "H"
                        ],
                        "last": "King",
                        "suffix": ""
                    },
                    {
                        "first": "M",
                        "middle": [
                            "E"
                        ],
                        "last": "Nifio",
                        "suffix": ""
                    },
                    {
                        "first": "F",
                        "middle": [],
                        "last": "Segond",
                        "suffix": ""
                    }
                ],
                "year": 1999,
                "venue": "",
                "volume": "",
                "issue": "",
                "pages": "",
                "other_ids": {},
                "num": null,
                "urls": [],
                "raw_text": "M. Butt, T.H. King, M.E. Nifio, and F. Segond. 1999. A Grammar Writer's Cookbook. CSLI Pub- lications, Stanford, CA.",
                "links": null
            },
            "BIBREF4": {
                "ref_id": "b4",
                "title": "Relating complexity to practical performance in parsing with wide-coverage unification grammars",
                "authors": [
                    {
                        "first": "John",
                        "middle": [],
                        "last": "Carrol",
                        "suffix": ""
                    }
                ],
                "year": 1994,
                "venue": "Proceedings of (ACL '94)",
                "volume": "",
                "issue": "",
                "pages": "",
                "other_ids": {},
                "num": null,
                "urls": [],
                "raw_text": "John Carrol. 1994. Relating complexity to practical performance in parsing with wide-coverage uni- fication grammars. In Proceedings of (ACL '94), Las Cruces, New Mexico, June.",
                "links": null
            },
            "BIBREF5": {
                "ref_id": "b5",
                "title": "Lexicalfunctional grammar: A formal system for grammatical representation",
                "authors": [
                    {
                        "first": "Ronald",
                        "middle": [],
                        "last": "Kaplan",
                        "suffix": ""
                    },
                    {
                        "first": "Joan",
                        "middle": [],
                        "last": "Bresnan",
                        "suffix": ""
                    }
                ],
                "year": 1982,
                "venue": "",
                "volume": "",
                "issue": "",
                "pages": "173--281",
                "other_ids": {},
                "num": null,
                "urls": [],
                "raw_text": "Ronald Kaplan and Joan Bresnan. 1982. Lexical- functional grammar: A formal system for gram- matical representation. In Joan Bresnan, editor, The Mental Representation of Grammatical Rela- tions, pages 173-281. MIT Press.",
                "links": null
            },
            "BIBREF6": {
                "ref_id": "b6",
                "title": "Applying explanationbased learning to control and speeding-up natural language generation",
                "authors": [
                    {
                        "first": "G/Inter",
                        "middle": [],
                        "last": "Neumann",
                        "suffix": ""
                    }
                ],
                "year": 1997,
                "venue": "Proceedings of A CL-EACL-97",
                "volume": "",
                "issue": "",
                "pages": "",
                "other_ids": {},
                "num": null,
                "urls": [],
                "raw_text": "G/inter Neumann. 1997. Applying explanation- based learning to control and speeding-up natu- ral language generation. In Proceedings of A CL- EACL-97, Madrid, Spain.",
                "links": null
            },
            "BIBREF7": {
                "ref_id": "b7",
                "title": "Fast parsing using pruning and grammar specialization",
                "authors": [
                    {
                        "first": "Manny",
                        "middle": [],
                        "last": "Rayner",
                        "suffix": ""
                    },
                    {
                        "first": "David",
                        "middle": [],
                        "last": "Carter",
                        "suffix": ""
                    }
                ],
                "year": 1996,
                "venue": "Proceedings of the ACL-96",
                "volume": "",
                "issue": "",
                "pages": "",
                "other_ids": {},
                "num": null,
                "urls": [],
                "raw_text": "Manny Rayner and David Carter. 1996. Fast pars- ing using pruning and grammar specialization. In Proceedings of the ACL-96, Santa. Cruz, CA.",
                "links": null
            },
            "BIBREF8": {
                "ref_id": "b8",
                "title": "Applying explanation-based generalization to natural-language processing",
                "authors": [
                    {
                        "first": "Manny",
                        "middle": [],
                        "last": "Rayner",
                        "suffix": ""
                    }
                ],
                "year": 1988,
                "venue": "",
                "volume": "",
                "issue": "",
                "pages": "",
                "other_ids": {},
                "num": null,
                "urls": [],
                "raw_text": "Manny Rayner. 1988. Applying explanation-based generalization to natural-language processing.",
                "links": null
            },
            "BIBREF9": {
                "ref_id": "b9",
                "title": "Proceedings of the International Conference on Fifth Generation Computer Systems",
                "authors": [],
                "year": null,
                "venue": "",
                "volume": "",
                "issue": "",
                "pages": "",
                "other_ids": {},
                "num": null,
                "urls": [],
                "raw_text": "In Proceedings of the International Conference on Fifth Generation Computer Systems, Tokyo, Japan.",
                "links": null
            },
            "BIBREF10": {
                "ref_id": "b10",
                "title": "Quantitative evaluation of explanation-based learning as an optimization tool for a large-scale natural language system",
                "authors": [
                    {
                        "first": "Christer",
                        "middle": [],
                        "last": "Samuelsson",
                        "suffix": ""
                    },
                    {
                        "first": "Manny",
                        "middle": [],
                        "last": "Rayner",
                        "suffix": ""
                    }
                ],
                "year": 1991,
                "venue": "Proceedings of the IJCAI-91",
                "volume": "",
                "issue": "",
                "pages": "",
                "other_ids": {},
                "num": null,
                "urls": [],
                "raw_text": "Christer Samuelsson and Manny Rayner. 1991. Quantitative evaluation of explanation-based learning as an optimization tool for a large-scale natural language system. In Proceedings of the IJCAI-91, Sydney, Oz.",
                "links": null
            },
            "BIBREF11": {
                "ref_id": "b11",
                "title": "Grammar specialization through entropy thresholds",
                "authors": [
                    {
                        "first": "Christer",
                        "middle": [],
                        "last": "Samuelsson",
                        "suffix": ""
                    }
                ],
                "year": 1994,
                "venue": "Proceedings of the ACL-94",
                "volume": "",
                "issue": "",
                "pages": "",
                "other_ids": {},
                "num": null,
                "urls": [],
                "raw_text": "Christer Samuelsson. 1994. Grammar specialization through entropy thresholds. In Proceedings of the ACL-94, Las Cruces, New Mexico. Available as cmp-lg/9405022.",
                "links": null
            },
            "BIBREF12": {
                "ref_id": "b12",
                "title": "Institute for Logic, Language and Computation",
                "authors": [
                    {
                        "first": "",
                        "middle": [],
                        "last": "Khalil Sima'an",
                        "suffix": ""
                    }
                ],
                "year": 1999,
                "venue": "",
                "volume": "",
                "issue": "",
                "pages": "",
                "other_ids": {},
                "num": null,
                "urls": [],
                "raw_text": "Khalil Sima'an. 1999. Learning Efficient Dis- ambiguation. Ph.D. thesis, Institute for Logic, Language and Computation, Amsterdam, The Netherlands.",
                "links": null
            },
            "BIBREF13": {
                "ref_id": "b13",
                "title": "Some novel applications of explanation-based learning to parsing lexicalized tree-adjoining gramlnars",
                "authors": [
                    {
                        "first": "B",
                        "middle": [],
                        "last": "Srinivas",
                        "suffix": ""
                    },
                    {
                        "first": "A",
                        "middle": [],
                        "last": "Joshi",
                        "suffix": ""
                    }
                ],
                "year": 1995,
                "venue": "Proceedings of the ACL-95",
                "volume": "",
                "issue": "",
                "pages": "",
                "other_ids": {},
                "num": null,
                "urls": [],
                "raw_text": "B. Srinivas and A. Joshi. 1995. Some novel appli- cations of explanation-based learning to parsing lexicalized tree-adjoining gramlnars. In Proceed- ings of the ACL-95, Cambridge, MA.",
                "links": null
            }
        },
        "ref_entries": {
            "FIGREF0": {
                "text": "The pruning of a rule from the actual French grammar. The \"*\" and the \"+\" signs have the usual interpretation as in regular expressions. A sub-expression enclosed in parenthesis is optional. Alternative sub-expressions are enclosed in curly brackets and separated by the \"[\" sign. An \"@\" followed by an identifier is a macro expansion operator, and is eventually replaced by further functional descriptions.",
                "type_str": "figure",
                "uris": null,
                "num": null
            },
            "FIGREF1": {
                "text": "The setting for our experiments on grammar specialization.",
                "type_str": "figure",
                "uris": null,
                "num": null
            },
            "FIGREF2": {
                "text": "d + Time originalFigure 3: A schematic representation of the simulated two-stage coverage-preserving architecture.",
                "type_str": "figure",
                "uris": null,
                "num": null
            },
            "FIGREF3": {
                "text": "Results for the simulated two-stage architecture.",
                "type_str": "figure",
                "uris": null,
                "num": null
            }
        }
    }
}