[lkb] Getting Parse results from LKB

Stephan Oepen oe at csli.Stanford.EDU
Mon Oct 16 13:58:18 CEST 2006


hi bernhard,

if what you are primarily interested in are labeled parse trees, e.g.

  (S (NP "kim") (VP (V "arrived")))

then you will need to involve the LKB, as PET (for now) has no option
to do the label assignment (which is done post-parsing, and entirely a
display convenience).  the ERG and GG on-line web interfaces are a tad
more complex: they run PET behind [incr tsdb()] for improved effiency;
but to get the labeled parse trees, after parsing, the derivation tree
returned by PET is re-built in the LKB (like deterministic parsing), so
as to then read off the tree node labels.

unless efficiency becomes a concern, i would suggest just running the
LKB in tty mode and talking to it through standard in- and output.  the
Linux run-time binaries should be feasible, just unset DISPLAY so as to
suppress the GUI.  then, writing a command like

  (do-parse-tty "Kim arrived")

to the stdin of the LKB process should return one or more trees, which
you should be able to read off its stdout.

regarding CLISP or SBCL, have you tried?  in theory, the source should
compile okay in either one, although then functionality will be limited
to tty mode.  also, CLISP would not be your most efficient choice, and
rumour has that it the default memory layout in SBCL is insufficient
for large grammars (like the ERG or GG).

                                                      all best  -  oe

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++ Universitetet i Oslo (IFI); Boks 1080 Blindern; 0316 Oslo; (+47) 2284 0125
+++     CSLI Stanford; Ventura Hall; Stanford, CA 94305; (+1 650) 723 0515
+++       --- oe at csli.stanford.edu; oe at ifi.uio.no; stephan at oepen.net ---
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



More information about the lkb mailing list