8000 Fix quarel explanations by matt-gardner · Pull Request #2648 · allenai/allennlp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Fix quarel explanations #2648

Merged
merged 2 commits into from
Mar 26, 2019

Conversation

matt-gardner
Copy link
Contributor
@matt-gardner matt-gardner commented Mar 26, 2019

This was due to some refactoring that I did a while ago, and it is the cause of the broken QuaRel demo. I didn't see an easy way to test for this kind of breakage in the demo repository, unfortunately, but I added a test for the breakage here.

I'm not going to say that this fixes the issue in the demo repo (allenai/allennlp-demo#182), because the demo repo needs to be updated to use this commit after this gets merged, and then it will be fixed.

Copy link
Contributor
@brendan-ai2 brendan-ai2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks, Matt!

world_extractions,
answer_index,
world)
assert len(explanation) == 4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth testing the structure of the explanations too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps, but not in this PR. There should have been more tests of the quarel code originally - the lack of tests was what made it so this wasn't caught earlier. But because things aren't changing much in this code, I'd prefer an add-as-needed approach to testing - I don't want to take the time to add exhaustive tests right now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@matt-gardner matt-gardner merged commit fab4b15 into allenai:master Mar 26, 2019
@matt-gardner matt-gardner deleted the fix_quarel_explanations branch March 26, 2019 23:43
reiyw pushed a commit to reiyw/allennlp that referenced this pull request Nov 12, 2019
* Fix a bug due to a change in the behavior of lisp_to_nested_expression

* Add regression test that fails on master
TalSchuster pushed a commit to TalSchuster/allennlp-MultiLang that referenced this pull request Feb 20, 2020
* Fix a bug due to a change in the behavior of lisp_to_nested_expression

* Add regression test that fails on master
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0