INSTRUCTIONS FOR COMPILING AND GENERATING WITH LWW5
PERSONAL EDITION -- John Bateman, September 2007
PREPARATIONS
============
Get Loom4.0, change the path names appropriately for your system
with compile-loom.lisp and load-loom.lisp
Make sure that you read the README's for making
Loom4.0 compatible with KPML and with newer Lisps.
Get KPML4, change the path names within the KPML file:
.../configuration.lisp
COMPILING + LOADING
===================
From within LWW5 personal edition issue the following commands:
(1) load .../Processes/startup/version-utilities.lisp
(2) load .../Processes/startup/cond-defsystem.lisp
(3) load .../compile-loom
[should compile Loom to directories under BIN/MISC]
[Only need to do (1-3) the first time!]
(4) load .../KPML-INSTALLATION.lisp
answer menu questions: (a) compile
(b) do not include GUI,
compile from scratch,
no XML
[only need to do this the first time: next time, start from (4)
and answer no, to compile KPML!!]
(5) on completion: answer yes to load kpml
(6) answer menu questions: load KR, load upper model: all others
unchecked
USING
=====
the following will get you to generating sentences:
(in-package "KPML")
(load-linguistic-resources :english)
(say '(s / sail :actor (n / ship :determiner the) :tense past))
Should produce:
"The ship sailed."
You can also load all the examples with (load-examples :english)
The following example is then quite complex:
(say 'reuters1)
which should produce:
"The European electronics industry has made a lot of noise in public
about keeping Europe safe from Japanese competitors , but in private
they are saying that if you can't beat them, you should join them."