Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Modernize natural_questions with add_cmdline_args; add flag for context #3440

Merged
merged 2 commits into from
Feb 9, 2021

Conversation

moyapchen
Copy link
Contributor

@moyapchen moyapchen commented Feb 9, 2021

I want to get rid of the context and figured I should add a new cmdline arg. Natural questions doesn't currently use cmdline arguments, so update it so that it does.

Keep the old versions around for backward compatability purposes.

Test Plan:

Variations of the flag with

parlai display_data -t natural_questions -dt valid:stream

ensuring that the output is reasonable.

I want to get rid of the context and figured I should add a new cmdline arg. Natural questions doesn't currently use cmdline arguments, so update it so that it does.

Keep the old versions around for backward compatability purposes.

Test Plan:

Variations of the flag with

```
parlai display_data -t natural_questions -dt valid:stream
```

ensuring that the output is reasonable.
@@ -277,5 +305,5 @@ def __init__(self, opt, shared=None):
super().__init__(opt, shared)


class DefaultTeacher(NaturalQuestionsTeacherShortAnswer):
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not using this old version. And I not sure if anyone else does. I guess it should be OK to remove, or add a warning for deprecation in like 2 month if someone imports it.

Didn't want to remove them outright in case someone was using them, but search suggests they're not. (Which is consistent with @mojtaba-komeili's comment prior)
@moyapchen moyapchen merged commit 5ff4cf0 into master Feb 9, 2021
@moyapchen moyapchen deleted the natural_questions_cmdline branch February 9, 2021 16:31
stephenroller pushed a commit that referenced this pull request Feb 11, 2021
…xt (#3440)

* Modernize natural_questions with add_cmdline_args; add flag for context

I want to get rid of the context and figured I should add a new cmdline arg. Natural questions doesn't currently use cmdline arguments, so update it so that it does.

Keep the old versions around for backward compatability purposes.

Test Plan:

Variations of the flag with

```
parlai display_data -t natural_questions -dt valid:stream
```

ensuring that the output is reasonable.

* Remove unused teachers

Didn't want to remove them outright in case someone was using them, but search suggests they're not. (Which is consistent with @mojtaba-komeili's comment prior)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants