Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question answer datasets: SQuAD1 and SQuAD2 #773

Merged
merged 9 commits into from
Jun 10, 2020

Conversation

zhangguanheng66
Copy link
Contributor

No description provided.

"""Defines an abstraction for raw question answer iterable datasets.
"""

def __init__(self, iterator, start=0, num_lines=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

The other dataset still has the setup_iter method, so I'd mirror that behavior or change the behavior of the other.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, let's keep this consistent for now since there are several ongoing PRs to re-write datasets. Once done, we can send out a separate PR to fix it.

Copy link
Contributor

@cpuhrsch cpuhrsch left a comment

Choose a reason for hiding this comment

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

Looks good to me! See inline comment on setup_iter. Will update #736 for this.

@zhangguanheng66 zhangguanheng66 mentioned this pull request May 20, 2020
4 tasks
@zhangguanheng66 zhangguanheng66 merged commit fe8d807 into pytorch:master Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants