Add Info to builder script
Browse files
OCEAN.py
CHANGED
|
@@ -8,6 +8,9 @@ class DatasetConfig(datasets.BuilderConfig):
|
|
| 8 |
|
| 9 |
class OceanLoader(datasets.GeneratorBasedBuilder):
|
| 10 |
|
|
|
|
|
|
|
|
|
|
| 11 |
def _generate_examples(self, filepath):
|
| 12 |
# We need this little script to force huggingface to load every file on its own (you can also use load_dataset(..., streaming=True) instead)
|
| 13 |
files = [x for x in os.listdir(filepath) if ".json" in filepath]
|
|
|
|
| 8 |
|
| 9 |
class OceanLoader(datasets.GeneratorBasedBuilder):
|
| 10 |
|
| 11 |
+
def _info(self):
|
| 12 |
+
return datasets.DatasetInfo(description=_DESCRIPTION)
|
| 13 |
+
|
| 14 |
def _generate_examples(self, filepath):
|
| 15 |
# We need this little script to force huggingface to load every file on its own (you can also use load_dataset(..., streaming=True) instead)
|
| 16 |
files = [x for x in os.listdir(filepath) if ".json" in filepath]
|