[Attempto] Prolog file error
Norbert E. Fuchs
fuchs at ifi.uzh.ch
Wed Mar 28 13:35:37 CEST 2012
Ananya
Recall that the lexicon file uses Prolog syntax. Some of your lexicon entries
> noun_sg(person, person, neutr).
> noun_pl(persons, person, neutr).
> noun_sg(Force, Force, neutr).
> noun_sg(TestObjecttype2, TestObjecttype2, neutr).
> noun_pl(tests2, TestObjecttype2, neutr).
> noun_sg(test2, test2, neutr).
> noun_sg(node, node, neutr).
> noun_pl(nodes, node, neutr).
> noun_sg(human being, human being, neutr).
> noun_sg(place, place, neutr).
> noun_pl(places, place, neutr).
> noun_sg(location, location, neutr).
use capitalised arguments that Prolog considers as variables. However, lexical arguments must be constants. Thus – if you want to use capitalisation – enclose the capitalised entries in quotes.
As it happens, your example sentences "A human being is a being." and "A test2 is a thing." do not use these erroneous lexical entries, and thus the sentences are parsed.
--- nef
On 28 Mar 2012, at 13:06, Ananya Poddar <ananya0112 at gmail.com> wrote:
> Hello there,
> We are currently working on a project where we have an auto-generated lexicon file that is being generated from the triple-store. The URL address for the file is: http://gnowledge.org/~nagarjun/mylex.pl
>
> This is for a testing purpose, and the nodes included are tests2, Force, as well as human being.
> However, even though it is displaying the syntax at the ACE Parser engine, it is giving the following error.
>
> error lexicon
> Malformed entry. User lexicon entry is malformed: noun_sg(_G6704,_G6704,neutr)
> error lexicon
> Malformed entry. User lexicon entry is malformed: noun_sg(_G6861,_G6861,neutr)
> error lexicon
> Malformed entry. User lexicon entry is malformed: noun_pl(tests2,_G7031,neutr)
> error lexicon
> Malformed file. The user lexicon file is not a valid Prolog file.
> A human being is a being.
> DRS
> No conditions
> []
> Syntax
> specification
> _________|__________
> s |
> ________|________ |
> np vp |
> ___|____ ___|___ |
> det nbar aux np |
> | ___|___ | __|__ |
> | adj nbar | det nbar |
> | | | | | | |
> | | n | | n |
> | | | | | | |
> a human being is a being .
>
>
>
>
>
> Type Sentence Problem Suggestion
> error lexicon
> Malformed entry. User lexicon entry is malformed: noun_sg(_G4354,_G4354,neutr)
> error lexicon
> Malformed entry. User lexicon entry is malformed: noun_sg(_G4511,_G4511,neutr)
> error lexicon
> Malformed entry. User lexicon entry is malformed: noun_pl(tests2,_G4681,neutr)
> error lexicon
> Malformed file. The user lexicon file is not a valid Prolog file.
> A test2 is a thing.
> DRS
> No conditions
> []
> Syntax
> specification
> ________|_________
> s |
> _____|______ |
> np vp |
> __|__ ___|___ |
> det nbar aux np |
> | | | __|__ |
> | n | det nbar |
> | | | | | |
> | | | | n |
> | | | | | |
> a test2 is a thing .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ifi.uzh.ch/pipermail/attempto/attachments/20120328/cef31822/attachment.html>
More information about the attempto
mailing list