kowey / GenI

Surface realiser (part of a Natural Language Generation system) using Tree Adjoining Grammar
GNU General Public License v2.0
21 stars 2 forks source link

prependToSubst: Eric broke unification. Prepending K-t-73 twice #31

Closed kowey closed 11 years ago

kowey commented 11 years ago

Yikes!

geni: Bug in GenI! prependToSubst: Eric broke unification. Prepending K-t-73 twice

geni -m dist/build/grammar/valuation-sem.geni -l dist/build/lexicon/lemmas.glex -s suite/verbs --testcase=t110 --batchdir=/tmp/b

kowey commented 11 years ago

Imported from trac issue 31. Created by kowey on 1970-01-01T01:20:53, last modified: 1970-01-01T01:20:53

kowey commented 11 years ago

Trac comment by kowey on 1970-01-01 01:20:53:

It seems to be t150 in the XMG-GenI integration demo

kowey commented 11 years ago

Trac comment by kowey on 1970-01-01 01:20:53:

In the debugger, it happens at iteration 142 (or 141?)

kowey commented 11 years ago

Trac comment by kowey on 1970-01-01 01:20:53:

I can confirm that GenI 0.17.4 makes it through this. So either this is a regression or something else has changed that reveals the error.

If I understand correctly, this bug means we're trying to register more than one substitution for a variable, which doesn't make sense because normally once you've registered a substitution that variable is gone. I think this means that we're basically just failing to propagate substitutions somewhere...

This makes me want a better abstraction over unification.

kowey commented 11 years ago

Trac comment by kowey on 1970-01-01 01:20:53:

Cool! This may not be a unification bug after all, but a repeated adjunction. Why are we getting this?

kowey commented 11 years ago

Trac comment by kowey on 1970-01-01 01:20:53:

Resolved by: Fri Sep 25 17:16:00 CEST 2009 Eric Kow E.Y.Kow@brighton.ac.uk