<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="1"/><title>Dimensions of Deep Grammar Validation</title><pubinfo>Proceedings of the Australasian Language Technology Workshop 2005,pages 1-3, Sydney, Australia, December 2005.</pubinfo><author surname="Flickinger" givenname="Dan"><org  name="Stanford University" country="USA" city="Stanford"/></author></firstpageheader><frontmatter><p><b>Dimensions of Deep Grammar Validation</b></p><p><b>Dan Flickinger</b></p><p>Oslo, Saarland, and Stanford Universities danf@csli.stanford.edu</p></frontmatter><abstract>In order to arrive at a more disciplined ap­proach to the sustained development of linguis­tically rich grammars, I present a methodology for grammar validation, identifying principal di­mensions of the task, and illustrating the appli­cation of the method for one release cycle of the open-source English Resource Grammar. </abstract></header><body><section number="1" title="Introduction"><p>Broad-coverage grammars for natural language processing which encode rich linguistic de­scription are resources which develop relatively slowly, through many iterations of modification and testing, and ideally through exposure to the demands of a variety of NLP tasks. As with most large software components, such gram­mars are designed to exhibit a complexity of behavior which presents serious challenges for quality assurance from one release of a gram­mar to the next release. There is by now a substantial literature on many aspects of the evaluation of NLP software, including gram­mars, much of it focused around 'black box' or functional evaluation within some specific task domain(Hirschman and Thompson, 1998), (Sparck Jones and Galliers, 1998). Methods and tools have also been developed for 'glass box' or structural evaluation (EAGLES, 1996), with one line of work analyzing the internal formal coherence of such deep grammars, for example to flag inconsistencies or identify unused rules or constraints in the grammar code (Broeker, 2000), (Barr and Siefring, 2004), and another line of work using paraphrase generation to il­luminate properties of a bi-directional grammar not easily detected when parsing (Dymetman and Isabelle, 1988). And finally, there has been work on developing a methodology of sustained grammar development, whereby these labor­intensive, long-lived resources undergo periodic modification intended to improve corpus cover­age, or processing efficiency, or linguistic precision, or more typically all three at once (Oepen and Flickinger, 1998). Such a methodology must incorporate a set of disciplined procedures for validation of the resulting grammar, ensur­ing that it meets the expectations of its engi­neers, and explicitly communicates the interface specifications for its use in applications.</p><p>In this talk I describe an instantiation of a method for natural language grammar valida­tion (cf. (Barr and Klavans, 2001)) to iden­tify and motivate the multiple dimensions of the procedure, and to illustrate how many of the the tools and techniques proposed in the NLP evaluation literature are being exploited by en­gineers of large deep grammars. For concrete-ness, I present the method used in maintaining and extending the English Resource Grammar (ERG (Flickinger, 2000), a semantically pre­cise, broad-coverage Head-driven Phrase Struc­ture Grammar (HPSG) implementation used for both parsing and generation in several NLP applications, being developed within the Deep Linguistic Processing with HPSG Initia­tive (DELPH-IN: www.delph-in.net).</p><p>At the heart of this method is the use of a growing set of test suites of two kinds, to­gether with a sophisticated grammar profiling tool, [incr tsdb()], which collects and preserves competence and performance data on these test suites. Some of the test suites consist of sets of hand-built example sentences and ungrammat-ical strings illustrating core linguistic phenom­ena, while the other class of test suites contain naturally occurring text items drawn from cor­pora, intended to be representative of the lan­guage data expected for a particular domain or task. For each of these test suites, human anno-tators have identified the intended analysis for each item out of the exhaustive set of analy­ses that the grammar supplied (up to the limits of available computational resources), thus pro­viding 'gold standard' treebanks against which a modified version of the grammar can be measured.<page local="2" global="2"/> Employing test suites from a variety of domains and tasks not only provides a basis for 'snapshot' profiles that enable a historical view of the grammar's development, but more impor­tantly protects against overfitting of the gram­mar to just the current domain's data.</p><p>The principal dimensions in this grammar validation stand in some interesting tension with each other, since in each incarnation the grammar seeks to maximize (1) <b>robustness </b>in the range of phenomena and sheer quantity of data it processes; (2) <b>precision </b>linguistically in its mappings between strings and semantic rep­resentations; (3) <b>efficiency </b>in its consumption of CPU and memory resources; and (4) <b>sta­bility </b>in the mappings it previously assigned to the items in those test suites, to minimize adaptation costs for its customer base, and to minimize the cost of updating the gold stan­dard treebanks. For each of these four dimen­sions, I will present tools and techniques used to evaluate the relevant properties of the grammar, and illustrate the tensions among these dimen­sions with examples from the existing inventory of test suites.</p><p>Other dimensions that enter into this valida­tion method arise from the heterogeneity of con­texts in which the grammar can be used, includ­ing (5) multiple NLP <b>processing systems </b>(in­cluding at least the LKB (Copestake, 2002) and PET (Callmeier, 2000)); (6) <b>bi-directionality </b>of processing with attendant demands on each of the principal dimensions above for both pars­ing and generation; (7) multiple <b>configura­tions </b>of the grammar, including variants of pre­processing, unknown-word handling, root (start symbol) constraints, chart packing (for either parsing or generation, or both), and storage of the lexicon as text file vs relational database; (8) stochastic <b>parse/realization selection </b>or dis­ambiguation (Oepen et al., 2004), particularly for highly ambiguous items where resource lim­itations become a crucial factor; and of course (9) the demands of <b>multiple applications, </b>currently including generation for Norwegian-to-English machine translation in the LOGON project (L0nning et al., 2004), extraction of ontological relationships by parsing dictionary definitions, and robust interpretation of tran­scribed conversations via enriched annotations of rhetorical relations.</p><p>Finally, for the grammar to be of use to ap­plication developers without an overly intimate knowledge of it, each release must be accompanied by (10) external <b>interface specifica­tions </b>whose currency must be validated. The content of these specifications is in part auto­matically generated from the implemented rep­resentations of lexical entries, lexical types and grammar rules, and in part manually main­tained. Principal among these specifications is the SEM-I (semantic interface) (Flickinger et al., 2005), an exhaustive listing of each lexi­cal semantic predicate and its salient proper­ties, which should precisely determine the ob­served variation in the elementary predications within the Minimal Recursion Semantics (MRS (Copestake et al., 2006)) representations that the grammar produces or accepts as input. A second essential specification provides the set of available lexical entry types, particularly those for open-class words which will inevitably need to be added for each new application, whether automatically guessed via part-of-speech tag­ging or entered into the lexicon manually.</p><p>In the talk, I will provide a detailed step-by-step tour of this method of validation as ap­plied to the ERG for one typical grammar up­date, noting along the way how each of the di­mensions identified above comes into play, often more than once in the process, and illustrating the interactions among several pairs of these di­mensions in arriving at what must always be a compromise resolution of the tensions inherent in grammar engineering.</p></section><section number="2" title="Acknowledgements"><p>This work draws from research on the ERG that has been supported by several funding sources to the LinGO project at CSLI, Stan­ford University, over many years, including two grants from the German BMBF as part of the Verbmobil project, two National Science Foun­dation grants (IRI-9612682 and BCS-0094638), two grants from NTT Communication Science Laboratories, and one grant from Scottish En­terprise through the Stanford- Edinburgh Link. In addition I am grateful for current support from the LOGON project at Oslo University, and from the Computational Linguistics depart­ment at Saarland University. For the issues dis­cussed in this talk, I am especially grateful for my recent collaborations with Stephan Oepen, Ann Copestake, Francis Bond, and Tim Bald­win.</p><page local="3" global="3"/></section><references><p>Valerie Barr and Judith Klavans. 2001. Verifi­cation and validation of language processing systems: Is it evaluation? <i>Proceedings of the Workshop on Evaluation Methodologies for Language and Dialogue Systems, ACL2001.</i></p><p>Valerie Barr and Ellen Siefring. 2004. Verifica­tion of lexicalized tree adjoining grammars. <i>Online Proceedings of the Seventh Interna­tional Workshop on TAG and Related For­malisms.</i></p><p>Norbert Broeker. 2000. The use of instrumen­tation in grammar engineering. <i>Proceedings of COLING 2000.</i></p><p>Ulrich Callmeier. 2000. PET — A platform for experimentation with efficient HPSG process­ing techniques. <i>Natural Language Engineer­</i>ing, 6 (1) (Special Issue on Efficient Process­ing with HPSG):99-108.</p><p>Ann Copestake, Dan Flickinger, Ivan A. Sag, and Carl Pollard. 2006. Minimal Recur­sion Semantics. An introduction. <i>Research on Language and Computation. </i>(to appear).</p><p>Ann Copestake. 2002. <i>Implementing Typed Feature Structure Grammars. </i>CSLI Publica­tions, Stanford, CA.</p><p>Marc Dymetman and Pierre Isabelle. 1988. Re­versible logic grammars for machine trans­lation. <i>Proceedings of the 2nd International Conference on Theoretical and Methodologi­cal Issues in the Machine Translation ofNat-ural Languages.</i></p><p>EAGLES. 1996. <i>Evaluation of Natural Lan­guage Processing Systems. Final Report EAG-EWG-PR.2. </i>EU Report.</p><p>Dan Flickinger, Jan Tore L0nning, Helge Dyvik, Stephan Oepen, and Francis Bond. 2005. SEM-I rational MT: Enriching deep gram­mars with a semantic interface for scalable machine translation. In <i>Machine Translation Summit X, </i>Phuket. (to appear).</p><p>Dan Flickinger. 2000. On building a more ef­ficient grammar by exploiting types. <i>Natural Language Engineering, </i>6 (1):15-28.</p><p>Lynette Hirschman and Henry Thompson. 1998. Overview of evaluation in speech and natural language processing. In G. Varile and A. Zampolli, editors, <i>Survey of the State of the Art in Human Language Technology. </i>Cambridge University Press, New York.</p><p>Jan Tore L0nning, Stephan Oepen, Dorothee Beermann, Lars Hellan, John Carroll, Helge Dyvik, Dan Flickinger, Janne Bondi Johannessen, Paul Meurer, Torbj0rn Nordgard, Victoria Rosen, and Erik Velldal. 2004. LO­GON. A Norwegian MT effort. In <i>Proceed­ings of the Workshop in Recent Advances in Scandinavian Machine Translation, </i>Uppsala, Sweden.</p><p>Stephan Oepen and Dan Flickinger. 1998. To­wards systematic grammar profiling. Test suite technology ten years after. <i>Journal of Computer Speech and Language, </i>12 (4):411 -436.</p><p>Stephan Oepen, Daniel Flickinger, Kristina Toutanova, and Christopher D. Manning. 2004. LinGO Redwoods. A rich and dynamic treebank for HPSG. <i>Journal ofLanguage and Computation. </i>Karen Sparck Jones and Julia Galliers. 1998. <i>Evaluating Natural Language Processing Sys­tems. </i>Springer-Verlag, Berlin.</p></references></body></article>