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

update mirror for RT dataset #484

Merged
merged 3 commits into from
Aug 24, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion datasets/rotten_tomatoes/dataset_infos.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"default": {"description": "Movie Review Dataset.\nThis is a dataset of containing 5,331 positive and 5,331 negative processed \nsentences from Rotten Tomatoes movie reviews. This data was first used in Bo \nPang and Lillian Lee, ``Seeing stars: Exploiting class relationships for \nsentiment categorization with respect to rating scales.'', Proceedings of the \nACL, 2005.\n", "citation": "@InProceedings{Pang+Lee:05a,\n author = {Bo Pang and Lillian Lee},\n title = {Seeing stars: Exploiting class relationships for sentiment\n categorization with respect to rating scales},\n booktitle = {Proceedings of the ACL},\n year = 2005\n}\n", "homepage": "http://www.cs.cornell.edu/people/pabo/movie-review-data/", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["neg", "pos"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "supervised_keys": {"input": "", "output": ""}, "builder_name": "rotten_tomatoes_movie_review", "config_name": "default", "version": {"version_str": "1.0.0", "description": null, "nlp_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1074810, "num_examples": 8530, "dataset_name": "rotten_tomatoes_movie_review"}, "validation": {"name": "validation", "num_bytes": 134679, "num_examples": 1066, "dataset_name": "rotten_tomatoes_movie_review"}, "test": {"name": "test", "num_bytes": 135972, "num_examples": 1066, "dataset_name": "rotten_tomatoes_movie_review"}}, "download_checksums": {"http://www.cs.cornell.edu/people/pabo/movie-review-data/rt-polaritydata.tar.gz": {"num_bytes": 487770, "checksum": "a05befe52aafda71d458d188a1c54506a998b1308613ba76bbda2e5029409ce9"}}, "download_size": 487770, "dataset_size": 1345461, "size_in_bytes": 1833231}}
{"default": {"description": "Movie Review Dataset.\nThis is a dataset of containing 5,331 positive and 5,331 negative processed \nsentences from Rotten Tomatoes movie reviews. This data was first used in Bo \nPang and Lillian Lee, ``Seeing stars: Exploiting class relationships for \nsentiment categorization with respect to rating scales.'', Proceedings of the \nACL, 2005.\n", "citation": "@InProceedings{Pang+Lee:05a,\n author = {Bo Pang and Lillian Lee},\n title = {Seeing stars: Exploiting class relationships for sentiment\n categorization with respect to rating scales},\n booktitle = {Proceedings of the ACL},\n year = 2005\n}\n", "homepage": "http://www.cs.cornell.edu/people/pabo/movie-review-data/", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["neg", "pos"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "supervised_keys": {"input": "", "output": ""}, "builder_name": "rotten_tomatoes_movie_review", "config_name": "default", "version": {"version_str": "1.0.0", "description": null, "nlp_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1074810, "num_examples": 8530, "dataset_name": "rotten_tomatoes_movie_review"}, "validation": {"name": "validation", "num_bytes": 134679, "num_examples": 1066, "dataset_name": "rotten_tomatoes_movie_review"}, "test": {"name": "test", "num_bytes": 135972, "num_examples": 1066, "dataset_name": "rotten_tomatoes_movie_review"}}, "download_checksums": {"https://storage.googleapis.com/seldon-datasets/sentence_polarity_v1/rt-polaritydata.tar.gz": {"num_bytes": 487770, "checksum": "a05befe52aafda71d458d188a1c54506a998b1308613ba76bbda2e5029409ce9"}}, "download_size": 487770, "dataset_size": 1345461, "size_in_bytes": 1833231}}
2 changes: 1 addition & 1 deletion datasets/rotten_tomatoes/rotten_tomatoes.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
}
"""

_DOWNLOAD_URL = "http://www.cs.cornell.edu/people/pabo/movie-review-data/rt-polaritydata.tar.gz"
_DOWNLOAD_URL = "https://storage.googleapis.com/seldon-datasets/sentence_polarity_v1/rt-polaritydata.tar.gz"


class RottenTomatoesMovieReview(nlp.GeneratorBasedBuilder):
Expand Down