Datasets:
Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
- guardian_authorship.py +2 -2
guardian_authorship.py
CHANGED
@@ -65,7 +65,7 @@ _URL = "https://www.dropbox.com/s/lc5mje0owl9shms/Guardian.zip?dl=1"
|
|
65 |
# to add specific attributes.
|
66 |
# here we give an example for three sub-set of the dataset with difference sizes.
|
67 |
class GuardianAuthorshipConfig(datasets.BuilderConfig):
|
68 |
-
"""
|
69 |
|
70 |
def __init__(self, train_folder, valid_folder, test_folder, **kwargs):
|
71 |
"""
|
@@ -304,7 +304,7 @@ class GuardianAuthorship(datasets.GeneratorBasedBuilder):
|
|
304 |
]
|
305 |
|
306 |
def _generate_examples(self, data_dir, samples_folders, split):
|
307 |
-
"""
|
308 |
# Yields (key, example) tuples from the dataset
|
309 |
|
310 |
# Training and validation are on 1 topic/genre, while testing is on multiple topics
|
|
|
65 |
# to add specific attributes.
|
66 |
# here we give an example for three sub-set of the dataset with difference sizes.
|
67 |
class GuardianAuthorshipConfig(datasets.BuilderConfig):
|
68 |
+
"""BuilderConfig for NewDataset"""
|
69 |
|
70 |
def __init__(self, train_folder, valid_folder, test_folder, **kwargs):
|
71 |
"""
|
|
|
304 |
]
|
305 |
|
306 |
def _generate_examples(self, data_dir, samples_folders, split):
|
307 |
+
"""Yields examples."""
|
308 |
# Yields (key, example) tuples from the dataset
|
309 |
|
310 |
# Training and validation are on 1 topic/genre, while testing is on multiple topics
|