Re: [lkb] LexDB
Ben Waldron <[email protected]> Fri, 22 Apr 2005 16:42:27 +0100
| Newsgroups | gmane.comp.ai.lkb |
|---|---|
| Message-ID | <[email protected]> |
Berthold Crysmann wrote: > I am experiencing problems with the creation of a lexical database > (both for gergram and erg): > > The script install-lexdb.sh reports the following error: > > -8<----- > taking field defns from file /home/crysmann/lingo/erg/lexdb.dfn > psql -c 'delete from fields' -U lexdb erg > DELETE 0 > psql -c "copy fields from /home/crysmann/lingo/erg/lexdb.dfn" -U lexdb > erg > ERROR: extra data after last expected column > CONTEXT: COPY fields, line 1: "erg id name symbol" > drop_lexdb > ABORTING... > -8<-------- You need to call it with the .fld file as second argument: $ bash install-lexdb.sh erg ~/lingo/erg/lexdb.fld Sorry if this wasn't clear from the Wiki instructions. (The .dfn file contains the mappings from DB fields into AVMs used in the grammar.) -Ben == $ bash install-lexdb.sh usage: install-lexdb.sh DBNAME FIELDS-FILE