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

Refactor text_classification, improve extract_archive and add a small example #565

Merged
merged 48 commits into from
Jul 26, 2019

Conversation

cpuhrsch
Copy link
Contributor

No description provided.

@cpuhrsch cpuhrsch changed the title Refactor text_classification and improve extract_archive Refactor text_classification, improve extract_archive and add a small example Jul 24, 2019
Copy link
Contributor

@zhangguanheng66 zhangguanheng66 left a comment

Choose a reason for hiding this comment

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

Ready to merge after passing CI tests.

@@ -110,73 +112,47 @@ class TextClassificationDataset(torch.utils.data.Dataset):

"""

def __init__(self, url, root='.data',
text_field=None, label_field=None, ngrams=1):
def __init__(self, root, ngrams):
"""Initiate text-classification dataset.

Arguments:
url: url of the online raw data files.
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need this url in the docs.

@cpuhrsch cpuhrsch merged commit b743ea9 into pytorch:master Jul 26, 2019
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