Attempto / APE

Parser for Attempto Controlled English (ACE)
http://attempto.ifi.uzh.ch/ape/
Other
188 stars 28 forks source link

Incorrect DRS resulting from reflexive pronoun in a sentence subordination with "to" #21

Open Kaljurand opened 6 years ago

Kaljurand commented 6 years ago
# Here variable "D" is unresolved
$ ./ape.exe -text "Xyz likes to eat itself." -solo drspp
[A,B]
predicate(A,like,named(Xyz),B)-1/2
   B
   [C]
   predicate(C,eat,named(Xyz),D)-1/4

# Here variable "E" is unresolved
$ ./ape.exe -text "John likes to eat his own apple." -solo drspp
[A,B]
predicate(A,like,named(John),B)-1/2
   B
   [C,D]
   relation(C,of,E)-1/5
   object(C,apple,countable,na,eq,1)-1/7
   predicate(D,eat,named(John),C)-1/4
tkuhn commented 6 years ago

The bug is probably in this rule (but I couldn't spot it yet): https://github.com/Attempto/APE/blob/master/prolog/parser/grammar.fit#L3561