Proceedings

An Efficient Context-Free Parsing Algorithm for Natural Languages

Download BibTeX Cite

Proceedings of the Ninth International Joint Conference on Artificial Intelligence. Natural Language. Pages 756-763.

© 1985 International Joint Conferences on Artificial Intelligence

Abstract

This paper introduces an efficient context-free parsing algorithm and emphasizes its practical value in natural language processing. The algorithm can be viewed as an extend ed LR parsing algorithm which embodies the concept of a " graph -structured stack." Unlike the standard LA, the algorithm is capable of handling arbitrary non-cyclic context-free grammars including ambiguous grammars, while most of the LA parsing efficiency is preserved. The algorithm seems more efficient than any existing algorithms including the Cocke-Younger-Kasami algorithm and Earley's algorithm , as far a3 practical natural language parsing is concerned , due to utilization of LA parsing tables. The algorithm is an all -path parsing algorithm; it produces all possible parse trees (a parse forest) in an efficient representation called a "shared-packed forest. " This paper also shows th at Earley's torest representation has a defect and his algorithm cannot be used in natural language processing as an all -path parsing algorithm.

  1. References Aho, A. V. and Ullman, J. D. The T!Jeory of Parsing, Translation and Compiling. Prentice-Hall, Englewood Cliffs, N. J ., 1972.
  2. Aho, A. V. and Johnson, S. C. LR parsing. Computing Surveys 6:2:99-124, 1974.
  3. Aho, A. V. and Ullman, J. D. Principles of Compiler Design. Addison Wesley, 1977.
  4. Bouckaert, M., Pirotte, A. and Snelling , M. Efficient Parsing Algorithms for General Context-free Grammars. tnf. Sei. 8(1):1-26, Jan , 1975.
  5. Cocl~e . J. and Schwartz, J. I. Program ming Languages and Their Compilers. Courant Institute of Mathematical Sciences, New York University, New York, 1970.
  6. Deremer, F. L. Pra ctical Transtators for LR(k) Languages. PhD thesis, MIT, 1969.
  7. DeRemer, F. L. Simple LR(k) grammars. Comm. ACM 14:7:453-460, 1971.
  8. Earley, J. An Efficient Context-free Parsing Algorithm. PhD thesis, Computer Science Department, Carnegie- Mellon University, 1968.
  9. Earley, J. An Efficient Context-free Parsing Algorithm. Communication of ACM 6(8):94-1 02, February, 1970.
  10. Fischer, M. J. and Meyer, A. R. Boolean Matrix Multiplication and Transitive Closure. ln IEEE Conf. Rec . Symp. Switching Automata Theory, pages 129-131 . 1971.
  11. Graham, S. L. and Harrison, M . A. Parsing of General Context-free Languages. Academic Press, New York. 1976, pages 77-185.
  12. Graham, S. L. , Harrison, M. A. and Ruzzo, W. L. An lmproved Context-free Recognizer. ACM Transactions on Programming Languages and Systems 2(3):415-462, July, 1980.
  13. Prall, V. R. LINGOL -• A Progress Report. ln Proc. of 4th IJCAI , pages pp.327 -381 . August, 1975.
  14. Sheil, B. Observations on context-free parsing. Statistica/ Methods in Linguistics :71 -109, 1976.
  15. Tomita, M. LR Parsers For Natural Languages. ln COL/NG'84. 1984.
  16. Tomita, M. An Efficient A/1-Paths Parsing Algorithm for Natural Langauges. Technical Report CMU-CS-84-163, Computer Science Department, Carnegie-Mellon University, Oct., 1984.
  17. Tomita, M. An Efficient Context-free Parsing A/gorithm for Natural Languages and lts Appfications.
  18. Valiant, L. General Context-free Recognition in Less than Cubic Time. J. Comput Syst. Sei. 10:308-315, 1975.
  19. Younger, D. H. Recognition and Parsing of Context-free Languages in time n 3 . Information and Control10(2):189-208, 1967.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards