|
{ |
|
"paper_id": "A92-1046", |
|
"header": { |
|
"generated_with": "S2ORC 1.0.0", |
|
"date_generated": "2023-01-19T02:03:49.762077Z" |
|
}, |
|
"title": "The Role of Testing in Grammar Engineering", |
|
"authors": [ |
|
{ |
|
"first": "Martin", |
|
"middle": [], |
|
"last": "Volk", |
|
"suffix": "", |
|
"affiliation": { |
|
"laboratory": "", |
|
"institution": "University of Koblenz-Landau Institute of Computational Linguistics Rheinau", |
|
"location": { |
|
"postCode": "3-4 5400", |
|
"settlement": "Koblenz", |
|
"country": "Germany" |
|
} |
|
}, |
|
"email": "" |
|
} |
|
], |
|
"year": "", |
|
"venue": null, |
|
"identifiers": {}, |
|
"abstract": "", |
|
"pdf_parse": { |
|
"paper_id": "A92-1046", |
|
"_pdf_hash": "", |
|
"abstract": [], |
|
"body_text": [ |
|
{ |
|
"text": "In the past grammars have been developed either with an art approach (building up a coherent system; prescriptive grammars like the Latin grammars of the Middle Ages) or with a science approach (describing the laws of nature; descriptive and contrastive grammars). We propose to regard grammar development in Computational Linguistics as an engineering task analogous to software engineerkig: one that requires analysis, specification, implementation, testing, integration and maintenance.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Introduction", |
|
"sec_num": "1" |
|
}, |
|
{ |
|
"text": "The different phases in the software development process correspond to phases in grammar development in the following way: * The problem analysis and definition phase corresponds to an analysis of the linguistic data (texts of written or spoken language).", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Introduction", |
|
"sec_num": "1" |
|
}, |
|
{ |
|
"text": "\u2022 Problem specification means setting up grammar rules that describe the observed data. The grammar formalism thus provides the formal language for the specification.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Introduction", |
|
"sec_num": "1" |
|
}, |
|
{ |
|
"text": "\u2022 The implementation phase includes putting the rules into the specific format of the computational grammar system. This is a computer program to process a grammar in the framework of a grammar theory. The implementation effort decreases the closer the format of the grammar approaches the format of the computational system. * The testing phase comprises checking the grammar implementation against the linguistic data, i.e. judging grammaticality and the assigned structure.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Introduction", |
|
"sec_num": "1" |
|
}, |
|
{ |
|
"text": "\u2022 Integration, installation and maintenance are no different in the context of an NLP system than in other software systems.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Introduction", |
|
"sec_num": "1" |
|
}, |
|
{ |
|
"text": "Our project focusses on the testing aspect of the process. Testing can never be exhaustive but must be representative. We therefore propose an archive of test sentences (hence: ATS) to govern the incremental development and the testing of grammar implementations.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Introduction", |
|
"sec_num": "1" |
|
}, |
|
{ |
|
"text": "Towards the goal of a comprehensive collection of test sentences we have restricted ourselves to the construction of an ATS that represents specific syntactic phenomena. The archive aims to be a representative sample of all syntactic phenomena of a natural language, in our case German.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Construction of an ATS", |
|
"sec_num": "2" |
|
}, |
|
{ |
|
"text": "The ATS must contain grammatical sentences as well as ungrammatical strings. The grammatical sentences are systematically collected by varying one syntactic phenomenon at a time. E.g. we vary first the subcategory of the verb and then we vary verb tense, etc. For every phenomenon we have to construct ungrammatical strings to check against overgeneration by the grammar. These strings are found by manipulating the ph,'nomenon in question in such ways as to make it ungrammatical. A syntactic feature must be varied over all values of its domain. E.g. the feature case in German has the values nominative, genitive, dative, and accusative. A noun phrase (NP) that needs to appear in the nominative in a given sentence will then result in three ungrammatical strings when the other cases are assigned.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Construction of an ATS", |
|
"sec_num": "2" |
|
}, |
|
{ |
|
"text": "It must be noted that the set of ungrammatical strings gets very large when it comes to problems such as word order where the permutation of all the words in a sentence is necessary to enumerate all possibilities. In this case we need heuristics to find the most appropriate test sentences. E.g. in German the order of NPs in a sentence is variable with certain restrictions whereas the word order within the NP is relatively fixed. Therefore we are much more likely to encounter problems in NP order when setting up our grammar. As a result we will have to focus on ungrammatical strings with NP order problems. In contrast to grammatical sentences ungrammatical strings are only seldom found naturally (e.g. errors of language learners) and it will be interesting to study whether these occurrences (at least the most frequent ones) correspond to our constructed examples.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Construction of an ATS", |
|
"sec_num": "2" |
|
}, |
|
{ |
|
"text": "The judgement of grammatical versus ungrammatical strings is subjective and has little to say about the acceptability of a sentence in a real-world communication.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Construction of an ATS", |
|
"sec_num": "2" |
|
}, |
|
{ |
|
"text": "Thus our ATS will model competence rather than performance in the Chomskyan sense.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Construction of an ATS", |
|
"sec_num": "2" |
|
}, |
|
{ |
|
"text": "For the practical use the ATS must be organized in a modular fashion, enabling the user to adapt and extend the archive according to his needs and convictions. Furthermore it must be documented why a sentence has been entered into the archive, since every sentence displays a multitude of syntactic information, only some of which is relevant in our domain.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Construction of an ATS", |
|
"sec_num": "2" |
|
}, |
|
{ |
|
"text": "The ATS can be useful in many respects. First, it can govern the development process of a grammar in that it provides the linguistic data in a concise fashion. Grammar rules can be incrementally constructed to account for the given sentences. Organizing the ATS around syntactic phenomena of increasing complexity supports incremental grammar development. After each phenomenon has been formalized, the grammar can be checked against the test sentences, thus facilitating the retrieval of problematical sections in the grammar. The goal is to set up the archive in such a way that incremental grammar development does not require total retesting of all the previous material but only of the recent relevant phenomena. But foremost the ATS is meant to support the testing of the grammar for completeness (all sentences that should be accepted are accepted by the grammar) and soundness (the grammar does not accept any sentence that should not be accepted).", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Testing with an ATS", |
|
"sec_num": "3" |
|
}, |
|
{ |
|
"text": "In testing a grammar we need to distinguish between using the grammar for analysis or synthesis. In analysis the ATS can be used to provide input sentences for the parsing process. In synthesis the ATS can be used for comparison with the generated sentences and thus minimize the human judgement effort to the leftover sentences. The grammatical ones of this group can be used to complete the ATS.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Testing with an ATS", |
|
"sec_num": "3" |
|
}, |
|
{ |
|
"text": "We see three major advantages in using an ATS.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Testing with an ATS", |
|
"sec_num": "3" |
|
}, |
|
{ |
|
"text": "1. Organizing the ATS in equivalence classes around syntactic phenomena facilitates incremental grammar development and problem driven testing.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Testing with an ATS", |
|
"sec_num": "3" |
|
}, |
|
{ |
|
"text": "2. Compared to working with NL corpora the ATS avoids redundant testing of frequently occuring syntactic phenomena. The ATS can thus serve as a testbed before the grammar is used on real (\"unconstructed\" ) texts.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Testing with an ATS", |
|
"sec_num": "3" |
|
}, |
|
{ |
|
"text": "3. The ATS will help to compare the performance of different implementations within the same formalism as well as across linguistic theories. Running an LFG implementation against a GPSG implementation will show the respective adequacy of the theories for particular syntactic phenomena.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Testing with an ATS", |
|
"sec_num": "3" |
|
}, |
|
{ |
|
"text": "In order to apply an ATS in practice we have built a workbench for experimentation with grammar development that contains an archive of this nature (see Volk and Ridder, 1991) . The workbench is designed as a tutorial system for students of syntax analysis in Computational Linguistics. Its ATS contains 350 sentences for 15 syntactic phenomena. The workbench comes with a lexicon, a morphology component, a special purpose editor and output procedures for linguistic type tree output. The program is written in Prolog and runs on PCs.", |
|
"cite_spans": [ |
|
{ |
|
"start": 153, |
|
"end": 175, |
|
"text": "Volk and Ridder, 1991)", |
|
"ref_id": "BIBREF5" |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Testing with an ATS", |
|
"sec_num": "3" |
|
}, |
|
{ |
|
"text": "Concerning the ATS the approach most similar to our own is by Nerbonne and coworkers (1991) . They assemble a database of constructed sentences in an attempt to exhaustively cover syntactic phenomena. So far they have tackled coordination and verb government with several hundred sentences for both. They have not yet. included their \"diagnostic database\" in any test system. This work also reports on attempts to build up sentence collections for English. Other comparable approaches towards grammar engineering are by Erbach (1991) and by Erbach and Arens (1991) . The first describes a system that allows for the parametrization of and experimentation with different parsing strategies. The user can specify priorities to incrementally optimize the parsing process. We believe, however, that lacking a broad collection of test sentences this system cannot be sufficiently evaluated and therefore we see our approach as complementary to theirs.", |
|
"cite_spans": [ |
|
{ |
|
"start": 62, |
|
"end": 91, |
|
"text": "Nerbonne and coworkers (1991)", |
|
"ref_id": null |
|
}, |
|
{ |
|
"start": 520, |
|
"end": 533, |
|
"text": "Erbach (1991)", |
|
"ref_id": null |
|
}, |
|
{ |
|
"start": 541, |
|
"end": 564, |
|
"text": "Erbach and Arens (1991)", |
|
"ref_id": null |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Similar work", |
|
"sec_num": "4" |
|
}, |
|
{ |
|
"text": "In another attempt Erbach and Arens (1991) try to evaluate grammars by generating a \"representative set of sentences\" in a systematic way. They limit their lexicon and grammar, and starting with sentences of length 1, they generate sentences with increasing length. It is not clear how they intend to check the resulting sentences other than by human judgement. An ATS that is adapted to their lexicon could be compared against these sentences.", |
|
"cite_spans": [ |
|
{ |
|
"start": 19, |
|
"end": 42, |
|
"text": "Erbach and Arens (1991)", |
|
"ref_id": null |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Similar work", |
|
"sec_num": "4" |
|
}, |
|
{ |
|
"text": "Future work will focus on two aspects. First, we will try to apply testing techniques from software engineering to our domain of grammar development. In particular we hope to demonstrate that building a grammar implementation is a special case of declarative programming, since most recent grammar formalisms (notably the unification-based theories) are declarative in nature. This needs to go together with test statistics and precise information on how to incrementally improve the grammar.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Future directions", |
|
"sec_num": "5" |
|
}, |
|
{ |
|
"text": "Second, in the long run it will be necessary to add sentences that exceed pure syntactic testing and check for semantic regularities. It is by no means clear how the test sentences for semantics should be collected since there is no set of agreed upon semantic features that could be varied.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Future directions", |
|
"sec_num": "5" |
|
} |
|
], |
|
"back_matter": [], |
|
"bib_entries": { |
|
"BIBREF0": { |
|
"ref_id": "b0", |
|
"title": "An Environment for Ezperimentatwn with Parsing Strategies", |
|
"authors": [ |
|
{ |
|
"first": "Gregor", |
|
"middle": [], |
|
"last": "Erbach", |
|
"suffix": "" |
|
} |
|
], |
|
"year": null, |
|
"venue": "IWBS Report", |
|
"volume": "167", |
|
"issue": "", |
|
"pages": "", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Gregor Erbach. An Environment for Ezperimentatwn with Parsing Strategies. (IWBS Report 167) Stuttgart:", |
|
"links": null |
|
}, |
|
"BIBREF3": { |
|
"ref_id": "b3", |
|
"title": "Grammatiken fiir die Analyse natiirlicher Sprache dutch Generierung einer repr~sentativen Satzmenge. Proceedings of GWAI-91", |
|
"authors": [], |
|
"year": 1991, |
|
"venue": "", |
|
"volume": "", |
|
"issue": "", |
|
"pages": "126--129", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Grammatiken fiir die Analyse natiirlicher Sprache dutch Generierung einer repr~sentativen Satzmenge. Procee- dings of GWAI-91, pages 126-129, Bonn, September 1991.", |
|
"links": null |
|
}, |
|
"BIBREF4": { |
|
"ref_id": "b4", |
|
"title": "A diagT~ostic tool for German syntaz", |
|
"authors": [ |
|
{ |
|
"first": "John", |
|
"middle": [], |
|
"last": "Nerbonne", |
|
"suffix": "" |
|
} |
|
], |
|
"year": 1991, |
|
"venue": "", |
|
"volume": "", |
|
"issue": "", |
|
"pages": "", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "John Nerbonne et al. A diagT~ostic tool for German syn- taz. (Research Report RR-91-t8)Saarbriicken: DFKI. July 1991.", |
|
"links": null |
|
}, |
|
"BIBREF5": { |
|
"ref_id": "b5", |
|
"title": "GTU (Grammalik Test Umgebung) Manual. (Manuscript) Institute of Computational Linguistics", |
|
"authors": [ |
|
{ |
|
"first": "Martin", |
|
"middle": [], |
|
"last": "Volk", |
|
"suffix": "" |
|
}, |
|
{ |
|
"first": "Hanno", |
|
"middle": [], |
|
"last": "Ridder", |
|
"suffix": "" |
|
} |
|
], |
|
"year": 1991, |
|
"venue": "", |
|
"volume": "", |
|
"issue": "", |
|
"pages": "", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Martin Volk and Hanno Ridder. GTU (Grammalik Test Umgebung) Manual. (Manuscript) Institute of Com- putational Linguistics. University of Koblenz-Landau. 1991.", |
|
"links": null |
|
} |
|
}, |
|
"ref_entries": {} |
|
} |
|
} |