GSLT ILP Practical 2


Getting started with the FraCaS grammar

  1. Grab this gzipped tar archive, and save it somewhere.
  2. If necessary, untar it with tar zxvf gisw.tgz. This will put all the files in a directory called prac2.
  3. Start up sicstus and read in sys.pl. This will pull in the other Prolog files. Answer p to any questions about redefining predicates.
  4. Do | ?- test.

This should generate a load of parses for some test sentences. The code for test/0 is in sys.pl if you want to have a look at it.


A little induction

  1. Kill sicstus and then comment out the vp_vp_mod rule from medium_grammar.pl
  2. Restart the system by reading sys.pl into sicstus again.
  3. Have a look at the sentences in the file asent.
  4. Do | ?- read_sentences(asent).
  5. Now that we have our sentences read in, let us generate rules from attempted parses of them.  Do | ?- generate_rules_from_sentences.
  6. Before we look at these rules more slowly, let's re-order them so the more interesting ones come up first. Do | ?- order_by_coverage.
  7. Do | ?- display_rules.
  8. Play with the options to look at sentences covered by the various rules and the associated parses.

Last modified: Mon Oct 10 09:59:14 BST 2005

Valid XHTML 1.1!