Attempto/APE

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

Opened this issue · 1 comments

# 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

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