You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 9, 2022. It is now read-only.
The grammar is made in the correct manner, i.e. the following production is added '<PA:PSA> -> find_passageSpanAnswer'.
During execution if the side_args dictionary contains a key passage_attention that value is used instead which throws an error. I have tried by changing the argument's name in the predicate definition and the error disappears.
There seems to be a bug in execution with side_args.
The text was updated successfully, but these errors were encountered:
Yizhong doesn't have context on this one. It'd be pretty easy for me to fix but I think that @nitishgupta could fix it also. Care to submit a PR for this, Nitish?
Hmm, looking at this a little more, maybe it isn't so easy. The problem is here: https://github.com/allenai/allennlp/blob/53a46ab7227a7f4293030c06a1ad18d010e87d74/allennlp/semparse/domain_languages/domain_language.py#L566-L567. You need to only add the parameter to kwargs if the argument has been registered to the function as a side argument. I'm not sure off the top of my head how to fix this, and I'm on vacation, so I'm only doing a cursory look into this. I can fix it when I get back, or you can try; hopefully this was enough to get you started, if you want to look into it.
In my DomainLanguage if I have a
@predicate
without a side_arg, sayThe grammar is made in the correct manner, i.e. the following production is added
'<PA:PSA> -> find_passageSpanAnswer'
.During execution if the
side_args
dictionary contains a keypassage_attention
that value is used instead which throws an error. I have tried by changing the argument's name in the predicate definition and the error disappears.There seems to be a bug in execution with side_args.
The text was updated successfully, but these errors were encountered: