change repo structure
Browse files
NLP4SGPapers.py
CHANGED
@@ -41,9 +41,9 @@ _LICENSE = ""
|
|
41 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
42 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
43 |
_URLS = {
|
44 |
-
"train": "https://huggingface.co/datasets/feradauto/nlp4sgpapers/blob/main/
|
45 |
-
"test": "https://huggingface.co/datasets/feradauto/nlp4sgpapers/blob/main/
|
46 |
-
"
|
47 |
}
|
48 |
|
49 |
class NLP4SGPapers(datasets.GeneratorBasedBuilder):
|
@@ -129,7 +129,7 @@ class NLP4SGPapers(datasets.GeneratorBasedBuilder):
|
|
129 |
|
130 |
return [
|
131 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
|
132 |
-
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["
|
133 |
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files["test"]}),
|
134 |
]
|
135 |
|
|
|
41 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
42 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
43 |
_URLS = {
|
44 |
+
"train": "https://huggingface.co/datasets/feradauto/nlp4sgpapers/blob/main/train.csv",
|
45 |
+
"test": "https://huggingface.co/datasets/feradauto/nlp4sgpapers/blob/main/test.csv",
|
46 |
+
"validation": "https://huggingface.co/datasets/feradauto/nlp4sgpapers/blob/main/validation.csv",
|
47 |
}
|
48 |
|
49 |
class NLP4SGPapers(datasets.GeneratorBasedBuilder):
|
|
|
129 |
|
130 |
return [
|
131 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
|
132 |
+
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["validation"]}),
|
133 |
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files["test"]}),
|
134 |
]
|
135 |
|
train_set_final.csv → train.csv
RENAMED
File without changes
|
dev_set_final.csv → validation.csv
RENAMED
File without changes
|