Skip to main content

Phrase-Structure Grammars in Prolog

  • Chapter
  • First Online:
Language Processing with Perl and Prolog

Part of the book series: Cognitive Technologies ((COGTECH))

  • 2849 Accesses

Abstract

This chapter introduces parsing using phrase-structure rules and grammars. It uses the Definite Clause Grammar (DCG) notation (Pereira and Warren 1980) , which is a feature of virtually all Prologs. The DCG notation enables us to transcribe a set of phrase-structure rules directly into a Prolog program.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 69.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 99.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Prolog probably names it _Gxxx using an internal numbering scheme.

References

  • Agnäs, M.-S., Alshawi, H., Bretan, I., Carter, D., Ceder, K., Collins, M., Crouch, R., Digalakis, V., Ekholm, B., Gambäck, B., Kaja, J., Karlgren, J., Lyberg, B., Price, P., Pulman, S., Rayner, M., Samuelsson, C., & Svensson, T. (1994). Spoken language translator, first-year report. Research report R94:03, SICS, Kista.

    Google Scholar 

  • Alshawi, H. (Ed.). (1992). The core language engine. Cambridge, MA: MIT.

    Google Scholar 

  • Ball, G., Ling, D., Kurlander, D., Miller, J., Pugh, D., Skelly, T., Stankosky, A., Thiel, D., Dantzich, M. V., & Wax, T. (1997). Lifelike computer characters: The Persona project at Microsoft research. In J. M. Bradshaw (Ed.), Software agents (pp. 191–222). Cambridge, MA: AAAI/MIT.

    Google Scholar 

  • Chomsky, N. (1957). Syntactic structures. The Hague: Mouton.

    Google Scholar 

  • Church, A. (1941). The calculi of lambda-conversion. Princeton: Princeton University Press.

    Google Scholar 

  • Colmerauer, A. (1970). Les systèmes-Q ou un formalisme pour analyser et synthétiser des phrases sur ordinateur. Publication interne 43, Département d’informatique, Université de Montréal.

    Google Scholar 

  • Colmerauer, A. (1978). Metamorphosis grammars. In L. Bolc (Ed.), Natural language communication with computers (Lecture notes in computer science, Vol. 63, pp. 133–189). Berlin/ Heidelberg/New York: Springer.

    Google Scholar 

  • Covington, M. A. (1994b). Natural language processing for Prolog programmers. Upper Saddle River: Prentice Hall.

    MATH  Google Scholar 

  • Gal, A., Lapalme, G., & Saint-Dizier, P. (1989). Prolog pour l’analyse automatique du langage naturel. Paris: Eyrolles.

    Google Scholar 

  • Gazdar, G., & Mellish, C. (1989). Natural language processing in Prolog: An introduction to computational linguistics. Wokingham: Addison-Wesley.

    Google Scholar 

  • Jensen, K., Heidorn, G., & Richardson, S. (Eds.). (1993). Natural language processing: The PLNLP approach. Boston: Kluwer Academic.

    Google Scholar 

  • Pereira, F. C. N. (1984). C-Prolog user’s manual, version 1.5. University of Edinburgh.

    Google Scholar 

  • Pereira, F. C. N., & Shieber, S. M. (1987). Prolog and natural-language analysis (CSLI lecture notes, Vol. 10). Stanford: Center for the Study of Language and Information.

    Google Scholar 

  • Pereira, F. C. N., & Warren, D. H. D. (1980). Definite clause grammar for language analysis–a survey of the formalism and a comparison with augmented transition networks. Artificial Intelligence, 13(3), 231–278.

    Article  MATH  MathSciNet  Google Scholar 

  • Warren, D. H. D. (1983). An abstract Prolog instruction set. Technical note 309, SRI International, Menlo Park.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Nugues, P.M. (2014). Phrase-Structure Grammars in Prolog. In: Language Processing with Perl and Prolog. Cognitive Technologies. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-41464-0_9

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-41464-0_9

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-41463-3

  • Online ISBN: 978-3-642-41464-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics