[developers] FW: Setting LKB lexicon to LexDB

Ben Waldron ben.m.waldron at gmail.com
Tue Jan 13 13:46:06 CET 2009


Hi Joshua-

I'm afraid you hit a long obsolete wiki page that ought to have been 
removed long ago. Please try the instructions on the following page instead:

http://wiki.delph-in.net/moin/LexDbInitialize

See also:

http://wiki.delph-in.net/moin/LkbLexDb

- Ben


Ben Waldron wrote:
> -original message-
> Subject: [developers] Setting LKB lexicon to LexDB
> Date: 12/01/2009 23:33
>
> Hello Developers,
>
> I have not yet succeeded in getting my TDL lexicon into LexDB dump
> format, but I added a couple lexical entries to LexDB manually to see if
> I could get LKB to use a LexDB lexicon.
>
> I have the following line set in lkb/globals.lsp:
>
> (defparameter *psql-lexicon-parameters* '(:db "lil" :user "lexdb"))
>
> The following is set in lkb/script:
>
>  ;; optionally, use a lexical database; 
>   ;; to activate the DB set *psql-lexicon-parameters* (see globals.lsp)
>   (if *psql-lexicon-parameters*
>     (load-psql-lexicon-from-script)
>     (read-cached-lex-if-available
>      (list
>       (lkb-pathname (parent-directory) "lexicon.tdl")
>       )))
>
> The above were set as per instructions in the "HOW TO set LKB lexicon to
> LexDB" section of this tutorial: 
> http://wiki.delph-in.net/moin/Initialize_LexDB
>
> However, I'm getting the following error when I try to load my grammar:
>
> Error: attempt to call `LOAD-PSQL-LEXICON-FROM-SCRIPT' which is an undefined
>        function.
>   [condition type: UNDEFINED-FUNCTION]
>
> I have grepped through both the logon tree and my grammar recursively
> for "load-psql-lexicon-from-script", but have not found anything.  Does
> anyone know where this function should be defined?
>
> Thanks so much,
>
> Joshua
>
>
>   




More information about the developers mailing list