1 / 4

Prolog Tutorial

CS460/IT632 Natural Language Processing/Language Technology for the Web Lecture 15 (03/03/06) Prof. Pushpak Bhattacharyya IIT Bombay. Prolog Tutorial. Prolog. Prolog does unification, given facts and rules. Rules are specified in the form of Horn clauses. Prolog does Top down parsing.

Télécharger la présentation

Prolog Tutorial

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS460/IT632 Natural Language Processing/Language Technology for the Web Lecture 15 (03/03/06)Prof. Pushpak BhattacharyyaIIT Bombay Prolog Tutorial

  2. Prolog • Prolog does unification, given facts and rules. • Rules are specified in the form of Horn clauses. • Prolog does Top down parsing.

  3. Commands • consult(user) – to provide input on the prompt directly. • ^D – exit from entering predicate • listing. – list all the entered clauses. • trace. – show the trace path while unification.

  4. Exercise • Perform Union and Intersection of two lists. • Tools: • SWT Prolog • Definite Clause Grammar (DCG)

More Related