GSLT ILP Practical 2
Getting started with the FraCaS grammar
- Grab this gzipped tar archive, and save it somewhere.
- If necessary, untar it with tar zxvf
gisw.tgz. This will put all the files in a directory
called prac2.
- Start up sicstus and read in sys.pl. This will pull in the
other Prolog files. Answer p to any questions
about redefining predicates.
- 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
- Kill sicstus and then comment out the vp_vp_mod rule from
medium_grammar.pl
- Restart the system by reading sys.pl into sicstus
again.
- Have a look at the sentences in the file asent.
- Do | ?- read_sentences(asent).
- Now that we have our sentences read in, let us generate rules from
attempted parses of them. Do | ?- generate_rules_from_sentences.
- 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.
- Do | ?- display_rules.
- 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