Commit
·
bfcbdd5
1
Parent(s):
28c621e
removed split, allowing for random splits/ 5-fold cross-validation
Browse files- essays_SuG.py +3 -1
essays_SuG.py
CHANGED
|
@@ -297,7 +297,9 @@ class Fancy(datasets.GeneratorBasedBuilder):
|
|
| 297 |
# It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
|
| 298 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
| 299 |
|
| 300 |
-
train
|
|
|
|
|
|
|
| 301 |
essays = self._get_essay_list()
|
| 302 |
|
| 303 |
if len(validate) > 0:
|
|
|
|
| 297 |
# It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
|
| 298 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
| 299 |
|
| 300 |
+
# this dataset will return a "train" split only, allowing for
|
| 301 |
+
# 5-fold cross-validation
|
| 302 |
+
train, test, validate = self._range_generator(1, 0)
|
| 303 |
essays = self._get_essay_list()
|
| 304 |
|
| 305 |
if len(validate) > 0:
|