A Practical Comparison of Parsing Strategies

A Practical Comparison of Parsing Strategies

A Practical Comparison of Parsing Strategies Jonathan Slocum Siemens Corporation INTRODUCTION The SRI Connection Although the literature dealing with formal and natural languages abounds with theoretical arguments of worst- At SRI International the~thor was responsible for the case performance by various parsing strategies [e.g., development of the English front-end for the LADDER Griffiths & Petrick, 1965; Aho & Ullman, 1972; Graham, system [Hendrix etal., 1978]. LADDER was developed as Harrison & Ruzzo, Ig80], there is little discussion of a prototype system for understanding questions posed in comparative performance based on actual practice in English about a naval domain; it translated each English understanding natural language. Yet important practical question into one or more relational database queries, considerations do arise when writing programs to under- prosecuted the queries on a remote computer, and stand one aspect or another of natural language utteran- responded with the requested information in a readable ces. Where, for example, a theorist will characterize a format tailored to the characteristics of the answer. parsing strategy according to its space and/or time The basis for the development of the NLP component of requirements in attempting to analyze the worst possible the LADDER system was the LIFER parser, which input acc3rding to ~n arbitrary grammar strictly limited interpreted sentences according to a 'semantic grammar' in expressive power, the researcher studying Natural [Burton, 1976] whose rules were carefully ordered to Language Processing can be justified in concerning produce the most plausible interpretation first. himself more with issues of practical performance in parsing sentences encountered in language as humans After more than two years of intensive development, the Actually use it using a grammar expressed in a form human costs of extending the coverage began to mount corve~ie: to the human linguist who is writing it. significantly. The semantic grammar interpreted by Moreover, ~ry occasional poor performance may be quite LIFER had become large and unwieldy. Any change, acceptabl:, particularly if real-time considerations are however small, had the potential to produce "ripple not invo~ed, e.g., if a human querant is not waiting effects" which eroded the integrity of the system. A for the answer to his question), provided the overall more linguistically motivated grammar was required. The average performance is superior. One example of such a question arose, "Is LIFER as suited to more traditional situation is off-line Machine Translation. grammars as it is to semantic grammars?" At the time, there were available at SRI three production-quality This paper has two purposes. One is to report an eval- parsers: LIFER; DIAMOND, an implementation of the Cocke- uation of the performance of several parsing strategies Kasami~nger parsing algorithm programmed by William in a real-world setting, pointing out practical problems Paxton of SRI; and CKY, an implementation of the in making the attempt, indicating which of the strate- identical algorithm programmed initially by Prof. Daniel gies is superior to the others in which situations, and Chester at the University of Texas. In this most of all determining the reasons why the best strate- environment, experiments comparing various aspects of gy outclasses its competition in order to stimulate and performance were inevitable. direct the design of improvements. The other, more important purpose is to assist in establishing such The LRC Connection evaluation as a meaningful and valuable enterprise that contributes to the evolution of Natural Language In 1979 the author began research in Machine Translation PrcJessing from an art form into an empirical science. at the Linguistics Research Center of the University of T~t is, our concern for parsing efficiency transcends Texas. The LRC environment stimulated the design of a the issue of mere practicality. At slow-to-average new strategy variation, though in retrospect it is parsing rates, the cost of verifying linguistic theories obviously applicable to any parser supporting a facility on a large, general sample of natural language can still for testing right-hand-side rule constituents. It also be prohibitive. The author's experience in MT has stimulated the production of another parser. (These demonstrated the enormous impetus to linguistic theory will be defined and discussed later.) To test the formulation and refinement that a suitably fast parser effects of various strategies on the two LRC parsers, an will impart: when a linguist can formalize and encode a experiment was designed to determine whether they theory, then within an hour test it on a few thousand interact with the different parsers and/or each other, words of natural text, he will be able to reject whether any gains are offset by introduced overhead, inadequate ideas at a fairly high rate. This argument and whether the source and precise effects of any may even be applied to the production of the semantic overhead could be identified and explained. theory we all hope for: it is not likely that its early formulations will be adequate, and unless they can be explored inexpensively on significant language samples THE SRI EXPERIMENTS they may hardly be explored at all, perhaps to the extent that the theory's qualities remain undiscovered. In this section we report the experiments conducted at The search for an optimal natural language parsing SRI. First, the parsers and their strategy variations technique, then, can be seen as the search for an are described and intuitively compared; second, the instrument to assist in extending the theoretical grammars are described in terms of their purpose and frontiers of the science of Natural LanguageProcessing. their coverage; third, the sentences employed in the comparisons are discussed with regard to their source Following an outline below of some of the historical and presumed generality; next, the methods of comparing circumstances that led the author to design and conduct performance are detailed; then the results of the major the parsing experiments, we will detail our experimental experiment are presented. Finally, three small follow- setting and approach, present the results, discuss the up experiments are reported as anecdotal evidence. implications of those results, and conclude with some remarks on what has been l~rned. The Parsers and Strategies One of the parsers employed in the SRI experiments was LIFER: a top-down, depth-first parser with automatic back-up [Hendrix, 1977]. LIFER employs special "look down" logic based on the current word in the sentence to original, and rather efficient, implementation. One eliminate obviously fruitless downward expansion when might therefore expect LIFER to compare favorably with the current word cannot be accepted as the leftmose the other parsers, particularly when interpreting the element in any expansion of the currently proposed LADDER grammar written with LIFER, and only LIFER, in syntactic category [Griffiths and Petrick, 1965] and a mind. DIAMOND, while implementeing the very efficient "well-formed substring table" [Woods, 1975] to eliminate Cocke-Kasami-Younger algorithm and being augmented with redundant pursuit of paths after back-up. LIFER sup- an oracle and special programmingtricks (e.g., assembly ports a traditional style of rule writing where phrase- code) intended to enhance its performance, is a rather structure rules are augmented by (LISP) procedures which massive program and might be considered suspect for that can reject the application of the rule when proposed by reason alone; on the other hand, its predecessor was the parser, and which construct an interpretation of the developed for the purpose of speech understanding, where phrase when the rule's application is acceptable. The efficiency issues predominate, and this strongly argues special user-definable routine responsible for for good performance expectations. Chester's evaluating the S-level rule-body procedures was modified implementation of the Cocke-Kasami-Youngeralgorithm to collect certain statistics but reject an otherwise represents the opposite extreme of startling simplicity. acceptable interpretation; this forced LIFER into its His central algorithm is expressed in a dozen lines of back-up mode where it sought out an alternate LISP code and requires little else in a basic interpretation, which was recorded and rejected in the implementation. Expectations here might be bi-modal: it same fashion. In this way LIFER proceeded to derive all should either perform well due to its concise nature, or possible interpretations of each sentence according to poorly due to the lack of any efficiency aids. There is the grammar. This rejection behavior was not entirely one further consideration of merit: that of inter- unusual, in that LIFER specifically provides for such an programmer variability. Both LIFER and Chester's parser eventuality, and because the grammars themselves were were rewritten for increased efficiency by the author; already making use of this facility to reject faulty DIAMOND was used without modification. Thus differences interpretations. By forcing LIFER to compute all between DIAMOND and the others might be due to different interpretations in this natural manner, it could programming styles -- indeed, between DIAMOND and CKY meaningfully be compared with the other parsers. this represents the only difference aside from the oracle --while

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    6 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us