Datasets:
Update Yelpdata_663.py
Browse files- Yelpdata_663.py +7 -6
Yelpdata_663.py
CHANGED
@@ -45,22 +45,23 @@ year={2020}
|
|
45 |
# TODO: Add description of the dataset here
|
46 |
# You can copy an official description
|
47 |
_DESCRIPTION = """\
|
48 |
-
This
|
|
|
49 |
"""
|
50 |
|
51 |
# TODO: Add a link to an official homepage for the dataset here
|
52 |
_HOMEPAGE = "https://www.yelp.com/dataset/download"
|
53 |
|
54 |
# TODO: Add the licence for the dataset here if you can find it
|
55 |
-
_LICENSE = ""
|
56 |
|
57 |
# TODO: Add link to the official dataset URLs here
|
58 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
59 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
60 |
_URL = "https://yelpdata.s3.us-west-2.amazonaws.com/"
|
61 |
_URLS = {
|
62 |
-
"
|
63 |
-
"
|
64 |
}
|
65 |
# TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
|
66 |
class YelpDataset(datasets.GeneratorBasedBuilder):
|
@@ -109,8 +110,8 @@ class YelpDataset(datasets.GeneratorBasedBuilder):
|
|
109 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
110 |
|
111 |
return [
|
112 |
-
datasets.SplitGenerator(name=datasets.Split.
|
113 |
-
datasets.SplitGenerator(name=datasets.Split.
|
114 |
]
|
115 |
|
116 |
|
|
|
45 |
# TODO: Add description of the dataset here
|
46 |
# You can copy an official description
|
47 |
_DESCRIPTION = """\
|
48 |
+
This dataset encompasses a wealth of information from the Yelp platform,
|
49 |
+
detailing user reviews, business ratings, and operational specifics across a diverse array of local establishments.
|
50 |
"""
|
51 |
|
52 |
# TODO: Add a link to an official homepage for the dataset here
|
53 |
_HOMEPAGE = "https://www.yelp.com/dataset/download"
|
54 |
|
55 |
# TODO: Add the licence for the dataset here if you can find it
|
56 |
+
_LICENSE = "https://s3-media0.fl.yelpcdn.com/assets/srv0/engineering_pages/f64cb2d3efcc/assets/vendor/Dataset_User_Agreement.pdf"
|
57 |
|
58 |
# TODO: Add link to the official dataset URLs here
|
59 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
60 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
61 |
_URL = "https://yelpdata.s3.us-west-2.amazonaws.com/"
|
62 |
_URLS = {
|
63 |
+
"business": _URL + "yelp_academic_dataset_business.json",
|
64 |
+
"review": _URL + "yelp_academic_dataset_review.json",
|
65 |
}
|
66 |
# TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
|
67 |
class YelpDataset(datasets.GeneratorBasedBuilder):
|
|
|
110 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
111 |
|
112 |
return [
|
113 |
+
datasets.SplitGenerator(name=datasets.Split.BUSINESS, gen_kwargs={"filepath": downloaded_files["business"]}),
|
114 |
+
datasets.SplitGenerator(name=datasets.Split.REVIEW, gen_kwargs={"filepath": downloaded_files["review"]}),
|
115 |
]
|
116 |
|
117 |
|