Practical Session
Abstract:
Practical session.
Now, we will again do some simple exercises going through the programs of this section step for step.
- Start Prolog and consult parse.pl, and haha.pl. Use trace to step through some examples so you understand clearly what the additional argument is doing.
- Restart Prolog and consult trans.pl, and a2b.pl. Use trace to step through some examples so you understand clearly how trans.pl works.
- Consult adoubler.pl. Use trace again and step through some examples so you understand clearly how. Look how #-symbols are handled.
- When you are sure you understand trans.pl properly, extend it so that it can cope with categories. This is not difficult: all you have to do is extend the definition of the traverse/5- predicate.
- Then put the morphological transducer (which parses English noun phrases, see » From the Intermediate Form to the Morphological Structure) into Prolog notation and test it with your new predicates.
- Finally, pick another phenomenon of inflectional morphology in some language you know. Try to write down a transducer as a graph. Then put it in Prolog and test it with the programs provided in this section.